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
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
957 TRAY_MONITOR_CPPFLAGS
1048 ac_subst_files='MCOMMON'
1049 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1079 program_transform_name=s,x,x,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174 eval enable_$ac_feature=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193 eval enable_$ac_feature=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1357 -site=* | --site=* | --sit=*)
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1384 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 { echo "$as_me: error: invalid package name: $ac_package" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390 eval with_$ac_package=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1402 # Obsolete; use --with-x.
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1419 -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 { echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 # Be sure to have absolute directory names.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462 { (exit 1); exit 1; }; }
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 { echo "$as_me: error: Working directory cannot be determined" >&2
1493 { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 { echo "$as_me: error: pwd does not report name of working directory" >&2
1496 { (exit 1); exit 1; }; }
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$0" : 'X\(//\)[^/]' \| \
1506 X"$0" : 'X\(//\)$' \| \
1507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536 { (exit 1); exit 1; }; }
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541 { (exit 1); exit 1; }; }
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=no]
1670 --disable-largefile omit support for large files
1671 --disable-acl disable acl support [default=auto]
1672 --disable-xattr disable xattr support [default=auto]
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1684 --without-libintl-prefix don't search for libintl in includedir and libdir
1685 --with-included-gettext use the GNU gettext library included here
1686 --with-qwt[=DIR] specify qwt library directory
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1742 install directory, default is to search through a
1743 number of common places for the SQLite3 files.
1744 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1745 directory, default is to search through a number of
1746 common places for the DBI files.
1747 --with-dbi-driver[=DRIVER]
1748 Suport for DBI driver. DRIVER is the one DBI driver
1749 like Mysql, Postgresql, others. Default is to not
1750 configure any driver.
1751 --with-x use the X Window System
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CXX C++ compiler command
1762 CXXFLAGS C++ compiler flags
1764 WXCONFIG wx-config command. On some systems, you must set it to
1765 wx-config-2.6 to use wxWidgets 2.6.
1766 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1767 CXXCPP C++ preprocessor
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1777 if test "$ac_init_help" = "recursive"; then
1778 # If there are subdirs, report their specific --help.
1779 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1780 test -d "$ac_dir" || continue
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1787 # A ".." for each directory in $ac_dir_suffix.
1788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1789 case $ac_top_builddir_sub in
1790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1800 .) # We are building in place.
1802 ac_top_srcdir=$ac_top_builddir_sub
1803 ac_abs_top_srcdir=$ac_pwd ;;
1804 [\\/]* | ?:[\\/]* ) # Absolute name.
1805 ac_srcdir=$srcdir$ac_dir_suffix;
1806 ac_top_srcdir=$srcdir
1807 ac_abs_top_srcdir=$srcdir ;;
1809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810 ac_top_srcdir=$ac_top_build_prefix$srcdir
1811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815 cd "$ac_dir" || { ac_status=$?; continue; }
1816 # Check for guested configure.
1817 if test -f "$ac_srcdir/configure.gnu"; then
1819 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820 elif test -f "$ac_srcdir/configure"; then
1822 $SHELL "$ac_srcdir/configure" --help=recursive
1824 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 cd "$ac_pwd" || { ac_status=$?; break; }
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1834 generated by GNU Autoconf 2.61
1836 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1837 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.61. Invocation command line was
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 echo "PATH: $as_dir"
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_must_keep_next=false
1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916 | -silent | --silent | --silen | --sile | --sil)
1919 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1924 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1925 if test $ac_must_keep_next = true; then
1926 ac_must_keep_next=false # Got value, back to normal.
1929 *=* | --config-cache | -C | -disable-* | --disable-* \
1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932 | -with-* | --with-* | -without-* | --without-* | --x)
1933 case "$ac_configure_args0 " in
1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 -* ) ac_must_keep_next=true ;;
1940 ac_configure_args="$ac_configure_args '$ac_arg'"
1945 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1946 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log. We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954 # Save into config.log some information that might help in debugging.
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1964 # The following way of writing the cache mishandles newlines in values,
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1971 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1975 _ | IFS | as_nl) ;; #(
1976 *) $as_unset $ac_var ;;
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space=\ *)
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##
2001 for ac_var in $ac_subst_vars
2003 eval ac_val=\$$ac_var
2005 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 echo "$ac_var='\''$ac_val'\''"
2011 if test -n "$ac_subst_files"; then
2013 ## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##
2018 for ac_var in $ac_subst_files
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 echo "$ac_var='\''$ac_val'\''"
2029 if test -s confdefs.h; then
2039 test "$ac_signal" != 0 &&
2040 echo "$as_me: caught signal $ac_signal"
2041 echo "$as_me: exit $exit_status"
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2055 # Predefined preprocessor variables.
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085 set x "$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2089 set x "$ac_default_prefix/share/config.site" \
2090 "$ac_default_prefix/etc/config.site"
2095 if test -r "$ac_site_file"; then
2096 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 echo "$as_me: loading cache $cache_file" >&6;}
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2115 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 echo "$as_me: creating cache $cache_file" >&6;}
2120 # Check that the precious variables saved in the cache have kept the same
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2130 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2134 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2141 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2143 echo "$as_me: former value: $ac_old_val" >&2;}
2144 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2145 echo "$as_me: current value: $ac_new_val" >&2;}
2146 ac_cache_corrupted=:
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2152 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161 if $ac_cache_corrupted; then
2162 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166 { (exit 1); exit 1; }; }
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2199 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2200 if test -f "$ac_dir/install-sh"; then
2202 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 elif test -f "$ac_dir/install.sh"; then
2206 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 elif test -f "$ac_dir/shtool"; then
2210 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 if test -z "$ac_aux_dir"; then
2215 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2216 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2217 { (exit 1); exit 1; }; }
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2229 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2232 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2233 WIN32MAINDIR=${BUILD_DIR}
2234 WIN32TOPDIR=${TOP_DIR}
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 TRUEPRG=$ac_cv_path_TRUEPRG
2275 if test -n "$TRUEPRG"; then
2276 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2277 echo "${ECHO_T}$TRUEPRG" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2284 test -n "$TRUEPRG" && break
2286 test -n "$TRUEPRG" || TRUEPRG=":"
2288 for ac_prog in false
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 FALSEPRG=$ac_cv_path_FALSEPRG
2321 if test -n "$FALSEPRG"; then
2322 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2323 echo "${ECHO_T}$FALSEPRG" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2330 test -n "$FALSEPRG" && break
2332 test -n "$FALSEPRG" || FALSEPRG=":"
2337 if test "x$BACULA" != x; then
2338 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2340 BACULA=${BACULA:-Bacula}
2341 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test -n "$CC"; then
2382 { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2391 if test -z "$ac_cv_prog_CC"; then
2393 # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_CC="gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2429 if test "x$ac_ct_CC" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2448 if test -z "$CC"; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_CC="${ac_tool_prefix}cc"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test -n "$CC"; then
2479 { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2489 if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2524 if test $# != 0; then
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2545 if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
2547 for ac_prog in cl.exe
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$CC" && break
2589 if test -z "$CC"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$ac_ct_CC" && break
2633 if test "x$ac_ct_CC" = x; then
2636 case $cross_compiling:$ac_tool_warned in
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet. If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler --version >&5") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler -v >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -V >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort. b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions. Remove them first so a
2724 # subsequent execution test works.
2726 for ac_file in $ac_files
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2735 if { (ac_try="$ac_link_default"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_link_default") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2750 for ac_file in $ac_files ''
2752 test -f "$ac_file" || continue
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2757 # We found the default executable, but exeext='' is most
2761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784 echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791 { (exit 77); exit 77; }; }
2794 ac_exeext=$ac_cv_exeext
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2815 if test "$cross_compiling" = maybe; then
2818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link") 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 for ac_file in conftest.exe conftest conftest.*; do
2857 test -f "$ac_file" || continue
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 for ac_file in conftest.o conftest.obj conftest.*; do
2912 test -f "$ac_file" || continue;
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2988 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2990 GCC=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CFLAGS=${CFLAGS+set}
2992 ac_save_CFLAGS=$CFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_save_c_werror_flag=$ac_c_werror_flag
2999 ac_c_werror_flag=yes
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_c_werror_flag=$ac_save_c_werror_flag
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131 CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133 if test "$GCC" = yes; then
3139 if test "$GCC" = yes; then
3145 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3146 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_cc_c89+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_prog_cc_c89=no
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3160 #include <sys/types.h>
3161 #include <sys/stat.h>
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3176 s = g (p, va_arg (v,int));
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3182 function prototypes and stuff, but not '\xHH' hex character constants.
3183 These don't provoke an error unfortunately, instead are silently treated
3184 as 'x'. The following induces an error, until -std is added to get
3185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3186 array size at least. It's necessary to write '\x00'==0 to get something
3187 that's true only with -std. */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191 inside strings and character constants. */
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 CC="$ac_save_CC $ac_arg"
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
3230 ac_cv_prog_cc_c89=$ac_arg
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f core conftest.err conftest.$ac_objext
3239 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 rm -f conftest.$ac_ext
3246 case "x$ac_cv_prog_cc_c89" in
3248 { echo "$as_me:$LINENO: result: none needed" >&5
3249 echo "${ECHO_T}none needed" >&6; } ;;
3251 { echo "$as_me:$LINENO: result: unsupported" >&5
3252 echo "${ECHO_T}unsupported" >&6; } ;;
3254 CC="$CC $ac_cv_prog_cc_c89"
3255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 ac_cpp='$CXXCPP $CPPFLAGS'
3268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3271 if test -z "$CXX"; then
3272 if test -n "$CCC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_CXX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if test -n "$CXX"; then
3286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CXX"; then
3307 { echo "$as_me:$LINENO: result: $CXX" >&5
3308 echo "${ECHO_T}$CXX" >&6; }
3310 { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3315 test -n "$CXX" && break
3318 if test -z "$CXX"; then
3320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$ac_ct_CXX"; then
3330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339 ac_cv_prog_ac_ct_CXX="$ac_prog"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3350 if test -n "$ac_ct_CXX"; then
3351 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3354 { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3359 test -n "$ac_ct_CXX" && break
3362 if test "x$ac_ct_CXX" = x; then
3365 case $cross_compiling:$ac_tool_warned in
3367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet. If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&5
3370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373 ac_tool_warned=yes ;;
3381 # Provide some information about the compiler.
3382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3383 ac_compiler=`set X $ac_compile; echo $2`
3384 { (ac_try="$ac_compiler --version >&5"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compiler --version >&5") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394 { (ac_try="$ac_compiler -v >&5"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compiler -v >&5") 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404 { (ac_try="$ac_compiler -V >&5"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compiler -V >&5") 2>&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_cxx_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3469 GXX=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cxx_g+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478 ac_cxx_werror_flag=yes
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_cxx_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3513 ac_cv_prog_cxx_g=yes
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_cxx_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_cxx_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3590 ac_cv_prog_cxx_g=yes
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3609 if test "$ac_test_CXXFLAGS" = set; then
3610 CXXFLAGS=$ac_save_CXXFLAGS
3611 elif test $ac_cv_prog_cxx_g = yes; then
3612 if test "$GXX" = yes; then
3618 if test "$GXX" = yes; then
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 if test "x$CC" != xcc; then
3631 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3632 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3634 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3635 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3637 set dummy $CC; ac_cc=`echo $2 |
3638 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3657 # Make sure it works both with $CC and with simple cc.
3658 # We do the test twice because some compilers refuse to overwrite an
3659 # existing .o file with -o, though they will create one.
3660 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3662 if { (case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_try") 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); };
3681 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3682 if test "x$CC" != xcc; then
3683 # Test first that cc exists at all.
3684 if { ac_try='cc -c conftest.$ac_ext >&5'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696 if { (case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_try") 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); };
3718 # cc exists but doesn't like -o.
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726 rm -f core conftest*
3729 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3730 { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3733 { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_MINUS_C_MINUS_O 1
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3753 if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 for ac_c_preproc_warn_flag in '' yes
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3776 # include <limits.h>
3778 # include <assert.h>
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 # Broken: fails on valid input.
3807 rm -f conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null && {
3832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3835 # Broken: success on invalid input.
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 # Passes both tests.
3846 rm -f conftest.err conftest.$ac_ext
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3866 for ac_c_preproc_warn_flag in '' yes
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat >conftest.$ac_ext <<_ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3881 # include <limits.h>
3883 # include <assert.h>
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Broken: fails on valid input.
3912 rm -f conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3940 # Broken: success on invalid input.
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 # Passes both tests.
3951 rm -f conftest.err conftest.$ac_ext
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3959 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963 { (exit 1); exit 1; }; }
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in grep ggrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995 # Check for GNU ac_path_GREP and select it if it is found.
3996 # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4002 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 echo 'GREP' >> "conftest.nl"
4009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 ac_count=`expr $ac_count + 1`
4012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_GREP="$ac_path_GREP"
4015 ac_path_GREP_max=$ac_count
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 $ac_path_GREP_found && break 3
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038 { (exit 1); exit 1; }; }
4042 ac_cv_path_GREP=$GREP
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4060 # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in egrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077 # Check for GNU ac_path_EGREP and select it if it is found.
4078 # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4084 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 echo 'EGREP' >> "conftest.nl"
4091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 ac_count=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_EGREP="$ac_path_EGREP"
4097 ac_path_EGREP_max=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 $ac_path_EGREP_found && break 3
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120 { (exit 1); exit 1; }; }
4124 ac_cv_path_EGREP=$EGREP
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132 EGREP="$ac_cv_path_EGREP"
4135 if test $ac_cv_c_compiler_gnu = yes; then
4136 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 ac_pattern="Autoconf.*'x'"
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4153 ac_cv_prog_gcc_traditional=yes
4155 ac_cv_prog_gcc_traditional=no
4160 if test $ac_cv_prog_gcc_traditional = no; then
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4172 ac_cv_prog_gcc_traditional=yes
4178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4180 if test $ac_cv_prog_gcc_traditional = yes; then
4181 CC="$CC -traditional"
4185 BASECC=`basename $CC`
4187 if test "x$BASECC" = xgcc; then
4188 cat >>confdefs.h <<\_ACEOF
4194 # Extract the first word of "$CXX", so it can be a program name with args.
4195 set dummy $CXX; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_CXX+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4226 if test -n "$CXX"; then
4227 { echo "$as_me:$LINENO: result: $CXX" >&5
4228 echo "${ECHO_T}$CXX" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 if test ! -e $CXX; then
4236 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4237 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4238 { (exit 1); exit 1; }; }
4241 # Find a good install program. We prefer a C program (faster),
4242 # so one script is as good as another. But avoid the broken or
4243 # incompatible versions:
4244 # SysV /etc/install, /usr/sbin/install
4245 # SunOS /usr/etc/install
4246 # IRIX /sbin/install
4248 # AmigaOS /C/install, which installs bootblocks on floppy discs
4249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4252 # OS/2's system install, which has a completely different semantic
4253 # ./install, which can be erroneously created by make from ./install.sh.
4254 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4256 if test -z "$INSTALL"; then
4257 if test "${ac_cv_path_install+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 # Account for people who put trailing slashes in PATH elements.
4267 ./ | .// | /cC/* | \
4268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4272 # OSF1 and SCO ODT 3.0 have their own names for install.
4273 # Don't use installbsd from OSF since it installs stuff as root
4275 for ac_prog in ginstall scoinst install; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4278 if test $ac_prog = install &&
4279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280 # AIX install. It has an incompatible calling convention.
4282 elif test $ac_prog = install &&
4283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284 # program-specific install script used by HP pwplus--don't use.
4287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4300 if test "${ac_cv_path_install+set}" = set; then
4301 INSTALL=$ac_cv_path_install
4303 # As a last resort, use the slow shell script. Don't cache a
4304 # value for INSTALL within a source directory, because that will
4305 # break other packages using the cache if that directory is
4306 # removed, or if the value is a relative name.
4307 INSTALL=$ac_install_sh
4310 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4311 echo "${ECHO_T}$INSTALL" >&6; }
4313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4314 # It thinks the first close brace ends the variable substitution.
4315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4321 # Extract the first word of "mv", so it can be a program name with args.
4322 set dummy mv; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_path_MV+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4353 if test -n "$MV"; then
4354 { echo "$as_me:$LINENO: result: $MV" >&5
4355 echo "${ECHO_T}$MV" >&6; }
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 # Extract the first word of "rm", so it can be a program name with args.
4363 set dummy rm; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_REMOVE+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393 REMOVE=$ac_cv_path_REMOVE
4394 if test -n "$REMOVE"; then
4395 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4396 echo "${ECHO_T}$REMOVE" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4403 # Extract the first word of "cp", so it can be a program name with args.
4404 set dummy cp; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_path_CP+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4435 if test -n "$CP"; then
4436 { echo "$as_me:$LINENO: result: $CP" >&5
4437 echo "${ECHO_T}$CP" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_path_SED+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4476 if test -n "$SED"; then
4477 { echo "$as_me:$LINENO: result: $SED" >&5
4478 echo "${ECHO_T}$SED" >&6; }
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 # Extract the first word of "echo", so it can be a program name with args.
4486 set dummy echo; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_ECHO+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516 ECHO=$ac_cv_path_ECHO
4517 if test -n "$ECHO"; then
4518 { echo "$as_me:$LINENO: result: $ECHO" >&5
4519 echo "${ECHO_T}$ECHO" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # Extract the first word of "cmp", so it can be a program name with args.
4527 set dummy cmp; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_CMP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4558 if test -n "$CMP"; then
4559 { echo "$as_me:$LINENO: result: $CMP" >&5
4560 echo "${ECHO_T}$CMP" >&6; }
4562 { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4567 # Extract the first word of "tbl", so it can be a program name with args.
4568 set dummy tbl; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_TBL+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4599 if test -n "$TBL"; then
4600 { echo "$as_me:$LINENO: result: $TBL" >&5
4601 echo "${ECHO_T}$TBL" >&6; }
4603 { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_AR+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4640 if test -n "$AR"; then
4641 { echo "$as_me:$LINENO: result: $AR" >&5
4642 echo "${ECHO_T}$AR" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 # Extract the first word of "openssl", so it can be a program name with args.
4650 set dummy openssl; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_OPENSSL+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680 OPENSSL=$ac_cv_path_OPENSSL
4681 if test -n "$OPENSSL"; then
4682 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4683 echo "${ECHO_T}$OPENSSL" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 # Extract the first word of "mtx", so it can be a program name with args.
4691 set dummy mtx; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_path_MTX+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4722 if test -n "$MTX"; then
4723 { echo "$as_me:$LINENO: result: $MTX" >&5
4724 echo "${ECHO_T}$MTX" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 # Extract the first word of "dd", so it can be a program name with args.
4732 set dummy dd; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_path_DD+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4763 if test -n "$DD"; then
4764 { echo "$as_me:$LINENO: result: $DD" >&5
4765 echo "${ECHO_T}$DD" >&6; }
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 # Extract the first word of "mkisofs", so it can be a program name with args.
4773 set dummy mkisofs; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_MKISOFS+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803 MKISOFS=$ac_cv_path_MKISOFS
4804 if test -n "$MKISOFS"; then
4805 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4806 echo "${ECHO_T}$MKISOFS" >&6; }
4808 { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4813 # Extract the first word of "python", so it can be a program name with args.
4814 set dummy python; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_path_PYTHON+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844 PYTHON=$ac_cv_path_PYTHON
4845 if test -n "$PYTHON"; then
4846 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4847 echo "${ECHO_T}$PYTHON" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 # Extract the first word of "growisofs", so it can be a program name with args.
4855 set dummy growisofs; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885 GROWISOFS=$ac_cv_path_GROWISOFS
4886 if test -n "$GROWISOFS"; then
4887 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4888 echo "${ECHO_T}$GROWISOFS" >&6; }
4890 { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4895 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4896 set dummy dvd+rw-mediainfo; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 case $DVDRWMEDIAINFO in
4904 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4927 if test -n "$DVDRWMEDIAINFO"; then
4928 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4929 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4937 set dummy dvd+rw-format; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 case $DVDRWFORMAT in
4945 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4968 if test -n "$DVDRWFORMAT"; then
4969 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4970 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4972 { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4977 # Extract the first word of "pkg-config", so it can be a program name with args.
4978 set dummy pkg-config; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008 PKGCONFIG=$ac_cv_path_PKGCONFIG
5009 if test -n "$PKGCONFIG"; then
5010 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5011 echo "${ECHO_T}$PKGCONFIG" >&6; }
5013 { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5018 # Extract the first word of "qmake", so it can be a program name with args.
5019 set dummy qmake; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_QMAKE+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049 QMAKE=$ac_cv_path_QMAKE
5050 if test -n "$QMAKE"; then
5051 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5052 echo "${ECHO_T}$QMAKE" >&6; }
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5059 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5060 set dummy qmake-qt4; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090 QMAKEQT4=$ac_cv_path_QMAKEQT4
5091 if test -n "$QMAKEQT4"; then
5092 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5093 echo "${ECHO_T}$QMAKEQT4" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 # Extract the first word of "gmake", so it can be a program name with args.
5101 set dummy gmake; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_GMAKE+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131 GMAKE=$ac_cv_path_GMAKE
5132 if test -n "$GMAKE"; then
5133 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5134 echo "${ECHO_T}$GMAKE" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5142 if test "x$WXCONFIG" = x; then
5145 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5146 set dummy ${WXCONFIG}; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176 WXCONFIG=$ac_cv_path_WXCONFIG
5177 if test -n "$WXCONFIG"; then
5178 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5179 echo "${ECHO_T}$WXCONFIG" >&6; }
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5187 # Extract the first word of "cdrecord", so it can be a program name with args.
5188 set dummy cdrecord; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_CDRECORD+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218 CDRECORD=$ac_cv_path_CDRECORD
5219 if test -n "$CDRECORD"; then
5220 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5221 echo "${ECHO_T}$CDRECORD" >&6; }
5223 { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5228 # Extract the first word of "pidof", so it can be a program name with args.
5229 set dummy pidof; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PIDOF+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259 PIDOF=$ac_cv_path_PIDOF
5260 if test -n "$PIDOF"; then
5261 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5262 echo "${ECHO_T}$PIDOF" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5269 for ac_prog in gawk mawk nawk awk
5271 # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_AWK+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 if test -n "$AWK"; then
5279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_AWK="$ac_prog"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 if test -n "$AWK"; then
5300 { echo "$as_me:$LINENO: result: $AWK" >&5
5301 echo "${ECHO_T}$AWK" >&6; }
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 test -n "$AWK" && break
5311 # Some AWK programs fail, so test it and warn the user
5312 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5313 { if ((prog == $2) || (("(" prog ")") == $2) ||
5314 (("" prog "") == $2) ||
5315 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5317 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5318 The regex engine of $AWK is too broken to be used you
5319 might want to install GNU AWK.
5320 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5321 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322 The regex engine of $AWK is too broken to be used you
5323 might want to install GNU AWK.
5324 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5325 { (exit 1); exit 1; }; }
5328 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5329 set dummy $THE_AWK; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_AWK+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5360 if test -n "$AWK"; then
5361 { echo "$as_me:$LINENO: result: $AWK" >&5
5362 echo "${ECHO_T}$AWK" >&6; }
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5371 test -n "$ARFLAG" || ARFLAGS="cr"
5383 # Check whether --enable-libtool was given.
5384 if test "${enable_libtool+set}" = set; then
5385 enableval=$enable_libtool;
5386 if test x$enableval = xno; then
5395 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5396 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5401 macro_version='2.2.6'
5402 macro_revision='1.3012'
5416 ltmain="$ac_aux_dir/ltmain.sh"
5418 # Make sure we can run config.sub.
5419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5420 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5421 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5422 { (exit 1); exit 1; }; }
5424 { echo "$as_me:$LINENO: checking build system type" >&5
5425 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5426 if test "${ac_cv_build+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_build_alias=$build_alias
5430 test "x$ac_build_alias" = x &&
5431 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5432 test "x$ac_build_alias" = x &&
5433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5435 { (exit 1); exit 1; }; }
5436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5437 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5438 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5439 { (exit 1); exit 1; }; }
5442 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5443 echo "${ECHO_T}$ac_cv_build" >&6; }
5444 case $ac_cv_build in
5446 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5447 echo "$as_me: error: invalid value of canonical build" >&2;}
5448 { (exit 1); exit 1; }; };;
5451 ac_save_IFS=$IFS; IFS='-'
5457 # Remember, the first character of IFS is used to create $*,
5458 # except with old shells:
5461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464 { echo "$as_me:$LINENO: checking host system type" >&5
5465 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5466 if test "${ac_cv_host+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test "x$host_alias" = x; then
5470 ac_cv_host=$ac_cv_build
5472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5473 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5475 { (exit 1); exit 1; }; }
5479 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5480 echo "${ECHO_T}$ac_cv_host" >&6; }
5483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5484 echo "$as_me: error: invalid value of canonical host" >&2;}
5485 { (exit 1); exit 1; }; };;
5488 ac_save_IFS=$IFS; IFS='-'
5494 # Remember, the first character of IFS is used to create $*,
5495 # except with old shells:
5498 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5501 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5502 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5503 if test "${ac_cv_path_SED+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5507 for ac_i in 1 2 3 4 5 6 7; do
5508 ac_script="$ac_script$as_nl$ac_script"
5510 echo "$ac_script" | sed 99q >conftest.sed
5511 $as_unset ac_script || ac_script=
5512 # Extract the first word of "sed gsed" to use in msg output
5513 if test -z "$SED"; then
5514 set dummy sed gsed; ac_prog_name=$2
5515 if test "${ac_cv_path_SED+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 ac_path_SED_found=false
5519 # Loop through the user's path and test for each of PROGNAME-LIST
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_prog in sed gsed; do
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5528 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5529 # Check for GNU ac_path_SED and select it if it is found.
5530 # Check for GNU $ac_path_SED
5531 case `"$ac_path_SED" --version 2>&1` in
5533 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5536 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5539 cat "conftest.in" "conftest.in" >"conftest.tmp"
5540 mv "conftest.tmp" "conftest.in"
5541 cp "conftest.in" "conftest.nl"
5542 echo '' >> "conftest.nl"
5543 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5545 ac_count=`expr $ac_count + 1`
5546 if test $ac_count -gt ${ac_path_SED_max-0}; then
5547 # Best one so far, save it but keep looking for a better one
5548 ac_cv_path_SED="$ac_path_SED"
5549 ac_path_SED_max=$ac_count
5551 # 10*(2^10) chars as input seems more than enough
5552 test $ac_count -gt 10 && break
5554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 $ac_path_SED_found && break 3
5568 SED="$ac_cv_path_SED"
5569 if test -z "$SED"; then
5570 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5571 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5572 { (exit 1); exit 1; }; }
5580 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5581 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5582 SED="$ac_cv_path_SED"
5585 test -z "$SED" && SED=sed
5586 Xsed="$SED -e 1s/^X//"
5598 { echo "$as_me:$LINENO: checking for fgrep" >&5
5599 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5600 if test "${ac_cv_path_FGREP+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5604 then ac_cv_path_FGREP="$GREP -F"
5606 # Extract the first word of "fgrep" to use in msg output
5607 if test -z "$FGREP"; then
5608 set dummy fgrep; ac_prog_name=$2
5609 if test "${ac_cv_path_FGREP+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_path_FGREP_found=false
5613 # Loop through the user's path and test for each of PROGNAME-LIST
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 test -z "$as_dir" && as_dir=.
5619 for ac_prog in fgrep; do
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5622 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5623 # Check for GNU ac_path_FGREP and select it if it is found.
5624 # Check for GNU $ac_path_FGREP
5625 case `"$ac_path_FGREP" --version 2>&1` in
5627 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5633 cat "conftest.in" "conftest.in" >"conftest.tmp"
5634 mv "conftest.tmp" "conftest.in"
5635 cp "conftest.in" "conftest.nl"
5636 echo 'FGREP' >> "conftest.nl"
5637 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639 ac_count=`expr $ac_count + 1`
5640 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5641 # Best one so far, save it but keep looking for a better one
5642 ac_cv_path_FGREP="$ac_path_FGREP"
5643 ac_path_FGREP_max=$ac_count
5645 # 10*(2^10) chars as input seems more than enough
5646 test $ac_count -gt 10 && break
5648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 $ac_path_FGREP_found && break 3
5662 FGREP="$ac_cv_path_FGREP"
5663 if test -z "$FGREP"; then
5664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5666 { (exit 1); exit 1; }; }
5670 ac_cv_path_FGREP=$FGREP
5676 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5677 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5678 FGREP="$ac_cv_path_FGREP"
5681 test -z "$GREP" && GREP=grep
5701 # Check whether --with-gnu-ld was given.
5702 if test "${with_gnu_ld+set}" = set; then
5703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5709 if test "$GCC" = yes; then
5710 # Check if gcc -print-prog-name=ld gives a path.
5711 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5715 # gcc leaves a trailing carriage return which upsets mingw
5716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5721 # Accept absolute paths.
5723 re_direlt='/[^/][^/]*/\.\./'
5724 # Canonicalize the pathname of ld
5725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5729 test -z "$LD" && LD="$ac_prog"
5732 # If it fails, then pretend we aren't using GCC.
5736 # If it is relative, then search for the first ld in PATH.
5740 elif test "$with_gnu_ld" = yes; then
5741 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5744 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5747 if test "${lt_cv_path_LD+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -z "$LD"; then
5751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5752 for ac_dir in $PATH; do
5754 test -z "$ac_dir" && ac_dir=.
5755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5756 lt_cv_path_LD="$ac_dir/$ac_prog"
5757 # Check to see if the program is GNU ld. I'd rather use --version,
5758 # but apparently some variants of GNU ld only accept -v.
5759 # Break only if it was the GNU/non-GNU ld that we prefer.
5760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5761 *GNU* | *'with BFD'*)
5762 test "$with_gnu_ld" != no && break
5765 test "$with_gnu_ld" != yes && break
5772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5777 if test -n "$LD"; then
5778 { echo "$as_me:$LINENO: result: $LD" >&5
5779 echo "${ECHO_T}$LD" >&6; }
5781 { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5786 { (exit 1); exit 1; }; }
5787 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5793 case `$LD -v 2>&1 </dev/null` in
5794 *GNU* | *'with BFD'*)
5795 lt_cv_prog_gnu_ld=yes
5798 lt_cv_prog_gnu_ld=no
5802 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5804 with_gnu_ld=$lt_cv_prog_gnu_ld
5814 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5815 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5816 if test "${lt_cv_path_NM+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -n "$NM"; then
5820 # Let the user override the test.
5823 lt_nm_to_check="${ac_tool_prefix}nm"
5824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5825 lt_nm_to_check="$lt_nm_to_check nm"
5827 for lt_tmp_nm in $lt_nm_to_check; do
5828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5831 test -z "$ac_dir" && ac_dir=.
5832 tmp_nm="$ac_dir/$lt_tmp_nm"
5833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5834 # Check to see if the nm accepts a BSD-compat flag.
5835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5836 # nm: unknown option "B" ignored
5837 # Tru64's nm complains that /dev/null is an invalid object file
5838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5839 */dev/null* | *'Invalid file or object type'*)
5840 lt_cv_path_NM="$tmp_nm -B"
5844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5846 lt_cv_path_NM="$tmp_nm -p"
5850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5851 continue # so that we can try to find one that supports BSD flags
5860 : ${lt_cv_path_NM=no}
5863 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5864 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5865 if test "$lt_cv_path_NM" != "no"; then
5868 # Didn't find any BSD compatible name lister, look for dumpbin.
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 if test -n "$DUMPBIN"; then
5880 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 DUMPBIN=$ac_cv_prog_DUMPBIN
5900 if test -n "$DUMPBIN"; then
5901 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5902 echo "${ECHO_T}$DUMPBIN" >&6; }
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5909 test -n "$DUMPBIN" && break
5912 if test -z "$DUMPBIN"; then
5913 ac_ct_DUMPBIN=$DUMPBIN
5914 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 if test -n "$ac_ct_DUMPBIN"; then
5924 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5944 if test -n "$ac_ct_DUMPBIN"; then
5945 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5946 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5948 { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5953 test -n "$ac_ct_DUMPBIN" && break
5956 if test "x$ac_ct_DUMPBIN" = x; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet. If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&5
5964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet. If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5967 ac_tool_warned=yes ;;
5969 DUMPBIN=$ac_ct_DUMPBIN
5974 if test "$DUMPBIN" != ":"; then
5978 test -z "$NM" && NM=nm
5985 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5986 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5987 if test "${lt_cv_nm_interface+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 lt_cv_nm_interface="BSD nm"
5991 echo "int some_variable = 0;" > conftest.$ac_ext
5992 (eval echo "\"\$as_me:5992: $ac_compile\"" >&5)
5993 (eval "$ac_compile" 2>conftest.err)
5994 cat conftest.err >&5
5995 (eval echo "\"\$as_me:5995: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5996 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5997 cat conftest.err >&5
5998 (eval echo "\"\$as_me:5998: output\"" >&5)
5999 cat conftest.out >&5
6000 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6001 lt_cv_nm_interface="MS dumpbin"
6005 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6006 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6008 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6011 if test "$LN_S" = "ln -s"; then
6012 { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6015 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6016 echo "${ECHO_T}no, using $LN_S" >&6; }
6019 # find the maximum length of command line arguments
6020 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 # On DJGPP, this test can blow up pretty badly due to problems in libc
6031 # (any single argument exceeding 2000 bytes causes a buffer overrun
6032 # during glob expansion). Even if it were fixed, the result of this
6033 # check would be larger than it should be.
6034 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6038 # Under GNU Hurd, this test is not required because there is
6039 # no limit to the length of command line arguments.
6040 # Libtool will interpret -1 as no limit whatsoever
6041 lt_cv_sys_max_cmd_len=-1;
6044 cygwin* | mingw* | cegcc*)
6045 # On Win9x/ME, this test blows up -- it succeeds, but takes
6046 # about 5 minutes as the teststring grows exponentially.
6047 # Worse, since 9x/ME are not pre-emptively multitasking,
6048 # you end up with a "frozen" computer, even though with patience
6049 # the test eventually succeeds (with a max line length of 256k).
6050 # Instead, let's just punt: use the minimum linelength reported by
6051 # all of the supported platforms: 8192 (on NT/2K/XP).
6052 lt_cv_sys_max_cmd_len=8192;
6056 # On AmigaOS with pdksh, this test takes hours, literally.
6057 # So we just punt and use a minimum line length of 8192.
6058 lt_cv_sys_max_cmd_len=8192;
6061 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062 # This has been around since 386BSD, at least. Likely further.
6063 if test -x /sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065 elif test -x /usr/sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6068 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6070 # And add a safety zone
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077 lt_cv_sys_max_cmd_len=196608
6081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083 # nice to cause kernel panics so lets avoid the loop below.
6084 # First set a reasonable default.
6085 lt_cv_sys_max_cmd_len=16384
6087 if test -x /sbin/sysconfig; then
6088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6094 lt_cv_sys_max_cmd_len=102400
6096 sysv5* | sco5v6* | sysv4.2uw2*)
6097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098 if test -n "$kargmax"; then
6099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6101 lt_cv_sys_max_cmd_len=32768
6105 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6106 if test -n "$lt_cv_sys_max_cmd_len"; then
6107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110 # Make teststring a little bigger before we do anything with it.
6111 # a 1K string should be a reasonable start.
6112 for i in 1 2 3 4 5 6 7 8 ; do
6113 teststring=$teststring$teststring
6115 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6116 # If test is not a shell built-in, we'll probably end up computing a
6117 # maximum length that is only half of the actual maximum length, but
6119 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6120 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6121 test $i != 17 # 1/2 MB should be enough
6124 teststring=$teststring$teststring
6126 # Only check the string length outside the loop.
6127 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6129 # Add a significant safety factor because C++ compilers can tack on
6130 # massive amounts of additional arguments before passing them to the
6131 # linker. It appears as though 1/2 is a usable value.
6132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6139 if test -n $lt_cv_sys_max_cmd_len ; then
6140 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6141 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6143 { echo "$as_me:$LINENO: result: none" >&5
6144 echo "${ECHO_T}none" >&6; }
6146 max_cmd_len=$lt_cv_sys_max_cmd_len
6157 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6158 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6159 # Try some XSI features
6162 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6164 && eval 'test $(( 1 + 1 )) -eq 2 \
6165 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6167 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6168 echo "${ECHO_T}$xsi_shell" >&6; }
6171 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6172 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6174 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6176 && lt_shell_append=yes
6177 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6178 echo "${ECHO_T}$lt_shell_append" >&6; }
6181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6191 # test EBCDIC or ASCII
6192 case `echo X|tr X '\101'` in
6193 A) # ASCII based system
6194 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6195 lt_SP2NL='tr \040 \012'
6196 lt_NL2SP='tr \015\012 \040\040'
6198 *) # EBCDIC based system
6199 lt_SP2NL='tr \100 \n'
6200 lt_NL2SP='tr \r\n \100\100'
6212 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6213 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6214 if test "${lt_cv_ld_reload_flag+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 lt_cv_ld_reload_flag='-r'
6219 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6220 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6221 reload_flag=$lt_cv_ld_reload_flag
6222 case $reload_flag in
6224 *) reload_flag=" $reload_flag" ;;
6226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 if test "$GCC" = yes; then
6230 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 if test -n "$OBJDUMP"; then
6254 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 OBJDUMP=$ac_cv_prog_OBJDUMP
6274 if test -n "$OBJDUMP"; then
6275 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6276 echo "${ECHO_T}$OBJDUMP" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6284 if test -z "$ac_cv_prog_OBJDUMP"; then
6285 ac_ct_OBJDUMP=$OBJDUMP
6286 # Extract the first word of "objdump", so it can be a program name with args.
6287 set dummy objdump; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 if test -n "$ac_ct_OBJDUMP"; then
6294 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6314 if test -n "$ac_ct_OBJDUMP"; then
6315 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6316 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6318 { echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6; }
6322 if test "x$ac_ct_OBJDUMP" = x; then
6325 case $cross_compiling:$ac_tool_warned in
6327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&5
6330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet. If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6333 ac_tool_warned=yes ;;
6335 OBJDUMP=$ac_ct_OBJDUMP
6338 OBJDUMP="$ac_cv_prog_OBJDUMP"
6341 test -z "$OBJDUMP" && OBJDUMP=objdump
6351 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6352 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6353 if test "${lt_cv_deplibs_check_method+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 lt_cv_file_magic_cmd='$MAGIC_CMD'
6357 lt_cv_file_magic_test_file=
6358 lt_cv_deplibs_check_method='unknown'
6359 # Need to set the preceding variable on all platforms that support
6360 # interlibrary dependencies.
6361 # 'none' -- dependencies not supported.
6362 # `unknown' -- same as none, but documents that we really don't know.
6363 # 'pass_all' -- all dependencies passed with no checks.
6364 # 'test_compile' -- check by making test program.
6365 # 'file_magic [[regex]]' -- check by looking for files in library path
6366 # which responds to the $file_magic_cmd with a given extended regex.
6367 # If you have `file' or equivalent on your system and you're not sure
6368 # whether `pass_all' will *always* work, you probably want this one.
6372 lt_cv_deplibs_check_method=pass_all
6376 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6381 lt_cv_file_magic_cmd='/usr/bin/file -L'
6382 lt_cv_file_magic_test_file=/shlib/libc.so
6386 # func_win32_libid is a shell function defined in ltmain.sh
6387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388 lt_cv_file_magic_cmd='func_win32_libid'
6392 # Base MSYS/MinGW do not provide the 'file' command needed by
6393 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6394 # unless we find 'file', for example because we are cross-compiling.
6395 if ( file / ) >/dev/null 2>&1; then
6396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397 lt_cv_file_magic_cmd='func_win32_libid'
6399 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6400 lt_cv_file_magic_cmd='$OBJDUMP -f'
6405 # use the weaker test based on 'objdump'. See mingw*.
6406 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6407 lt_cv_file_magic_cmd='$OBJDUMP -f'
6410 darwin* | rhapsody*)
6411 lt_cv_deplibs_check_method=pass_all
6414 freebsd* | dragonfly*)
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418 # Not sure whether the presence of OpenBSD here was a mistake.
6419 # Let's accept both of them until this is cleared up.
6420 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6421 lt_cv_file_magic_cmd=/usr/bin/file
6422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6426 lt_cv_deplibs_check_method=pass_all
6431 lt_cv_deplibs_check_method=pass_all
6434 hpux10.20* | hpux11*)
6435 lt_cv_file_magic_cmd=/usr/bin/file
6438 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6439 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6442 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]'
6443 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6447 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6453 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6457 irix5* | irix6* | nonstopux*)
6459 *-32|*"-32 ") libmagic=32-bit;;
6460 *-n32|*"-n32 ") libmagic=N32;;
6461 *-64|*"-64 ") libmagic=64-bit;;
6462 *) libmagic=never-match;;
6464 lt_cv_deplibs_check_method=pass_all
6467 # This must be Linux ELF.
6468 linux* | k*bsd*-gnu)
6469 lt_cv_deplibs_check_method=pass_all
6473 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6482 lt_cv_file_magic_cmd=/usr/bin/file
6483 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487 lt_cv_deplibs_check_method=pass_all
6491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 osf3* | osf4* | osf5*)
6499 lt_cv_deplibs_check_method=pass_all
6503 lt_cv_deplibs_check_method=pass_all
6507 lt_cv_deplibs_check_method=pass_all
6510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6511 lt_cv_deplibs_check_method=pass_all
6515 case $host_vendor in
6517 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]'
6518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6521 lt_cv_deplibs_check_method=pass_all
6524 lt_cv_file_magic_cmd='/bin/file'
6525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6528 lt_cv_file_magic_cmd='/bin/file'
6529 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6530 lt_cv_file_magic_test_file=/lib/libc.so
6533 lt_cv_deplibs_check_method=pass_all
6536 lt_cv_deplibs_check_method=pass_all
6542 lt_cv_deplibs_check_method=pass_all
6547 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6549 file_magic_cmd=$lt_cv_file_magic_cmd
6550 deplibs_check_method=$lt_cv_deplibs_check_method
6551 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_AR+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 if test -n "$AR"; then
6573 ac_cv_prog_AR="$AR" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_AR="${ac_tool_prefix}ar"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 if test -n "$AR"; then
6594 { echo "$as_me:$LINENO: result: $AR" >&5
6595 echo "${ECHO_T}$AR" >&6; }
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6603 if test -z "$ac_cv_prog_AR"; then
6605 # Extract the first word of "ar", so it can be a program name with args.
6606 set dummy ar; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 if test -n "$ac_ct_AR"; then
6613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_ac_ct_AR="ar"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6633 if test -n "$ac_ct_AR"; then
6634 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6635 echo "${ECHO_T}$ac_ct_AR" >&6; }
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6641 if test "x$ac_ct_AR" = x; then
6644 case $cross_compiling:$ac_tool_warned in
6646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&5
6649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6652 ac_tool_warned=yes ;;
6660 test -z "$AR" && AR=ar
6661 test -z "$AR_FLAGS" && AR_FLAGS=cru
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}strip; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_prog_STRIP+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 if test -n "$STRIP"; then
6682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 STRIP=$ac_cv_prog_STRIP
6702 if test -n "$STRIP"; then
6703 { echo "$as_me:$LINENO: result: $STRIP" >&5
6704 echo "${ECHO_T}$STRIP" >&6; }
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6712 if test -z "$ac_cv_prog_STRIP"; then
6714 # Extract the first word of "strip", so it can be a program name with args.
6715 set dummy strip; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 if test -n "$ac_ct_STRIP"; then
6722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_ac_ct_STRIP="strip"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6742 if test -n "$ac_ct_STRIP"; then
6743 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6744 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6750 if test "x$ac_ct_STRIP" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6756 whose name does not start with the host triplet. If you think this
6757 configuration is useful to you, please write to autoconf@gnu.org." >&5
6758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6761 ac_tool_warned=yes ;;
6766 STRIP="$ac_cv_prog_STRIP"
6769 test -z "$STRIP" && STRIP=:
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_RANLIB+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test -n "$RANLIB"; then
6785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 RANLIB=$ac_cv_prog_RANLIB
6805 if test -n "$RANLIB"; then
6806 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6807 echo "${ECHO_T}$RANLIB" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6815 if test -z "$ac_cv_prog_RANLIB"; then
6816 ac_ct_RANLIB=$RANLIB
6817 # Extract the first word of "ranlib", so it can be a program name with args.
6818 set dummy ranlib; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 if test -n "$ac_ct_RANLIB"; then
6825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_RANLIB="ranlib"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6845 if test -n "$ac_ct_RANLIB"; then
6846 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6847 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6853 if test "x$ac_ct_RANLIB" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6866 RANLIB=$ac_ct_RANLIB
6869 RANLIB="$ac_cv_prog_RANLIB"
6872 test -z "$RANLIB" && RANLIB=:
6879 # Determine commands to create old-style static archives.
6880 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6881 old_postinstall_cmds='chmod 644 $oldlib'
6882 old_postuninstall_cmds=
6884 if test -n "$RANLIB"; then
6887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6893 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6929 # If no C compiler was specified, use CC.
6932 # If no C compiler flags were specified, use CFLAGS.
6933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6935 # Allow CC to be a program name with arguments.
6939 # Check for command to grab the raw symbol name followed by C symbol from nm.
6940 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 # These are sane defaults that work on at least a few old systems.
6947 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6949 # Character class describing NM global symbol codes.
6950 symcode='[BCDEGRST]'
6952 # Regexp to match symbols that can be accessed directly from C.
6953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6955 # Define system-specific variables.
6960 cygwin* | mingw* | pw32* | cegcc*)
6961 symcode='[ABCDGISTW]'
6964 if test "$host_cpu" = ia64; then
6965 symcode='[ABCDEGRST]'
6969 symcode='[BCDEGRST]'
6972 symcode='[BCDEGQRST]'
6983 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6991 # If we're using GNU nm, then use its standard symbol codes.
6992 case `$NM -V 2>&1` in
6993 *GNU* | *'with BFD'*)
6994 symcode='[ABCDGIRSTW]' ;;
6997 # Transform an extracted symbol line into a proper C declaration.
6998 # Some systems (esp. on ia64) link data and code symbols differently,
6999 # so use this general approach.
7000 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7002 # Transform an extracted symbol line into symbol name and symbol address
7003 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7004 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'"
7006 # Handle CRLF in mingw tool chain
7010 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 # Try without a prefix underscore, then with it.
7015 for ac_symprfx in "" "_"; do
7017 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7018 symxfrm="\\1 $ac_symprfx\\2 \\2"
7020 # Write the raw and C identifiers.
7021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7022 # Fake it for dumpbin and say T for any non-static function
7023 # and D for any global variable.
7024 # Also find C++ and __fastcall symbols from MSVC++,
7025 # which start with @ or ?.
7026 lt_cv_sys_global_symbol_pipe="$AWK '"\
7027 " {last_section=section; section=\$ 3};"\
7028 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7029 " \$ 0!~/External *\|/{next};"\
7030 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7031 " {if(hide[section]) next};"\
7032 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7033 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7034 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7035 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7036 " ' prfx=^$ac_symprfx"
7038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7041 # Check to see that the pipe works correctly.
7045 cat > conftest.$ac_ext <<_LT_EOF
7050 void nm_test_func(void);
7051 void nm_test_func(void){}
7055 int main(){nm_test_var='a';nm_test_func();return(0);}
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; then
7063 # Now try to grab the symbols.
7065 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7066 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && test -s "$nlist"; then
7070 # Try sorting and uniquifying the output.
7071 if sort "$nlist" | uniq > "$nlist"T; then
7072 mv -f "$nlist"T "$nlist"
7077 # Make sure that we snagged all the symbols we need.
7078 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7079 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7080 cat <<_LT_EOF > conftest.$ac_ext
7086 # Now generate the symbol file.
7087 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7089 cat <<_LT_EOF >> conftest.$ac_ext
7091 /* The mapping between symbol names and symbols. */
7096 lt__PROGRAM__LTX_preloaded_symbols[] =
7098 { "@PROGRAM@", (void *) 0 },
7100 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7101 cat <<\_LT_EOF >> conftest.$ac_ext
7105 /* This works around a problem in FreeBSD linker */
7106 #ifdef FREEBSD_WORKAROUND
7107 static const void *lt_preloaded_setup() {
7108 return lt__PROGRAM__LTX_preloaded_symbols;
7116 # Now try linking the two files.
7117 mv conftest.$ac_objext conftstm.$ac_objext
7118 lt_save_LIBS="$LIBS"
7119 lt_save_CFLAGS="$CFLAGS"
7120 LIBS="conftstm.$ac_objext"
7121 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7129 LIBS="$lt_save_LIBS"
7130 CFLAGS="$lt_save_CFLAGS"
7132 echo "cannot find nm_test_func in $nlist" >&5
7135 echo "cannot find nm_test_var in $nlist" >&5
7138 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7141 echo "$progname: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 rm -rf conftest* conftst*
7146 # Do not use the global_symbol_pipe unless it works.
7147 if test "$pipe_works" = yes; then
7150 lt_cv_sys_global_symbol_pipe=
7156 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7157 lt_cv_sys_global_symbol_to_cdecl=
7159 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7160 { echo "$as_me:$LINENO: result: failed" >&5
7161 echo "${ECHO_T}failed" >&6; }
7163 { echo "$as_me:$LINENO: result: ok" >&5
7164 echo "${ECHO_T}ok" >&6; }
7188 # Check whether --enable-libtool-lock was given.
7189 if test "${enable_libtool_lock+set}" = set; then
7190 enableval=$enable_libtool_lock;
7193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7195 # Some flags need to be propagated to the compiler or linker for good
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202 (eval $ac_compile) 2>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; then
7206 case `/usr/bin/file conftest.$ac_objext` in
7218 # Find out which ABI we are using.
7219 echo '#line 7219 "configure"' > conftest.$ac_ext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; then
7225 if test "$lt_cv_prog_gnu_ld" = yes; then
7226 case `/usr/bin/file conftest.$ac_objext` in
7228 LD="${LD-ld} -melf32bsmip"
7231 LD="${LD-ld} -melf32bmipn32"
7234 LD="${LD-ld} -melf64bmip"
7238 case `/usr/bin/file conftest.$ac_objext` in
7254 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7255 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7256 # Find out which ABI we are using.
7257 echo 'int i;' > conftest.$ac_ext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; then
7263 case `/usr/bin/file conftest.o` in
7266 x86_64-*kfreebsd*-gnu)
7267 LD="${LD-ld} -m elf_i386_fbsd"
7270 LD="${LD-ld} -m elf_i386"
7272 ppc64-*linux*|powerpc64-*linux*)
7273 LD="${LD-ld} -m elf32ppclinux"
7276 LD="${LD-ld} -m elf_s390"
7279 LD="${LD-ld} -m elf32_sparc"
7285 x86_64-*kfreebsd*-gnu)
7286 LD="${LD-ld} -m elf_x86_64_fbsd"
7289 LD="${LD-ld} -m elf_x86_64"
7291 ppc*-*linux*|powerpc*-*linux*)
7292 LD="${LD-ld} -m elf64ppc"
7294 s390*-*linux*|s390*-*tpf*)
7295 LD="${LD-ld} -m elf64_s390"
7298 LD="${LD-ld} -m elf64_sparc"
7308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7309 SAVE_CFLAGS="$CFLAGS"
7310 CFLAGS="$CFLAGS -belf"
7311 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7312 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7313 if test "${lt_cv_cc_needs_belf+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7346 grep -v '^ *+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 lt_cv_cc_needs_belf=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 lt_cv_cc_needs_belf=no
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7373 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7374 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7375 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7376 CFLAGS="$SAVE_CFLAGS"
7380 # Find out which ABI we are using.
7381 echo 'int i;' > conftest.$ac_ext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; then
7387 case `/usr/bin/file conftest.o` in
7389 case $lt_cv_prog_gnu_ld in
7390 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7392 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7404 need_locks="$enable_libtool_lock"
7408 rhapsody* | darwin*)
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 if test -n "$DSYMUTIL"; then
7418 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7438 if test -n "$DSYMUTIL"; then
7439 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7440 echo "${ECHO_T}$DSYMUTIL" >&6; }
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7448 if test -z "$ac_cv_prog_DSYMUTIL"; then
7449 ac_ct_DSYMUTIL=$DSYMUTIL
7450 # Extract the first word of "dsymutil", so it can be a program name with args.
7451 set dummy dsymutil; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 if test -n "$ac_ct_DSYMUTIL"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7478 if test -n "$ac_ct_DSYMUTIL"; then
7479 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7480 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7486 if test "x$ac_ct_DSYMUTIL" = x; then
7489 case $cross_compiling:$ac_tool_warned in
7491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet. If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&5
7494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet. If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7497 ac_tool_warned=yes ;;
7499 DSYMUTIL=$ac_ct_DSYMUTIL
7502 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7505 if test -n "$ac_tool_prefix"; then
7506 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 if test -n "$NMEDIT"; then
7514 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 NMEDIT=$ac_cv_prog_NMEDIT
7534 if test -n "$NMEDIT"; then
7535 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7536 echo "${ECHO_T}$NMEDIT" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7544 if test -z "$ac_cv_prog_NMEDIT"; then
7545 ac_ct_NMEDIT=$NMEDIT
7546 # Extract the first word of "nmedit", so it can be a program name with args.
7547 set dummy nmedit; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test -n "$ac_ct_NMEDIT"; then
7554 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7574 if test -n "$ac_ct_NMEDIT"; then
7575 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7576 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7582 if test "x$ac_ct_NMEDIT" = x; then
7585 case $cross_compiling:$ac_tool_warned in
7587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7588 whose name does not start with the host triplet. If you think this
7589 configuration is useful to you, please write to autoconf@gnu.org." >&5
7590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet. If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7593 ac_tool_warned=yes ;;
7595 NMEDIT=$ac_ct_NMEDIT
7598 NMEDIT="$ac_cv_prog_NMEDIT"
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_prog_LIPO+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 if test -n "$LIPO"; then
7610 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 LIPO=$ac_cv_prog_LIPO
7630 if test -n "$LIPO"; then
7631 { echo "$as_me:$LINENO: result: $LIPO" >&5
7632 echo "${ECHO_T}$LIPO" >&6; }
7634 { echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6; }
7640 if test -z "$ac_cv_prog_LIPO"; then
7642 # Extract the first word of "lipo", so it can be a program name with args.
7643 set dummy lipo; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 if test -n "$ac_ct_LIPO"; then
7650 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_prog_ac_ct_LIPO="lipo"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7670 if test -n "$ac_ct_LIPO"; then
7671 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7672 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7678 if test "x$ac_ct_LIPO" = x; then
7681 case $cross_compiling:$ac_tool_warned in
7683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7684 whose name does not start with the host triplet. If you think this
7685 configuration is useful to you, please write to autoconf@gnu.org." >&5
7686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet. If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7689 ac_tool_warned=yes ;;
7694 LIPO="$ac_cv_prog_LIPO"
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}otool; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_prog_OTOOL+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 if test -n "$OTOOL"; then
7706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 OTOOL=$ac_cv_prog_OTOOL
7726 if test -n "$OTOOL"; then
7727 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7728 echo "${ECHO_T}$OTOOL" >&6; }
7730 { echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6; }
7736 if test -z "$ac_cv_prog_OTOOL"; then
7738 # Extract the first word of "otool", so it can be a program name with args.
7739 set dummy otool; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 if test -n "$ac_ct_OTOOL"; then
7746 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_ac_ct_OTOOL="otool"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7766 if test -n "$ac_ct_OTOOL"; then
7767 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7768 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7770 { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7774 if test "x$ac_ct_OTOOL" = x; then
7777 case $cross_compiling:$ac_tool_warned in
7779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7780 whose name does not start with the host triplet. If you think this
7781 configuration is useful to you, please write to autoconf@gnu.org." >&5
7782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet. If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7785 ac_tool_warned=yes ;;
7790 OTOOL="$ac_cv_prog_OTOOL"
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 if test -n "$OTOOL64"; then
7802 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 OTOOL64=$ac_cv_prog_OTOOL64
7822 if test -n "$OTOOL64"; then
7823 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7824 echo "${ECHO_T}$OTOOL64" >&6; }
7826 { echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6; }
7832 if test -z "$ac_cv_prog_OTOOL64"; then
7833 ac_ct_OTOOL64=$OTOOL64
7834 # Extract the first word of "otool64", so it can be a program name with args.
7835 set dummy otool64; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 if test -n "$ac_ct_OTOOL64"; then
7842 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_prog_ac_ct_OTOOL64="otool64"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7862 if test -n "$ac_ct_OTOOL64"; then
7863 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7864 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7870 if test "x$ac_ct_OTOOL64" = x; then
7873 case $cross_compiling:$ac_tool_warned in
7875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7876 whose name does not start with the host triplet. If you think this
7877 configuration is useful to you, please write to autoconf@gnu.org." >&5
7878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet. If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7881 ac_tool_warned=yes ;;
7883 OTOOL64=$ac_ct_OTOOL64
7886 OTOOL64="$ac_cv_prog_OTOOL64"
7915 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7916 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7917 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 lt_cv_apple_cc_single_mod=no
7921 if test -z "${LT_MULTI_MODULE}"; then
7922 # By default we will add the -single_module flag. You can override
7923 # by either setting the environment variable LT_MULTI_MODULE
7924 # non-empty at configure time, or by adding -multi_module to the
7926 rm -rf libconftest.dylib*
7927 echo "int foo(void){return 1;}" > conftest.c
7928 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929 -dynamiclib -Wl,-single_module conftest.c" >&5
7930 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7933 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7934 lt_cv_apple_cc_single_mod=yes
7936 cat conftest.err >&5
7938 rm -rf libconftest.dylib*
7942 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7943 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7944 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7945 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7946 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 lt_cv_ld_exported_symbols_list=no
7950 save_LDFLAGS=$LDFLAGS
7951 echo "_main" > conftest.sym
7952 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest$ac_exeext &&
7985 $as_test_x conftest$ac_exeext; then
7986 lt_cv_ld_exported_symbols_list=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 lt_cv_ld_exported_symbols_list=no
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LDFLAGS="$save_LDFLAGS"
7999 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8000 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8002 rhapsody* | darwin1.[012])
8003 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006 darwin*) # darwin 5.x on
8007 # if running on 10.5 or later, the deployment target defaults
8008 # to the OS version, if on x86, and 10.4, the deployment
8009 # target defaults to 10.4. Don't you love it?
8010 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8011 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8021 _lt_dar_single_mod='$single_module'
8023 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8024 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8028 if test "$DSYMUTIL" != ":"; then
8029 _lt_dsymutil='~$DSYMUTIL $lib || :'
8036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8038 if test "${ac_cv_header_stdc+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 ac_cv_header_stdc=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 ac_cv_header_stdc=no
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 if test $ac_cv_header_stdc = yes; then
8088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "memchr" >/dev/null 2>&1; then
8102 ac_cv_header_stdc=no
8108 if test $ac_cv_header_stdc = yes; then
8109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8110 cat >conftest.$ac_ext <<_ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120 $EGREP "free" >/dev/null 2>&1; then
8123 ac_cv_header_stdc=no
8129 if test $ac_cv_header_stdc = yes; then
8130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8131 if test "$cross_compiling" = yes; then
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8142 #if ((' ' & 0x0FF) == 0x020)
8143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8146 # define ISLOWER(c) \
8147 (('a' <= (c) && (c) <= 'i') \
8148 || ('j' <= (c) && (c) <= 'r') \
8149 || ('s' <= (c) && (c) <= 'z'))
8150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8158 for (i = 0; i < 256; i++)
8159 if (XOR (islower (i), ISLOWER (i))
8160 || toupper (i) != TOUPPER (i))
8165 rm -f conftest$ac_exeext
8166 if { (ac_try="$ac_link"
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_link") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8176 { (case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_try") 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8187 echo "$as_me: program exited with status $ac_status" >&5
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_cv_header_stdc=no
8194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8201 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8202 if test $ac_cv_header_stdc = yes; then
8204 cat >>confdefs.h <<\_ACEOF
8205 #define STDC_HEADERS 1
8210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8221 inttypes.h stdint.h unistd.h
8223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 $ac_includes_default
8237 #include <$ac_header>
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 eval "$as_ac_Header=yes"
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 eval "$as_ac_Header=no"
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 ac_res=`eval echo '${'$as_ac_Header'}'`
8267 { echo "$as_me:$LINENO: result: $ac_res" >&5
8268 echo "${ECHO_T}$ac_res" >&6; }
8269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8270 cat >>confdefs.h <<_ACEOF
8271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8280 for ac_header in dlfcn.h
8282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8296 #include <$ac_header>
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.$ac_objext; then
8315 eval "$as_ac_Header=yes"
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 eval "$as_ac_Header=no"
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 ac_res=`eval echo '${'$as_ac_Header'}'`
8326 { echo "$as_me:$LINENO: result: $ac_res" >&5
8327 echo "${ECHO_T}$ac_res" >&6; }
8328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8329 cat >>confdefs.h <<_ACEOF
8330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8340 ac_cpp='$CXXCPP $CPPFLAGS'
8341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8344 if test -z "$CXX"; then
8345 if test -n "$CCC"; then
8348 if test -n "$ac_tool_prefix"; then
8349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355 if test "${ac_cv_prog_CXX+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 if test -n "$CXX"; then
8359 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 if test -n "$CXX"; then
8380 { echo "$as_me:$LINENO: result: $CXX" >&5
8381 echo "${ECHO_T}$CXX" >&6; }
8383 { echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6; }
8388 test -n "$CXX" && break
8391 if test -z "$CXX"; then
8393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy $ac_prog; ac_word=$2
8397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 if test -n "$ac_ct_CXX"; then
8403 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_ac_ct_CXX="$ac_prog"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8423 if test -n "$ac_ct_CXX"; then
8424 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8425 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8427 { echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6; }
8432 test -n "$ac_ct_CXX" && break
8435 if test "x$ac_ct_CXX" = x; then
8438 case $cross_compiling:$ac_tool_warned in
8440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet. If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&5
8443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8446 ac_tool_warned=yes ;;
8454 # Provide some information about the compiler.
8455 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8456 ac_compiler=`set X $ac_compile; echo $2`
8457 { (ac_try="$ac_compiler --version >&5"
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compiler --version >&5") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }
8467 { (ac_try="$ac_compiler -v >&5"
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compiler -v >&5") 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }
8477 { (ac_try="$ac_compiler -V >&5"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compiler -V >&5") 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }
8488 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8489 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8490 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_cxx_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8542 GXX=`test $ac_compiler_gnu = yes && echo yes`
8543 ac_test_CXXFLAGS=${CXXFLAGS+set}
8544 ac_save_CXXFLAGS=$CXXFLAGS
8545 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8546 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8547 if test "${ac_cv_prog_cxx_g+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8551 ac_cxx_werror_flag=yes
8554 cat >conftest.$ac_ext <<_ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8569 rm -f conftest.$ac_objext
8570 if { (ac_try="$ac_compile"
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_cxx_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest.$ac_objext; then
8586 ac_cv_prog_cxx_g=yes
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_cxx_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_cxx_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_prog_cxx_g=yes
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8680 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8682 if test "$ac_test_CXXFLAGS" = set; then
8683 CXXFLAGS=$ac_save_CXXFLAGS
8684 elif test $ac_cv_prog_cxx_g = yes; then
8685 if test "$GXX" = yes; then
8691 if test "$GXX" = yes; then
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8705 (test "X$CXX" != "Xg++"))) ; then
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8712 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8713 if test -z "$CXXCPP"; then
8714 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 # Double quotes because CXXCPP needs to be expanded
8718 for CXXCPP in "$CXX -E" "/lib/cpp"
8721 for ac_cxx_preproc_warn_flag in '' yes
8723 # Use a header file that comes with gcc, so configuring glibc
8724 # with a fresh cross-compiler works.
8725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8726 # <limits.h> exists even on freestanding compilers.
8727 # On the NeXT, cc -E runs the code through the compiler's parser,
8728 # not just through cpp. "Syntax error" is here to catch this case.
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 # include <limits.h>
8738 # include <assert.h>
8742 if { (ac_try="$ac_cpp conftest.$ac_ext"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } >/dev/null && {
8755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8756 test ! -s conftest.err
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 # Broken: fails on valid input.
8767 rm -f conftest.err conftest.$ac_ext
8769 # OK, works on sane cases. Now check whether nonexistent headers
8770 # can be detected and how.
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 #include <ac_nonexistent.h>
8779 if { (ac_try="$ac_cpp conftest.$ac_ext"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } >/dev/null && {
8792 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8793 test ! -s conftest.err
8795 # Broken: success on invalid input.
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 # Passes both tests.
8806 rm -f conftest.err conftest.$ac_ext
8809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8810 rm -f conftest.err conftest.$ac_ext
8811 if $ac_preproc_ok; then
8816 ac_cv_prog_CXXCPP=$CXXCPP
8819 CXXCPP=$ac_cv_prog_CXXCPP
8821 ac_cv_prog_CXXCPP=$CXXCPP
8823 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8824 echo "${ECHO_T}$CXXCPP" >&6; }
8826 for ac_cxx_preproc_warn_flag in '' yes
8828 # Use a header file that comes with gcc, so configuring glibc
8829 # with a fresh cross-compiler works.
8830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8831 # <limits.h> exists even on freestanding compilers.
8832 # On the NeXT, cc -E runs the code through the compiler's parser,
8833 # not just through cpp. "Syntax error" is here to catch this case.
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8841 # include <limits.h>
8843 # include <assert.h>
8847 if { (ac_try="$ac_cpp conftest.$ac_ext"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } >/dev/null && {
8860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8861 test ! -s conftest.err
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 # Broken: fails on valid input.
8872 rm -f conftest.err conftest.$ac_ext
8874 # OK, works on sane cases. Now check whether nonexistent headers
8875 # can be detected and how.
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 #include <ac_nonexistent.h>
8884 if { (ac_try="$ac_cpp conftest.$ac_ext"
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8892 grep -v '^ *+' conftest.er1 >conftest.err
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null && {
8897 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8898 test ! -s conftest.err
8900 # Broken: success on invalid input.
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 # Passes both tests.
8911 rm -f conftest.err conftest.$ac_ext
8914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8915 rm -f conftest.err conftest.$ac_ext
8916 if $ac_preproc_ok; then
8919 _lt_caught_CXX_error=yes
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929 _lt_caught_CXX_error=yes
8937 # Check whether --enable-shared was given.
8938 if test "${enable_shared+set}" = set; then
8939 enableval=$enable_shared; p=${PACKAGE-default}
8941 yes) enable_shared=yes ;;
8942 no) enable_shared=no ;;
8945 # Look at the argument we got. We use all the common list separators.
8946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8947 for pkg in $enableval; do
8949 if test "X$pkg" = "X$p"; then
8966 # Check whether --enable-static was given.
8967 if test "${enable_static+set}" = set; then
8968 enableval=$enable_static; p=${PACKAGE-default}
8970 yes) enable_static=yes ;;
8971 no) enable_static=no ;;
8974 # Look at the argument we got. We use all the common list separators.
8975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976 for pkg in $enableval; do
8978 if test "X$pkg" = "X$p"; then
9007 # Check whether --with-pic was given.
9008 if test "${with_pic+set}" = set; then
9009 withval=$with_pic; pic_mode="$withval"
9015 test -z "$pic_mode" && pic_mode=default
9023 # Check whether --enable-fast-install was given.
9024 if test "${enable_fast_install+set}" = set; then
9025 enableval=$enable_fast_install; p=${PACKAGE-default}
9027 yes) enable_fast_install=yes ;;
9028 no) enable_fast_install=no ;;
9030 enable_fast_install=no
9031 # Look at the argument we got. We use all the common list separators.
9032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9033 for pkg in $enableval; do
9035 if test "X$pkg" = "X$p"; then
9036 enable_fast_install=yes
9043 enable_fast_install=yes
9056 # This can be used to rebuild libtool when needed
9057 LIBTOOL_DEPS="$ltmain"
9059 # Always use our own libtool.
9060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9086 test -z "$LN_S" && LN_S="ln -s"
9101 if test -n "${ZSH_VERSION+set}" ; then
9102 setopt NO_GLOB_SUBST
9105 { echo "$as_me:$LINENO: checking for objdir" >&5
9106 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9115 # MS-DOS does not allow filenames that begin with a dot.
9118 rmdir .libs 2>/dev/null
9120 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9121 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9150 # AIX sometimes has problems with the GCC collect2 program. For some
9151 # reason, if we set the COLLECT_NAMES environment variable, the problems
9152 # vanish in a puff of smoke.
9153 if test "X${COLLECT_NAMES+set}" != Xset; then
9155 export COLLECT_NAMES
9160 # Sed substitution that helps us do robust quoting. It backslashifies
9161 # metacharacters that are still active within double-quoted strings.
9162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9164 # Same as above, but do not quote variable references.
9165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9167 # Sed substitution to delay expansion of an escaped shell variable in a
9168 # double_quote_subst'ed string.
9169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9171 # Sed substitution to delay expansion of an escaped single quote.
9172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9174 # Sed substitution to avoid accidental globbing in evaled expressions
9175 no_glob_subst='s/\*/\\\*/g'
9179 can_build_shared=yes
9181 # All known linkers require a `.a' archive for static linking (except MSVC,
9182 # which needs '.lib').
9185 with_gnu_ld="$lt_cv_prog_gnu_ld"
9188 old_CFLAGS="$CFLAGS"
9190 # Set sane defaults for various variables
9191 test -z "$CC" && CC=cc
9192 test -z "$LTCC" && LTCC=$CC
9193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9194 test -z "$LD" && LD=ld
9195 test -z "$ac_objext" && ac_objext=o
9197 for cc_temp in $compiler""; do
9199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9205 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9208 # Only perform the check for file, if the check method requires it
9209 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9210 case $deplibs_check_method in
9212 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9213 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9214 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9223 lt_save_MAGIC_CMD="$MAGIC_CMD"
9224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226 for ac_dir in $ac_dummy; do
9228 test -z "$ac_dir" && ac_dir=.
9229 if test -f $ac_dir/${ac_tool_prefix}file; then
9230 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9231 if test -n "$file_magic_test_file"; then
9232 case $deplibs_check_method in
9234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237 $EGREP "$file_magic_regex" > /dev/null; then
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such. This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem. Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** bug-libtool@gnu.org
9259 MAGIC_CMD="$lt_save_MAGIC_CMD"
9264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265 if test -n "$MAGIC_CMD"; then
9266 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9267 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9269 { echo "$as_me:$LINENO: result: no" >&5
9270 echo "${ECHO_T}no" >&6; }
9277 if test -z "$lt_cv_path_MAGIC_CMD"; then
9278 if test -n "$ac_tool_prefix"; then
9279 { echo "$as_me:$LINENO: checking for file" >&5
9280 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9289 lt_save_MAGIC_CMD="$MAGIC_CMD"
9290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292 for ac_dir in $ac_dummy; do
9294 test -z "$ac_dir" && ac_dir=.
9295 if test -f $ac_dir/file; then
9296 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9297 if test -n "$file_magic_test_file"; then
9298 case $deplibs_check_method in
9300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303 $EGREP "$file_magic_regex" > /dev/null; then
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such. This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem. Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9325 MAGIC_CMD="$lt_save_MAGIC_CMD"
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9333 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9335 { echo "$as_me:$LINENO: result: no" >&5
9336 echo "${ECHO_T}no" >&6; }
9349 # Use C for the default configuration in the libtool script
9353 ac_cpp='$CPP $CPPFLAGS'
9354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359 # Source file extension for C test sources.
9362 # Object file extension for compiled C test sources.
9366 # Code to be used in simple compile tests
9367 lt_simple_compile_test_code="int some_variable = 0;"
9369 # Code to be used in simple link tests
9370 lt_simple_link_test_code='int main(){return(0);}'
9378 # If no C compiler was specified, use CC.
9381 # If no C compiler flags were specified, use CFLAGS.
9382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9384 # Allow CC to be a program name with arguments.
9387 # Save the default compiler, since it gets overwritten when the other
9388 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9389 compiler_DEFAULT=$CC
9391 # save warnings/boilerplate of simple test code
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_compiler_boilerplate=`cat conftest.err`
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_linker_boilerplate=`cat conftest.err`
9406 ## There is no encapsulation within the following macros, do not change
9407 ## the running order or otherwise move them around unless you know exactly
9408 ## what you are doing...
9409 if test -n "$compiler"; then
9411 lt_prog_compiler_no_builtin_flag=
9413 if test "$GCC" = yes; then
9414 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9416 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9417 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 lt_cv_prog_compiler_rtti_exceptions=no
9422 ac_outfile=conftest.$ac_objext
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424 lt_compiler_flag="-fno-rtti -fno-exceptions"
9425 # Insert the option either (1) after the last *FLAGS variable, or
9426 # (2) before a word containing "conftest.", or (3) at the end.
9427 # Note that $ac_compile itself does not contain backslashes and begins
9428 # with a dollar sign (not a hyphen), so the echo should work correctly.
9429 # The option is referenced via a variable to avoid confusing sed.
9430 lt_compile=`echo "$ac_compile" | $SED \
9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433 -e 's:$: $lt_compiler_flag:'`
9434 (eval echo "\"\$as_me:9434: $lt_compile\"" >&5)
9435 (eval "$lt_compile" 2>conftest.err)
9437 cat conftest.err >&5
9438 echo "$as_me:9438: \$? = $ac_status" >&5
9439 if (exit $ac_status) && test -s "$ac_outfile"; then
9440 # The compiler can only warn and ignore the option if not recognized
9441 # So say no if there are warnings other than the usual output.
9442 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler_rtti_exceptions=yes
9451 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9452 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9467 lt_prog_compiler_wl=
9468 lt_prog_compiler_pic=
9469 lt_prog_compiler_static=
9471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9474 if test "$GCC" = yes; then
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_static='-static'
9480 # All AIX code is PIC.
9481 if test "$host_cpu" = ia64; then
9482 # AIX 5 now supports IA64 processor
9483 lt_prog_compiler_static='-Bstatic'
9490 # see comment about AmigaOS4 .so support
9491 lt_prog_compiler_pic='-fPIC'
9494 # FIXME: we need at least 68020 code to build shared libraries, but
9495 # adding the `-m68020' flag to GCC prevents building anything better,
9497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9503 # PIC is the default for these OSes.
9506 mingw* | cygwin* | pw32* | os2* | cegcc*)
9507 # This hack is so that the source file can tell whether it is being
9508 # built for inclusion in a dll (and should export symbols for example).
9509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9510 # (--disable-auto-import) libraries
9511 lt_prog_compiler_pic='-DDLL_EXPORT'
9514 darwin* | rhapsody*)
9515 # PIC is the default on this platform
9516 # Common symbols not allowed in MH_DYLIB files
9517 lt_prog_compiler_pic='-fno-common'
9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9523 # sets the default TLS model and affects inlining.
9529 lt_prog_compiler_pic='-fPIC'
9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9536 # Instead, we relocate shared libraries at runtime.
9540 # Just because we use GCC doesn't mean we suddenly get shared libraries
9541 # on systems that don't support them.
9542 lt_prog_compiler_can_build_shared=no
9547 # QNX uses GNU C++, but need to define -shared option too, otherwise
9549 lt_prog_compiler_pic='-fPIC -shared'
9553 if test -d /usr/nec; then
9554 lt_prog_compiler_pic=-Kconform_pic
9559 lt_prog_compiler_pic='-fPIC'
9563 # PORTME Check for flag to pass linker flags through the system compiler.
9566 lt_prog_compiler_wl='-Wl,'
9567 if test "$host_cpu" = ia64; then
9568 # AIX 5 now supports IA64 processor
9569 lt_prog_compiler_static='-Bstatic'
9571 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9575 mingw* | cygwin* | pw32* | os2* | cegcc*)
9576 # This hack is so that the source file can tell whether it is being
9577 # built for inclusion in a dll (and should export symbols for example).
9578 lt_prog_compiler_pic='-DDLL_EXPORT'
9581 hpux9* | hpux10* | hpux11*)
9582 lt_prog_compiler_wl='-Wl,'
9583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9590 lt_prog_compiler_pic='+Z'
9593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9594 lt_prog_compiler_static='${wl}-a ${wl}archive'
9597 irix5* | irix6* | nonstopux*)
9598 lt_prog_compiler_wl='-Wl,'
9599 # PIC (with -KPIC) is the default.
9600 lt_prog_compiler_static='-non_shared'
9603 linux* | k*bsd*-gnu)
9604 case $cc_basename in
9605 # old Intel for x86_64 which still supported -KPIC.
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-static'
9611 # icc used to be incompatible with GCC.
9612 # ICC 10 doesn't accept -KPIC any more.
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-fPIC'
9616 lt_prog_compiler_static='-static'
9618 # Lahey Fortran 8.1.
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_pic='--shared'
9622 lt_prog_compiler_static='--static'
9624 pgcc* | pgf77* | pgf90* | pgf95*)
9625 # Portland Group compilers (*not* the Pentium gcc compiler,
9626 # which looks to be a dead project)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-fpic'
9629 lt_prog_compiler_static='-Bstatic'
9632 lt_prog_compiler_wl='-Wl,'
9633 # All Alpha code is PIC.
9634 lt_prog_compiler_static='-non_shared'
9637 # IBM XL C 8.0/Fortran 10.1 on PPC
9638 lt_prog_compiler_wl='-Wl,'
9639 lt_prog_compiler_pic='-qpic'
9640 lt_prog_compiler_static='-qstaticlink'
9643 case `$CC -V 2>&1 | sed 5q` in
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 lt_prog_compiler_wl='-Wl,'
9651 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9652 lt_prog_compiler_pic='-KPIC'
9653 lt_prog_compiler_static='-Bstatic'
9654 lt_prog_compiler_wl=''
9662 lt_prog_compiler_pic='-KPIC'
9663 lt_prog_compiler_static='-Bstatic'
9667 # QNX uses GNU C++, but need to define -shared option too, otherwise
9669 lt_prog_compiler_pic='-fPIC -shared'
9672 osf3* | osf4* | osf5*)
9673 lt_prog_compiler_wl='-Wl,'
9674 # All OSF/1 code is PIC.
9675 lt_prog_compiler_static='-non_shared'
9679 lt_prog_compiler_static='-non_shared'
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-Bstatic'
9685 case $cc_basename in
9687 lt_prog_compiler_wl='-Qoption ld ';;
9689 lt_prog_compiler_wl='-Wl,';;
9694 lt_prog_compiler_wl='-Qoption ld '
9695 lt_prog_compiler_pic='-PIC'
9696 lt_prog_compiler_static='-Bstatic'
9699 sysv4 | sysv4.2uw2* | sysv4.3*)
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9706 if test -d /usr/nec ;then
9707 lt_prog_compiler_pic='-Kconform_pic'
9708 lt_prog_compiler_static='-Bstatic'
9712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9713 lt_prog_compiler_wl='-Wl,'
9714 lt_prog_compiler_pic='-KPIC'
9715 lt_prog_compiler_static='-Bstatic'
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_can_build_shared=no
9724 lt_prog_compiler_pic='-pic'
9725 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_can_build_shared=no
9735 # For platforms which do not support PIC, -DPIC is meaningless:
9737 lt_prog_compiler_pic=
9740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9744 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9752 # Check to make sure the PIC flag actually works.
9754 if test -n "$lt_prog_compiler_pic"; then
9755 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9757 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 lt_cv_prog_compiler_pic_works=no
9761 ac_outfile=conftest.$ac_objext
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9764 # Insert the option either (1) after the last *FLAGS variable, or
9765 # (2) before a word containing "conftest.", or (3) at the end.
9766 # Note that $ac_compile itself does not contain backslashes and begins
9767 # with a dollar sign (not a hyphen), so the echo should work correctly.
9768 # The option is referenced via a variable to avoid confusing sed.
9769 lt_compile=`echo "$ac_compile" | $SED \
9770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772 -e 's:$: $lt_compiler_flag:'`
9773 (eval echo "\"\$as_me:9773: $lt_compile\"" >&5)
9774 (eval "$lt_compile" 2>conftest.err)
9776 cat conftest.err >&5
9777 echo "$as_me:9777: \$? = $ac_status" >&5
9778 if (exit $ac_status) && test -s "$ac_outfile"; then
9779 # The compiler can only warn and ignore the option if not recognized
9780 # So say no if there are warnings other than the usual output.
9781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9784 lt_cv_prog_compiler_pic_works=yes
9790 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9791 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9793 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9794 case $lt_prog_compiler_pic in
9796 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799 lt_prog_compiler_pic=
9800 lt_prog_compiler_can_build_shared=no
9811 # Check to make sure the static flag actually works.
9813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9814 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9815 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9816 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 lt_cv_prog_compiler_static_works=no
9820 save_LDFLAGS="$LDFLAGS"
9821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824 # The linker can only warn and ignore the option if not recognized
9825 # So say no if there are warnings
9826 if test -s conftest.err; then
9827 # Append any errors to the config.log.
9828 cat conftest.err 1>&5
9829 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831 if diff conftest.exp conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler_static_works=yes
9835 lt_cv_prog_compiler_static_works=yes
9839 LDFLAGS="$save_LDFLAGS"
9842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9843 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9845 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9848 lt_prog_compiler_static=
9857 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 lt_cv_prog_compiler_c_o=no
9863 $RM -r conftest 2>/dev/null
9867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869 lt_compiler_flag="-o out/conftest2.$ac_objext"
9870 # Insert the option either (1) after the last *FLAGS variable, or
9871 # (2) before a word containing "conftest.", or (3) at the end.
9872 # Note that $ac_compile itself does not contain backslashes and begins
9873 # with a dollar sign (not a hyphen), so the echo should work correctly.
9874 lt_compile=`echo "$ac_compile" | $SED \
9875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9877 -e 's:$: $lt_compiler_flag:'`
9878 (eval echo "\"\$as_me:9878: $lt_compile\"" >&5)
9879 (eval "$lt_compile" 2>out/conftest.err)
9881 cat out/conftest.err >&5
9882 echo "$as_me:9882: \$? = $ac_status" >&5
9883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885 # The compiler can only warn and ignore the option if not recognized
9886 # So say no if there are warnings
9887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9890 lt_cv_prog_compiler_c_o=yes
9895 # SGI C++ compiler will create directory out/ii_files/ for
9896 # template instantiation
9897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9898 $RM out/* && rmdir out
9904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9912 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 lt_cv_prog_compiler_c_o=no
9918 $RM -r conftest 2>/dev/null
9922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924 lt_compiler_flag="-o out/conftest2.$ac_objext"
9925 # Insert the option either (1) after the last *FLAGS variable, or
9926 # (2) before a word containing "conftest.", or (3) at the end.
9927 # Note that $ac_compile itself does not contain backslashes and begins
9928 # with a dollar sign (not a hyphen), so the echo should work correctly.
9929 lt_compile=`echo "$ac_compile" | $SED \
9930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9932 -e 's:$: $lt_compiler_flag:'`
9933 (eval echo "\"\$as_me:9933: $lt_compile\"" >&5)
9934 (eval "$lt_compile" 2>out/conftest.err)
9936 cat out/conftest.err >&5
9937 echo "$as_me:9937: \$? = $ac_status" >&5
9938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9940 # The compiler can only warn and ignore the option if not recognized
9941 # So say no if there are warnings
9942 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9945 lt_cv_prog_compiler_c_o=yes
9950 # SGI C++ compiler will create directory out/ii_files/ for
9951 # template instantiation
9952 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9953 $RM out/* && rmdir out
9959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9965 hard_links="nottested"
9966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9967 # do not overwrite the value of need_locks provided by the user
9968 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9969 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9974 ln conftest.a conftest.b 2>&5 || hard_links=no
9975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976 { echo "$as_me:$LINENO: result: $hard_links" >&5
9977 echo "${ECHO_T}$hard_links" >&6; }
9978 if test "$hard_links" = no; then
9979 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9980 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9992 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9996 allow_undefined_flag=
9997 always_export_symbols=no
9999 archive_expsym_cmds=
10000 compiler_needs_object=no
10001 enable_shared_with_static_runtimes=no
10002 export_dynamic_flag_spec=
10003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10004 hardcode_automatic=no
10006 hardcode_direct_absolute=no
10007 hardcode_libdir_flag_spec=
10008 hardcode_libdir_flag_spec_ld=
10009 hardcode_libdir_separator=
10010 hardcode_minus_L=no
10011 hardcode_shlibpath_var=unsupported
10013 link_all_deplibs=unknown
10015 module_expsym_cmds=
10016 old_archive_from_new_cmds=
10017 old_archive_from_expsyms_cmds=
10018 thread_safe_flag_spec=
10019 whole_archive_flag_spec=
10020 # include_expsyms should be a list of space-separated symbols to be *always*
10021 # included in the symbol list
10023 # exclude_expsyms can be an extended regexp of symbols to exclude
10024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10026 # as well as any symbol that contains `d'.
10027 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10029 # platforms (ab)use it in PIC code, but their linkers get confused if
10030 # the symbol is explicitly referenced. Since portable code cannot
10031 # rely on this symbol name, it's probably fine to never include it in
10032 # preloaded symbol tables.
10033 # Exclude shared library initialization/finalization symbols.
10034 extract_expsyms_cmds=
10037 cygwin* | mingw* | pw32* | cegcc*)
10038 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10039 # When not using gcc, we currently assume that we are using
10040 # Microsoft Visual C++.
10041 if test "$GCC" != yes; then
10046 # we just hope/assume this is gcc and not c89 (= MSVC++)
10055 if test "$with_gnu_ld" = yes; then
10056 # If archive_cmds runs LD, not CC, wlarc should be empty
10059 # Set some defaults for GNU ld with shared library support. These
10060 # are reset later if shared libraries are not supported. Putting them
10061 # here allows them to be overridden if necessary.
10062 runpath_var=LD_RUN_PATH
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 export_dynamic_flag_spec='${wl}--export-dynamic'
10065 # ancient GNU ld didn't support --whole-archive et. al.
10066 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10069 whole_archive_flag_spec=
10071 supports_anon_versioning=no
10072 case `$LD -v 2>&1` in
10073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10076 *\ 2.11.*) ;; # other 2.11 versions
10077 *) supports_anon_versioning=yes ;;
10080 # See if GNU ld supports shared libraries.
10083 # On AIX/PPC, the GNU linker is very broken
10084 if test "$host_cpu" != ia64; then
10088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10089 *** to be unable to reliably create shared libraries on AIX.
10090 *** Therefore, libtool is disabling shared libraries support. If you
10091 *** really care for shared libraries, you may want to modify your PATH
10092 *** so that a non-GNU linker is found, and then restart.
10101 # see comment about AmigaOS4 .so support
10102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103 archive_expsym_cmds=''
10106 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)'
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_minus_L=yes
10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115 allow_undefined_flag=unsupported
10116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10117 # support --undefined. This deserves some investigation. FIXME
10118 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124 cygwin* | mingw* | pw32* | cegcc*)
10125 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10126 # as there is no search path for DLLs.
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 allow_undefined_flag=unsupported
10129 always_export_symbols=no
10130 enable_shared_with_static_runtimes=yes
10131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10133 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135 # If the export-symbols file already is a .def file (1st line
10136 # is EXPORTS), use it as is; otherwise, prepend...
10137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10138 cp $export_symbols $output_objdir/$soname.def;
10140 echo EXPORTS > $output_objdir/$soname.def;
10141 cat $export_symbols >> $output_objdir/$soname.def;
10143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10151 hardcode_shlibpath_var=no
10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153 export_dynamic_flag_spec='${wl}-E'
10154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10155 # Instead, shared libraries are loaded at an image base (0x10000000 by
10156 # default) and relocated if they conflict, which is a slow very memory
10157 # consuming and fragmenting process. To avoid this, we pick a random,
10158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10159 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161 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'
10164 gnu* | linux* | tpf* | k*bsd*-gnu)
10166 if test "$host_os" = linux-dietlibc; then
10167 case $cc_basename in
10168 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10171 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10172 && test "$tmp_diet" = no
10175 tmp_sharedflag='-shared'
10176 case $cc_basename,$host_cpu in
10177 pgcc*) # Portland Group C compiler
10178 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'
10179 tmp_addflag=' $pic_flag'
10181 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10182 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'
10183 tmp_addflag=' $pic_flag -Mnomain' ;;
10184 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10185 tmp_addflag=' -i_dynamic' ;;
10186 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10187 tmp_addflag=' -i_dynamic -nofor_main' ;;
10188 ifc* | ifort*) # Intel Fortran compiler
10189 tmp_addflag=' -nofor_main' ;;
10190 lf95*) # Lahey Fortran 8.1
10191 whole_archive_flag_spec=
10192 tmp_sharedflag='--shared' ;;
10193 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10194 tmp_sharedflag='-qmkshrobj'
10197 case `$CC -V 2>&1 | sed 5q` in
10198 *Sun\ C*) # Sun C 5.9
10199 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'
10200 compiler_needs_object=yes
10201 tmp_sharedflag='-G' ;;
10202 *Sun\ F*) # Sun Fortran 8.3
10203 tmp_sharedflag='-G' ;;
10205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10207 if test "x$supports_anon_versioning" = xyes; then
10208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210 echo "local: *; };" >> $output_objdir/$libname.ver~
10211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10214 case $cc_basename in
10216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218 hardcode_libdir_flag_spec=
10219 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10220 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10221 if test "x$supports_anon_versioning" = xyes; then
10222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224 echo "local: *; };" >> $output_objdir/$libname.ver~
10225 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10250 *** create shared libraries on Solaris systems. Therefore, libtool
10251 *** is disabling shared libraries support. We urge you to upgrade GNU
10252 *** binutils to release 2.9.1 or newer. Another option is to modify
10253 *** your PATH or compiler configuration so that the native linker is
10254 *** used, and then restart.
10257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10266 case `$LD -v 2>&1` in
10267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10272 *** reliably create shared libraries on SCO systems. Therefore, libtool
10273 *** is disabling shared libraries support. We urge you to upgrade GNU
10274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10275 *** your PATH or compiler configuration so that the native linker is
10276 *** used, and then restart.
10281 # For security reasons, it is highly recommended that you always
10282 # use absolute paths for naming shared libraries, and exclude the
10283 # DT_RUNPATH tag from executables and libraries. But doing so
10284 # requires that you compile everything twice, which is a pain.
10285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10299 hardcode_direct=yes
10300 hardcode_shlibpath_var=no
10304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10313 if test "$ld_shlibs" = no; then
10315 hardcode_libdir_flag_spec=
10316 export_dynamic_flag_spec=
10317 whole_archive_flag_spec=
10320 # PORTME fill in a description of your system's linker (not GNU ld)
10323 allow_undefined_flag=unsupported
10324 always_export_symbols=yes
10325 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'
10326 # Note: this linker hardcodes the directories in LIBPATH if there
10327 # are no directories specified by -L.
10328 hardcode_minus_L=yes
10329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10330 # Neither direct hardcoding nor static linking is supported with a
10332 hardcode_direct=unsupported
10337 if test "$host_cpu" = ia64; then
10338 # On IA64, the linker does run time linking by default, so we don't
10339 # have to do anything special.
10340 aix_use_runtimelinking=no
10341 exp_sym_flag='-Bexport'
10344 # If we're using GNU nm, then we don't want the "-C" option.
10345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10346 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10347 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'
10349 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'
10351 aix_use_runtimelinking=no
10353 # Test if we are trying to use run time linking or normal
10354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10355 # need to do runtime linking.
10356 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10357 for ld_flag in $LDFLAGS; do
10358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10359 aix_use_runtimelinking=yes
10366 exp_sym_flag='-bexport'
10367 no_entry_flag='-bnoentry'
10370 # When large executables or shared objects are built, AIX ld can
10371 # have problems creating the table of contents. If linking a library
10372 # or program results in "error TOC overflow" add -mminimal-toc to
10373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10377 hardcode_direct=yes
10378 hardcode_direct_absolute=yes
10379 hardcode_libdir_separator=':'
10380 link_all_deplibs=yes
10381 file_list_spec='${wl}-f,'
10383 if test "$GCC" = yes; then
10384 case $host_os in aix4.[012]|aix4.[012].*)
10385 # We only want to do this on AIX 4.2 and lower, the check
10386 # below for broken collect2 doesn't work under 4.3+
10387 collect2name=`${CC} -print-prog-name=collect2`
10388 if test -f "$collect2name" &&
10389 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10391 # We have reworked collect2
10394 # We have old collect2
10395 hardcode_direct=unsupported
10396 # It fails to find uninstalled libraries when the uninstalled
10397 # path is not listed in the libpath. Setting hardcode_minus_L
10398 # to unsupported forces relinking
10399 hardcode_minus_L=yes
10400 hardcode_libdir_flag_spec='-L$libdir'
10401 hardcode_libdir_separator=
10405 shared_flag='-shared'
10406 if test "$aix_use_runtimelinking" = yes; then
10407 shared_flag="$shared_flag "'${wl}-G'
10411 if test "$host_cpu" = ia64; then
10412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10413 # chokes on -Wl,-G. The following line is correct:
10416 if test "$aix_use_runtimelinking" = yes; then
10417 shared_flag='${wl}-G'
10419 shared_flag='${wl}-bM:SRE'
10424 export_dynamic_flag_spec='${wl}-bexpall'
10425 # It seems that -bexpall does not export symbols beginning with
10426 # underscore (_), so it is better to generate a list of symbols to export.
10427 always_export_symbols=yes
10428 if test "$aix_use_runtimelinking" = yes; then
10429 # Warning - without using the other runtime loading flags (-brtl),
10430 # -berok will link without error, but may produce a broken library.
10431 allow_undefined_flag='-berok'
10432 # Determine the default libpath from the value encoded in an
10433 # empty executable.
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest$ac_exeext &&
10466 $as_test_x conftest$ac_exeext; then
10468 lt_aix_libpath_sed='
10469 /Import File Strings/,/^$/ {
10475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$aix_libpath"; then
10478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488 conftest$ac_exeext conftest.$ac_ext
10489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10492 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"
10494 if test "$host_cpu" = ia64; then
10495 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10496 allow_undefined_flag="-z nodefs"
10497 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"
10499 # Determine the default libpath from the value encoded in an
10500 # empty executable.
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && {
10530 test -z "$ac_c_werror_flag" ||
10531 test ! -s conftest.err
10532 } && test -s conftest$ac_exeext &&
10533 $as_test_x conftest$ac_exeext; then
10535 lt_aix_libpath_sed='
10536 /Import File Strings/,/^$/ {
10542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10543 # Check for a 64-bit object if we didn't find anything.
10544 if test -z "$aix_libpath"; then
10545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555 conftest$ac_exeext conftest.$ac_ext
10556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10559 # Warning - without using the other run time loading flags,
10560 # -berok will link without error, but may produce a broken library.
10561 no_undefined_flag=' ${wl}-bernotok'
10562 allow_undefined_flag=' ${wl}-berok'
10563 # Exported symbols can be pulled into shared objects from archives
10564 whole_archive_flag_spec='$convenience'
10565 archive_cmds_need_lc=yes
10566 # This is similar to how AIX traditionally builds its shared libraries.
10567 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'
10575 # see comment about AmigaOS4 .so support
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 archive_expsym_cmds=''
10580 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)'
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_minus_L=yes
10588 export_dynamic_flag_spec=-rdynamic
10591 cygwin* | mingw* | pw32* | cegcc*)
10592 # When not using gcc, we currently assume that we are using
10593 # Microsoft Visual C++.
10594 # hardcode_libdir_flag_spec is actually meaningless, as there is
10595 # no search path for DLLs.
10596 hardcode_libdir_flag_spec=' '
10597 allow_undefined_flag=unsupported
10598 # Tell ltmain to make .lib files, not .a files.
10600 # Tell ltmain to make .dll files, not .so files.
10602 # FIXME: Setting linknames here is a bad hack.
10603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10604 # The linker will automatically build a .lib file if we build a DLL.
10605 old_archive_from_new_cmds='true'
10606 # FIXME: Should let the user specify the lib program.
10607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10608 fix_srcfile_path='`cygpath -w "$srcfile"`'
10609 enable_shared_with_static_runtimes=yes
10612 darwin* | rhapsody*)
10615 archive_cmds_need_lc=no
10617 hardcode_automatic=yes
10618 hardcode_shlibpath_var=unsupported
10619 whole_archive_flag_spec=''
10620 link_all_deplibs=yes
10621 allow_undefined_flag="$_lt_dar_allow_undefined"
10622 case $cc_basename in
10623 ifort*) _lt_dar_can_shared=yes ;;
10624 *) _lt_dar_can_shared=$GCC ;;
10626 if test "$_lt_dar_can_shared" = "yes"; then
10627 output_verbose_link_cmd=echo
10628 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10629 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10630 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}"
10631 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}"
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_libdir_flag_spec='-L$libdir'
10642 hardcode_shlibpath_var=no
10649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10650 # support. Future versions do this automatically, but an explicit c++rt0.o
10651 # does not break anything, and helps significantly (at the cost of a little
10654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10655 hardcode_libdir_flag_spec='-R$libdir'
10656 hardcode_direct=yes
10657 hardcode_shlibpath_var=no
10660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_direct=yes
10664 hardcode_minus_L=yes
10665 hardcode_shlibpath_var=no
10668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10669 freebsd* | dragonfly*)
10670 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10671 hardcode_libdir_flag_spec='-R$libdir'
10672 hardcode_direct=yes
10673 hardcode_shlibpath_var=no
10677 if test "$GCC" = yes; then
10678 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'
10680 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'
10682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683 hardcode_libdir_separator=:
10684 hardcode_direct=yes
10686 # hardcode_minus_L: Not really in the search PATH,
10687 # but as the default location of the library.
10688 hardcode_minus_L=yes
10689 export_dynamic_flag_spec='${wl}-E'
10693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10698 if test "$with_gnu_ld" = no; then
10699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10700 hardcode_libdir_flag_spec_ld='+b $libdir'
10701 hardcode_libdir_separator=:
10702 hardcode_direct=yes
10703 hardcode_direct_absolute=yes
10704 export_dynamic_flag_spec='${wl}-E'
10705 # hardcode_minus_L: Not really in the search PATH,
10706 # but as the default location of the library.
10707 hardcode_minus_L=yes
10712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737 if test "$with_gnu_ld" = no; then
10738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10739 hardcode_libdir_separator=:
10744 hardcode_shlibpath_var=no
10747 hardcode_direct=yes
10748 hardcode_direct_absolute=yes
10749 export_dynamic_flag_spec='${wl}-E'
10751 # hardcode_minus_L: Not really in the search PATH,
10752 # but as the default location of the library.
10753 hardcode_minus_L=yes
10759 irix5* | irix6* | nonstopux*)
10760 if test "$GCC" = yes; then
10761 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'
10762 # Try to use the -exported_symbol ld option, if it does not
10763 # work, assume that -exports_file does not work either and
10764 # implicitly export all symbols.
10765 save_LDFLAGS="$LDFLAGS"
10766 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10767 cat >conftest.$ac_ext <<_ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 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'
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LDFLAGS="$save_LDFLAGS"
10801 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'
10802 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'
10804 archive_cmds_need_lc='no'
10805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806 hardcode_libdir_separator=:
10808 link_all_deplibs=yes
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10817 hardcode_libdir_flag_spec='-R$libdir'
10818 hardcode_direct=yes
10819 hardcode_shlibpath_var=no
10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 hardcode_direct=yes
10825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826 hardcode_libdir_separator=:
10827 hardcode_shlibpath_var=no
10834 if test -f /usr/libexec/ld.so; then
10835 hardcode_direct=yes
10836 hardcode_shlibpath_var=no
10837 hardcode_direct_absolute=yes
10838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10842 export_dynamic_flag_spec='${wl}-E'
10845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10847 hardcode_libdir_flag_spec='-R$libdir'
10850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10861 hardcode_libdir_flag_spec='-L$libdir'
10862 hardcode_minus_L=yes
10863 allow_undefined_flag=unsupported
10864 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'
10865 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10869 if test "$GCC" = yes; then
10870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10871 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'
10873 allow_undefined_flag=' -expect_unresolved \*'
10874 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'
10876 archive_cmds_need_lc='no'
10877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10878 hardcode_libdir_separator=:
10881 osf4* | osf5*) # as osf3* with the addition of -msym flag
10882 if test "$GCC" = yes; then
10883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10884 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'
10885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887 allow_undefined_flag=' -expect_unresolved \*'
10888 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'
10889 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~
10890 $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'
10892 # Both c and cxx compiler support -rpath directly
10893 hardcode_libdir_flag_spec='-rpath $libdir'
10895 archive_cmds_need_lc='no'
10896 hardcode_libdir_separator=:
10900 no_undefined_flag=' -z defs'
10901 if test "$GCC" = yes; then
10903 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10905 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10907 case `$CC -V 2>&1` in
10910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10916 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10918 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10922 hardcode_libdir_flag_spec='-R$libdir'
10923 hardcode_shlibpath_var=no
10925 solaris2.[0-5] | solaris2.[0-5].*) ;;
10927 # The compiler driver will combine and reorder linker options,
10928 # but understands `-z linker_flag'. GCC discards it without `$wl',
10929 # but is careful enough not to reorder.
10930 # Supported since Solaris 2.6 (maybe 2.5.1?)
10931 if test "$GCC" = yes; then
10932 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10938 link_all_deplibs=yes
10942 if test "x$host_vendor" = xsequent; then
10943 # Use $CC to link under sequent, because it throws in some extra .o
10944 # files that make .init and .fini sections work.
10945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 hardcode_direct=yes
10951 hardcode_minus_L=yes
10952 hardcode_shlibpath_var=no
10956 case $host_vendor in
10958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 hardcode_direct=yes # is this really true???
10962 ## LD is ld it makes a PLAMLIB
10963 ## CC just makes a GrossModule.
10964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10965 reload_cmds='$CC -r -o $output$reload_objs'
10969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10973 runpath_var='LD_RUN_PATH'
10974 hardcode_shlibpath_var=no
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_shlibpath_var=no
10980 export_dynamic_flag_spec='-Bexport'
10984 if test -d /usr/nec; then
10985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_shlibpath_var=no
10987 runpath_var=LD_RUN_PATH
10988 hardcode_runpath_var=yes
10993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10994 no_undefined_flag='${wl}-z,text'
10995 archive_cmds_need_lc=no
10996 hardcode_shlibpath_var=no
10997 runpath_var='LD_RUN_PATH'
10999 if test "$GCC" = yes; then
11000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 sysv5* | sco3.2v5* | sco5v6*)
11009 # Note: We can NOT use -z defs as we might desire, because we do not
11010 # link with -lc, and that would cause any symbols used from libc to
11011 # always be unresolved, which means just about no library would
11012 # ever link correctly. If we're not using GNU ld we use -z text
11013 # though, which does catch some bad symbols but isn't as heavy-handed
11015 no_undefined_flag='${wl}-z,text'
11016 allow_undefined_flag='${wl}-z,nodefs'
11017 archive_cmds_need_lc=no
11018 hardcode_shlibpath_var=no
11019 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11020 hardcode_libdir_separator=':'
11021 link_all_deplibs=yes
11022 export_dynamic_flag_spec='${wl}-Bexport'
11023 runpath_var='LD_RUN_PATH'
11025 if test "$GCC" = yes; then
11026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11036 hardcode_libdir_flag_spec='-L$libdir'
11037 hardcode_shlibpath_var=no
11045 if test x$host_vendor = xsni; then
11047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11048 export_dynamic_flag_spec='${wl}-Blargedynsym'
11054 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11055 echo "${ECHO_T}$ld_shlibs" >&6; }
11056 test "$ld_shlibs" = no && can_build_shared=no
11058 with_gnu_ld=$with_gnu_ld
11075 # Do we need to explicitly link libc?
11077 case "x$archive_cmds_need_lc" in
11079 # Assume -lc should be added
11080 archive_cmds_need_lc=yes
11082 if test "$enable_shared" = yes && test "$GCC" = yes; then
11083 case $archive_cmds in
11085 # FIXME: we may have to deal with multi-command sequences.
11088 # Test whether the compiler implicitly links with -lc since on some
11089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11090 # to ld, don't add -lc before -lgcc.
11091 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11092 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } 2>conftest.err; then
11103 libobjs=conftest.$ac_objext
11105 wl=$lt_prog_compiler_wl
11106 pic_flag=$lt_prog_compiler_pic
11112 lt_save_allow_undefined_flag=$allow_undefined_flag
11113 allow_undefined_flag=
11114 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11115 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }
11120 archive_cmds_need_lc=no
11122 archive_cmds_need_lc=yes
11124 allow_undefined_flag=$lt_save_allow_undefined_flag
11126 cat conftest.err 1>&5
11129 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11130 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11293 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11296 if test "$GCC" = yes; then
11298 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11299 *) lt_awk_arg="/^libraries:/" ;;
11301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11302 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11303 # if the path contains ";" then we assume it to be the separator
11304 # otherwise default to the standard path separator (i.e. ":") - it is
11305 # assumed that no part of a normal pathname contains ";" but that should
11306 # okay in the real world where ";" in dirpaths is itself problematic.
11307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11311 # Ok, now we have the path, separated by spaces, we can step through it
11312 # and add multilib dir if necessary.
11313 lt_tmp_lt_search_path_spec=
11314 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11315 for lt_sys_path in $lt_search_path_spec; do
11316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11319 test -d "$lt_sys_path" && \
11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11323 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11324 BEGIN {RS=" "; FS="/|\n";} {
11327 for (lt_i = NF; lt_i > 0; lt_i--) {
11328 if ($lt_i != "" && $lt_i != ".") {
11329 if ($lt_i == "..") {
11332 if (lt_count == 0) {
11333 lt_foo="/" $lt_i lt_foo;
11340 if (lt_foo != "") { lt_freq[lt_foo]++; }
11341 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11343 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11347 library_names_spec=
11348 libname_spec='lib$name'
11352 postuninstall_cmds=
11356 shlibpath_overrides_runpath=unknown
11358 dynamic_linker="$host_os ld.so"
11359 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11360 need_lib_prefix=unknown
11361 hardcode_into_libs=no
11363 # when you set need_version to no, make sure it does not cause -set_version
11364 # flags to be left without arguments
11365 need_version=unknown
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11371 shlibpath_var=LIBPATH
11373 # AIX 3 has no versioning support, so we append a major version to the name.
11374 soname_spec='${libname}${release}${shared_ext}$major'
11381 hardcode_into_libs=yes
11382 if test "$host_cpu" = ia64; then
11383 # AIX 5 supports IA64
11384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11385 shlibpath_var=LD_LIBRARY_PATH
11387 # With GCC up to 2.95.x, collect2 would create an import file
11388 # for dependence libraries. The import file would start with
11389 # the line `#! .'. This would cause the generated library to
11390 # depend on `.', always an invalid library. This was fixed in
11391 # development snapshots of GCC prior to 3.0.
11393 aix4 | aix4.[01] | aix4.[01].*)
11394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11396 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11399 can_build_shared=no
11403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11404 # soname into executable. Probably we can add versioning support to
11405 # collect2, so additional links can be useful in future.
11406 if test "$aix_use_runtimelinking" = yes; then
11407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11408 # instead of lib<name>.a to let people know that these are not
11409 # typical AIX shared libraries.
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 # We preserve .a as extension for shared libraries through AIX4.2
11413 # and later when we are not doing run time linking.
11414 library_names_spec='${libname}${release}.a $libname.a'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11417 shlibpath_var=LIBPATH
11424 # Since July 2007 AmigaOS4 officially supports .so libraries.
11425 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 library_names_spec='$libname.ixlibrary $libname.a'
11430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11431 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'
11437 library_names_spec='${libname}${shared_ext}'
11438 dynamic_linker="$host_os ld.so"
11439 shlibpath_var=LIBRARY_PATH
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11450 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11451 # the default ld.so.conf also contains /usr/contrib/lib and
11452 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11453 # libtool to hard-code these into programs
11456 cygwin* | mingw* | pw32* | cegcc*)
11457 version_type=windows
11462 case $GCC,$host_os in
11463 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11464 library_names_spec='$libname.dll.a'
11465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11466 postinstall_cmds='base_file=`basename \${file}`~
11467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11468 dldir=$destdir/`dirname \$dlpath`~
11469 test -d \$dldir || mkdir -p \$dldir~
11470 $install_prog $dir/$dlname \$dldir/$dlname~
11471 chmod a+x \$dldir/$dlname~
11472 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11473 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11476 dlpath=$dir/\$dldll~
11478 shlibpath_overrides_runpath=yes
11482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11483 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11484 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11487 # MinGW DLLs use traditional 'lib' prefix
11488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11490 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11491 # It is most probably a Windows format PATH printed by
11492 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11493 # path with ; separators, and with drive letters. We can handle the
11494 # drive letters (cygwin fileutils understands them), so leave them,
11495 # especially as we might pass files found there to a mingw objdump,
11496 # which wouldn't understand a cygwinified path. Ahh.
11497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11503 # pw32 DLLs use 'pw' prefix rather than 'lib'
11504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11513 dynamic_linker='Win32 ld.exe'
11514 # FIXME: first we should search . and the directory the executable is in
11518 darwin* | rhapsody*)
11519 dynamic_linker="$host_os dyld"
11520 version_type=darwin
11523 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11524 soname_spec='${libname}${release}${major}$shared_ext'
11525 shlibpath_overrides_runpath=yes
11526 shlibpath_var=DYLD_LIBRARY_PATH
11527 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11546 freebsd* | dragonfly*)
11547 # DragonFly does not have aout. When/if they implement a new
11548 # versioning mechanism, adjust this.
11549 if test -x /usr/bin/objformat; then
11550 objformat=`/usr/bin/objformat`
11553 freebsd[123]*) objformat=aout ;;
11554 *) objformat=elf ;;
11557 version_type=freebsd-$objformat
11558 case $version_type in
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11574 freebsd3.[01]* | freebsdelf3.[01]*)
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11580 shlibpath_overrides_runpath=no
11581 hardcode_into_libs=yes
11583 *) # from 4.6 on, and DragonFly
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 hardcode_into_libs=yes
11600 hpux9* | hpux10* | hpux11*)
11601 # Give a soname corresponding to the major version so that dld.sl refuses to
11602 # link against other versions.
11609 hardcode_into_libs=yes
11610 dynamic_linker="$host_os dld.so"
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 if test "X$HPUX_IA64_MODE" = X32; then
11616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11624 hardcode_into_libs=yes
11625 dynamic_linker="$host_os dld.sl"
11626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635 dynamic_linker="$host_os dld.sl"
11636 shlibpath_var=SHLIB_PATH
11637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11642 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11643 postinstall_cmds='chmod 555 $lib'
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11652 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=no
11655 hardcode_into_libs=yes
11658 irix5* | irix6* | nonstopux*)
11660 nonstopux*) version_type=nonstopux ;;
11662 if test "$lt_cv_prog_gnu_ld" = yes; then
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11673 irix5* | nonstopux*)
11674 libsuff= shlibsuff=
11677 case $LD in # libtool.m4 will add one of these switches to LD
11678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11679 libsuff= shlibsuff= libmagic=32-bit;;
11680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11681 libsuff=32 shlibsuff=N32 libmagic=N32;;
11682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11683 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11684 *) libsuff= shlibsuff= libmagic=never-match;;
11688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11689 shlibpath_overrides_runpath=no
11690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11692 hardcode_into_libs=yes
11695 # No shared lib support for Linux oldld, aout, or coff.
11696 linux*oldld* | linux*aout* | linux*coff*)
11700 # This must be Linux ELF.
11701 linux* | k*bsd*-gnu)
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=no
11710 # Some binutils ld are patched to set DT_RUNPATH
11711 save_LDFLAGS=$LDFLAGS
11712 save_libdir=$libdir
11713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest$ac_exeext &&
11747 $as_test_x conftest$ac_exeext; then
11748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11749 shlibpath_overrides_runpath=yes
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760 conftest$ac_exeext conftest.$ac_ext
11761 LDFLAGS=$save_LDFLAGS
11762 libdir=$save_libdir
11764 # This implies no fast_install, which is unacceptable.
11765 # Some rework will be needed to allow for fast_install
11766 # before this can be enabled.
11767 hardcode_into_libs=yes
11769 # Append ld.so.conf contents to the search path
11770 if test -f /etc/ld.so.conf; then
11771 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' ' '`
11772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11823 sys_lib_dlsearch_path_spec="/usr/lib"
11825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11828 *) need_version=no ;;
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11835 openbsd2.[89] | openbsd2.[89].*)
11836 shlibpath_overrides_runpath=no
11839 shlibpath_overrides_runpath=yes
11843 shlibpath_overrides_runpath=yes
11848 libname_spec='$name'
11851 library_names_spec='$libname${shared_ext} $libname.a'
11852 dynamic_linker='OS/2 ld.exe'
11853 shlibpath_var=LIBPATH
11856 osf3* | osf4* | osf5*)
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11880 # ldd complains unless libraries are executable
11881 postinstall_cmds='chmod +x $lib'
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11890 if test "$with_gnu_ld" = yes; then
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 case $host_vendor in
11903 shlibpath_overrides_runpath=no
11905 runpath_var=LD_RUN_PATH
11913 shlibpath_overrides_runpath=no
11914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11920 if test -d /usr/nec ;then
11922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11923 soname_spec='$libname${shared_ext}.$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11929 version_type=freebsd-elf
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 shlibpath_overrides_runpath=yes
11936 hardcode_into_libs=yes
11937 if test "$with_gnu_ld" = yes; then
11938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11947 sys_lib_dlsearch_path_spec='/usr/lib'
11951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=no
11958 hardcode_into_libs=yes
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11972 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11973 echo "${ECHO_T}$dynamic_linker" >&6; }
11974 test "$dynamic_linker" = no && can_build_shared=no
11976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11977 if test "$GCC" = yes; then
11978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12074 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12075 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12077 if test -n "$hardcode_libdir_flag_spec" ||
12078 test -n "$runpath_var" ||
12079 test "X$hardcode_automatic" = "Xyes" ; then
12081 # We can hardcode non-existent directories.
12082 if test "$hardcode_direct" != no &&
12083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12084 # have to relink, otherwise we might link with an installed library
12085 # when we should be linking with a yet-to-be-installed one
12086 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12087 test "$hardcode_minus_L" != no; then
12088 # Linking always hardcodes the temporary library directory.
12089 hardcode_action=relink
12091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12092 hardcode_action=immediate
12095 # We cannot hardcode anything, or else we can only hardcode existing
12097 hardcode_action=unsupported
12099 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12100 echo "${ECHO_T}$hardcode_action" >&6; }
12102 if test "$hardcode_action" = relink ||
12103 test "$inherit_rpath" = yes; then
12104 # Fast installation is not supported
12105 enable_fast_install=no
12106 elif test "$shlibpath_overrides_runpath" = yes ||
12107 test "$enable_shared" = no; then
12108 # Fast installation is not necessary
12109 enable_fast_install=needless
12117 if test "x$enable_dlopen" != xyes; then
12118 enable_dlopen=unknown
12119 enable_dlopen_self=unknown
12120 enable_dlopen_self_static=unknown
12127 lt_cv_dlopen="load_add_on"
12129 lt_cv_dlopen_self=yes
12132 mingw* | pw32* | cegcc*)
12133 lt_cv_dlopen="LoadLibrary"
12138 lt_cv_dlopen="dlopen"
12143 # if libdl is installed we need to link against it
12144 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 ac_check_lib_save_LIBS=$LIBS
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 ac_cv_lib_dl_dlopen=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_lib_dl_dlopen=no
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12203 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12205 if test $ac_cv_lib_dl_dlopen = yes; then
12206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12209 lt_cv_dlopen="dyld"
12211 lt_cv_dlopen_self=yes
12218 { echo "$as_me:$LINENO: checking for shl_load" >&5
12219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12220 if test "${ac_cv_func_shl_load+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 cat >conftest.$ac_ext <<_ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12231 #define shl_load innocuous_shl_load
12233 /* System header to define __stub macros and hopefully few prototypes,
12234 which can conflict with char shl_load (); below.
12235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12236 <limits.h> exists even on freestanding compilers. */
12239 # include <limits.h>
12241 # include <assert.h>
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12253 /* The GNU C library defines this for functions which it implements
12254 to always fail with ENOSYS. Some functions are actually named
12255 something starting with __ and the normal name is an alias. */
12256 #if defined __stub_shl_load || defined __stub___shl_load
12263 return shl_load ();
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_link") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1 >conftest.err
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest$ac_exeext &&
12285 $as_test_x conftest$ac_exeext; then
12286 ac_cv_func_shl_load=yes
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ac_cv_func_shl_load=no
12294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12295 conftest$ac_exeext conftest.$ac_ext
12297 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12298 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12299 if test $ac_cv_func_shl_load = yes; then
12300 lt_cv_dlopen="shl_load"
12302 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12303 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12304 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 ac_check_lib_save_LIBS=$LIBS
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12326 return shl_load ();
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest$ac_exeext &&
12348 $as_test_x conftest$ac_exeext; then
12349 ac_cv_lib_dld_shl_load=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_dld_shl_load=no
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12362 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12363 if test $ac_cv_lib_dld_shl_load = yes; then
12364 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12366 { echo "$as_me:$LINENO: checking for dlopen" >&5
12367 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12368 if test "${ac_cv_func_dlopen+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 cat >conftest.$ac_ext <<_ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12379 #define dlopen innocuous_dlopen
12381 /* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char dlopen (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12387 # include <limits.h>
12389 # include <assert.h>
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined __stub_dlopen || defined __stub___dlopen
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest$ac_exeext &&
12433 $as_test_x conftest$ac_exeext; then
12434 ac_cv_func_dlopen=yes
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 ac_cv_func_dlopen=no
12442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443 conftest$ac_exeext conftest.$ac_ext
12445 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12446 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12447 if test $ac_cv_func_dlopen = yes; then
12448 lt_cv_dlopen="dlopen"
12450 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12451 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12452 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 ac_check_lib_save_LIBS=$LIBS
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest$ac_exeext &&
12496 $as_test_x conftest$ac_exeext; then
12497 ac_cv_lib_dl_dlopen=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 ac_cv_lib_dl_dlopen=no
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506 conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12511 if test $ac_cv_lib_dl_dlopen = yes; then
12512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-lsvld $LIBS"
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest$ac_exeext &&
12560 $as_test_x conftest$ac_exeext; then
12561 ac_cv_lib_svld_dlopen=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_lib_svld_dlopen=no
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12573 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12575 if test $ac_cv_lib_svld_dlopen = yes; then
12576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12578 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12579 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12580 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 ac_check_lib_save_LIBS=$LIBS
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12602 return dld_link ();
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest$ac_exeext &&
12624 $as_test_x conftest$ac_exeext; then
12625 ac_cv_lib_dld_dld_link=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_cv_lib_dld_dld_link=no
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12638 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12639 if test $ac_cv_lib_dld_dld_link = yes; then
12640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12661 if test "x$lt_cv_dlopen" != xno; then
12667 case $lt_cv_dlopen in
12669 save_CPPFLAGS="$CPPFLAGS"
12670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12672 save_LDFLAGS="$LDFLAGS"
12673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12676 LIBS="$lt_cv_dlopen_libs $LIBS"
12678 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12679 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12680 if test "${lt_cv_dlopen_self+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 if test "$cross_compiling" = yes; then :
12684 lt_cv_dlopen_self=cross
12686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12687 lt_status=$lt_dlunknown
12688 cat > conftest.$ac_ext <<_LT_EOF
12689 #line 12689 "configure"
12690 #include "confdefs.h"
12699 # define LT_DLGLOBAL RTLD_GLOBAL
12702 # define LT_DLGLOBAL DL_GLOBAL
12704 # define LT_DLGLOBAL 0
12708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12709 find out it does not work in some platform. */
12710 #ifndef LT_DLLAZY_OR_NOW
12712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12715 # define LT_DLLAZY_OR_NOW DL_LAZY
12718 # define LT_DLLAZY_OR_NOW RTLD_NOW
12721 # define LT_DLLAZY_OR_NOW DL_NOW
12723 # define LT_DLLAZY_OR_NOW 0
12730 void fnord() { int i=42;}
12733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12734 int status = $lt_dlunknown;
12738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12740 /* dlclose (self); */
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12753 (./conftest; exit; ) >&5 2>/dev/null
12755 case x$lt_status in
12756 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12757 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12758 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12761 # compilation failed
12762 lt_cv_dlopen_self=no
12769 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12772 if test "x$lt_cv_dlopen_self" = xyes; then
12773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12774 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12776 if test "${lt_cv_dlopen_self_static+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 if test "$cross_compiling" = yes; then :
12780 lt_cv_dlopen_self_static=cross
12782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12783 lt_status=$lt_dlunknown
12784 cat > conftest.$ac_ext <<_LT_EOF
12785 #line 12785 "configure"
12786 #include "confdefs.h"
12795 # define LT_DLGLOBAL RTLD_GLOBAL
12798 # define LT_DLGLOBAL DL_GLOBAL
12800 # define LT_DLGLOBAL 0
12804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12805 find out it does not work in some platform. */
12806 #ifndef LT_DLLAZY_OR_NOW
12808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12811 # define LT_DLLAZY_OR_NOW DL_LAZY
12814 # define LT_DLLAZY_OR_NOW RTLD_NOW
12817 # define LT_DLLAZY_OR_NOW DL_NOW
12819 # define LT_DLLAZY_OR_NOW 0
12826 void fnord() { int i=42;}
12829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12830 int status = $lt_dlunknown;
12834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836 /* dlclose (self); */
12844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12845 (eval $ac_link) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12849 (./conftest; exit; ) >&5 2>/dev/null
12851 case x$lt_status in
12852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12857 # compilation failed
12858 lt_cv_dlopen_self_static=no
12865 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12866 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12869 CPPFLAGS="$save_CPPFLAGS"
12870 LDFLAGS="$save_LDFLAGS"
12875 case $lt_cv_dlopen_self in
12876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12877 *) enable_dlopen_self=unknown ;;
12880 case $lt_cv_dlopen_self_static in
12881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12882 *) enable_dlopen_self_static=unknown ;;
12904 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12905 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12909 { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12912 # FIXME - insert some real tests, host_os isn't really good enough
12915 if test -n "$STRIP" ; then
12916 striplib="$STRIP -x"
12917 old_striplib="$STRIP -S"
12918 { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }
12921 { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12926 { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12943 # Report which library types will actually be built
12944 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12945 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12946 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12947 echo "${ECHO_T}$can_build_shared" >&6; }
12949 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12950 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12951 test "$can_build_shared" = "no" && enable_shared=no
12953 # On AIX, shared libraries and static libraries use the same namespace, and
12954 # are all built from PIC.
12957 test "$enable_shared" = yes && enable_static=no
12958 if test -n "$RANLIB"; then
12959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960 postinstall_cmds='$RANLIB $lib'
12965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12966 test "$enable_shared" = yes && enable_static=no
12970 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12971 echo "${ECHO_T}$enable_shared" >&6; }
12973 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12975 # Make sure either enable_shared or enable_static is yes.
12976 test "$enable_shared" = yes || enable_static=yes
12977 { echo "$as_me:$LINENO: result: $enable_static" >&5
12978 echo "${ECHO_T}$enable_static" >&6; }
12985 ac_cpp='$CPP $CPPFLAGS'
12986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12999 archive_cmds_need_lc_CXX=no
13000 allow_undefined_flag_CXX=
13001 always_export_symbols_CXX=no
13002 archive_expsym_cmds_CXX=
13003 compiler_needs_object_CXX=no
13004 export_dynamic_flag_spec_CXX=
13005 hardcode_direct_CXX=no
13006 hardcode_direct_absolute_CXX=no
13007 hardcode_libdir_flag_spec_CXX=
13008 hardcode_libdir_flag_spec_ld_CXX=
13009 hardcode_libdir_separator_CXX=
13010 hardcode_minus_L_CXX=no
13011 hardcode_shlibpath_var_CXX=unsupported
13012 hardcode_automatic_CXX=no
13013 inherit_rpath_CXX=no
13015 module_expsym_cmds_CXX=
13016 link_all_deplibs_CXX=unknown
13017 old_archive_cmds_CXX=$old_archive_cmds
13018 no_undefined_flag_CXX=
13019 whole_archive_flag_spec_CXX=
13020 enable_shared_with_static_runtimes_CXX=no
13022 # Source file extension for C++ test sources.
13025 # Object file extension for compiled C++ test sources.
13029 # No sense in running all these tests if we already determined that
13030 # the CXX compiler isn't working. Some variables (like enable_shared)
13031 # are currently assumed to apply to all compilers on this platform,
13032 # and will be corrupted by setting them based on a non-working compiler.
13033 if test "$_lt_caught_CXX_error" != yes; then
13034 # Code to be used in simple compile tests
13035 lt_simple_compile_test_code="int some_variable = 0;"
13037 # Code to be used in simple link tests
13038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13047 # If no C compiler was specified, use CC.
13050 # If no C compiler flags were specified, use CFLAGS.
13051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13053 # Allow CC to be a program name with arguments.
13057 # save warnings/boilerplate of simple test code
13058 ac_outfile=conftest.$ac_objext
13059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061 _lt_compiler_boilerplate=`cat conftest.err`
13064 ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067 _lt_linker_boilerplate=`cat conftest.err`
13071 # Allow CC to be a program name with arguments.
13076 lt_save_with_gnu_ld=$with_gnu_ld
13077 lt_save_path_LD=$lt_cv_path_LD
13078 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13079 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13081 $as_unset lt_cv_prog_gnu_ld
13083 if test -n "${lt_cv_path_LDCXX+set}"; then
13084 lt_cv_path_LD=$lt_cv_path_LDCXX
13086 $as_unset lt_cv_path_LD
13088 test -z "${LDCXX+set}" || LD=$LDCXX
13092 for cc_temp in $compiler""; do
13094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13100 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13103 if test -n "$compiler"; then
13104 # We don't want -fno-exception when compiling C++ code, so set the
13105 # no_builtin_flag separately
13106 if test "$GXX" = yes; then
13107 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13109 lt_prog_compiler_no_builtin_flag_CXX=
13112 if test "$GXX" = yes; then
13113 # Set up default GNU C++ configuration
13117 # Check whether --with-gnu-ld was given.
13118 if test "${with_gnu_ld+set}" = set; then
13119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13125 if test "$GCC" = yes; then
13126 # Check if gcc -print-prog-name=ld gives a path.
13127 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13131 # gcc leaves a trailing carriage return which upsets mingw
13132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13137 # Accept absolute paths.
13139 re_direlt='/[^/][^/]*/\.\./'
13140 # Canonicalize the pathname of ld
13141 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13142 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13143 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13145 test -z "$LD" && LD="$ac_prog"
13148 # If it fails, then pretend we aren't using GCC.
13152 # If it is relative, then search for the first ld in PATH.
13153 with_gnu_ld=unknown
13156 elif test "$with_gnu_ld" = yes; then
13157 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13160 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13163 if test "${lt_cv_path_LD+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 if test -z "$LD"; then
13167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13168 for ac_dir in $PATH; do
13170 test -z "$ac_dir" && ac_dir=.
13171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13172 lt_cv_path_LD="$ac_dir/$ac_prog"
13173 # Check to see if the program is GNU ld. I'd rather use --version,
13174 # but apparently some variants of GNU ld only accept -v.
13175 # Break only if it was the GNU/non-GNU ld that we prefer.
13176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13177 *GNU* | *'with BFD'*)
13178 test "$with_gnu_ld" != no && break
13181 test "$with_gnu_ld" != yes && break
13188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192 LD="$lt_cv_path_LD"
13193 if test -n "$LD"; then
13194 { echo "$as_me:$LINENO: result: $LD" >&5
13195 echo "${ECHO_T}$LD" >&6; }
13197 { echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6; }
13200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13202 { (exit 1); exit 1; }; }
13203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13209 case `$LD -v 2>&1 </dev/null` in
13210 *GNU* | *'with BFD'*)
13211 lt_cv_prog_gnu_ld=yes
13214 lt_cv_prog_gnu_ld=no
13218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13220 with_gnu_ld=$lt_cv_prog_gnu_ld
13228 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13229 # archiving commands below assume that GNU ld is being used.
13230 if test "$with_gnu_ld" = yes; then
13231 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232 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'
13234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13237 # If archive_cmds runs LD, not CC, wlarc should be empty
13238 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13239 # investigate it a little bit more. (MM)
13242 # ancient GNU ld didn't support --whole-archive et. al.
13243 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13244 $GREP 'no-whole-archive' > /dev/null; then
13245 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13247 whole_archive_flag_spec_CXX=
13253 # A generic and very simple default shared library creation
13254 # command for GNU C++ for the case where it uses the native
13255 # linker, instead of GNU ld. If possible, this setting should
13256 # overridden to take advantage of the native linker features on
13257 # the platform it is being used on.
13258 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13272 # PORTME: fill in a description of your system's C++ link characteristics
13273 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13278 # FIXME: insert proper C++ library support
13282 if test "$host_cpu" = ia64; then
13283 # On IA64, the linker does run time linking by default, so we don't
13284 # have to do anything special.
13285 aix_use_runtimelinking=no
13286 exp_sym_flag='-Bexport'
13289 aix_use_runtimelinking=no
13291 # Test if we are trying to use run time linking or normal
13292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13293 # need to do runtime linking.
13294 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13295 for ld_flag in $LDFLAGS; do
13298 aix_use_runtimelinking=yes
13306 exp_sym_flag='-bexport'
13307 no_entry_flag='-bnoentry'
13310 # When large executables or shared objects are built, AIX ld can
13311 # have problems creating the table of contents. If linking a library
13312 # or program results in "error TOC overflow" add -mminimal-toc to
13313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13316 archive_cmds_CXX=''
13317 hardcode_direct_CXX=yes
13318 hardcode_direct_absolute_CXX=yes
13319 hardcode_libdir_separator_CXX=':'
13320 link_all_deplibs_CXX=yes
13321 file_list_spec_CXX='${wl}-f,'
13323 if test "$GXX" = yes; then
13324 case $host_os in aix4.[012]|aix4.[012].*)
13325 # We only want to do this on AIX 4.2 and lower, the check
13326 # below for broken collect2 doesn't work under 4.3+
13327 collect2name=`${CC} -print-prog-name=collect2`
13328 if test -f "$collect2name" &&
13329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13331 # We have reworked collect2
13334 # We have old collect2
13335 hardcode_direct_CXX=unsupported
13336 # It fails to find uninstalled libraries when the uninstalled
13337 # path is not listed in the libpath. Setting hardcode_minus_L
13338 # to unsupported forces relinking
13339 hardcode_minus_L_CXX=yes
13340 hardcode_libdir_flag_spec_CXX='-L$libdir'
13341 hardcode_libdir_separator_CXX=
13344 shared_flag='-shared'
13345 if test "$aix_use_runtimelinking" = yes; then
13346 shared_flag="$shared_flag "'${wl}-G'
13350 if test "$host_cpu" = ia64; then
13351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13352 # chokes on -Wl,-G. The following line is correct:
13355 if test "$aix_use_runtimelinking" = yes; then
13356 shared_flag='${wl}-G'
13358 shared_flag='${wl}-bM:SRE'
13363 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13364 # It seems that -bexpall does not export symbols beginning with
13365 # underscore (_), so it is better to generate a list of symbols to
13367 always_export_symbols_CXX=yes
13368 if test "$aix_use_runtimelinking" = yes; then
13369 # Warning - without using the other runtime loading flags (-brtl),
13370 # -berok will link without error, but may produce a broken library.
13371 allow_undefined_flag_CXX='-berok'
13372 # Determine the default libpath from the value encoded in an empty
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (ac_try="$ac_link"
13391 case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_link") 2>conftest.er1
13398 grep -v '^ *+' conftest.er1 >conftest.err
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && {
13403 test -z "$ac_cxx_werror_flag" ||
13404 test ! -s conftest.err
13405 } && test -s conftest$ac_exeext &&
13406 $as_test_x conftest$ac_exeext; then
13408 lt_aix_libpath_sed='
13409 /Import File Strings/,/^$/ {
13415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13416 # Check for a 64-bit object if we didn't find anything.
13417 if test -z "$aix_libpath"; then
13418 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428 conftest$ac_exeext conftest.$ac_ext
13429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13431 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13433 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"
13435 if test "$host_cpu" = ia64; then
13436 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13437 allow_undefined_flag_CXX="-z nodefs"
13438 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"
13440 # Determine the default libpath from the value encoded in an
13441 # empty executable.
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } && {
13471 test -z "$ac_cxx_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest$ac_exeext &&
13474 $as_test_x conftest$ac_exeext; then
13476 lt_aix_libpath_sed='
13477 /Import File Strings/,/^$/ {
13483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13484 # Check for a 64-bit object if we didn't find anything.
13485 if test -z "$aix_libpath"; then
13486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13496 conftest$ac_exeext conftest.$ac_ext
13497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13499 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13500 # Warning - without using the other run time loading flags,
13501 # -berok will link without error, but may produce a broken library.
13502 no_undefined_flag_CXX=' ${wl}-bernotok'
13503 allow_undefined_flag_CXX=' ${wl}-berok'
13504 # Exported symbols can be pulled into shared objects from archives
13505 whole_archive_flag_spec_CXX='$convenience'
13506 archive_cmds_need_lc_CXX=yes
13507 # This is similar to how AIX traditionally builds its shared
13509 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'
13515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13516 allow_undefined_flag_CXX=unsupported
13517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13518 # support --undefined. This deserves some investigation. FIXME
13519 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13526 case $cc_basename in
13528 # FIXME: insert proper C++ library support
13534 cygwin* | mingw* | pw32* | cegcc*)
13535 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13536 # as there is no search path for DLLs.
13537 hardcode_libdir_flag_spec_CXX='-L$libdir'
13538 allow_undefined_flag_CXX=unsupported
13539 always_export_symbols_CXX=no
13540 enable_shared_with_static_runtimes_CXX=yes
13542 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13543 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'
13544 # If the export-symbols file already is a .def file (1st line
13545 # is EXPORTS), use it as is; otherwise, prepend...
13546 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13547 cp $export_symbols $output_objdir/$soname.def;
13549 echo EXPORTS > $output_objdir/$soname.def;
13550 cat $export_symbols >> $output_objdir/$soname.def;
13552 $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'
13557 darwin* | rhapsody*)
13560 archive_cmds_need_lc_CXX=no
13561 hardcode_direct_CXX=no
13562 hardcode_automatic_CXX=yes
13563 hardcode_shlibpath_var_CXX=unsupported
13564 whole_archive_flag_spec_CXX=''
13565 link_all_deplibs_CXX=yes
13566 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13567 case $cc_basename in
13568 ifort*) _lt_dar_can_shared=yes ;;
13569 *) _lt_dar_can_shared=$GCC ;;
13571 if test "$_lt_dar_can_shared" = "yes"; then
13572 output_verbose_link_cmd=echo
13573 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}"
13574 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13575 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}"
13576 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}"
13577 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13578 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}"
13579 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}"
13589 case $cc_basename in
13591 # FIXME: insert proper C++ library support
13595 # Green Hills C++ Compiler
13596 # FIXME: insert proper C++ library support
13600 # FIXME: insert proper C++ library support
13607 # C++ shared libraries reported to be fairly broken before
13613 archive_cmds_need_lc_CXX=no
13616 freebsd* | dragonfly*)
13617 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13627 hardcode_libdir_separator_CXX=:
13628 export_dynamic_flag_spec_CXX='${wl}-E'
13629 hardcode_direct_CXX=yes
13630 hardcode_minus_L_CXX=yes # Not in the search PATH,
13631 # but as the default
13632 # location of the library.
13634 case $cc_basename in
13636 # FIXME: insert proper C++ library support
13640 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'
13641 # Commands to make compiler produce verbose output that lists
13642 # what "hidden" libraries, object files and flags are used when
13643 # linking a shared library.
13645 # There doesn't appear to be a way to prevent this compiler from
13646 # explicitly linking system object files so we need to strip them
13647 # from the output so that they don't get included in the library
13649 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'
13652 if test "$GXX" = yes; then
13653 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'
13655 # FIXME: insert proper C++ library support
13663 if test $with_gnu_ld = no; then
13664 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13665 hardcode_libdir_separator_CXX=:
13671 export_dynamic_flag_spec_CXX='${wl}-E'
13677 hardcode_direct_CXX=no
13678 hardcode_shlibpath_var_CXX=no
13681 hardcode_direct_CXX=yes
13682 hardcode_direct_absolute_CXX=yes
13683 hardcode_minus_L_CXX=yes # Not in the search PATH,
13684 # but as the default
13685 # location of the library.
13689 case $cc_basename in
13691 # FIXME: insert proper C++ library support
13697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706 # Commands to make compiler produce verbose output that lists
13707 # what "hidden" libraries, object files and flags are used when
13708 # linking a shared library.
13710 # There doesn't appear to be a way to prevent this compiler from
13711 # explicitly linking system object files so we need to strip them
13712 # from the output so that they don't get included in the library
13714 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'
13717 if test "$GXX" = yes; then
13718 if test $with_gnu_ld = no; then
13721 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 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'
13732 # FIXME: insert proper C++ library support
13740 hardcode_direct_CXX=no
13741 hardcode_shlibpath_var_CXX=no
13742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13743 export_dynamic_flag_spec_CXX='${wl}-E'
13744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13745 # Instead, shared libraries are loaded at an image base (0x10000000 by
13746 # default) and relocated if they conflict, which is a slow very memory
13747 # consuming and fragmenting process. To avoid this, we pick a random,
13748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13750 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'
13751 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'
13754 case $cc_basename in
13757 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'
13759 # Archives containing C++ object files must be created using
13760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13761 # necessary to make sure instantiated templates are included
13763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13766 if test "$GXX" = yes; then
13767 if test "$with_gnu_ld" = no; then
13768 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'
13770 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'
13773 link_all_deplibs_CXX=yes
13776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13777 hardcode_libdir_separator_CXX=:
13778 inherit_rpath_CXX=yes
13781 linux* | k*bsd*-gnu)
13782 case $cc_basename in
13784 # Kuck and Associates, Inc. (KAI) C++ Compiler
13786 # KCC will only create a shared library if the output file
13787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13788 # to its proper name (with version) after linking.
13789 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'
13790 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'
13791 # Commands to make compiler produce verbose output that lists
13792 # what "hidden" libraries, object files and flags are used when
13793 # linking a shared library.
13795 # There doesn't appear to be a way to prevent this compiler from
13796 # explicitly linking system object files so we need to strip them
13797 # from the output so that they don't get included in the library
13799 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'
13801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13804 # Archives containing C++ object files must be created using
13805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13811 # version 8.0 and above of icpc choke on multiply defined symbols
13812 # if we add $predep_objects and $postdep_objects, however 7.1 and
13813 # earlier do not add the objects themselves.
13814 case `$CC -V 2>&1` in
13816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13817 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'
13819 *) # Version 8.0 or newer
13822 ia64*) tmp_idyn=' -i_dynamic';;
13824 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825 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'
13828 archive_cmds_need_lc_CXX=no
13829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13831 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13834 # Portland Group C++ compiler
13836 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13837 prelink_cmds_CXX='tpldir=Template.dir~
13839 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13840 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13841 old_archive_cmds_CXX='tpldir=Template.dir~
13843 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13844 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13846 archive_cmds_CXX='tpldir=Template.dir~
13848 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13849 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13850 archive_expsym_cmds_CXX='tpldir=Template.dir~
13852 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13853 $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'
13855 *) # Version 6 will use weak symbols
13856 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13857 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'
13861 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13863 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'
13867 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868 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'
13870 runpath_var=LD_RUN_PATH
13871 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13872 hardcode_libdir_separator_CXX=:
13874 # Commands to make compiler produce verbose output that lists
13875 # what "hidden" libraries, object files and flags are used when
13876 # linking a shared library.
13878 # There doesn't appear to be a way to prevent this compiler from
13879 # explicitly linking system object files so we need to strip them
13880 # from the output so that they don't get included in the library
13882 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'
13885 # IBM XL 8.0 on PPC, with GNU ld
13886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13888 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889 if test "x$supports_anon_versioning" = xyes; then
13890 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13892 echo "local: *; };" >> $output_objdir/$libname.ver~
13893 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13897 case `$CC -V 2>&1 | sed 5q` in
13900 no_undefined_flag_CXX=' -zdefs'
13901 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13902 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'
13903 hardcode_libdir_flag_spec_CXX='-R$libdir'
13904 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'
13905 compiler_needs_object_CXX=yes
13907 # Not sure whether something based on
13908 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13910 output_verbose_link_cmd='echo'
13912 # Archives containing C++ object files must be created using
13913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13914 # necessary to make sure instantiated templates are included
13916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13924 # FIXME: insert proper C++ library support
13929 # FIXME: insert proper C++ library support
13934 case $cc_basename in
13936 # FIXME: insert proper C++ library support
13940 # FIXME: insert proper C++ library support
13947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13948 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13950 hardcode_libdir_flag_spec_CXX='-R$libdir'
13951 hardcode_direct_CXX=yes
13952 hardcode_shlibpath_var_CXX=no
13954 # Workaround some broken pre-1.5 toolchains
13955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13963 # C++ shared libraries are fairly broken
13968 if test -f /usr/libexec/ld.so; then
13969 hardcode_direct_CXX=yes
13970 hardcode_shlibpath_var_CXX=no
13971 hardcode_direct_absolute_CXX=yes
13972 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13975 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13976 export_dynamic_flag_spec_CXX='${wl}-E'
13977 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13979 output_verbose_link_cmd=echo
13985 osf3* | osf4* | osf5*)
13986 case $cc_basename in
13988 # Kuck and Associates, Inc. (KAI) C++ Compiler
13990 # KCC will only create a shared library if the output file
13991 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13992 # to its proper name (with version) after linking.
13993 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'
13995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13996 hardcode_libdir_separator_CXX=:
13998 # Archives containing C++ object files must be created using
13999 # the KAI C++ compiler.
14001 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14002 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14006 # Rational C++ 2.4.1
14007 # FIXME: insert proper C++ library support
14013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14014 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'
14015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14018 allow_undefined_flag_CXX=' -expect_unresolved \*'
14019 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'
14020 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14021 echo "-hidden">> $lib.exp~
14022 $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~
14024 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14028 hardcode_libdir_separator_CXX=:
14030 # Commands to make compiler produce verbose output that lists
14031 # what "hidden" libraries, object files and flags are used when
14032 # linking a shared library.
14034 # There doesn't appear to be a way to prevent this compiler from
14035 # explicitly linking system object files so we need to strip them
14036 # from the output so that they don't get included in the library
14038 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'
14041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14042 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14045 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'
14048 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'
14052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14053 hardcode_libdir_separator_CXX=:
14055 # Commands to make compiler produce verbose output that lists
14056 # what "hidden" libraries, object files and flags are used when
14057 # linking a shared library.
14058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14061 # FIXME: insert proper C++ library support
14069 # FIXME: insert proper C++ library support
14074 case $cc_basename in
14077 # FIXME: insert proper C++ library support
14082 # FIXME: insert proper C++ library support
14086 # FIXME: insert proper C++ library support
14093 case $cc_basename in
14095 # Sun C++ 4.2, 5.x and Centerline C++
14096 archive_cmds_need_lc_CXX=yes
14097 no_undefined_flag_CXX=' -zdefs'
14098 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14100 $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'
14102 hardcode_libdir_flag_spec_CXX='-R$libdir'
14103 hardcode_shlibpath_var_CXX=no
14105 solaris2.[0-5] | solaris2.[0-5].*) ;;
14107 # The compiler driver will combine and reorder linker options,
14108 # but understands `-z linker_flag'.
14109 # Supported since Solaris 2.6 (maybe 2.5.1?)
14110 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14113 link_all_deplibs_CXX=yes
14115 output_verbose_link_cmd='echo'
14117 # Archives containing C++ object files must be created using
14118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14119 # necessary to make sure instantiated templates are included
14121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14124 # Green Hills C++ Compiler
14125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14127 # The C++ compiler must be used to create the archive.
14128 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14131 # GNU C++ compiler with Solaris linker
14132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14133 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14134 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14135 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14136 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14137 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14139 # Commands to make compiler produce verbose output that lists
14140 # what "hidden" libraries, object files and flags are used when
14141 # linking a shared library.
14142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14144 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14146 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14147 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14148 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14150 # Commands to make compiler produce verbose output that lists
14151 # what "hidden" libraries, object files and flags are used when
14152 # linking a shared library.
14153 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14156 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14158 solaris2.[0-5] | solaris2.[0-5].*) ;;
14160 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14169 no_undefined_flag_CXX='${wl}-z,text'
14170 archive_cmds_need_lc_CXX=no
14171 hardcode_shlibpath_var_CXX=no
14172 runpath_var='LD_RUN_PATH'
14174 case $cc_basename in
14176 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 sysv5* | sco3.2v5* | sco5v6*)
14187 # Note: We can NOT use -z defs as we might desire, because we do not
14188 # link with -lc, and that would cause any symbols used from libc to
14189 # always be unresolved, which means just about no library would
14190 # ever link correctly. If we're not using GNU ld we use -z text
14191 # though, which does catch some bad symbols but isn't as heavy-handed
14193 no_undefined_flag_CXX='${wl}-z,text'
14194 allow_undefined_flag_CXX='${wl}-z,nodefs'
14195 archive_cmds_need_lc_CXX=no
14196 hardcode_shlibpath_var_CXX=no
14197 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14198 hardcode_libdir_separator_CXX=':'
14199 link_all_deplibs_CXX=yes
14200 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14201 runpath_var='LD_RUN_PATH'
14203 case $cc_basename in
14205 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216 case $cc_basename in
14218 # NonStop-UX NCC 3.20
14219 # FIXME: insert proper C++ library support
14223 # FIXME: insert proper C++ library support
14230 # FIXME: insert proper C++ library support
14235 # FIXME: insert proper C++ library support
14240 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14241 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14242 test "$ld_shlibs_CXX" = no && can_build_shared=no
14248 ## There is no encapsulation within the following macros, do not change
14249 ## the running order or otherwise move them around unless you know exactly
14250 ## what you are doing...
14251 # Dependencies to place before and after the object being linked:
14252 predep_objects_CXX=
14253 postdep_objects_CXX=
14256 compiler_lib_search_path_CXX=
14258 cat > conftest.$ac_ext <<_LT_EOF
14262 Foo (void) { a = 0; }
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; then
14273 # Parse the compiler output and extract the necessary
14274 # objects, libraries and library flags.
14276 # Sentinel used to keep track of whether or not we are before
14277 # the conftest object file.
14278 pre_test_object_deps_done=no
14280 for p in `eval "$output_verbose_link_cmd"`; do
14284 # Some compilers place space between "-{L,R}" and the path.
14285 # Remove the space.
14286 if test $p = "-L" ||
14287 test $p = "-R"; then
14294 if test "$pre_test_object_deps_done" = no; then
14297 # Internal compiler library paths should come after those
14298 # provided the user. The postdeps already come after the
14299 # user supplied libs so there is no need to process them.
14300 if test -z "$compiler_lib_search_path_CXX"; then
14301 compiler_lib_search_path_CXX="${prev}${p}"
14303 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14306 # The "-l" case would never come before the object being
14307 # linked, so don't bother handling this case.
14310 if test -z "$postdeps_CXX"; then
14311 postdeps_CXX="${prev}${p}"
14313 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14319 # This assumes that the test object file only shows up
14320 # once in the compiler output.
14321 if test "$p" = "conftest.$objext"; then
14322 pre_test_object_deps_done=yes
14326 if test "$pre_test_object_deps_done" = no; then
14327 if test -z "$predep_objects_CXX"; then
14328 predep_objects_CXX="$p"
14330 predep_objects_CXX="$predep_objects_CXX $p"
14333 if test -z "$postdep_objects_CXX"; then
14334 postdep_objects_CXX="$p"
14336 postdep_objects_CXX="$postdep_objects_CXX $p"
14341 *) ;; # Ignore the rest.
14349 echo "libtool.m4: error: problem compiling CXX test program"
14352 $RM -f confest.$objext
14354 # PORTME: override above test on systems where it is broken
14357 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14358 # hack all around it, let's just trust "g++" to DTRT.
14359 predep_objects_CXX=
14360 postdep_objects_CXX=
14365 case `$CC -V 2>&1 | sed 5q` in
14369 # The more standards-conforming stlport4 library is
14370 # incompatible with the Cstd library. Avoid specifying
14371 # it if it's in CXXFLAGS. Ignore libCrun as
14372 # -library=stlport4 depends on it.
14373 case " $CXX $CXXFLAGS " in
14374 *" -library=stlport4 "*)
14375 solaris_use_stlport4=yes
14379 if test "$solaris_use_stlport4" != yes; then
14380 postdeps_CXX='-library=Cstd -library=Crun'
14387 case $cc_basename in
14389 # The more standards-conforming stlport4 library is
14390 # incompatible with the Cstd library. Avoid specifying
14391 # it if it's in CXXFLAGS. Ignore libCrun as
14392 # -library=stlport4 depends on it.
14393 case " $CXX $CXXFLAGS " in
14394 *" -library=stlport4 "*)
14395 solaris_use_stlport4=yes
14399 # Adding this requires a known-good setup of shared libraries for
14400 # Sun compiler versions before 5.6, else PIC objects from an old
14401 # archive will be linked into the output, leading to subtle bugs.
14402 if test "$solaris_use_stlport4" != yes; then
14403 postdeps_CXX='-library=Cstd -library=Crun'
14411 case " $postdeps_CXX " in
14412 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14414 compiler_lib_search_dirs_CXX=
14415 if test -n "${compiler_lib_search_path_CXX}"; then
14416 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14449 lt_prog_compiler_wl_CXX=
14450 lt_prog_compiler_pic_CXX=
14451 lt_prog_compiler_static_CXX=
14453 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14456 # C++ specific cases for pic, static, wl, etc.
14457 if test "$GXX" = yes; then
14458 lt_prog_compiler_wl_CXX='-Wl,'
14459 lt_prog_compiler_static_CXX='-static'
14463 # All AIX code is PIC.
14464 if test "$host_cpu" = ia64; then
14465 # AIX 5 now supports IA64 processor
14466 lt_prog_compiler_static_CXX='-Bstatic'
14473 # see comment about AmigaOS4 .so support
14474 lt_prog_compiler_pic_CXX='-fPIC'
14477 # FIXME: we need at least 68020 code to build shared libraries, but
14478 # adding the `-m68020' flag to GCC prevents building anything better,
14480 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14486 # PIC is the default for these OSes.
14488 mingw* | cygwin* | os2* | pw32* | cegcc*)
14489 # This hack is so that the source file can tell whether it is being
14490 # built for inclusion in a dll (and should export symbols for example).
14491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14492 # (--disable-auto-import) libraries
14493 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14495 darwin* | rhapsody*)
14496 # PIC is the default on this platform
14497 # Common symbols not allowed in MH_DYLIB files
14498 lt_prog_compiler_pic_CXX='-fno-common'
14501 # DJGPP does not support shared libraries at all
14502 lt_prog_compiler_pic_CXX=
14505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14506 # Instead, we relocate shared libraries at runtime.
14509 if test -d /usr/nec; then
14510 lt_prog_compiler_pic_CXX=-Kconform_pic
14514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14516 # sets the default TLS model and affects inlining.
14521 lt_prog_compiler_pic_CXX='-fPIC'
14526 # QNX uses GNU C++, but need to define -shared option too, otherwise
14527 # it will coredump.
14528 lt_prog_compiler_pic_CXX='-fPIC -shared'
14531 lt_prog_compiler_pic_CXX='-fPIC'
14537 # All AIX code is PIC.
14538 if test "$host_cpu" = ia64; then
14539 # AIX 5 now supports IA64 processor
14540 lt_prog_compiler_static_CXX='-Bstatic'
14542 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14546 case $cc_basename in
14548 # Green Hills C++ Compiler
14549 # _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"
14554 case $cc_basename in
14556 lt_prog_compiler_pic_CXX='-KPIC'
14559 # Green Hills C++ Compiler
14560 lt_prog_compiler_pic_CXX='-pic'
14566 freebsd* | dragonfly*)
14567 # FreeBSD uses GNU C++
14569 hpux9* | hpux10* | hpux11*)
14570 case $cc_basename in
14572 lt_prog_compiler_wl_CXX='-Wl,'
14573 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14574 if test "$host_cpu" != ia64; then
14575 lt_prog_compiler_pic_CXX='+Z'
14579 lt_prog_compiler_wl_CXX='-Wl,'
14580 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14586 lt_prog_compiler_pic_CXX='+Z'
14595 # This is c89, which is MS Visual C++ (no shared libs)
14596 # Anyone wants to do a port?
14598 irix5* | irix6* | nonstopux*)
14599 case $cc_basename in
14601 lt_prog_compiler_wl_CXX='-Wl,'
14602 lt_prog_compiler_static_CXX='-non_shared'
14603 # CC pic flag -KPIC is the default.
14609 linux* | k*bsd*-gnu)
14610 case $cc_basename in
14613 lt_prog_compiler_wl_CXX='--backend -Wl,'
14614 lt_prog_compiler_pic_CXX='-fPIC'
14617 # old Intel C++ for x86_64 which still supported -KPIC.
14618 lt_prog_compiler_wl_CXX='-Wl,'
14619 lt_prog_compiler_pic_CXX='-KPIC'
14620 lt_prog_compiler_static_CXX='-static'
14623 # Intel C++, used to be incompatible with GCC.
14624 # ICC 10 doesn't accept -KPIC any more.
14625 lt_prog_compiler_wl_CXX='-Wl,'
14626 lt_prog_compiler_pic_CXX='-fPIC'
14627 lt_prog_compiler_static_CXX='-static'
14630 # Portland Group C++ compiler
14631 lt_prog_compiler_wl_CXX='-Wl,'
14632 lt_prog_compiler_pic_CXX='-fpic'
14633 lt_prog_compiler_static_CXX='-Bstatic'
14637 # Make sure the PIC flag is empty. It appears that all Alpha
14638 # Linux and Compaq Tru64 Unix objects are PIC.
14639 lt_prog_compiler_pic_CXX=
14640 lt_prog_compiler_static_CXX='-non_shared'
14643 # IBM XL 8.0 on PPC
14644 lt_prog_compiler_wl_CXX='-Wl,'
14645 lt_prog_compiler_pic_CXX='-qpic'
14646 lt_prog_compiler_static_CXX='-qstaticlink'
14649 case `$CC -V 2>&1 | sed 5q` in
14652 lt_prog_compiler_pic_CXX='-KPIC'
14653 lt_prog_compiler_static_CXX='-Bstatic'
14654 lt_prog_compiler_wl_CXX='-Qoption ld '
14665 case $cc_basename in
14667 lt_prog_compiler_pic_CXX='-W c,exportall'
14676 # QNX uses GNU C++, but need to define -shared option too, otherwise
14677 # it will coredump.
14678 lt_prog_compiler_pic_CXX='-fPIC -shared'
14680 osf3* | osf4* | osf5*)
14681 case $cc_basename in
14683 lt_prog_compiler_wl_CXX='--backend -Wl,'
14686 # Rational C++ 2.4.1
14687 lt_prog_compiler_pic_CXX='-pic'
14690 # Digital/Compaq C++
14691 lt_prog_compiler_wl_CXX='-Wl,'
14692 # Make sure the PIC flag is empty. It appears that all Alpha
14693 # Linux and Compaq Tru64 Unix objects are PIC.
14694 lt_prog_compiler_pic_CXX=
14695 lt_prog_compiler_static_CXX='-non_shared'
14704 case $cc_basename in
14706 # Sun C++ 4.2, 5.x and Centerline C++
14707 lt_prog_compiler_pic_CXX='-KPIC'
14708 lt_prog_compiler_static_CXX='-Bstatic'
14709 lt_prog_compiler_wl_CXX='-Qoption ld '
14712 # Green Hills C++ Compiler
14713 lt_prog_compiler_pic_CXX='-PIC'
14720 case $cc_basename in
14723 lt_prog_compiler_pic_CXX='-pic'
14724 lt_prog_compiler_static_CXX='-Bstatic'
14728 lt_prog_compiler_pic_CXX='-pic'
14734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14735 case $cc_basename in
14737 lt_prog_compiler_wl_CXX='-Wl,'
14738 lt_prog_compiler_pic_CXX='-KPIC'
14739 lt_prog_compiler_static_CXX='-Bstatic'
14744 case $cc_basename in
14746 # NonStop-UX NCC 3.20
14747 lt_prog_compiler_pic_CXX='-KPIC'
14756 lt_prog_compiler_can_build_shared_CXX=no
14762 # For platforms which do not support PIC, -DPIC is meaningless:
14764 lt_prog_compiler_pic_CXX=
14767 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14776 # Check to make sure the PIC flag actually works.
14778 if test -n "$lt_prog_compiler_pic_CXX"; then
14779 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14781 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 lt_cv_prog_compiler_pic_works_CXX=no
14785 ac_outfile=conftest.$ac_objext
14786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14788 # Insert the option either (1) after the last *FLAGS variable, or
14789 # (2) before a word containing "conftest.", or (3) at the end.
14790 # Note that $ac_compile itself does not contain backslashes and begins
14791 # with a dollar sign (not a hyphen), so the echo should work correctly.
14792 # The option is referenced via a variable to avoid confusing sed.
14793 lt_compile=`echo "$ac_compile" | $SED \
14794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796 -e 's:$: $lt_compiler_flag:'`
14797 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798 (eval "$lt_compile" 2>conftest.err)
14800 cat conftest.err >&5
14801 echo "$as_me:14801: \$? = $ac_status" >&5
14802 if (exit $ac_status) && test -s "$ac_outfile"; then
14803 # The compiler can only warn and ignore the option if not recognized
14804 # So say no if there are warnings other than the usual output.
14805 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14808 lt_cv_prog_compiler_pic_works_CXX=yes
14814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14815 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14817 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14818 case $lt_prog_compiler_pic_CXX in
14820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14823 lt_prog_compiler_pic_CXX=
14824 lt_prog_compiler_can_build_shared_CXX=no
14832 # Check to make sure the static flag actually works.
14834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14837 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 lt_cv_prog_compiler_static_works_CXX=no
14841 save_LDFLAGS="$LDFLAGS"
14842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14845 # The linker can only warn and ignore the option if not recognized
14846 # So say no if there are warnings
14847 if test -s conftest.err; then
14848 # Append any errors to the config.log.
14849 cat conftest.err 1>&5
14850 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14852 if diff conftest.exp conftest.er2 >/dev/null; then
14853 lt_cv_prog_compiler_static_works_CXX=yes
14856 lt_cv_prog_compiler_static_works_CXX=yes
14860 LDFLAGS="$save_LDFLAGS"
14863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14864 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14866 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14869 lt_prog_compiler_static_CXX=
14875 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14877 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 lt_cv_prog_compiler_c_o_CXX=no
14881 $RM -r conftest 2>/dev/null
14885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14887 lt_compiler_flag="-o out/conftest2.$ac_objext"
14888 # Insert the option either (1) after the last *FLAGS variable, or
14889 # (2) before a word containing "conftest.", or (3) at the end.
14890 # Note that $ac_compile itself does not contain backslashes and begins
14891 # with a dollar sign (not a hyphen), so the echo should work correctly.
14892 lt_compile=`echo "$ac_compile" | $SED \
14893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14895 -e 's:$: $lt_compiler_flag:'`
14896 (eval echo "\"\$as_me:14896: $lt_compile\"" >&5)
14897 (eval "$lt_compile" 2>out/conftest.err)
14899 cat out/conftest.err >&5
14900 echo "$as_me:14900: \$? = $ac_status" >&5
14901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14903 # The compiler can only warn and ignore the option if not recognized
14904 # So say no if there are warnings
14905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14908 lt_cv_prog_compiler_c_o_CXX=yes
14913 # SGI C++ compiler will create directory out/ii_files/ for
14914 # template instantiation
14915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14916 $RM out/* && rmdir out
14922 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14927 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14929 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 lt_cv_prog_compiler_c_o_CXX=no
14933 $RM -r conftest 2>/dev/null
14937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14939 lt_compiler_flag="-o out/conftest2.$ac_objext"
14940 # Insert the option either (1) after the last *FLAGS variable, or
14941 # (2) before a word containing "conftest.", or (3) at the end.
14942 # Note that $ac_compile itself does not contain backslashes and begins
14943 # with a dollar sign (not a hyphen), so the echo should work correctly.
14944 lt_compile=`echo "$ac_compile" | $SED \
14945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947 -e 's:$: $lt_compiler_flag:'`
14948 (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949 (eval "$lt_compile" 2>out/conftest.err)
14951 cat out/conftest.err >&5
14952 echo "$as_me:14952: \$? = $ac_status" >&5
14953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14955 # The compiler can only warn and ignore the option if not recognized
14956 # So say no if there are warnings
14957 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14960 lt_cv_prog_compiler_c_o_CXX=yes
14965 # SGI C++ compiler will create directory out/ii_files/ for
14966 # template instantiation
14967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14968 $RM out/* && rmdir out
14974 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14975 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14980 hard_links="nottested"
14981 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14982 # do not overwrite the value of need_locks provided by the user
14983 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14984 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14989 ln conftest.a conftest.b 2>&5 || hard_links=no
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991 { echo "$as_me:$LINENO: result: $hard_links" >&5
14992 echo "${ECHO_T}$hard_links" >&6; }
14993 if test "$hard_links" = no; then
14994 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14995 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15004 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15010 # If we're using GNU nm, then we don't want the "-C" option.
15011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15012 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15013 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'
15015 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'
15019 export_symbols_cmds_CXX="$ltdll_cmds"
15021 cygwin* | mingw* | cegcc*)
15022 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'
15025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15028 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15030 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15031 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15032 test "$ld_shlibs_CXX" = no && can_build_shared=no
15034 with_gnu_ld_CXX=$with_gnu_ld
15042 # Do we need to explicitly link libc?
15044 case "x$archive_cmds_need_lc_CXX" in
15046 # Assume -lc should be added
15047 archive_cmds_need_lc_CXX=yes
15049 if test "$enable_shared" = yes && test "$GCC" = yes; then
15050 case $archive_cmds_CXX in
15052 # FIXME: we may have to deal with multi-command sequences.
15055 # Test whether the compiler implicitly links with -lc since on some
15056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15057 # to ld, don't add -lc before -lgcc.
15058 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064 (eval $ac_compile) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } 2>conftest.err; then
15070 libobjs=conftest.$ac_objext
15072 wl=$lt_prog_compiler_wl_CXX
15073 pic_flag=$lt_prog_compiler_pic_CXX
15079 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15080 allow_undefined_flag_CXX=
15081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15082 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }
15087 archive_cmds_need_lc_CXX=no
15089 archive_cmds_need_lc_CXX=yes
15091 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15093 cat conftest.err 1>&5
15096 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15097 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15167 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15170 library_names_spec=
15171 libname_spec='lib$name'
15175 postuninstall_cmds=
15179 shlibpath_overrides_runpath=unknown
15181 dynamic_linker="$host_os ld.so"
15182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15183 need_lib_prefix=unknown
15184 hardcode_into_libs=no
15186 # when you set need_version to no, make sure it does not cause -set_version
15187 # flags to be left without arguments
15188 need_version=unknown
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15194 shlibpath_var=LIBPATH
15196 # AIX 3 has no versioning support, so we append a major version to the name.
15197 soname_spec='${libname}${release}${shared_ext}$major'
15204 hardcode_into_libs=yes
15205 if test "$host_cpu" = ia64; then
15206 # AIX 5 supports IA64
15207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15208 shlibpath_var=LD_LIBRARY_PATH
15210 # With GCC up to 2.95.x, collect2 would create an import file
15211 # for dependence libraries. The import file would start with
15212 # the line `#! .'. This would cause the generated library to
15213 # depend on `.', always an invalid library. This was fixed in
15214 # development snapshots of GCC prior to 3.0.
15216 aix4 | aix4.[01] | aix4.[01].*)
15217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15222 can_build_shared=no
15226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15227 # soname into executable. Probably we can add versioning support to
15228 # collect2, so additional links can be useful in future.
15229 if test "$aix_use_runtimelinking" = yes; then
15230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15231 # instead of lib<name>.a to let people know that these are not
15232 # typical AIX shared libraries.
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235 # We preserve .a as extension for shared libraries through AIX4.2
15236 # and later when we are not doing run time linking.
15237 library_names_spec='${libname}${release}.a $libname.a'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15240 shlibpath_var=LIBPATH
15247 # Since July 2007 AmigaOS4 officially supports .so libraries.
15248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 library_names_spec='$libname.ixlibrary $libname.a'
15253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254 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'
15260 library_names_spec='${libname}${shared_ext}'
15261 dynamic_linker="$host_os ld.so"
15262 shlibpath_var=LIBRARY_PATH
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15274 # the default ld.so.conf also contains /usr/contrib/lib and
15275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15276 # libtool to hard-code these into programs
15279 cygwin* | mingw* | pw32* | cegcc*)
15280 version_type=windows
15285 case $GCC,$host_os in
15286 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15287 library_names_spec='$libname.dll.a'
15288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15289 postinstall_cmds='base_file=`basename \${file}`~
15290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15291 dldir=$destdir/`dirname \$dlpath`~
15292 test -d \$dldir || mkdir -p \$dldir~
15293 $install_prog $dir/$dlname \$dldir/$dlname~
15294 chmod a+x \$dldir/$dlname~
15295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15299 dlpath=$dir/\$dldll~
15301 shlibpath_overrides_runpath=yes
15305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15310 # MinGW DLLs use traditional 'lib' prefix
15311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15314 # It is most probably a Windows format PATH printed by
15315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15316 # path with ; separators, and with drive letters. We can handle the
15317 # drive letters (cygwin fileutils understands them), so leave them,
15318 # especially as we might pass files found there to a mingw objdump,
15319 # which wouldn't understand a cygwinified path. Ahh.
15320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15326 # pw32 DLLs use 'pw' prefix rather than 'lib'
15327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15336 dynamic_linker='Win32 ld.exe'
15337 # FIXME: first we should search . and the directory the executable is in
15341 darwin* | rhapsody*)
15342 dynamic_linker="$host_os dyld"
15343 version_type=darwin
15346 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15347 soname_spec='${libname}${release}${major}$shared_ext'
15348 shlibpath_overrides_runpath=yes
15349 shlibpath_var=DYLD_LIBRARY_PATH
15350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15368 freebsd* | dragonfly*)
15369 # DragonFly does not have aout. When/if they implement a new
15370 # versioning mechanism, adjust this.
15371 if test -x /usr/bin/objformat; then
15372 objformat=`/usr/bin/objformat`
15375 freebsd[123]*) objformat=aout ;;
15376 *) objformat=elf ;;
15379 version_type=freebsd-$objformat
15380 case $version_type in
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=yes
15396 freebsd3.[01]* | freebsdelf3.[01]*)
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15402 shlibpath_overrides_runpath=no
15403 hardcode_into_libs=yes
15405 *) # from 4.6 on, and DragonFly
15406 shlibpath_overrides_runpath=yes
15407 hardcode_into_libs=yes
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 hardcode_into_libs=yes
15422 hpux9* | hpux10* | hpux11*)
15423 # Give a soname corresponding to the major version so that dld.sl refuses to
15424 # link against other versions.
15431 hardcode_into_libs=yes
15432 dynamic_linker="$host_os dld.so"
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 if test "X$HPUX_IA64_MODE" = X32; then
15438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 hardcode_into_libs=yes
15447 dynamic_linker="$host_os dld.sl"
15448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457 dynamic_linker="$host_os dld.sl"
15458 shlibpath_var=SHLIB_PATH
15459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15465 postinstall_cmds='chmod 555 $lib'
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15480 irix5* | irix6* | nonstopux*)
15482 nonstopux*) version_type=nonstopux ;;
15484 if test "$lt_cv_prog_gnu_ld" = yes; then
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15495 irix5* | nonstopux*)
15496 libsuff= shlibsuff=
15499 case $LD in # libtool.m4 will add one of these switches to LD
15500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501 libsuff= shlibsuff= libmagic=32-bit;;
15502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503 libsuff=32 shlibsuff=N32 libmagic=N32;;
15504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506 *) libsuff= shlibsuff= libmagic=never-match;;
15510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511 shlibpath_overrides_runpath=no
15512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514 hardcode_into_libs=yes
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15522 # This must be Linux ELF.
15523 linux* | k*bsd*-gnu)
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=no
15532 # Some binutils ld are patched to set DT_RUNPATH
15533 save_LDFLAGS=$LDFLAGS
15534 save_libdir=$libdir
15535 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15536 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15561 grep -v '^ *+' conftest.er1 >conftest.err
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_cxx_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15571 shlibpath_overrides_runpath=yes
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15582 conftest$ac_exeext conftest.$ac_ext
15583 LDFLAGS=$save_LDFLAGS
15584 libdir=$save_libdir
15586 # This implies no fast_install, which is unacceptable.
15587 # Some rework will be needed to allow for fast_install
15588 # before this can be enabled.
15589 hardcode_into_libs=yes
15591 # Append ld.so.conf contents to the search path
15592 if test -f /etc/ld.so.conf; then
15593 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' ' '`
15594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15597 # We used to test for /lib/ld.so.1 and disable shared libraries on
15598 # powerpc, because MkLinux only supported shared libraries with the
15599 # GNU dynamic linker. Since this was broken with cross compilers,
15600 # most powerpc-linux boxes support dynamic linking these days and
15601 # people can always --disable-shared, the test was removed, and we
15602 # assume the GNU/Linux dynamic linker is in use.
15603 dynamic_linker='GNU/Linux ld.so'
15610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15613 dynamic_linker='NetBSD (a.out) ld.so'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 dynamic_linker='NetBSD ld.elf_so'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes
15621 hardcode_into_libs=yes
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=no
15639 hardcode_into_libs=yes
15640 dynamic_linker='ldqnx.so'
15645 sys_lib_dlsearch_path_spec="/usr/lib"
15647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15650 *) need_version=no ;;
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657 openbsd2.[89] | openbsd2.[89].*)
15658 shlibpath_overrides_runpath=no
15661 shlibpath_overrides_runpath=yes
15665 shlibpath_overrides_runpath=yes
15670 libname_spec='$name'
15673 library_names_spec='$libname${shared_ext} $libname.a'
15674 dynamic_linker='OS/2 ld.exe'
15675 shlibpath_var=LIBPATH
15678 osf3* | osf4* | osf5*)
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=yes
15701 hardcode_into_libs=yes
15702 # ldd complains unless libraries are executable
15703 postinstall_cmds='chmod +x $lib'
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes
15712 if test "$with_gnu_ld" = yes; then
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 case $host_vendor in
15725 shlibpath_overrides_runpath=no
15727 runpath_var=LD_RUN_PATH
15735 shlibpath_overrides_runpath=no
15736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15742 if test -d /usr/nec ;then
15744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15745 soname_spec='$libname${shared_ext}.$major'
15746 shlibpath_var=LD_LIBRARY_PATH
15750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15751 version_type=freebsd-elf
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 shlibpath_overrides_runpath=yes
15758 hardcode_into_libs=yes
15759 if test "$with_gnu_ld" = yes; then
15760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15769 sys_lib_dlsearch_path_spec='/usr/lib'
15773 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=no
15780 hardcode_into_libs=yes
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15794 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15795 echo "${ECHO_T}$dynamic_linker" >&6; }
15796 test "$dynamic_linker" = no && can_build_shared=no
15798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15799 if test "$GCC" = yes; then
15800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15803 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15804 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15806 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15807 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15845 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15846 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15847 hardcode_action_CXX=
15848 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15849 test -n "$runpath_var_CXX" ||
15850 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15852 # We can hardcode non-existent directories.
15853 if test "$hardcode_direct_CXX" != no &&
15854 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15855 # have to relink, otherwise we might link with an installed library
15856 # when we should be linking with a yet-to-be-installed one
15857 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15858 test "$hardcode_minus_L_CXX" != no; then
15859 # Linking always hardcodes the temporary library directory.
15860 hardcode_action_CXX=relink
15862 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15863 hardcode_action_CXX=immediate
15866 # We cannot hardcode anything, or else we can only hardcode existing
15868 hardcode_action_CXX=unsupported
15870 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15871 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15873 if test "$hardcode_action_CXX" = relink ||
15874 test "$inherit_rpath_CXX" = yes; then
15875 # Fast installation is not supported
15876 enable_fast_install=no
15877 elif test "$shlibpath_overrides_runpath" = yes ||
15878 test "$enable_shared" = no; then
15879 # Fast installation is not necessary
15880 enable_fast_install=needless
15889 fi # test -n "$compiler"
15895 with_gnu_ld=$lt_save_with_gnu_ld
15896 lt_cv_path_LDCXX=$lt_cv_path_LD
15897 lt_cv_path_LD=$lt_save_path_LD
15898 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15899 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15900 fi # test "$_lt_caught_CXX_error" != yes
15903 ac_cpp='$CPP $CPPFLAGS'
15904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15920 ac_config_commands="$ac_config_commands libtool"
15925 # Only expand once:
15930 if test x$use_libtool != xno; then
15931 DEFAULT_OBJECT_TYPE=".lo"
15932 DEFAULT_ARCHIVE_TYPE=".la"
15933 DEFAULT_SHARED_OBJECT_TYPE=".la"
15934 LIBTOOL="\$(LIBTOOL)"
15935 LIBTOOL_INSTALL_TARGET="libtool-install"
15936 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15937 LIBTOOL_CLEAN_TARGET="libtool-clean"
15938 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15940 DEFAULT_OBJECT_TYPE=".o"
15941 DEFAULT_ARCHIVE_TYPE=".a"
15942 DEFAULT_SHARED_OBJECT_TYPE=".so"
15943 LIBTOOL="# \$(LIBTOOL)"
15944 LIBTOOL_INSTALL_TARGET=""
15945 LIBTOOL_UNINSTALL_TARGET=""
15946 LIBTOOL_CLEAN_TARGET=""
15947 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15959 # Check whether --enable-includes was given.
15960 if test "${enable_includes+set}" = set; then
15961 enableval=$enable_includes;
15962 if test x$enableval = xyes; then
15963 install_includes=yes
15971 if test x$use_libtool != xno -a x$install_includes = xyes; then
15972 INCLUDE_INSTALL_TARGET="install-includes"
15973 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15975 INCLUDE_INSTALL_TARGET=""
15976 INCLUDE_UNINSTALL_TARGET=""
15982 { echo "$as_me:$LINENO: checking host system type" >&5
15983 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15984 if test "${ac_cv_host+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 if test "x$host_alias" = x; then
15988 ac_cv_host=$ac_cv_build
15990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15991 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15992 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15993 { (exit 1); exit 1; }; }
15997 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15998 echo "${ECHO_T}$ac_cv_host" >&6; }
15999 case $ac_cv_host in
16001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16002 echo "$as_me: error: invalid value of canonical host" >&2;}
16003 { (exit 1); exit 1; }; };;
16006 ac_save_IFS=$IFS; IFS='-'
16012 # Remember, the first character of IFS is used to create $*,
16013 # except with old shells:
16016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16020 *cygwin* ) CYGWIN=yes;;
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16030 HAVE_SUN_OS_FALSE='#'
16032 HAVE_SUN_OS_TRUE='#'
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_SUN_OS 1
16044 HAVE_SUN_OS_FALSE='#'
16046 HAVE_SUN_OS_TRUE='#'
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16057 HAVE_OSF1_OS_FALSE='#'
16059 HAVE_OSF1_OS_TRUE='#'
16060 HAVE_OSF1_OS_FALSE=
16062 cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_OSF1_OS 1
16071 HAVE_OSF1_OS_FALSE='#'
16073 HAVE_OSF1_OS_TRUE='#'
16074 HAVE_OSF1_OS_FALSE=
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16084 HAVE_AIX_OS_FALSE='#'
16086 HAVE_AIX_OS_TRUE='#'
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_AIX_OS 1
16098 HAVE_AIX_OS_FALSE='#'
16100 HAVE_AIX_OS_TRUE='#'
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16111 HAVE_HPUX_OS_FALSE='#'
16113 HAVE_HPUX_OS_TRUE='#'
16114 HAVE_HPUX_OS_FALSE=
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_HPUX_OS 1
16125 HAVE_HPUX_OS_FALSE='#'
16127 HAVE_HPUX_OS_TRUE='#'
16128 HAVE_HPUX_OS_FALSE=
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16137 HAVE_LINUX_OS_TRUE=
16138 HAVE_LINUX_OS_FALSE='#'
16140 HAVE_LINUX_OS_TRUE='#'
16141 HAVE_LINUX_OS_FALSE=
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_LINUX_OS 1
16151 HAVE_LINUX_OS_TRUE=
16152 HAVE_LINUX_OS_FALSE='#'
16154 HAVE_LINUX_OS_TRUE='#'
16155 HAVE_LINUX_OS_FALSE=
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16164 HAVE_FREEBSD_OS_TRUE=
16165 HAVE_FREEBSD_OS_FALSE='#'
16167 HAVE_FREEBSD_OS_TRUE='#'
16168 HAVE_FREEBSD_OS_FALSE=
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_FREEBSD_OS 1
16178 HAVE_FREEBSD_OS_TRUE=
16179 HAVE_FREEBSD_OS_FALSE='#'
16181 HAVE_FREEBSD_OS_TRUE='#'
16182 HAVE_FREEBSD_OS_FALSE=
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16191 HAVE_NETBSD_OS_TRUE=
16192 HAVE_NETBSD_OS_FALSE='#'
16194 HAVE_NETBSD_OS_TRUE='#'
16195 HAVE_NETBSD_OS_FALSE=
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_NETBSD_OS 1
16205 HAVE_NETBSD_OS_TRUE=
16206 HAVE_NETBSD_OS_FALSE='#'
16208 HAVE_NETBSD_OS_TRUE='#'
16209 HAVE_NETBSD_OS_FALSE=
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16218 HAVE_OPENBSD_OS_TRUE=
16219 HAVE_OPENBSD_OS_FALSE='#'
16221 HAVE_OPENBSD_OS_TRUE='#'
16222 HAVE_OPENBSD_OS_FALSE=
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_OPENBSD_OS 1
16232 HAVE_OPENBSD_OS_TRUE=
16233 HAVE_OPENBSD_OS_FALSE='#'
16235 HAVE_OPENBSD_OS_TRUE='#'
16236 HAVE_OPENBSD_OS_FALSE=
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16246 HAVE_BSDI_OS_FALSE='#'
16248 HAVE_BSDI_OS_TRUE='#'
16249 HAVE_BSDI_OS_FALSE=
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_BSDI_OS 1
16260 HAVE_BSDI_OS_FALSE='#'
16262 HAVE_BSDI_OS_TRUE='#'
16263 HAVE_BSDI_OS_FALSE=
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16273 HAVE_SGI_OS_FALSE='#'
16275 HAVE_SGI_OS_TRUE='#'
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_SGI_OS 1
16287 HAVE_SGI_OS_FALSE='#'
16289 HAVE_SGI_OS_TRUE='#'
16294 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16300 HAVE_IRIX_OS_FALSE='#'
16302 HAVE_IRIX_OS_TRUE='#'
16303 HAVE_IRIX_OS_FALSE=
16305 cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_IRIX_OS 1
16314 HAVE_IRIX_OS_FALSE='#'
16316 HAVE_IRIX_OS_TRUE='#'
16317 HAVE_IRIX_OS_FALSE=
16321 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16326 HAVE_DARWIN_OS_TRUE=
16327 HAVE_DARWIN_OS_FALSE='#'
16329 HAVE_DARWIN_OS_TRUE='#'
16330 HAVE_DARWIN_OS_FALSE=
16332 cat >>confdefs.h <<\_ACEOF
16333 #define HAVE_DARWIN_OS 1
16340 HAVE_DARWIN_OS_TRUE=
16341 HAVE_DARWIN_OS_FALSE='#'
16343 HAVE_DARWIN_OS_TRUE='#'
16344 HAVE_DARWIN_OS_FALSE=
16349 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16350 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16351 if test "x$DISTNAME" != "x"
16353 echo "distname set to $DISTNAME"
16354 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16381 elif test -f /etc/SuSE-release
16384 elif test -d /etc/SuSEconfig
16387 elif test -f /etc/mandrake-release
16390 elif test -f /etc/whitebox-release
16393 elif test -f /etc/redhat-release
16396 elif test -f /etc/gentoo-release
16399 elif test -f /etc/debian_version
16402 elif test -f /etc/slackware-version
16405 elif test x$host_vendor = xapple
16408 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16411 elif test -f /etc/engarde-version
16414 elif test "$CYGWIN" = yes
16417 cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_CYGWIN 1
16424 { echo "$as_me:$LINENO: result: done" >&5
16425 echo "${ECHO_T}done" >&6; }
16428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.make <<\_ACEOF
16437 @echo '@@@%%%=$(MAKE)=@@@%%%'
16439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16441 *@@@%%%=?*=@@@%%%*)
16442 eval ac_cv_prog_make_${ac_make}_set=yes;;
16444 eval ac_cv_prog_make_${ac_make}_set=no;;
16446 rm -f conftest.make
16448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16449 { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16453 { echo "$as_me:$LINENO: result: no" >&5
16454 echo "${ECHO_T}no" >&6; }
16455 SET_MAKE="MAKE=${MAKE-make}"
16461 if test -n "$ac_aux_dir"; then
16462 case "$ac_aux_dir" in
16463 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16464 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16467 if test -z "$MKINSTALLDIRS"; then
16468 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16473 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16474 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16475 # Check whether --enable-nls was given.
16476 if test "${enable_nls+set}" = set; then
16477 enableval=$enable_nls; USE_NLS=$enableval
16482 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16483 echo "${ECHO_T}$USE_NLS" >&6; }
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493 echo "#! /bin/sh" >conf$$.sh
16494 echo "exit 0" >>conf$$.sh
16496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16504 # Find out how to test for executable files. Don't use a zero-byte file,
16505 # as systems may use methods other than mode bits to determine executability.
16506 cat >conf$$.file <<_ASEOF
16510 chmod +x conf$$.file
16511 if test -x conf$$.file >/dev/null 2>&1; then
16512 ac_executable_p="test -x"
16514 ac_executable_p="test -f"
16518 # Extract the first word of "msgfmt", so it can be a program name with args.
16519 set dummy msgfmt; ac_word=$2
16520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16522 if test "${ac_cv_path_MSGFMT+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16530 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16531 for ac_dir in $PATH; do
16533 test -z "$ac_dir" && ac_dir=.
16534 for ac_exec_ext in '' $ac_executable_extensions; do
16535 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16536 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16537 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16538 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16539 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16546 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16550 MSGFMT="$ac_cv_path_MSGFMT"
16551 if test "$MSGFMT" != ":"; then
16552 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16553 echo "${ECHO_T}$MSGFMT" >&6; }
16555 { echo "$as_me:$LINENO: result: no" >&5
16556 echo "${ECHO_T}no" >&6; }
16559 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16560 set dummy gmsgfmt; ac_word=$2
16561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16563 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16575 test -z "$as_dir" && as_dir=.
16576 for ac_exec_ext in '' $ac_executable_extensions; do
16577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16586 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16590 GMSGFMT=$ac_cv_path_GMSGFMT
16591 if test -n "$GMSGFMT"; then
16592 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16593 echo "${ECHO_T}$GMSGFMT" >&6; }
16595 { echo "$as_me:$LINENO: result: no" >&5
16596 echo "${ECHO_T}no" >&6; }
16602 # Prepare PATH_SEPARATOR.
16603 # The user is always right.
16604 if test "${PATH_SEPARATOR+set}" != set; then
16605 echo "#! /bin/sh" >conf$$.sh
16606 echo "exit 0" >>conf$$.sh
16608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16616 # Find out how to test for executable files. Don't use a zero-byte file,
16617 # as systems may use methods other than mode bits to determine executability.
16618 cat >conf$$.file <<_ASEOF
16622 chmod +x conf$$.file
16623 if test -x conf$$.file >/dev/null 2>&1; then
16624 ac_executable_p="test -x"
16626 ac_executable_p="test -f"
16630 # Extract the first word of "xgettext", so it can be a program name with args.
16631 set dummy xgettext; ac_word=$2
16632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16634 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 case "$XGETTEXT" in
16639 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16643 for ac_dir in $PATH; do
16645 test -z "$ac_dir" && ac_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16648 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16649 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16650 (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
16651 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16658 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16662 XGETTEXT="$ac_cv_path_XGETTEXT"
16663 if test "$XGETTEXT" != ":"; then
16664 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16665 echo "${ECHO_T}$XGETTEXT" >&6; }
16667 { echo "$as_me:$LINENO: result: no" >&5
16668 echo "${ECHO_T}no" >&6; }
16674 # Prepare PATH_SEPARATOR.
16675 # The user is always right.
16676 if test "${PATH_SEPARATOR+set}" != set; then
16677 echo "#! /bin/sh" >conf$$.sh
16678 echo "exit 0" >>conf$$.sh
16680 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16688 # Find out how to test for executable files. Don't use a zero-byte file,
16689 # as systems may use methods other than mode bits to determine executability.
16690 cat >conf$$.file <<_ASEOF
16694 chmod +x conf$$.file
16695 if test -x conf$$.file >/dev/null 2>&1; then
16696 ac_executable_p="test -x"
16698 ac_executable_p="test -f"
16702 # Extract the first word of "msgmerge", so it can be a program name with args.
16703 set dummy msgmerge; ac_word=$2
16704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16706 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 case "$MSGMERGE" in
16711 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16714 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16715 for ac_dir in $PATH; do
16717 test -z "$ac_dir" && ac_dir=.
16718 for ac_exec_ext in '' $ac_executable_extensions; do
16719 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16720 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16721 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16722 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16729 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16733 MSGMERGE="$ac_cv_path_MSGMERGE"
16734 if test "$MSGMERGE" != ":"; then
16735 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16736 echo "${ECHO_T}$MSGMERGE" >&6; }
16738 { echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6; }
16743 if test "$GMSGFMT" != ":"; then
16744 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16745 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16748 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16749 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16750 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16755 if test "$XGETTEXT" != ":"; then
16756 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16757 (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
16760 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16761 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16767 ac_config_commands="$ac_config_commands default-1"
16771 if test "X$prefix" = "XNONE"; then
16772 acl_final_prefix="$ac_default_prefix"
16774 acl_final_prefix="$prefix"
16776 if test "X$exec_prefix" = "XNONE"; then
16777 acl_final_exec_prefix='${prefix}'
16779 acl_final_exec_prefix="$exec_prefix"
16781 acl_save_prefix="$prefix"
16782 prefix="$acl_final_prefix"
16783 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16784 prefix="$acl_save_prefix"
16787 # Check whether --with-gnu-ld was given.
16788 if test "${with_gnu_ld+set}" = set; then
16789 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16794 # Prepare PATH_SEPARATOR.
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797 echo "#! /bin/sh" >conf$$.sh
16798 echo "exit 0" >>conf$$.sh
16800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16808 if test "$GCC" = yes; then
16809 # Check if gcc -print-prog-name=ld gives a path.
16810 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16811 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16814 # gcc leaves a trailing carriage return which upsets mingw
16815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16820 # Accept absolute paths.
16821 [\\/]* | [A-Za-z]:[\\/]*)
16822 re_direlt='/[^/][^/]*/\.\./'
16823 # Canonicalize the path of ld
16824 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16826 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16828 test -z "$LD" && LD="$ac_prog"
16831 # If it fails, then pretend we aren't using GCC.
16835 # If it is relative, then search for the first ld in PATH.
16836 with_gnu_ld=unknown
16839 elif test "$with_gnu_ld" = yes; then
16840 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16843 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16846 if test "${acl_cv_path_LD+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 if test -z "$LD"; then
16850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16851 for ac_dir in $PATH; do
16852 test -z "$ac_dir" && ac_dir=.
16853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16854 acl_cv_path_LD="$ac_dir/$ac_prog"
16855 # Check to see if the program is GNU ld. I'd rather use --version,
16856 # but apparently some GNU ld's only accept -v.
16857 # Break only if it was the GNU/non-GNU ld that we prefer.
16858 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16859 *GNU* | *'with BFD'*)
16860 test "$with_gnu_ld" != no && break ;;
16862 test "$with_gnu_ld" != yes && break ;;
16868 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16872 LD="$acl_cv_path_LD"
16873 if test -n "$LD"; then
16874 { echo "$as_me:$LINENO: result: $LD" >&5
16875 echo "${ECHO_T}$LD" >&6; }
16877 { echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6; }
16880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16882 { (exit 1); exit 1; }; }
16883 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16885 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16889 case `$LD -v 2>&1 </dev/null` in
16890 *GNU* | *'with BFD'*)
16891 acl_cv_prog_gnu_ld=yes ;;
16893 acl_cv_prog_gnu_ld=no ;;
16896 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16897 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16898 with_gnu_ld=$acl_cv_prog_gnu_ld
16903 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16904 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16905 if test "${acl_cv_rpath+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16910 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16912 rm -f ./conftest.sh
16916 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16917 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16919 libext="$acl_cv_libext"
16920 shlibext="$acl_cv_shlibext"
16921 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16922 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16923 hardcode_direct="$acl_cv_hardcode_direct"
16924 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16925 # Check whether --enable-rpath was given.
16926 if test "${enable_rpath+set}" = set; then
16927 enableval=$enable_rpath; :
16941 acl_save_prefix="$prefix"
16942 prefix="$acl_final_prefix"
16943 acl_save_exec_prefix="$exec_prefix"
16944 exec_prefix="$acl_final_exec_prefix"
16946 eval additional_includedir=\"$includedir\"
16947 eval additional_libdir=\"$libdir\"
16949 exec_prefix="$acl_save_exec_prefix"
16950 prefix="$acl_save_prefix"
16953 # Check whether --with-libiconv-prefix was given.
16954 if test "${with_libiconv_prefix+set}" = set; then
16955 withval=$with_libiconv_prefix;
16956 if test "X$withval" = "Xno"; then
16959 if test "X$withval" = "X"; then
16961 acl_save_prefix="$prefix"
16962 prefix="$acl_final_prefix"
16963 acl_save_exec_prefix="$exec_prefix"
16964 exec_prefix="$acl_final_exec_prefix"
16966 eval additional_includedir=\"$includedir\"
16967 eval additional_libdir=\"$libdir\"
16969 exec_prefix="$acl_save_exec_prefix"
16970 prefix="$acl_save_prefix"
16973 additional_includedir="$withval/include"
16974 additional_libdir="$withval/lib"
16985 names_already_handled=
16986 names_next_round='iconv '
16987 while test -n "$names_next_round"; do
16988 names_this_round="$names_next_round"
16990 for name in $names_this_round; do
16992 for n in $names_already_handled; do
16993 if test "$n" = "$name"; then
16994 already_handled=yes
16998 if test -z "$already_handled"; then
16999 names_already_handled="$names_already_handled $name"
17000 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17001 eval value=\"\$HAVE_LIB$uppername\"
17002 if test -n "$value"; then
17003 if test "$value" = yes; then
17004 eval value=\"\$LIB$uppername\"
17005 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17006 eval value=\"\$LTLIB$uppername\"
17007 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17016 if test $use_additional = yes; then
17017 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17018 found_dir="$additional_libdir"
17019 found_so="$additional_libdir/lib$name.$shlibext"
17020 if test -f "$additional_libdir/lib$name.la"; then
17021 found_la="$additional_libdir/lib$name.la"
17024 if test -f "$additional_libdir/lib$name.$libext"; then
17025 found_dir="$additional_libdir"
17026 found_a="$additional_libdir/lib$name.$libext"
17027 if test -f "$additional_libdir/lib$name.la"; then
17028 found_la="$additional_libdir/lib$name.la"
17033 if test "X$found_dir" = "X"; then
17034 for x in $LDFLAGS $LTLIBICONV; do
17036 acl_save_prefix="$prefix"
17037 prefix="$acl_final_prefix"
17038 acl_save_exec_prefix="$exec_prefix"
17039 exec_prefix="$acl_final_exec_prefix"
17041 exec_prefix="$acl_save_exec_prefix"
17042 prefix="$acl_save_prefix"
17046 dir=`echo "X$x" | sed -e 's/^X-L//'`
17047 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17049 found_so="$dir/lib$name.$shlibext"
17050 if test -f "$dir/lib$name.la"; then
17051 found_la="$dir/lib$name.la"
17054 if test -f "$dir/lib$name.$libext"; then
17056 found_a="$dir/lib$name.$libext"
17057 if test -f "$dir/lib$name.la"; then
17058 found_la="$dir/lib$name.la"
17064 if test "X$found_dir" != "X"; then
17069 if test "X$found_dir" != "X"; then
17070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17071 if test "X$found_so" != "X"; then
17072 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076 for x in $ltrpathdirs; do
17077 if test "X$x" = "X$found_dir"; then
17082 if test -z "$haveit"; then
17083 ltrpathdirs="$ltrpathdirs $found_dir"
17085 if test "$hardcode_direct" = yes; then
17086 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17088 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17091 for x in $rpathdirs; do
17092 if test "X$x" = "X$found_dir"; then
17097 if test -z "$haveit"; then
17098 rpathdirs="$rpathdirs $found_dir"
17102 for x in $LDFLAGS $LIBICONV; do
17104 acl_save_prefix="$prefix"
17105 prefix="$acl_final_prefix"
17106 acl_save_exec_prefix="$exec_prefix"
17107 exec_prefix="$acl_final_exec_prefix"
17109 exec_prefix="$acl_save_exec_prefix"
17110 prefix="$acl_save_prefix"
17112 if test "X$x" = "X-L$found_dir"; then
17117 if test -z "$haveit"; then
17118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17120 if test "$hardcode_minus_L" != no; then
17121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17129 if test "X$found_a" != "X"; then
17130 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17135 additional_includedir=
17136 case "$found_dir" in
17138 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17139 additional_includedir="$basedir/include"
17142 if test "X$additional_includedir" != "X"; then
17143 if test "X$additional_includedir" != "X/usr/include"; then
17145 if test "X$additional_includedir" = "X/usr/local/include"; then
17146 if test -n "$GCC"; then
17148 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17152 if test -z "$haveit"; then
17153 for x in $CPPFLAGS $INCICONV; do
17155 acl_save_prefix="$prefix"
17156 prefix="$acl_final_prefix"
17157 acl_save_exec_prefix="$exec_prefix"
17158 exec_prefix="$acl_final_exec_prefix"
17160 exec_prefix="$acl_save_exec_prefix"
17161 prefix="$acl_save_prefix"
17163 if test "X$x" = "X-I$additional_includedir"; then
17168 if test -z "$haveit"; then
17169 if test -d "$additional_includedir"; then
17170 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17176 if test -n "$found_la"; then
17177 save_libdir="$libdir"
17178 case "$found_la" in
17179 */* | *\\*) . "$found_la" ;;
17180 *) . "./$found_la" ;;
17182 libdir="$save_libdir"
17183 for dep in $dependency_libs; do
17186 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17187 if test "X$additional_libdir" != "X/usr/lib"; then
17189 if test "X$additional_libdir" = "X/usr/local/lib"; then
17190 if test -n "$GCC"; then
17192 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17196 if test -z "$haveit"; then
17198 for x in $LDFLAGS $LIBICONV; do
17200 acl_save_prefix="$prefix"
17201 prefix="$acl_final_prefix"
17202 acl_save_exec_prefix="$exec_prefix"
17203 exec_prefix="$acl_final_exec_prefix"
17205 exec_prefix="$acl_save_exec_prefix"
17206 prefix="$acl_save_prefix"
17208 if test "X$x" = "X-L$additional_libdir"; then
17213 if test -z "$haveit"; then
17214 if test -d "$additional_libdir"; then
17215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17219 for x in $LDFLAGS $LTLIBICONV; do
17221 acl_save_prefix="$prefix"
17222 prefix="$acl_final_prefix"
17223 acl_save_exec_prefix="$exec_prefix"
17224 exec_prefix="$acl_final_exec_prefix"
17226 exec_prefix="$acl_save_exec_prefix"
17227 prefix="$acl_save_prefix"
17229 if test "X$x" = "X-L$additional_libdir"; then
17234 if test -z "$haveit"; then
17235 if test -d "$additional_libdir"; then
17236 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17243 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17244 if test "$enable_rpath" != no; then
17246 for x in $rpathdirs; do
17247 if test "X$x" = "X$dir"; then
17252 if test -z "$haveit"; then
17253 rpathdirs="$rpathdirs $dir"
17256 for x in $ltrpathdirs; do
17257 if test "X$x" = "X$dir"; then
17262 if test -z "$haveit"; then
17263 ltrpathdirs="$ltrpathdirs $dir"
17268 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17274 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17281 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17288 if test "X$rpathdirs" != "X"; then
17289 if test -n "$hardcode_libdir_separator"; then
17291 for found_dir in $rpathdirs; do
17292 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17294 acl_save_libdir="$libdir"
17296 eval flag=\"$hardcode_libdir_flag_spec\"
17297 libdir="$acl_save_libdir"
17298 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17300 for found_dir in $rpathdirs; do
17301 acl_save_libdir="$libdir"
17302 libdir="$found_dir"
17303 eval flag=\"$hardcode_libdir_flag_spec\"
17304 libdir="$acl_save_libdir"
17305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17309 if test "X$ltrpathdirs" != "X"; then
17310 for found_dir in $ltrpathdirs; do
17311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17332 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17333 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17334 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 gt_save_CPPFLAGS="$CPPFLAGS"
17338 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17339 gt_save_LIBS="$LIBS"
17340 LIBS="$LIBS -framework CoreFoundation"
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <CFPreferences.h>
17351 CFPreferencesCopyAppValue(NULL, NULL)
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 gt_cv_func_CFPreferencesCopyAppValue=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 gt_cv_func_CFPreferencesCopyAppValue=no
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 CPPFLAGS="$gt_save_CPPFLAGS"
17385 LIBS="$gt_save_LIBS"
17387 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17388 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17396 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17397 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17398 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 gt_save_CPPFLAGS="$CPPFLAGS"
17402 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17403 gt_save_LIBS="$LIBS"
17404 LIBS="$LIBS -framework CoreFoundation"
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 #include <CFLocale.h>
17415 CFLocaleCopyCurrent();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext &&
17437 $as_test_x conftest$ac_exeext; then
17438 gt_cv_func_CFLocaleCopyCurrent=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 gt_cv_func_CFLocaleCopyCurrent=no
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447 conftest$ac_exeext conftest.$ac_ext
17448 CPPFLAGS="$gt_save_CPPFLAGS"
17449 LIBS="$gt_save_LIBS"
17451 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17452 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17453 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CFLOCALECOPYCURRENT 1
17461 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17462 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17468 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17469 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17470 # Check whether --enable-nls was given.
17471 if test "${enable_nls+set}" = set; then
17472 enableval=$enable_nls; USE_NLS=$enableval
17477 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17478 echo "${ECHO_T}$USE_NLS" >&6; }
17487 if test "$USE_NLS" = "yes"; then
17488 gt_use_preinstalled_gnugettext=no
17495 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17496 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17497 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 #include <libintl.h>
17507 extern int _nl_msg_cat_cntr;
17508 extern int *_nl_domain_bindings;
17512 bindtextdomain ("", "");
17513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext &&
17535 $as_test_x conftest$ac_exeext; then
17536 gt_cv_func_gnugettext1_libc=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 gt_cv_func_gnugettext1_libc=no
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545 conftest$ac_exeext conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17550 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17556 am_save_CPPFLAGS="$CPPFLAGS"
17558 for element in $INCICONV; do
17560 for x in $CPPFLAGS; do
17562 acl_save_prefix="$prefix"
17563 prefix="$acl_final_prefix"
17564 acl_save_exec_prefix="$exec_prefix"
17565 exec_prefix="$acl_final_exec_prefix"
17567 exec_prefix="$acl_save_exec_prefix"
17568 prefix="$acl_save_prefix"
17570 if test "X$x" = "X$element"; then
17575 if test -z "$haveit"; then
17576 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17581 { echo "$as_me:$LINENO: checking for iconv" >&5
17582 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17583 if test "${am_cv_func_iconv+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 am_cv_func_iconv="no, consider installing GNU libiconv"
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 #include <stdlib.h>
17600 iconv_t cd = iconv_open("","");
17601 iconv(cd,NULL,NULL,NULL,NULL);
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 am_cv_func_iconv=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 if test "$am_cv_func_iconv" != yes; then
17636 am_save_LIBS="$LIBS"
17637 LIBS="$LIBS $LIBICONV"
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <stdlib.h>
17649 iconv_t cd = iconv_open("","");
17650 iconv(cd,NULL,NULL,NULL,NULL);
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_link") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest$ac_exeext &&
17673 $as_test_x conftest$ac_exeext; then
17674 am_cv_lib_iconv=yes
17675 am_cv_func_iconv=yes
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS="$am_save_LIBS"
17689 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17690 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17691 if test "$am_cv_func_iconv" = yes; then
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ICONV 1
17698 if test "$am_cv_lib_iconv" = yes; then
17699 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17700 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17701 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17702 echo "${ECHO_T}$LIBICONV" >&6; }
17704 CPPFLAGS="$am_save_CPPFLAGS"
17716 acl_save_prefix="$prefix"
17717 prefix="$acl_final_prefix"
17718 acl_save_exec_prefix="$exec_prefix"
17719 exec_prefix="$acl_final_exec_prefix"
17721 eval additional_includedir=\"$includedir\"
17722 eval additional_libdir=\"$libdir\"
17724 exec_prefix="$acl_save_exec_prefix"
17725 prefix="$acl_save_prefix"
17728 # Check whether --with-libintl-prefix was given.
17729 if test "${with_libintl_prefix+set}" = set; then
17730 withval=$with_libintl_prefix;
17731 if test "X$withval" = "Xno"; then
17734 if test "X$withval" = "X"; then
17736 acl_save_prefix="$prefix"
17737 prefix="$acl_final_prefix"
17738 acl_save_exec_prefix="$exec_prefix"
17739 exec_prefix="$acl_final_exec_prefix"
17741 eval additional_includedir=\"$includedir\"
17742 eval additional_libdir=\"$libdir\"
17744 exec_prefix="$acl_save_exec_prefix"
17745 prefix="$acl_save_prefix"
17748 additional_includedir="$withval/include"
17749 additional_libdir="$withval/lib"
17760 names_already_handled=
17761 names_next_round='intl '
17762 while test -n "$names_next_round"; do
17763 names_this_round="$names_next_round"
17765 for name in $names_this_round; do
17767 for n in $names_already_handled; do
17768 if test "$n" = "$name"; then
17769 already_handled=yes
17773 if test -z "$already_handled"; then
17774 names_already_handled="$names_already_handled $name"
17775 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17776 eval value=\"\$HAVE_LIB$uppername\"
17777 if test -n "$value"; then
17778 if test "$value" = yes; then
17779 eval value=\"\$LIB$uppername\"
17780 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17781 eval value=\"\$LTLIB$uppername\"
17782 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17791 if test $use_additional = yes; then
17792 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17793 found_dir="$additional_libdir"
17794 found_so="$additional_libdir/lib$name.$shlibext"
17795 if test -f "$additional_libdir/lib$name.la"; then
17796 found_la="$additional_libdir/lib$name.la"
17799 if test -f "$additional_libdir/lib$name.$libext"; then
17800 found_dir="$additional_libdir"
17801 found_a="$additional_libdir/lib$name.$libext"
17802 if test -f "$additional_libdir/lib$name.la"; then
17803 found_la="$additional_libdir/lib$name.la"
17808 if test "X$found_dir" = "X"; then
17809 for x in $LDFLAGS $LTLIBINTL; do
17811 acl_save_prefix="$prefix"
17812 prefix="$acl_final_prefix"
17813 acl_save_exec_prefix="$exec_prefix"
17814 exec_prefix="$acl_final_exec_prefix"
17816 exec_prefix="$acl_save_exec_prefix"
17817 prefix="$acl_save_prefix"
17821 dir=`echo "X$x" | sed -e 's/^X-L//'`
17822 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17824 found_so="$dir/lib$name.$shlibext"
17825 if test -f "$dir/lib$name.la"; then
17826 found_la="$dir/lib$name.la"
17829 if test -f "$dir/lib$name.$libext"; then
17831 found_a="$dir/lib$name.$libext"
17832 if test -f "$dir/lib$name.la"; then
17833 found_la="$dir/lib$name.la"
17839 if test "X$found_dir" != "X"; then
17844 if test "X$found_dir" != "X"; then
17845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17846 if test "X$found_so" != "X"; then
17847 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851 for x in $ltrpathdirs; do
17852 if test "X$x" = "X$found_dir"; then
17857 if test -z "$haveit"; then
17858 ltrpathdirs="$ltrpathdirs $found_dir"
17860 if test "$hardcode_direct" = yes; then
17861 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17863 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866 for x in $rpathdirs; do
17867 if test "X$x" = "X$found_dir"; then
17872 if test -z "$haveit"; then
17873 rpathdirs="$rpathdirs $found_dir"
17877 for x in $LDFLAGS $LIBINTL; do
17879 acl_save_prefix="$prefix"
17880 prefix="$acl_final_prefix"
17881 acl_save_exec_prefix="$exec_prefix"
17882 exec_prefix="$acl_final_exec_prefix"
17884 exec_prefix="$acl_save_exec_prefix"
17885 prefix="$acl_save_prefix"
17887 if test "X$x" = "X-L$found_dir"; then
17892 if test -z "$haveit"; then
17893 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17895 if test "$hardcode_minus_L" != no; then
17896 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17904 if test "X$found_a" != "X"; then
17905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17910 additional_includedir=
17911 case "$found_dir" in
17913 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17914 additional_includedir="$basedir/include"
17917 if test "X$additional_includedir" != "X"; then
17918 if test "X$additional_includedir" != "X/usr/include"; then
17920 if test "X$additional_includedir" = "X/usr/local/include"; then
17921 if test -n "$GCC"; then
17923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17927 if test -z "$haveit"; then
17928 for x in $CPPFLAGS $INCINTL; do
17930 acl_save_prefix="$prefix"
17931 prefix="$acl_final_prefix"
17932 acl_save_exec_prefix="$exec_prefix"
17933 exec_prefix="$acl_final_exec_prefix"
17935 exec_prefix="$acl_save_exec_prefix"
17936 prefix="$acl_save_prefix"
17938 if test "X$x" = "X-I$additional_includedir"; then
17943 if test -z "$haveit"; then
17944 if test -d "$additional_includedir"; then
17945 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17951 if test -n "$found_la"; then
17952 save_libdir="$libdir"
17953 case "$found_la" in
17954 */* | *\\*) . "$found_la" ;;
17955 *) . "./$found_la" ;;
17957 libdir="$save_libdir"
17958 for dep in $dependency_libs; do
17961 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17962 if test "X$additional_libdir" != "X/usr/lib"; then
17964 if test "X$additional_libdir" = "X/usr/local/lib"; then
17965 if test -n "$GCC"; then
17967 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17971 if test -z "$haveit"; then
17973 for x in $LDFLAGS $LIBINTL; do
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 acl_save_exec_prefix="$exec_prefix"
17978 exec_prefix="$acl_final_exec_prefix"
17980 exec_prefix="$acl_save_exec_prefix"
17981 prefix="$acl_save_prefix"
17983 if test "X$x" = "X-L$additional_libdir"; then
17988 if test -z "$haveit"; then
17989 if test -d "$additional_libdir"; then
17990 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17994 for x in $LDFLAGS $LTLIBINTL; do
17996 acl_save_prefix="$prefix"
17997 prefix="$acl_final_prefix"
17998 acl_save_exec_prefix="$exec_prefix"
17999 exec_prefix="$acl_final_exec_prefix"
18001 exec_prefix="$acl_save_exec_prefix"
18002 prefix="$acl_save_prefix"
18004 if test "X$x" = "X-L$additional_libdir"; then
18009 if test -z "$haveit"; then
18010 if test -d "$additional_libdir"; then
18011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18018 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18019 if test "$enable_rpath" != no; then
18021 for x in $rpathdirs; do
18022 if test "X$x" = "X$dir"; then
18027 if test -z "$haveit"; then
18028 rpathdirs="$rpathdirs $dir"
18031 for x in $ltrpathdirs; do
18032 if test "X$x" = "X$dir"; then
18037 if test -z "$haveit"; then
18038 ltrpathdirs="$ltrpathdirs $dir"
18043 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18049 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18050 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18063 if test "X$rpathdirs" != "X"; then
18064 if test -n "$hardcode_libdir_separator"; then
18066 for found_dir in $rpathdirs; do
18067 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18069 acl_save_libdir="$libdir"
18071 eval flag=\"$hardcode_libdir_flag_spec\"
18072 libdir="$acl_save_libdir"
18073 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18075 for found_dir in $rpathdirs; do
18076 acl_save_libdir="$libdir"
18077 libdir="$found_dir"
18078 eval flag=\"$hardcode_libdir_flag_spec\"
18079 libdir="$acl_save_libdir"
18080 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18084 if test "X$ltrpathdirs" != "X"; then
18085 for found_dir in $ltrpathdirs; do
18086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18090 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18091 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18092 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 gt_save_CPPFLAGS="$CPPFLAGS"
18096 CPPFLAGS="$CPPFLAGS $INCINTL"
18097 gt_save_LIBS="$LIBS"
18098 LIBS="$LIBS $LIBINTL"
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 #include <libintl.h>
18106 extern int _nl_msg_cat_cntr;
18111 const char *_nl_expand_alias (const char *);
18115 bindtextdomain ("", "");
18116 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_link") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && {
18135 test -z "$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 } && test -s conftest$ac_exeext &&
18138 $as_test_x conftest$ac_exeext; then
18139 gt_cv_func_gnugettext1_libintl=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 gt_cv_func_gnugettext1_libintl=no
18147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18148 conftest$ac_exeext conftest.$ac_ext
18149 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18150 LIBS="$LIBS $LIBICONV"
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include <libintl.h>
18158 extern int _nl_msg_cat_cntr;
18163 const char *_nl_expand_alias (const char *);
18167 bindtextdomain ("", "");
18168 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && {
18187 test -z "$ac_c_werror_flag" ||
18188 test ! -s conftest.err
18189 } && test -s conftest$ac_exeext &&
18190 $as_test_x conftest$ac_exeext; then
18191 LIBINTL="$LIBINTL $LIBICONV"
18192 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18193 gt_cv_func_gnugettext1_libintl=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203 conftest$ac_exeext conftest.$ac_ext
18205 CPPFLAGS="$gt_save_CPPFLAGS"
18206 LIBS="$gt_save_LIBS"
18208 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18209 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18212 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18213 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18214 && test "$PACKAGE" != gettext-runtime \
18215 && test "$PACKAGE" != gettext-tools; }; then
18216 gt_use_preinstalled_gnugettext=yes
18225 if test -n "$INTL_MACOSX_LIBS"; then
18226 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18227 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18228 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18229 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18233 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18234 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define ENABLE_NLS 1
18245 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18246 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18247 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18248 echo "${ECHO_T}$USE_NLS" >&6; }
18249 if test "$USE_NLS" = "yes"; then
18250 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18251 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18252 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18253 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18254 gt_source="external libintl"
18259 gt_source="included intl directory"
18261 { echo "$as_me:$LINENO: result: $gt_source" >&5
18262 echo "${ECHO_T}$gt_source" >&6; }
18265 if test "$USE_NLS" = "yes"; then
18267 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18268 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18269 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18270 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18271 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18272 echo "${ECHO_T}$LIBINTL" >&6; }
18274 for element in $INCINTL; do
18276 for x in $CPPFLAGS; do
18278 acl_save_prefix="$prefix"
18279 prefix="$acl_final_prefix"
18280 acl_save_exec_prefix="$exec_prefix"
18281 exec_prefix="$acl_final_exec_prefix"
18283 exec_prefix="$acl_save_exec_prefix"
18284 prefix="$acl_save_prefix"
18286 if test "X$x" = "X$element"; then
18291 if test -z "$haveit"; then
18292 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_GETTEXT 1
18304 cat >>confdefs.h <<\_ACEOF
18305 #define HAVE_DCGETTEXT 1
18315 INTLLIBS="$LIBINTL"
18323 os_name=`uname -s 2>/dev/null`
18324 if test x${prefix} = xNONE ; then
18325 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18326 sysconfdir=/etc/bacula
18329 if test `eval echo ${libdir}` = NONE/lib ; then
18332 os_processor=`uname -p 2>/dev/null`
18333 case ${os_processor} in
18348 if test `eval echo ${includedir}` = NONE/include ; then
18349 includedir=/usr/include
18352 if test `eval echo ${datarootdir}` = NONE/share ; then
18353 datarootdir=/usr/share
18358 if test x${exec_prefix} = xNONE ; then
18359 exec_prefix=${prefix}
18362 sysconfdir=`eval echo ${sysconfdir}`
18363 datarootdir=`eval echo ${datarootdir}`
18364 docdir=`eval echo ${docdir}`
18365 htmldir=`eval echo ${htmldir}`
18366 libdir=`eval echo ${libdir}`
18367 includedir=`eval echo ${includedir}`
18368 localedir=`eval echo ${datarootdir}/locale`
18369 cat >>confdefs.h <<_ACEOF
18370 #define SYSCONFDIR "$sysconfdir"
18373 cat >>confdefs.h <<_ACEOF
18374 #define LOCALEDIR "$localedir"
18378 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18379 sbindir=${exec_prefix}/sbin
18381 sbindir=`eval echo ${sbindir}`
18383 if test x$mandir = x'${prefix}/man' ; then
18384 mandir=/usr/share/man
18387 if test x$htmldir = x${docdir} ; then
18388 htmldir=`eval echo ${docdir}bacula/html`
18391 if test x$docdir = x'/usr/share/doc/' ; then
18392 docdir=`eval echo ${docdir}bacula`
18396 for ac_prog in msgfmt
18398 # Extract the first word of "$ac_prog", so it can be a program name with args.
18399 set dummy $ac_prog; ac_word=$2
18400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18402 if test "${ac_cv_path_MSGFMT+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411 for as_dir in $PATH
18414 test -z "$as_dir" && as_dir=.
18415 for ac_exec_ext in '' $ac_executable_extensions; do
18416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18417 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18428 MSGFMT=$ac_cv_path_MSGFMT
18429 if test -n "$MSGFMT"; then
18430 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18431 echo "${ECHO_T}$MSGFMT" >&6; }
18433 { echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6; }
18438 test -n "$MSGFMT" && break
18440 test -n "$MSGFMT" || MSGFMT="no"
18442 if test "$MSGFMT" = "no"
18444 echo 'msgfmt program not found, disabling NLS !'
18446 USE_INCLUDED_LIBINTL=no
18449 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18450 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18451 if test "${ac_cv_gnu_library_2+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 cat >conftest.$ac_ext <<_ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18461 #include <features.h>
18462 #ifdef __GNU_LIBRARY__
18463 #if (__GLIBC__ >= 2)
18469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18470 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18471 ac_cv_gnu_library_2=yes
18473 ac_cv_gnu_library_2=no
18480 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18481 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18483 GLIBC2="$ac_cv_gnu_library_2"
18486 if test -n "$ac_tool_prefix"; then
18487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18491 if test "${ac_cv_prog_RANLIB+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 if test -n "$RANLIB"; then
18495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498 for as_dir in $PATH
18501 test -z "$as_dir" && as_dir=.
18502 for ac_exec_ext in '' $ac_executable_extensions; do
18503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18514 RANLIB=$ac_cv_prog_RANLIB
18515 if test -n "$RANLIB"; then
18516 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18517 echo "${ECHO_T}$RANLIB" >&6; }
18519 { echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6; }
18525 if test -z "$ac_cv_prog_RANLIB"; then
18526 ac_ct_RANLIB=$RANLIB
18527 # Extract the first word of "ranlib", so it can be a program name with args.
18528 set dummy ranlib; ac_word=$2
18529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 if test -n "$ac_ct_RANLIB"; then
18535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538 for as_dir in $PATH
18541 test -z "$as_dir" && as_dir=.
18542 for ac_exec_ext in '' $ac_executable_extensions; do
18543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18544 ac_cv_prog_ac_ct_RANLIB="ranlib"
18545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18555 if test -n "$ac_ct_RANLIB"; then
18556 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18557 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18559 { echo "$as_me:$LINENO: result: no" >&5
18560 echo "${ECHO_T}no" >&6; }
18563 if test "x$ac_ct_RANLIB" = x; then
18566 case $cross_compiling:$ac_tool_warned in
18568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18569 whose name does not start with the host triplet. If you think this
18570 configuration is useful to you, please write to autoconf@gnu.org." >&5
18571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18572 whose name does not start with the host triplet. If you think this
18573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18574 ac_tool_warned=yes ;;
18576 RANLIB=$ac_ct_RANLIB
18579 RANLIB="$ac_cv_prog_RANLIB"
18583 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18584 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lcposix $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18607 return strerror ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18630 ac_cv_lib_cposix_strerror=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_cposix_strerror=no
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18643 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18644 if test $ac_cv_lib_cposix_strerror = yes; then
18645 LIBS="$LIBS -lcposix"
18650 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18651 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18652 if test "${ac_cv_c_const+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18665 /* FIXME: Include the comments suggested by Paul. */
18666 #ifndef __cplusplus
18667 /* Ultrix mips cc rejects this. */
18668 typedef int charset[2];
18670 /* SunOS 4.1.1 cc rejects this. */
18671 char const *const *pcpcc;
18673 /* NEC SVR4.0.2 mips cc rejects this. */
18674 struct point {int x, y;};
18675 static struct point const zero = {0,0};
18676 /* AIX XL C 1.02.0.0 rejects this.
18677 It does not let you subtract one const X* pointer from another in
18678 an arm of an if-expression whose if-part is not a constant
18680 const char *g = "string";
18681 pcpcc = &g + (g ? g-g : 0);
18682 /* HPUX 7.0 cc rejects these. */
18684 ppc = (char**) pcpcc;
18685 pcpcc = (char const *const *) ppc;
18686 { /* SCO 3.2v4 cc rejects this. */
18688 char const *s = 0 ? (char *) 0 : (char const *) 0;
18693 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18694 int x[] = {25, 17};
18695 const int *foo = &x[0];
18698 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18699 typedef const int *iptr;
18703 { /* AIX XL C 1.02.0.0 rejects this saying
18704 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18705 struct s { int j; const int *ap[3]; };
18706 struct s *b; b->j = 5;
18708 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18709 const int foo = 10;
18710 if (!foo) return 0;
18712 return !cs[0] && !zero.x;
18719 rm -f conftest.$ac_objext
18720 if { (ac_try="$ac_compile"
18721 case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_compile") 2>conftest.er1
18728 grep -v '^ *+' conftest.er1 >conftest.err
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && {
18733 test -z "$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 } && test -s conftest.$ac_objext; then
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18747 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18748 if test $ac_cv_c_const = no; then
18750 cat >>confdefs.h <<\_ACEOF
18757 { echo "$as_me:$LINENO: checking for signed" >&5
18758 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18759 if test "${bh_cv_c_signed+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18777 rm -f conftest.$ac_objext
18778 if { (ac_try="$ac_compile"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_compile") 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest.$ac_objext; then
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18805 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18806 if test $bh_cv_c_signed = no; then
18808 cat >>confdefs.h <<\_ACEOF
18814 { echo "$as_me:$LINENO: checking for inline" >&5
18815 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18816 if test "${ac_cv_c_inline+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 for ac_kw in inline __inline__ __inline; do
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 #ifndef __cplusplus
18829 static $ac_kw foo_t static_foo () {return 0; }
18830 $ac_kw foo_t foo () {return 0; }
18834 rm -f conftest.$ac_objext
18835 if { (ac_try="$ac_compile"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_compile") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest.$ac_objext; then
18851 ac_cv_c_inline=$ac_kw
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18860 test "$ac_cv_c_inline" != no && break
18864 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18865 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18868 case $ac_cv_c_inline in
18871 case $ac_cv_c_inline in
18873 *) ac_val=$ac_cv_c_inline;;
18875 cat >>confdefs.h <<_ACEOF
18876 #ifndef __cplusplus
18877 #define inline $ac_val
18883 { echo "$as_me:$LINENO: checking for off_t" >&5
18884 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18885 if test "${ac_cv_type_off_t+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 $ac_includes_default
18895 typedef off_t ac__type_new_;
18899 if ((ac__type_new_ *) 0)
18901 if (sizeof (ac__type_new_))
18907 rm -f conftest.$ac_objext
18908 if { (ac_try="$ac_compile"
18909 case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_compile") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } && {
18921 test -z "$ac_c_werror_flag" ||
18922 test ! -s conftest.err
18923 } && test -s conftest.$ac_objext; then
18924 ac_cv_type_off_t=yes
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18929 ac_cv_type_off_t=no
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18935 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18936 if test $ac_cv_type_off_t = yes; then
18940 cat >>confdefs.h <<_ACEOF
18941 #define off_t long int
18946 { echo "$as_me:$LINENO: checking for size_t" >&5
18947 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18948 if test "${ac_cv_type_size_t+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 $ac_includes_default
18958 typedef size_t ac__type_new_;
18962 if ((ac__type_new_ *) 0)
18964 if (sizeof (ac__type_new_))
18970 rm -f conftest.$ac_objext
18971 if { (ac_try="$ac_compile"
18972 case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_compile") 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && {
18984 test -z "$ac_c_werror_flag" ||
18985 test ! -s conftest.err
18986 } && test -s conftest.$ac_objext; then
18987 ac_cv_type_size_t=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_type_size_t=no
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18998 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18999 if test $ac_cv_type_size_t = yes; then
19003 cat >>confdefs.h <<_ACEOF
19004 #define size_t unsigned int
19010 { echo "$as_me:$LINENO: checking for long long" >&5
19011 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19012 if test "${ac_cv_type_long_long+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 long long ll = 1LL; int i = 63;
19025 long long llmax = (long long) -1;
19026 return ll << i | ll >> i | llmax / ll | llmax % ll;
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 ac_cv_type_long_long=yes
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_cv_type_long_long=no
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19060 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19061 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19062 if test $ac_cv_type_long_long = yes; then
19064 cat >>confdefs.h <<\_ACEOF
19065 #define HAVE_LONG_LONG 1
19071 { echo "$as_me:$LINENO: checking for long double" >&5
19072 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19073 if test "${gt_cv_c_long_double+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 if test "$GCC" = yes; then
19077 gt_cv_c_long_double=yes
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19087 long double foo = 0.0;
19088 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19089 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 gt_cv_c_long_double=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 gt_cv_c_long_double=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19128 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19129 if test $gt_cv_c_long_double = yes; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_LONG_DOUBLE 1
19138 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19139 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19140 if test "${gt_cv_c_wchar_t+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <stddef.h>
19150 wchar_t foo = (wchar_t)'\0';
19159 rm -f conftest.$ac_objext
19160 if { (ac_try="$ac_compile"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_compile") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest.$ac_objext; then
19176 gt_cv_c_wchar_t=yes
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19187 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19188 if test $gt_cv_c_wchar_t = yes; then
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE_WCHAR_T 1
19197 { echo "$as_me:$LINENO: checking for wint_t" >&5
19198 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19199 if test "${gt_cv_c_wint_t+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19209 wint_t foo = (wchar_t)'\0';
19218 rm -f conftest.$ac_objext
19219 if { (ac_try="$ac_compile"
19220 case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_compile") 2>conftest.er1
19227 grep -v '^ *+' conftest.er1 >conftest.err
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } && {
19232 test -z "$ac_c_werror_flag" ||
19233 test ! -s conftest.err
19234 } && test -s conftest.$ac_objext; then
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19246 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19247 if test $gt_cv_c_wint_t = yes; then
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_WINT_T 1
19256 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19257 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19258 if test "${gl_cv_header_inttypes_h+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 cat >conftest.$ac_ext <<_ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 #include <sys/types.h>
19268 #include <inttypes.h>
19272 uintmax_t i = (uintmax_t) -1;
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_compile") 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } && {
19291 test -z "$ac_c_werror_flag" ||
19292 test ! -s conftest.err
19293 } && test -s conftest.$ac_objext; then
19294 gl_cv_header_inttypes_h=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 gl_cv_header_inttypes_h=no
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19305 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19306 if test $gl_cv_header_inttypes_h = yes; then
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19315 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19316 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19317 if test "${gl_cv_header_stdint_h+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19326 #include <sys/types.h>
19327 #include <stdint.h>
19331 uintmax_t i = (uintmax_t) -1;
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.$ac_objext; then
19353 gl_cv_header_stdint_h=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 gl_cv_header_stdint_h=no
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19364 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19365 if test $gl_cv_header_stdint_h = yes; then
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_STDINT_H_WITH_UINTMAX 1
19376 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19377 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19378 if test "${gt_cv_c_intmax_t+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 #include <stddef.h>
19389 #include <stdlib.h>
19390 #if HAVE_STDINT_H_WITH_UINTMAX
19391 #include <stdint.h>
19393 #if HAVE_INTTYPES_H_WITH_UINTMAX
19394 #include <inttypes.h>
19405 rm -f conftest.$ac_objext
19406 if { (ac_try="$ac_compile"
19407 case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_compile") 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && {
19419 test -z "$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 } && test -s conftest.$ac_objext; then
19422 gt_cv_c_intmax_t=yes
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 gt_cv_c_intmax_t=no
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19433 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19434 if test $gt_cv_c_intmax_t = yes; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_INTMAX_T 1
19444 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19445 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19446 if test "${gt_cv_func_printf_posix+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 if test "$cross_compiling" = yes; then
19452 cat >conftest.$ac_ext <<_ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19459 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19465 $EGREP "notposix" >/dev/null 2>&1; then
19466 gt_cv_func_printf_posix="guessing no"
19468 gt_cv_func_printf_posix="guessing yes"
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19482 #include <string.h>
19483 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19484 dollar expansion (possibly an autoconf bug). */
19485 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19486 static char buf[100];
19489 sprintf (buf, format, 33, 55);
19490 return (strcmp (buf, "55 33") != 0);
19493 rm -f conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504 { (case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_try") 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 gt_cv_func_printf_posix=yes
19515 echo "$as_me: program exited with status $ac_status" >&5
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 ( exit $ac_status )
19520 gt_cv_func_printf_posix=no
19522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19528 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19529 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19530 case $gt_cv_func_printf_posix in
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_POSIX_PRINTF 1
19540 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19541 # for constant arguments. Useless!
19542 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19543 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19544 if test "${ac_cv_working_alloca_h+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <alloca.h>
19557 char *p = (char *) alloca (2 * sizeof (int));
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_link") 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest$ac_exeext &&
19580 $as_test_x conftest$ac_exeext; then
19581 ac_cv_working_alloca_h=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_cv_working_alloca_h=no
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590 conftest$ac_exeext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19593 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19594 if test $ac_cv_working_alloca_h = yes; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_ALLOCA_H 1
19602 { echo "$as_me:$LINENO: checking for alloca" >&5
19603 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19604 if test "${ac_cv_func_alloca_works+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 # define alloca __builtin_alloca
19617 # include <malloc.h>
19618 # define alloca _alloca
19620 # ifdef HAVE_ALLOCA_H
19621 # include <alloca.h>
19626 # ifndef alloca /* predefined by HP cc +Olibcalls */
19637 char *p = (char *) alloca (1);
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_link") 2>conftest.er1
19652 grep -v '^ *+' conftest.er1 >conftest.err
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest$ac_exeext &&
19660 $as_test_x conftest$ac_exeext; then
19661 ac_cv_func_alloca_works=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_func_alloca_works=no
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19672 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19673 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19675 if test $ac_cv_func_alloca_works = yes; then
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ALLOCA 1
19682 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19683 # that cause trouble. Some versions do not even contain alloca or
19684 # contain a buggy version. If you still want to use their alloca,
19685 # use ar to extract alloca.o from them instead of compiling alloca.c.
19687 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19689 cat >>confdefs.h <<\_ACEOF
19694 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19695 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19696 if test "${ac_cv_os_cray+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #if defined CRAY && ! defined CRAY2
19712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19713 $EGREP "webecray" >/dev/null 2>&1; then
19721 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19722 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19723 if test $ac_cv_os_cray = yes; then
19724 for ac_func in _getb67 GETB67 getb67; do
19725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739 #define $ac_func innocuous_$ac_func
19741 /* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char $ac_func (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19747 # include <limits.h>
19749 # include <assert.h>
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19761 /* The GNU C library defines this for functions which it implements
19762 to always fail with ENOSYS. Some functions are actually named
19763 something starting with __ and the normal name is an alias. */
19764 #if defined __stub_$ac_func || defined __stub___$ac_func
19771 return $ac_func ();
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 eval "$as_ac_var=yes"
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 eval "$as_ac_var=no"
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19805 ac_res=`eval echo '${'$as_ac_var'}'`
19806 { echo "$as_me:$LINENO: result: $ac_res" >&5
19807 echo "${ECHO_T}$ac_res" >&6; }
19808 if test `eval echo '${'$as_ac_var'}'` = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19820 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19821 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19822 if test "${ac_cv_c_stack_direction+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 if test "$cross_compiling" = yes; then
19826 ac_cv_c_stack_direction=0
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 $ac_includes_default
19836 find_stack_direction ()
19838 static char *addr = 0;
19843 return find_stack_direction ();
19846 return (&dummy > addr) ? 1 : -1;
19852 return find_stack_direction () < 0;
19855 rm -f conftest$ac_exeext
19856 if { (ac_try="$ac_link"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_link") 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19866 { (case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_try") 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_c_stack_direction=1
19877 echo "$as_me: program exited with status $ac_status" >&5
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ( exit $ac_status )
19882 ac_cv_c_stack_direction=-1
19884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19890 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19892 cat >>confdefs.h <<_ACEOF
19893 #define STACK_DIRECTION $ac_cv_c_stack_direction
19901 for ac_header in stdlib.h unistd.h
19903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 ac_res=`eval echo '${'$as_ac_Header'}'`
19911 { echo "$as_me:$LINENO: result: $ac_res" >&5
19912 echo "${ECHO_T}$ac_res" >&6; }
19914 # Is the header compilable?
19915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 $ac_includes_default
19924 #include <$ac_header>
19926 rm -f conftest.$ac_objext
19927 if { (ac_try="$ac_compile"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_compile") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest.$ac_objext; then
19943 ac_header_compiler=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6; }
19955 # Is the header present?
19956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <$ac_header>
19966 if { (ac_try="$ac_cpp conftest.$ac_ext"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19974 grep -v '^ *+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } >/dev/null && {
19979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19980 test ! -s conftest.err
19982 ac_header_preproc=yes
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6; }
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc=yes
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 eval "$as_ac_Header=\$ac_header_preproc"
20026 ac_res=`eval echo '${'$as_ac_Header'}'`
20027 { echo "$as_me:$LINENO: result: $ac_res" >&5
20028 echo "${ECHO_T}$ac_res" >&6; }
20031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20032 cat >>confdefs.h <<_ACEOF
20033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20041 for ac_func in getpagesize
20043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20057 #define $ac_func innocuous_$ac_func
20059 /* System header to define __stub macros and hopefully few prototypes,
20060 which can conflict with char $ac_func (); below.
20061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062 <limits.h> exists even on freestanding compilers. */
20065 # include <limits.h>
20067 # include <assert.h>
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20079 /* The GNU C library defines this for functions which it implements
20080 to always fail with ENOSYS. Some functions are actually named
20081 something starting with __ and the normal name is an alias. */
20082 #if defined __stub_$ac_func || defined __stub___$ac_func
20089 return $ac_func ();
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20112 eval "$as_ac_var=yes"
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 eval "$as_ac_var=no"
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20123 ac_res=`eval echo '${'$as_ac_var'}'`
20124 { echo "$as_me:$LINENO: result: $ac_res" >&5
20125 echo "${ECHO_T}$ac_res" >&6; }
20126 if test `eval echo '${'$as_ac_var'}'` = yes; then
20127 cat >>confdefs.h <<_ACEOF
20128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20134 { echo "$as_me:$LINENO: checking for working mmap" >&5
20135 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20136 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 if test "$cross_compiling" = yes; then
20140 ac_cv_func_mmap_fixed_mapped=no
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 $ac_includes_default
20149 /* malloc might have been renamed as rpl_malloc. */
20152 /* Thanks to Mike Haertel and Jim Avera for this test.
20153 Here is a matrix of mmap possibilities:
20154 mmap private not fixed
20155 mmap private fixed at somewhere currently unmapped
20156 mmap private fixed at somewhere already mapped
20157 mmap shared not fixed
20158 mmap shared fixed at somewhere currently unmapped
20159 mmap shared fixed at somewhere already mapped
20160 For private mappings, we should verify that changes cannot be read()
20161 back from the file, nor mmap's back from the file at a different
20162 address. (There have been systems where private was not correctly
20163 implemented like the infamous i386 svr4.0, and systems where the
20164 VM page cache was not coherent with the file system buffer cache
20165 like early versions of FreeBSD and possibly contemporary NetBSD.)
20166 For shared mappings, we should conversely verify that changes get
20167 propagated back to all the places they're supposed to be.
20169 Grep wants private fixed already mapped.
20170 The main things grep needs to know about mmap are:
20171 * does it exist and is it safe to write into the mmap'd area
20172 * how to use it (BSD variants) */
20175 #include <sys/mman.h>
20177 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20181 /* This mess was copied from the GNU getpagesize.h. */
20182 #ifndef HAVE_GETPAGESIZE
20183 /* Assume that all systems that can run configure have sys/param.h. */
20184 # ifndef HAVE_SYS_PARAM_H
20185 # define HAVE_SYS_PARAM_H 1
20188 # ifdef _SC_PAGESIZE
20189 # define getpagesize() sysconf(_SC_PAGESIZE)
20190 # else /* no _SC_PAGESIZE */
20191 # ifdef HAVE_SYS_PARAM_H
20192 # include <sys/param.h>
20193 # ifdef EXEC_PAGESIZE
20194 # define getpagesize() EXEC_PAGESIZE
20195 # else /* no EXEC_PAGESIZE */
20197 # define getpagesize() NBPG * CLSIZE
20200 # endif /* no CLSIZE */
20201 # else /* no NBPG */
20203 # define getpagesize() NBPC
20204 # else /* no NBPC */
20206 # define getpagesize() PAGESIZE
20207 # endif /* PAGESIZE */
20208 # endif /* no NBPC */
20209 # endif /* no NBPG */
20210 # endif /* no EXEC_PAGESIZE */
20211 # else /* no HAVE_SYS_PARAM_H */
20212 # define getpagesize() 8192 /* punt totally */
20213 # endif /* no HAVE_SYS_PARAM_H */
20214 # endif /* no _SC_PAGESIZE */
20216 #endif /* no HAVE_GETPAGESIZE */
20221 char *data, *data2, *data3;
20225 pagesize = getpagesize ();
20227 /* First, make a file with some known garbage in it. */
20228 data = (char *) malloc (pagesize);
20231 for (i = 0; i < pagesize; ++i)
20232 *(data + i) = rand ();
20234 fd = creat ("conftest.mmap", 0600);
20237 if (write (fd, data, pagesize) != pagesize)
20241 /* Next, try to mmap the file at a fixed address which already has
20242 something else allocated at it. If we can, also make sure that
20243 we see the same garbage. */
20244 fd = open ("conftest.mmap", O_RDWR);
20247 data2 = (char *) malloc (2 * pagesize);
20250 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20251 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20252 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20254 for (i = 0; i < pagesize; ++i)
20255 if (*(data + i) != *(data2 + i))
20258 /* Finally, make sure that changes to the mapped area do not
20259 percolate back to the file as seen by read(). (This is a bug on
20260 some variants of i386 svr4.0.) */
20261 for (i = 0; i < pagesize; ++i)
20262 *(data2 + i) = *(data2 + i) + 1;
20263 data3 = (char *) malloc (pagesize);
20266 if (read (fd, data3, pagesize) != pagesize)
20268 for (i = 0; i < pagesize; ++i)
20269 if (*(data + i) != *(data3 + i))
20275 rm -f conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_link") 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20286 { (case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291 (eval "$ac_try") 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_cv_func_mmap_fixed_mapped=yes
20297 echo "$as_me: program exited with status $ac_status" >&5
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ( exit $ac_status )
20302 ac_cv_func_mmap_fixed_mapped=no
20304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20310 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20311 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_MMAP 1
20318 rm -f conftest.mmap
20321 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20322 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20323 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 #include <features.h>
20334 #ifdef __GNU_LIBRARY__
20335 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20343 ac_cv_gnu_library_2_1=yes
20345 ac_cv_gnu_library_2_1=no
20352 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20353 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20355 GLIBC21="$ac_cv_gnu_library_2_1"
20360 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20361 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20362 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 if test "$cross_compiling" = yes; then
20368 # Guess based on the CPU.
20369 case "$host_cpu" in
20370 alpha* | i3456786 | m68k | s390*)
20371 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20373 gt_cv_int_divbyzero_sigfpe="guessing no";;
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 #include <stdlib.h>
20385 #include <signal.h>
20389 sigfpe_handler (int sig)
20391 sigfpe_handler (sig) int sig;
20394 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20395 exit (sig != SIGFPE);
20405 signal (SIGFPE, sigfpe_handler);
20406 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20407 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20408 signal (SIGTRAP, sigfpe_handler);
20410 /* Linux/SPARC yields signal SIGILL. */
20411 #if defined (__sparc__) && defined (__linux__)
20412 signal (SIGILL, sigfpe_handler);
20421 rm -f conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 gt_cv_int_divbyzero_sigfpe=yes
20443 echo "$as_me: program exited with status $ac_status" >&5
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ( exit $ac_status )
20448 gt_cv_int_divbyzero_sigfpe=no
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20457 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20458 case "$gt_cv_int_divbyzero_sigfpe" in
20463 cat >>confdefs.h <<_ACEOF
20464 #define INTDIV0_RAISES_SIGFPE $value
20469 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20470 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20471 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 unsigned long long ull = 1ULL; int i = 63;
20484 unsigned long long ullmax = (unsigned long long) -1;
20485 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 ac_cv_type_unsigned_long_long=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_type_unsigned_long_long=no
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20520 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20521 if test $ac_cv_type_unsigned_long_long = yes; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_UNSIGNED_LONG_LONG 1
20532 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20534 test $ac_cv_type_unsigned_long_long = yes \
20535 && ac_type='unsigned long long' \
20536 || ac_type='unsigned long'
20538 cat >>confdefs.h <<_ACEOF
20539 #define uintmax_t $ac_type
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_UINTMAX_T 1
20551 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20552 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20553 if test "${gt_cv_header_inttypes_h+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 #include <sys/types.h>
20564 #include <inttypes.h>
20573 rm -f conftest.$ac_objext
20574 if { (ac_try="$ac_compile"
20575 case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_compile") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest.$ac_objext; then
20590 gt_cv_header_inttypes_h=yes
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 gt_cv_header_inttypes_h=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20602 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20603 if test $gt_cv_header_inttypes_h = yes; then
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_INTTYPES_H 1
20613 if test $gt_cv_header_inttypes_h = yes; then
20614 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20615 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20616 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20617 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 #include <inttypes.h>
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest.$ac_objext; then
20656 gt_cv_inttypes_pri_broken=no
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 gt_cv_inttypes_pri_broken=yes
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20668 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20670 if test "$gt_cv_inttypes_pri_broken" = yes; then
20672 cat >>confdefs.h <<_ACEOF
20673 #define PRI_MACROS_BROKEN 1
20680 for ac_header in stdint.h
20682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 ac_res=`eval echo '${'$as_ac_Header'}'`
20690 { echo "$as_me:$LINENO: result: $ac_res" >&5
20691 echo "${ECHO_T}$ac_res" >&6; }
20693 # Is the header compilable?
20694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 $ac_includes_default
20703 #include <$ac_header>
20705 rm -f conftest.$ac_objext
20706 if { (ac_try="$ac_compile"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1 >conftest.err
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_header_compiler=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_compiler=no
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732 echo "${ECHO_T}$ac_header_compiler" >&6; }
20734 # Is the header present?
20735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #include <$ac_header>
20745 if { (ac_try="$ac_cpp conftest.$ac_ext"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } >/dev/null && {
20758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20761 ac_header_preproc=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_header_preproc=no
20769 rm -f conftest.err conftest.$ac_ext
20770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20771 echo "${ECHO_T}$ac_header_preproc" >&6; }
20773 # So? What about this header?
20774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20780 ac_header_preproc=yes
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 eval "$as_ac_Header=\$ac_header_preproc"
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20811 cat >>confdefs.h <<_ACEOF
20812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20819 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20820 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 #include <limits.h>
20831 #include <stdint.h>
20838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20839 $EGREP "Found it" >/dev/null 2>&1; then
20844 if test -z "$result"; then
20845 if test "$cross_compiling" = yes; then
20846 # Depending upon the size, compute the lo and hi bounds.
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <stddef.h>
20857 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #include <stddef.h>
20893 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_compile") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest.$ac_objext; then
20917 ac_hi=$ac_mid; break
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_lo=`expr $ac_mid + 1`
20923 if test $ac_lo -le $ac_mid; then
20927 ac_mid=`expr 2 '*' $ac_mid + 1`
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 #include <stddef.h>
20946 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 #include <stddef.h>
20982 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest.$ac_objext; then
21006 ac_lo=$ac_mid; break
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_hi=`expr '(' $ac_mid ')' - 1`
21012 if test $ac_mid -le $ac_hi; then
21016 ac_mid=`expr 2 '*' $ac_mid`
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 # Binary search between lo and hi bounds.
21033 while test "x$ac_lo" != "x$ac_hi"; do
21034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <stddef.h>
21045 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21052 rm -f conftest.$ac_objext
21053 if { (ac_try="$ac_compile"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_compile") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest.$ac_objext; then
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_lo=`expr '(' $ac_mid ')' + 1`
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 ?*) res_hi=$ac_lo;;
21084 cat >conftest.$ac_ext <<_ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090 #include <stddef.h>
21091 static long int longval () { return ~(size_t)0 / 10; }
21092 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21094 #include <stdlib.h>
21099 FILE *f = fopen ("conftest.val", "w");
21102 if ((~(size_t)0 / 10) < 0)
21104 long int i = longval ();
21105 if (i != (~(size_t)0 / 10))
21107 fprintf (f, "%ld\n", i);
21111 unsigned long int i = ulongval ();
21112 if (i != (~(size_t)0 / 10))
21114 fprintf (f, "%lu\n", i);
21116 return ferror (f) || fclose (f) != 0;
21122 rm -f conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_link") 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21133 { (case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_try") 2>&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 res_hi=`cat conftest.val`
21144 echo "$as_me: program exited with status $ac_status" >&5
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ( exit $ac_status )
21151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21155 if test "$cross_compiling" = yes; then
21156 # Depending upon the size, compute the lo and hi bounds.
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <stddef.h>
21167 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_compile") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest.$ac_objext; then
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <stddef.h>
21203 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && {
21224 test -z "$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 } && test -s conftest.$ac_objext; then
21227 ac_hi=$ac_mid; break
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ac_lo=`expr $ac_mid + 1`
21233 if test $ac_lo -le $ac_mid; then
21237 ac_mid=`expr 2 '*' $ac_mid + 1`
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 cat >conftest.$ac_ext <<_ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 #include <stddef.h>
21256 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 #include <stddef.h>
21292 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21308 grep -v '^ *+' conftest.er1 >conftest.err
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.$ac_objext; then
21316 ac_lo=$ac_mid; break
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 ac_hi=`expr '(' $ac_mid ')' - 1`
21322 if test $ac_mid -le $ac_hi; then
21326 ac_mid=`expr 2 '*' $ac_mid`
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 # Binary search between lo and hi bounds.
21343 while test "x$ac_lo" != "x$ac_hi"; do
21344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21345 cat >conftest.$ac_ext <<_ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 #include <stddef.h>
21355 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_lo=`expr '(' $ac_mid ')' + 1`
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 ?*) res_lo=$ac_lo;;
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <stddef.h>
21401 static long int longval () { return ~(size_t)0 % 10; }
21402 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21404 #include <stdlib.h>
21409 FILE *f = fopen ("conftest.val", "w");
21412 if ((~(size_t)0 % 10) < 0)
21414 long int i = longval ();
21415 if (i != (~(size_t)0 % 10))
21417 fprintf (f, "%ld\n", i);
21421 unsigned long int i = ulongval ();
21422 if (i != (~(size_t)0 % 10))
21424 fprintf (f, "%lu\n", i);
21426 return ferror (f) || fclose (f) != 0;
21432 rm -f conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_link") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21443 { (case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_try") 2>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; }; then
21452 res_lo=`cat conftest.val`
21454 echo "$as_me: program exited with status $ac_status" >&5
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ( exit $ac_status )
21461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21465 if test "$cross_compiling" = yes; then
21466 # Depending upon the size, compute the lo and hi bounds.
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <stddef.h>
21477 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.$ac_objext; then
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 #include <stddef.h>
21513 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.$ac_objext; then
21537 ac_hi=$ac_mid; break
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ac_lo=`expr $ac_mid + 1`
21543 if test $ac_lo -le $ac_mid; then
21547 ac_mid=`expr 2 '*' $ac_mid + 1`
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 #include <stddef.h>
21566 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21582 grep -v '^ *+' conftest.er1 >conftest.err
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <stddef.h>
21602 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest.$ac_objext; then
21626 ac_lo=$ac_mid; break
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_hi=`expr '(' $ac_mid ')' - 1`
21632 if test $ac_mid -le $ac_hi; then
21636 ac_mid=`expr 2 '*' $ac_mid`
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 # Binary search between lo and hi bounds.
21653 while test "x$ac_lo" != "x$ac_hi"; do
21654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21655 cat >conftest.$ac_ext <<_ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21661 #include <stddef.h>
21665 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_lo=`expr '(' $ac_mid ')' + 1`
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 ?*) fits_in_uint=$ac_lo;;
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #include <stddef.h>
21711 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21712 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21714 #include <stdlib.h>
21719 FILE *f = fopen ("conftest.val", "w");
21722 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21724 long int i = longval ();
21725 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21727 fprintf (f, "%ld\n", i);
21731 unsigned long int i = ulongval ();
21732 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21734 fprintf (f, "%lu\n", i);
21736 return ferror (f) || fclose (f) != 0;
21742 rm -f conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_link") 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21753 { (case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_try") 2>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 fits_in_uint=`cat conftest.val`
21764 echo "$as_me: program exited with status $ac_status" >&5
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 ( exit $ac_status )
21771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21775 if test "$fits_in_uint" = 1; then
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 #include <stddef.h>
21784 extern unsigned long foo;
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 if test -z "$result"; then
21822 if test "$fits_in_uint" = 1; then
21823 result="$res_hi$res_lo"U
21825 result="$res_hi$res_lo"UL
21828 result='~(size_t)0'
21831 { echo "$as_me:$LINENO: result: $result" >&5
21832 echo "${ECHO_T}$result" >&6; }
21833 if test "$result" != yes; then
21835 cat >>confdefs.h <<_ACEOF
21836 #define SIZE_MAX $result
21845 for ac_header in stdint.h
21847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 ac_res=`eval echo '${'$as_ac_Header'}'`
21855 { echo "$as_me:$LINENO: result: $ac_res" >&5
21856 echo "${ECHO_T}$ac_res" >&6; }
21858 # Is the header compilable?
21859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21868 #include <$ac_header>
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_compile") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && {
21884 test -z "$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21886 } && test -s conftest.$ac_objext; then
21887 ac_header_compiler=yes
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_header_compiler=no
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21897 echo "${ECHO_T}$ac_header_compiler" >&6; }
21899 # Is the header present?
21900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21902 cat >conftest.$ac_ext <<_ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 #include <$ac_header>
21910 if { (ac_try="$ac_cpp conftest.$ac_ext"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21918 grep -v '^ *+' conftest.er1 >conftest.err
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } >/dev/null && {
21923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21926 ac_header_preproc=yes
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_header_preproc=no
21934 rm -f conftest.err conftest.$ac_ext
21935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21936 echo "${ECHO_T}$ac_header_preproc" >&6; }
21938 # So? What about this header?
21939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21945 ac_header_preproc=yes
21948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 eval "$as_ac_Header=\$ac_header_preproc"
21970 ac_res=`eval echo '${'$as_ac_Header'}'`
21971 { echo "$as_me:$LINENO: result: $ac_res" >&5
21972 echo "${ECHO_T}$ac_res" >&6; }
21975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21976 cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21991 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21992 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21993 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22003 typedef ptrdiff_t ac__type_new_;
22007 if ((ac__type_new_ *) 0)
22009 if (sizeof (ac__type_new_))
22015 rm -f conftest.$ac_objext
22016 if { (ac_try="$ac_compile"
22017 case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_compile") 2>conftest.er1
22024 grep -v '^ *+' conftest.er1 >conftest.err
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } && {
22029 test -z "$ac_c_werror_flag" ||
22030 test ! -s conftest.err
22031 } && test -s conftest.$ac_objext; then
22032 ac_cv_type_ptrdiff_t=yes
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 ac_cv_type_ptrdiff_t=no
22040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22043 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22044 if test $ac_cv_type_ptrdiff_t = yes; then
22048 cat >>confdefs.h <<\_ACEOF
22049 #define ptrdiff_t long
22065 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22066 stdlib.h string.h unistd.h sys/param.h
22068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 ac_res=`eval echo '${'$as_ac_Header'}'`
22076 { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22079 # Is the header compilable?
22080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22088 $ac_includes_default
22089 #include <$ac_header>
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 ac_header_compiler=yes
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_header_compiler=no
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22118 echo "${ECHO_T}$ac_header_compiler" >&6; }
22120 # Is the header present?
22121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 #include <$ac_header>
22131 if { (ac_try="$ac_cpp conftest.$ac_ext"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22139 grep -v '^ *+' conftest.er1 >conftest.err
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } >/dev/null && {
22144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22147 ac_header_preproc=yes
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_header_preproc=no
22155 rm -f conftest.err conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22157 echo "${ECHO_T}$ac_header_preproc" >&6; }
22159 # So? What about this header?
22160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22166 ac_header_preproc=yes
22169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 eval "$as_ac_Header=\$ac_header_preproc"
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192 { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22197 cat >>confdefs.h <<_ACEOF
22198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22228 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22229 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22230 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22247 #define $ac_func innocuous_$ac_func
22249 /* System header to define __stub macros and hopefully few prototypes,
22250 which can conflict with char $ac_func (); below.
22251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22252 <limits.h> exists even on freestanding compilers. */
22255 # include <limits.h>
22257 # include <assert.h>
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22269 /* The GNU C library defines this for functions which it implements
22270 to always fail with ENOSYS. Some functions are actually named
22271 something starting with __ and the normal name is an alias. */
22272 #if defined __stub_$ac_func || defined __stub___$ac_func
22279 return $ac_func ();
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_link") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest$ac_exeext &&
22301 $as_test_x conftest$ac_exeext; then
22302 eval "$as_ac_var=yes"
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 eval "$as_ac_var=no"
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22311 conftest$ac_exeext conftest.$ac_ext
22313 ac_res=`eval echo '${'$as_ac_var'}'`
22314 { echo "$as_me:$LINENO: result: $ac_res" >&5
22315 echo "${ECHO_T}$ac_res" >&6; }
22316 if test `eval echo '${'$as_ac_var'}'` = yes; then
22317 cat >>confdefs.h <<_ACEOF
22318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22326 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22327 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22328 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22343 char *p = (char *) _snprintf;
22350 rm -f conftest.$ac_objext
22351 if { (ac_try="$ac_compile"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_compile") 2>conftest.er1
22359 grep -v '^ *+' conftest.er1 >conftest.err
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest.$ac_objext; then
22367 ac_cv_have_decl__snprintf=yes
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ac_cv_have_decl__snprintf=no
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22378 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22379 if test $ac_cv_have_decl__snprintf = yes; then
22385 cat >>confdefs.h <<_ACEOF
22386 #define HAVE_DECL__SNPRINTF $gt_value
22391 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22392 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22393 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22408 char *p = (char *) _snwprintf;
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_compile") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest.$ac_objext; then
22432 ac_cv_have_decl__snwprintf=yes
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 ac_cv_have_decl__snwprintf=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22443 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22444 if test $ac_cv_have_decl__snwprintf = yes; then
22450 cat >>confdefs.h <<_ACEOF
22451 #define HAVE_DECL__SNWPRINTF $gt_value
22457 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22458 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22459 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 cat >conftest.$ac_ext <<_ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22473 #ifndef feof_unlocked
22474 char *p = (char *) feof_unlocked;
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest.$ac_objext; then
22498 ac_cv_have_decl_feof_unlocked=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_cv_have_decl_feof_unlocked=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22509 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22510 if test $ac_cv_have_decl_feof_unlocked = yes; then
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22522 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22523 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22524 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22538 #ifndef fgets_unlocked
22539 char *p = (char *) fgets_unlocked;
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_compile") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest.$ac_objext; then
22563 ac_cv_have_decl_fgets_unlocked=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_cv_have_decl_fgets_unlocked=no
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22574 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22575 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22587 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22588 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22589 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22603 #ifndef getc_unlocked
22604 char *p = (char *) getc_unlocked;
22611 rm -f conftest.$ac_objext
22612 if { (ac_try="$ac_compile"
22613 case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22618 (eval "$ac_compile") 2>conftest.er1
22620 grep -v '^ *+' conftest.er1 >conftest.err
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } && {
22625 test -z "$ac_c_werror_flag" ||
22626 test ! -s conftest.err
22627 } && test -s conftest.$ac_objext; then
22628 ac_cv_have_decl_getc_unlocked=yes
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_cv_have_decl_getc_unlocked=no
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22639 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22640 if test $ac_cv_have_decl_getc_unlocked = yes; then
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22652 case $gt_cv_func_printf_posix in
22653 *yes) HAVE_POSIX_PRINTF=1 ;;
22654 *) HAVE_POSIX_PRINTF=0 ;;
22657 if test "$ac_cv_func_asprintf" = yes; then
22663 if test "$ac_cv_func_snprintf" = yes; then
22669 if test "$ac_cv_func_wprintf" = yes; then
22681 am_save_CPPFLAGS="$CPPFLAGS"
22683 for element in $INCICONV; do
22685 for x in $CPPFLAGS; do
22687 acl_save_prefix="$prefix"
22688 prefix="$acl_final_prefix"
22689 acl_save_exec_prefix="$exec_prefix"
22690 exec_prefix="$acl_final_exec_prefix"
22692 exec_prefix="$acl_save_exec_prefix"
22693 prefix="$acl_save_prefix"
22695 if test "X$x" = "X$element"; then
22700 if test -z "$haveit"; then
22701 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22706 { echo "$as_me:$LINENO: checking for iconv" >&5
22707 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22708 if test "${am_cv_func_iconv+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 am_cv_func_iconv="no, consider installing GNU libiconv"
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 #include <stdlib.h>
22725 iconv_t cd = iconv_open("","");
22726 iconv(cd,NULL,NULL,NULL,NULL);
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (ac_try="$ac_link"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_link") 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && {
22746 test -z "$ac_c_werror_flag" ||
22747 test ! -s conftest.err
22748 } && test -s conftest$ac_exeext &&
22749 $as_test_x conftest$ac_exeext; then
22750 am_cv_func_iconv=yes
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22759 conftest$ac_exeext conftest.$ac_ext
22760 if test "$am_cv_func_iconv" != yes; then
22761 am_save_LIBS="$LIBS"
22762 LIBS="$LIBS $LIBICONV"
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 #include <stdlib.h>
22774 iconv_t cd = iconv_open("","");
22775 iconv(cd,NULL,NULL,NULL,NULL);
22781 rm -f conftest.$ac_objext conftest$ac_exeext
22782 if { (ac_try="$ac_link"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_link") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest$ac_exeext &&
22798 $as_test_x conftest$ac_exeext; then
22799 am_cv_lib_iconv=yes
22800 am_cv_func_iconv=yes
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22810 LIBS="$am_save_LIBS"
22814 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22815 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22816 if test "$am_cv_func_iconv" = yes; then
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_ICONV 1
22823 if test "$am_cv_lib_iconv" = yes; then
22824 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22825 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22826 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22827 echo "${ECHO_T}$LIBICONV" >&6; }
22829 CPPFLAGS="$am_save_CPPFLAGS"
22836 if test "$am_cv_func_iconv" = yes; then
22837 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22838 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22839 if test "${am_cv_proto_iconv+set}" = set; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22843 cat >conftest.$ac_ext <<_ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22850 #include <stdlib.h>
22856 #if defined(__STDC__) || defined(__cplusplus)
22857 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22870 rm -f conftest.$ac_objext
22871 if { (ac_try="$ac_compile"
22872 case "(($ac_try" in
22873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874 *) ac_try_echo=$ac_try;;
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877 (eval "$ac_compile") 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest.$ac_objext; then
22887 am_cv_proto_iconv_arg1=""
22889 echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 am_cv_proto_iconv_arg1="const"
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 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);"
22899 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22900 { echo "$as_me:$LINENO: result: ${ac_t:-
22901 }$am_cv_proto_iconv" >&5
22902 echo "${ECHO_T}${ac_t:-
22903 }$am_cv_proto_iconv" >&6; }
22905 cat >>confdefs.h <<_ACEOF
22906 #define ICONV_CONST $am_cv_proto_iconv_arg1
22912 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22913 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22914 if test "${am_cv_langinfo_codeset+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #include <langinfo.h>
22927 char* cs = nl_langinfo(CODESET);
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_link") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest$ac_exeext &&
22949 $as_test_x conftest$ac_exeext; then
22950 am_cv_langinfo_codeset=yes
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 am_cv_langinfo_codeset=no
22958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22959 conftest$ac_exeext conftest.$ac_ext
22962 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22963 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22964 if test $am_cv_langinfo_codeset = yes; then
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_LANGINFO_CODESET 1
22972 if test $ac_cv_header_locale_h = yes; then
22974 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22975 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22976 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 #include <locale.h>
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_link") 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest$ac_exeext &&
23011 $as_test_x conftest$ac_exeext; then
23012 gt_cv_val_LC_MESSAGES=yes
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 gt_cv_val_LC_MESSAGES=no
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 conftest$ac_exeext conftest.$ac_ext
23023 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23024 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23025 if test $gt_cv_val_LC_MESSAGES = yes; then
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_LC_MESSAGES 1
23035 if test -n "$INTL_MACOSX_LIBS"; then
23036 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23039 for ac_prog in bison
23041 # Extract the first word of "$ac_prog", so it can be a program name with args.
23042 set dummy $ac_prog; ac_word=$2
23043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23045 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 if test -n "$INTLBISON"; then
23049 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23052 for as_dir in $PATH
23055 test -z "$as_dir" && as_dir=.
23056 for ac_exec_ext in '' $ac_executable_extensions; do
23057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23058 ac_cv_prog_INTLBISON="$ac_prog"
23059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23068 INTLBISON=$ac_cv_prog_INTLBISON
23069 if test -n "$INTLBISON"; then
23070 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23071 echo "${ECHO_T}$INTLBISON" >&6; }
23073 { echo "$as_me:$LINENO: result: no" >&5
23074 echo "${ECHO_T}no" >&6; }
23078 test -n "$INTLBISON" && break
23081 if test -z "$INTLBISON"; then
23084 { echo "$as_me:$LINENO: checking version of bison" >&5
23085 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23086 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23087 case $ac_prog_version in
23088 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23089 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23090 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23091 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23093 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23094 echo "${ECHO_T}$ac_prog_version" >&6; }
23096 if test $ac_verc_fail = yes; then
23115 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23116 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23117 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 gt_save_CPPFLAGS="$CPPFLAGS"
23121 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23122 gt_save_LIBS="$LIBS"
23123 LIBS="$LIBS -framework CoreFoundation"
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <CFPreferences.h>
23134 CFPreferencesCopyAppValue(NULL, NULL)
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (ac_try="$ac_link"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_link") 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest$ac_exeext &&
23156 $as_test_x conftest$ac_exeext; then
23157 gt_cv_func_CFPreferencesCopyAppValue=yes
23159 echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23162 gt_cv_func_CFPreferencesCopyAppValue=no
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166 conftest$ac_exeext conftest.$ac_ext
23167 CPPFLAGS="$gt_save_CPPFLAGS"
23168 LIBS="$gt_save_LIBS"
23170 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23171 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23172 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23179 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23180 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23181 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 gt_save_CPPFLAGS="$CPPFLAGS"
23185 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23186 gt_save_LIBS="$LIBS"
23187 LIBS="$LIBS -framework CoreFoundation"
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 #include <CFLocale.h>
23198 CFLocaleCopyCurrent();
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_link") 2>conftest.er1
23212 grep -v '^ *+' conftest.er1 >conftest.err
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } && {
23217 test -z "$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 } && test -s conftest$ac_exeext &&
23220 $as_test_x conftest$ac_exeext; then
23221 gt_cv_func_CFLocaleCopyCurrent=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 gt_cv_func_CFLocaleCopyCurrent=no
23229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23230 conftest$ac_exeext conftest.$ac_ext
23231 CPPFLAGS="$gt_save_CPPFLAGS"
23232 LIBS="$gt_save_LIBS"
23234 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23235 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23236 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_CFLOCALECOPYCURRENT 1
23244 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23245 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23251 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23253 # Check whether --enable-nls was given.
23254 if test "${enable_nls+set}" = set; then
23255 enableval=$enable_nls; USE_NLS=$enableval
23260 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23261 echo "${ECHO_T}$USE_NLS" >&6; }
23266 BUILD_INCLUDED_LIBINTL=no
23267 USE_INCLUDED_LIBINTL=no
23273 if test "$USE_NLS" = "yes"; then
23274 gt_use_preinstalled_gnugettext=no
23276 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23277 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23279 # Check whether --with-included-gettext was given.
23280 if test "${with_included_gettext+set}" = set; then
23281 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23283 nls_cv_force_use_gnu_gettext=no
23286 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23287 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23289 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23290 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23297 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23298 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23299 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 #include <libintl.h>
23309 extern int _nl_msg_cat_cntr;
23310 extern int *_nl_domain_bindings;
23314 bindtextdomain ("", "");
23315 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_link") 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest$ac_exeext &&
23337 $as_test_x conftest$ac_exeext; then
23338 gt_cv_func_gnugettext1_libc=yes
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 gt_cv_func_gnugettext1_libc=no
23346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23347 conftest$ac_exeext conftest.$ac_ext
23349 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23350 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23352 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23358 acl_save_prefix="$prefix"
23359 prefix="$acl_final_prefix"
23360 acl_save_exec_prefix="$exec_prefix"
23361 exec_prefix="$acl_final_exec_prefix"
23363 eval additional_includedir=\"$includedir\"
23364 eval additional_libdir=\"$libdir\"
23366 exec_prefix="$acl_save_exec_prefix"
23367 prefix="$acl_save_prefix"
23370 # Check whether --with-libintl-prefix was given.
23371 if test "${with_libintl_prefix+set}" = set; then
23372 withval=$with_libintl_prefix;
23373 if test "X$withval" = "Xno"; then
23376 if test "X$withval" = "X"; then
23378 acl_save_prefix="$prefix"
23379 prefix="$acl_final_prefix"
23380 acl_save_exec_prefix="$exec_prefix"
23381 exec_prefix="$acl_final_exec_prefix"
23383 eval additional_includedir=\"$includedir\"
23384 eval additional_libdir=\"$libdir\"
23386 exec_prefix="$acl_save_exec_prefix"
23387 prefix="$acl_save_prefix"
23390 additional_includedir="$withval/include"
23391 additional_libdir="$withval/lib"
23402 names_already_handled=
23403 names_next_round='intl '
23404 while test -n "$names_next_round"; do
23405 names_this_round="$names_next_round"
23407 for name in $names_this_round; do
23409 for n in $names_already_handled; do
23410 if test "$n" = "$name"; then
23411 already_handled=yes
23415 if test -z "$already_handled"; then
23416 names_already_handled="$names_already_handled $name"
23417 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23418 eval value=\"\$HAVE_LIB$uppername\"
23419 if test -n "$value"; then
23420 if test "$value" = yes; then
23421 eval value=\"\$LIB$uppername\"
23422 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23423 eval value=\"\$LTLIB$uppername\"
23424 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23433 if test $use_additional = yes; then
23434 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23435 found_dir="$additional_libdir"
23436 found_so="$additional_libdir/lib$name.$shlibext"
23437 if test -f "$additional_libdir/lib$name.la"; then
23438 found_la="$additional_libdir/lib$name.la"
23441 if test -f "$additional_libdir/lib$name.$libext"; then
23442 found_dir="$additional_libdir"
23443 found_a="$additional_libdir/lib$name.$libext"
23444 if test -f "$additional_libdir/lib$name.la"; then
23445 found_la="$additional_libdir/lib$name.la"
23450 if test "X$found_dir" = "X"; then
23451 for x in $LDFLAGS $LTLIBINTL; do
23453 acl_save_prefix="$prefix"
23454 prefix="$acl_final_prefix"
23455 acl_save_exec_prefix="$exec_prefix"
23456 exec_prefix="$acl_final_exec_prefix"
23458 exec_prefix="$acl_save_exec_prefix"
23459 prefix="$acl_save_prefix"
23463 dir=`echo "X$x" | sed -e 's/^X-L//'`
23464 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23466 found_so="$dir/lib$name.$shlibext"
23467 if test -f "$dir/lib$name.la"; then
23468 found_la="$dir/lib$name.la"
23471 if test -f "$dir/lib$name.$libext"; then
23473 found_a="$dir/lib$name.$libext"
23474 if test -f "$dir/lib$name.la"; then
23475 found_la="$dir/lib$name.la"
23481 if test "X$found_dir" != "X"; then
23486 if test "X$found_dir" != "X"; then
23487 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23488 if test "X$found_so" != "X"; then
23489 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23490 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23493 for x in $ltrpathdirs; do
23494 if test "X$x" = "X$found_dir"; then
23499 if test -z "$haveit"; then
23500 ltrpathdirs="$ltrpathdirs $found_dir"
23502 if test "$hardcode_direct" = yes; then
23503 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23505 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23508 for x in $rpathdirs; do
23509 if test "X$x" = "X$found_dir"; then
23514 if test -z "$haveit"; then
23515 rpathdirs="$rpathdirs $found_dir"
23519 for x in $LDFLAGS $LIBINTL; do
23521 acl_save_prefix="$prefix"
23522 prefix="$acl_final_prefix"
23523 acl_save_exec_prefix="$exec_prefix"
23524 exec_prefix="$acl_final_exec_prefix"
23526 exec_prefix="$acl_save_exec_prefix"
23527 prefix="$acl_save_prefix"
23529 if test "X$x" = "X-L$found_dir"; then
23534 if test -z "$haveit"; then
23535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23537 if test "$hardcode_minus_L" != no; then
23538 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23546 if test "X$found_a" != "X"; then
23547 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23549 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23552 additional_includedir=
23553 case "$found_dir" in
23555 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23556 additional_includedir="$basedir/include"
23559 if test "X$additional_includedir" != "X"; then
23560 if test "X$additional_includedir" != "X/usr/include"; then
23562 if test "X$additional_includedir" = "X/usr/local/include"; then
23563 if test -n "$GCC"; then
23565 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23569 if test -z "$haveit"; then
23570 for x in $CPPFLAGS $INCINTL; do
23572 acl_save_prefix="$prefix"
23573 prefix="$acl_final_prefix"
23574 acl_save_exec_prefix="$exec_prefix"
23575 exec_prefix="$acl_final_exec_prefix"
23577 exec_prefix="$acl_save_exec_prefix"
23578 prefix="$acl_save_prefix"
23580 if test "X$x" = "X-I$additional_includedir"; then
23585 if test -z "$haveit"; then
23586 if test -d "$additional_includedir"; then
23587 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23593 if test -n "$found_la"; then
23594 save_libdir="$libdir"
23595 case "$found_la" in
23596 */* | *\\*) . "$found_la" ;;
23597 *) . "./$found_la" ;;
23599 libdir="$save_libdir"
23600 for dep in $dependency_libs; do
23603 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23604 if test "X$additional_libdir" != "X/usr/lib"; then
23606 if test "X$additional_libdir" = "X/usr/local/lib"; then
23607 if test -n "$GCC"; then
23609 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23613 if test -z "$haveit"; then
23615 for x in $LDFLAGS $LIBINTL; do
23617 acl_save_prefix="$prefix"
23618 prefix="$acl_final_prefix"
23619 acl_save_exec_prefix="$exec_prefix"
23620 exec_prefix="$acl_final_exec_prefix"
23622 exec_prefix="$acl_save_exec_prefix"
23623 prefix="$acl_save_prefix"
23625 if test "X$x" = "X-L$additional_libdir"; then
23630 if test -z "$haveit"; then
23631 if test -d "$additional_libdir"; then
23632 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23636 for x in $LDFLAGS $LTLIBINTL; do
23638 acl_save_prefix="$prefix"
23639 prefix="$acl_final_prefix"
23640 acl_save_exec_prefix="$exec_prefix"
23641 exec_prefix="$acl_final_exec_prefix"
23643 exec_prefix="$acl_save_exec_prefix"
23644 prefix="$acl_save_prefix"
23646 if test "X$x" = "X-L$additional_libdir"; then
23651 if test -z "$haveit"; then
23652 if test -d "$additional_libdir"; then
23653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23660 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23661 if test "$enable_rpath" != no; then
23663 for x in $rpathdirs; do
23664 if test "X$x" = "X$dir"; then
23669 if test -z "$haveit"; then
23670 rpathdirs="$rpathdirs $dir"
23673 for x in $ltrpathdirs; do
23674 if test "X$x" = "X$dir"; then
23679 if test -z "$haveit"; then
23680 ltrpathdirs="$ltrpathdirs $dir"
23685 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23691 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23692 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23698 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23699 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23705 if test "X$rpathdirs" != "X"; then
23706 if test -n "$hardcode_libdir_separator"; then
23708 for found_dir in $rpathdirs; do
23709 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23711 acl_save_libdir="$libdir"
23713 eval flag=\"$hardcode_libdir_flag_spec\"
23714 libdir="$acl_save_libdir"
23715 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23717 for found_dir in $rpathdirs; do
23718 acl_save_libdir="$libdir"
23719 libdir="$found_dir"
23720 eval flag=\"$hardcode_libdir_flag_spec\"
23721 libdir="$acl_save_libdir"
23722 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23726 if test "X$ltrpathdirs" != "X"; then
23727 for found_dir in $ltrpathdirs; do
23728 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23732 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23733 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23734 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 gt_save_CPPFLAGS="$CPPFLAGS"
23738 CPPFLAGS="$CPPFLAGS $INCINTL"
23739 gt_save_LIBS="$LIBS"
23740 LIBS="$LIBS $LIBINTL"
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 #include <libintl.h>
23748 extern int _nl_msg_cat_cntr;
23753 const char *_nl_expand_alias (const char *);
23757 bindtextdomain ("", "");
23758 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23763 rm -f conftest.$ac_objext conftest$ac_exeext
23764 if { (ac_try="$ac_link"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_link") 2>conftest.er1
23772 grep -v '^ *+' conftest.er1 >conftest.err
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } && {
23777 test -z "$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 } && test -s conftest$ac_exeext &&
23780 $as_test_x conftest$ac_exeext; then
23781 gt_cv_func_gnugettext1_libintl=yes
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23786 gt_cv_func_gnugettext1_libintl=no
23789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23790 conftest$ac_exeext conftest.$ac_ext
23791 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23792 LIBS="$LIBS $LIBICONV"
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23799 #include <libintl.h>
23800 extern int _nl_msg_cat_cntr;
23805 const char *_nl_expand_alias (const char *);
23809 bindtextdomain ("", "");
23810 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23815 rm -f conftest.$ac_objext conftest$ac_exeext
23816 if { (ac_try="$ac_link"
23817 case "(($ac_try" in
23818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819 *) ac_try_echo=$ac_try;;
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822 (eval "$ac_link") 2>conftest.er1
23824 grep -v '^ *+' conftest.er1 >conftest.err
23826 cat conftest.err >&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } && {
23829 test -z "$ac_c_werror_flag" ||
23830 test ! -s conftest.err
23831 } && test -s conftest$ac_exeext &&
23832 $as_test_x conftest$ac_exeext; then
23833 LIBINTL="$LIBINTL $LIBICONV"
23834 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23835 gt_cv_func_gnugettext1_libintl=yes
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845 conftest$ac_exeext conftest.$ac_ext
23847 CPPFLAGS="$gt_save_CPPFLAGS"
23848 LIBS="$gt_save_LIBS"
23850 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23851 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23854 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23855 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23856 && test "$PACKAGE" != gettext-runtime \
23857 && test "$PACKAGE" != gettext-tools; }; then
23858 gt_use_preinstalled_gnugettext=yes
23866 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23867 nls_cv_use_gnu_gettext=yes
23871 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23872 BUILD_INCLUDED_LIBINTL=yes
23873 USE_INCLUDED_LIBINTL=yes
23874 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23875 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23876 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23880 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23886 if test -n "$INTL_MACOSX_LIBS"; then
23887 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23888 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23889 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23890 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23894 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23895 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23897 cat >>confdefs.h <<\_ACEOF
23898 #define ENABLE_NLS 1
23906 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23907 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23908 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23909 echo "${ECHO_T}$USE_NLS" >&6; }
23910 if test "$USE_NLS" = "yes"; then
23911 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23912 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23913 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23914 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23915 gt_source="external libintl"
23920 gt_source="included intl directory"
23922 { echo "$as_me:$LINENO: result: $gt_source" >&5
23923 echo "${ECHO_T}$gt_source" >&6; }
23926 if test "$USE_NLS" = "yes"; then
23928 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23929 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23930 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23931 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23932 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23933 echo "${ECHO_T}$LIBINTL" >&6; }
23935 for element in $INCINTL; do
23937 for x in $CPPFLAGS; do
23939 acl_save_prefix="$prefix"
23940 prefix="$acl_final_prefix"
23941 acl_save_exec_prefix="$exec_prefix"
23942 exec_prefix="$acl_final_exec_prefix"
23944 exec_prefix="$acl_save_exec_prefix"
23945 prefix="$acl_save_prefix"
23947 if test "X$x" = "X$element"; then
23952 if test -z "$haveit"; then
23953 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23960 cat >>confdefs.h <<\_ACEOF
23961 #define HAVE_GETTEXT 1
23965 cat >>confdefs.h <<\_ACEOF
23966 #define HAVE_DCGETTEXT 1
23975 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23976 BUILD_INCLUDED_LIBINTL=yes
23983 nls_cv_header_intl=
23984 nls_cv_header_libgt=
23996 if test "$USE_INCLUDED_LIBINTL" = yes; then
23997 INTLOBJS="\$(GETTOBJS)"
24001 INTL_LIBTOOL_SUFFIX_PREFIX=
24005 INTLLIBS="$LIBINTL"
24017 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; }; }
24102 if test x$support_bat = xyes; then
24103 { echo "$as_me:$LINENO: checking for qwt support" >&5
24104 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24106 # Check whether --with-qwt was given.
24107 if test "${with_qwt+set}" = set; then
24109 case "$with_qwt" in
24114 if test -f ${with_qwt}/include/qwt.h; then
24115 QWT_INC="${with_qwt}/include"
24116 QWT_LDFLAGS="-L${with_qwt}/lib"
24127 if test $no_qwt = no; then
24128 if test x$QWT_INC = x; then
24129 for root in /usr /usr/local; do
24130 for ver in qwt qwt5 qwt-qt4; do
24131 if test -f ${root}/include/${ver}/qwt.h; then
24132 QWT_INC="${root}/include/${ver}"
24133 if test -d ${root}/lib64/; then
24134 QWT_LDFLAGS="-L${root}/lib64"
24135 elif test -d ${root}/lib/64/; then
24136 QWT_LDFLAGS="-L${root}/64"
24138 QWT_LDFLAGS="-L${root}/lib"
24149 if test x$QWT_INC = x; then
24150 { echo "$as_me:$LINENO: result: no" >&5
24151 echo "${ECHO_T}no" >&6; }
24154 cat >>confdefs.h <<\_ACEOF
24158 { echo "$as_me:$LINENO: result: yes" >&5
24159 echo "${ECHO_T}yes" >&6; }
24169 # Check whether --enable-bwx-console was given.
24170 if test "${enable_bwx_console+set}" = set; then
24171 enableval=$enable_bwx_console;
24172 if test x$enableval = xyes; then
24173 support_wx_console=yes
24181 if test x$support_wx_console = xyes; then
24182 abc=`$WXCONFIG $WXFLAGS --cppflags`
24184 if test $pkg = 0; then
24185 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24186 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24187 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24191 WX_DIR="src/wx-console"
24194 echo "wx-config program not found. bwx-console disabled."
24196 support_wx_console=no
24201 # Check whether --enable-tray-monitor was given.
24202 if test "${enable_tray_monitor+set}" = set; then
24203 enableval=$enable_tray_monitor;
24204 if test x$enableval = xyes; then
24205 support_tray_monitor=yes
24213 if test x$support_tray_monitor = xyes; then
24214 abc=`$PKGCONFIG --exists gtk+-2.0`
24216 if test $pkg = 0; then
24217 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24218 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24221 TRAY_MONITOR_DIR=src/tray-monitor
24222 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24224 if test $pkg = 0; then
24226 cat >>confdefs.h <<\_ACEOF
24227 #define HAVE_GTK_2_4 1
24235 # Check whether --enable-smartalloc was given.
24236 if test "${enable_smartalloc+set}" = set; then
24237 enableval=$enable_smartalloc;
24238 if test x$enableval = xno; then
24239 support_smartalloc=no
24246 if test x$support_smartalloc = xyes; then
24248 cat >>confdefs.h <<\_ACEOF
24249 #define SMARTALLOC 1
24254 # Check whether --enable-lockmgr was given.
24255 if test "${enable_lockmgr+set}" = set; then
24256 enableval=$enable_lockmgr;
24257 if test x$enableval = xyes; then
24258 support_lockmgr=yes
24265 if test x$support_lockmgr = xyes; then
24267 cat >>confdefs.h <<\_ACEOF
24268 #define _USE_LOCKMGR 1
24274 # Check whether --enable-static-tools was given.
24275 if test "${enable_static_tools+set}" = set; then
24276 enableval=$enable_static_tools;
24277 if test x$enableval = xyes; then
24278 if test x$use_libtool = xyes; then
24279 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24280 please rerun configure with --disable-libtool" >&5
24281 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24282 please rerun configure with --disable-libtool" >&2;}
24283 { (exit 1); exit 1; }; }
24285 support_static_tools=yes
24293 if test x$support_static_tools = xyes; then
24294 TTOOL_LDFLAGS="-static"
24298 # Check whether --enable-static-fd was given.
24299 if test "${enable_static_fd+set}" = set; then
24300 enableval=$enable_static_fd;
24301 if test x$enableval = xyes; then
24302 if test x$use_libtool = xyes; then
24303 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24304 please rerun configure with --disable-libtool" >&5
24305 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24306 please rerun configure with --disable-libtool" >&2;}
24307 { (exit 1); exit 1; }; }
24309 support_static_fd=yes
24317 if test x$support_static_fd = xyes; then
24318 STATIC_FD="static-bacula-fd"
24322 # Check whether --enable-static-sd was given.
24323 if test "${enable_static_sd+set}" = set; then
24324 enableval=$enable_static_sd;
24325 if test x$enableval = xyes; then
24326 if test x$use_libtool = xyes; then
24327 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24328 please rerun configure with --disable-libtool" >&5
24329 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24330 please rerun configure with --disable-libtool" >&2;}
24331 { (exit 1); exit 1; }; }
24333 support_static_sd=yes
24341 if test x$support_static_sd = xyes; then
24342 STATIC_SD="static-bacula-sd"
24346 # Check whether --enable-static-dir was given.
24347 if test "${enable_static_dir+set}" = set; then
24348 enableval=$enable_static_dir;
24349 if test x$enableval = xyes; then
24350 if test x$use_libtool = xyes; then
24351 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24352 please rerun configure with --disable-libtool" >&5
24353 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24354 please rerun configure with --disable-libtool" >&2;}
24355 { (exit 1); exit 1; }; }
24357 support_static_dir=yes
24365 if test x$support_static_dir = xyes; then
24366 STATIC_DIR="static-bacula-dir"
24370 # Check whether --enable-static-cons was given.
24371 if test "${enable_static_cons+set}" = set; then
24372 enableval=$enable_static_cons;
24373 if test x$enableval = xyes; then
24374 if test x$use_libtool = xyes; then
24375 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24376 please rerun configure with --disable-libtool" >&5
24377 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24378 please rerun configure with --disable-libtool" >&2;}
24379 { (exit 1); exit 1; }; }
24381 support_static_cons=yes
24391 if test x$support_static_cons = xyes; then
24392 STATIC_CONS="static-bconsole"
24393 STATIC_GNOME_CONS="static-bgnome-console"
24394 STATIC_WX_CONS="static-bwx-console"
24400 # Check whether --enable-client-only was given.
24401 if test "${enable_client_only+set}" = set; then
24402 enableval=$enable_client_only;
24403 if test x$enableval = xyes; then
24404 build_client_only=yes
24412 if test x$build_client_only = xno; then
24419 # Check whether --enable-build-dird was given.
24420 if test "${enable_build_dird+set}" = set; then
24421 enableval=$enable_build_dird;
24422 if test x$enableval = xno; then
24429 if test x$build_dird = xyes; then
24430 DIRD_DIR="src/dird"
24431 DIR_TOOLS="DIRTOOLS"
24434 DIR_TOOLS="NODIRTOOLS"
24439 # Check whether --enable-build-stored was given.
24440 if test "${enable_build_stored+set}" = set; then
24441 enableval=$enable_build_stored;
24442 if test x$enableval = xno; then
24449 if test x$build_stored = xyes; then
24450 STORED_DIR="src/stored"
24456 # Check whether --enable-conio was given.
24457 if test "${enable_conio+set}" = set; then
24458 enableval=$enable_conio;
24459 if test x$enableval = xno; then
24469 # Check whether --enable-ipv6 was given.
24470 if test "${enable_ipv6+set}" = set; then
24471 enableval=$enable_ipv6;
24472 if test x$enableval = xno; then
24480 if test x$support_ipv6 = xyes; then
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <sys/types.h>
24488 #include <sys/socket.h>
24489 #include <netinet/in.h>
24493 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (ac_try="$ac_link"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_link") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && {
24512 test -z "$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24514 } && test -s conftest$ac_exeext &&
24515 $as_test_x conftest$ac_exeext; then
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24525 conftest$ac_exeext conftest.$ac_ext
24528 if test x$support_ipv6 = xyes; then
24530 cat >>confdefs.h <<\_ACEOF
24531 #define HAVE_IPV6 1
24537 if test x$support_conio = xyes; then
24538 if test "${ac_cv_header_termcap_h+set}" = set; then
24539 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24540 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24541 if test "${ac_cv_header_termcap_h+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24545 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24547 # Is the header compilable?
24548 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24549 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24557 #include <termcap.h>
24559 rm -f conftest.$ac_objext
24560 if { (ac_try="$ac_compile"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_compile") 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } && {
24573 test -z "$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 } && test -s conftest.$ac_objext; then
24576 ac_header_compiler=yes
24578 echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24581 ac_header_compiler=no
24584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24586 echo "${ECHO_T}$ac_header_compiler" >&6; }
24588 # Is the header present?
24589 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24590 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24591 cat >conftest.$ac_ext <<_ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 #include <termcap.h>
24599 if { (ac_try="$ac_cpp conftest.$ac_ext"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } >/dev/null && {
24612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24613 test ! -s conftest.err
24615 ac_header_preproc=yes
24617 echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 ac_header_preproc=no
24623 rm -f conftest.err conftest.$ac_ext
24624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24625 echo "${ECHO_T}$ac_header_preproc" >&6; }
24627 # So? What about this header?
24628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24630 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24631 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24633 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24634 ac_header_preproc=yes
24637 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24638 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24639 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24640 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24641 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24642 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24643 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24644 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24646 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24648 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24652 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24653 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24654 if test "${ac_cv_header_termcap_h+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24657 ac_cv_header_termcap_h=$ac_header_preproc
24659 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24660 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24663 if test $ac_cv_header_termcap_h = yes; then
24664 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24665 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24666 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 ac_check_lib_save_LIBS=$LIBS
24670 LIBS="-ltermcap $LIBS"
24671 cat >conftest.$ac_ext <<_ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24678 /* Override any GCC internal prototype to avoid an error.
24679 Use char because int might match the return type of a GCC
24680 builtin and then its argument prototype would still apply. */
24693 rm -f conftest.$ac_objext conftest$ac_exeext
24694 if { (ac_try="$ac_link"
24695 case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700 (eval "$ac_link") 2>conftest.er1
24702 grep -v '^ *+' conftest.er1 >conftest.err
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } && {
24707 test -z "$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 } && test -s conftest$ac_exeext &&
24710 $as_test_x conftest$ac_exeext; then
24711 ac_cv_lib_termcap_tgetent=yes
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24716 ac_cv_lib_termcap_tgetent=no
24719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24720 conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24723 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24724 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24725 if test $ac_cv_lib_termcap_tgetent = yes; then
24726 CONS_LIBS="-ltermcap"
24730 support_readline=no
24732 cat >>confdefs.h <<\_ACEOF
24733 #define HAVE_CONIO 1
24738 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24739 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24740 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lncurses $LIBS"
24745 cat >conftest.$ac_ext <<_ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24752 /* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_link") 2>conftest.er1
24776 grep -v '^ *+' conftest.er1 >conftest.err
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } && {
24781 test -z "$ac_c_werror_flag" ||
24782 test ! -s conftest.err
24783 } && test -s conftest$ac_exeext &&
24784 $as_test_x conftest$ac_exeext; then
24785 ac_cv_lib_ncurses_tgetent=yes
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24790 ac_cv_lib_ncurses_tgetent=no
24793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24794 conftest$ac_exeext conftest.$ac_ext
24795 LIBS=$ac_check_lib_save_LIBS
24797 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24798 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24799 if test $ac_cv_lib_ncurses_tgetent = yes; then
24800 CONS_LIBS="-lncurses"
24804 support_readline=no
24806 cat >>confdefs.h <<\_ACEOF
24807 #define HAVE_CONIO 1
24820 for ac_header in curses.h
24822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24829 ac_res=`eval echo '${'$as_ac_Header'}'`
24830 { echo "$as_me:$LINENO: result: $ac_res" >&5
24831 echo "${ECHO_T}$ac_res" >&6; }
24833 # Is the header compilable?
24834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 $ac_includes_default
24843 #include <$ac_header>
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_compile") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1 >conftest.err
24856 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } && {
24859 test -z "$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 } && test -s conftest.$ac_objext; then
24862 ac_header_compiler=yes
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 ac_header_compiler=no
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24872 echo "${ECHO_T}$ac_header_compiler" >&6; }
24874 # Is the header present?
24875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24877 cat >conftest.$ac_ext <<_ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h. */
24883 #include <$ac_header>
24885 if { (ac_try="$ac_cpp conftest.$ac_ext"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } >/dev/null && {
24898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24901 ac_header_preproc=yes
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24906 ac_header_preproc=no
24909 rm -f conftest.err conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24911 echo "${ECHO_T}$ac_header_preproc" >&6; }
24913 # So? What about this header?
24914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24920 ac_header_preproc=yes
24923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24943 eval "$as_ac_Header=\$ac_header_preproc"
24945 ac_res=`eval echo '${'$as_ac_Header'}'`
24946 { echo "$as_me:$LINENO: result: $ac_res" >&5
24947 echo "${ECHO_T}$ac_res" >&6; }
24950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24951 cat >>confdefs.h <<_ACEOF
24952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24959 { echo "$as_me:$LINENO: checking for term.h" >&5
24960 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24961 if test "${ac_cv_header_term_h+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24971 #include <curses.h>
24977 rm -f conftest.$ac_objext
24978 if { (ac_try="$ac_compile"
24979 case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_compile") 2>conftest.er1
24986 grep -v '^ *+' conftest.er1 >conftest.err
24988 cat conftest.err >&5
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); } && {
24991 test -z "$ac_c_werror_flag" ||
24992 test ! -s conftest.err
24993 } && test -s conftest.$ac_objext; then
24994 ac_cv_header_term_h=yes
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24999 ac_cv_header_term_h=no
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25005 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25006 if test $ac_cv_header_term_h = yes; then
25007 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25008 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25009 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25012 ac_check_lib_save_LIBS=$LIBS
25013 LIBS="-lcurses $LIBS"
25014 cat >conftest.$ac_ext <<_ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h. */
25021 /* Override any GCC internal prototype to avoid an error.
25022 Use char because int might match the return type of a GCC
25023 builtin and then its argument prototype would still apply. */
25036 rm -f conftest.$ac_objext conftest$ac_exeext
25037 if { (ac_try="$ac_link"
25038 case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_link") 2>conftest.er1
25045 grep -v '^ *+' conftest.er1 >conftest.err
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } && {
25050 test -z "$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25052 } && test -s conftest$ac_exeext &&
25053 $as_test_x conftest$ac_exeext; then
25054 ac_cv_lib_curses_tgetent=yes
25056 echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25059 ac_cv_lib_curses_tgetent=no
25062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25063 conftest$ac_exeext conftest.$ac_ext
25064 LIBS=$ac_check_lib_save_LIBS
25066 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25067 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25068 if test $ac_cv_lib_curses_tgetent = yes; then
25069 CONS_LIBS="-lcurses"
25073 support_readline=no
25075 cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_CONIO 1
25084 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25095 # Check whether --enable-readline was given.
25096 if test "${enable_readline+set}" = set; then
25097 enableval=$enable_readline;
25098 if test x$enableval = xno; then
25099 support_readline=no
25108 if test x$support_readline = xyes; then
25110 # Check whether --with-readline was given.
25111 if test "${with_readline+set}" = set; then
25112 withval=$with_readline;
25113 case "$with_readline" in
25118 if test -f ${with_readline}/readline.h; then
25119 CONS_INC="-I${with_readline}"
25120 CONS_LDFLAGS="-L$with_readline"
25121 elif test -f ${with_readline}/include/readline/readline.h; then
25122 CONS_INC="-I${with_readline}/include/readline"
25123 CONS_LDFLAGS="-L${with_readline}/lib"
25124 with_readline="${with_readline}/include/readline"
25126 with_readline="/usr/include/readline"
25129 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25131 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25132 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25136 ac_res=`eval echo '${'$as_ac_Header'}'`
25137 { echo "$as_me:$LINENO: result: $ac_res" >&5
25138 echo "${ECHO_T}$ac_res" >&6; }
25140 # Is the header compilable?
25141 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25142 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25143 cat >conftest.$ac_ext <<_ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h. */
25149 $ac_includes_default
25150 #include <${with_readline}/readline.h>
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25169 ac_header_compiler=yes
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_header_compiler=no
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25179 echo "${ECHO_T}$ac_header_compiler" >&6; }
25181 # Is the header present?
25182 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25183 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 #include <${with_readline}/readline.h>
25192 if { (ac_try="$ac_cpp conftest.$ac_ext"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25200 grep -v '^ *+' conftest.er1 >conftest.err
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } >/dev/null && {
25205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25206 test ! -s conftest.err
25208 ac_header_preproc=yes
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25213 ac_header_preproc=no
25216 rm -f conftest.err conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25218 echo "${ECHO_T}$ac_header_preproc" >&6; }
25220 # So? What about this header?
25221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25223 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25225 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25226 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25227 ac_header_preproc=yes
25230 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25231 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25232 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25245 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25246 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25250 eval "$as_ac_Header=\$ac_header_preproc"
25252 ac_res=`eval echo '${'$as_ac_Header'}'`
25253 { echo "$as_me:$LINENO: result: $ac_res" >&5
25254 echo "${ECHO_T}$ac_res" >&6; }
25257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25260 cat >>confdefs.h <<\_ACEOF
25261 #define HAVE_READLINE 1
25264 CONS_LIBS="-lreadline -lhistory -ltermcap"
25270 echo "readline.h not found. readline turned off ..."
25282 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25283 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25284 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25285 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25289 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25291 # Is the header compilable?
25292 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25293 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 $ac_includes_default
25301 #include </usr/include/readline/readline.h>
25303 rm -f conftest.$ac_objext
25304 if { (ac_try="$ac_compile"
25305 case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25312 grep -v '^ *+' conftest.er1 >conftest.err
25314 cat conftest.err >&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.$ac_objext; then
25320 ac_header_compiler=yes
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25325 ac_header_compiler=no
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25330 echo "${ECHO_T}$ac_header_compiler" >&6; }
25332 # Is the header present?
25333 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25334 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25335 cat >conftest.$ac_ext <<_ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 #include </usr/include/readline/readline.h>
25343 if { (ac_try="$ac_cpp conftest.$ac_ext"
25344 case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25351 grep -v '^ *+' conftest.er1 >conftest.err
25353 cat conftest.err >&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); } >/dev/null && {
25356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25357 test ! -s conftest.err
25359 ac_header_preproc=yes
25361 echo "$as_me: failed program was:" >&5
25362 sed 's/^/| /' conftest.$ac_ext >&5
25364 ac_header_preproc=no
25367 rm -f conftest.err conftest.$ac_ext
25368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25369 echo "${ECHO_T}$ac_header_preproc" >&6; }
25371 # So? What about this header?
25372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25374 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25376 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25377 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25378 ac_header_preproc=yes
25381 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25382 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25383 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25396 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25397 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25398 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25403 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25404 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25407 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25410 cat >>confdefs.h <<\_ACEOF
25411 #define HAVE_READLINE 1
25415 CONS_INC="-I/usr/include/readline"
25416 CONS_LIBS="-lreadline -ltermcap"
25420 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25423 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 ac_res=`eval echo '${'$as_ac_Header'}'`
25428 { echo "$as_me:$LINENO: result: $ac_res" >&5
25429 echo "${ECHO_T}$ac_res" >&6; }
25431 # Is the header compilable?
25432 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25433 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 $ac_includes_default
25441 #include <${TOP_DIR}/depkgs/readline/readline.h>
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25452 grep -v '^ *+' conftest.er1 >conftest.err
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && {
25457 test -z "$ac_c_werror_flag" ||
25458 test ! -s conftest.err
25459 } && test -s conftest.$ac_objext; then
25460 ac_header_compiler=yes
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_header_compiler=no
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25470 echo "${ECHO_T}$ac_header_compiler" >&6; }
25472 # Is the header present?
25473 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25474 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25475 cat >conftest.$ac_ext <<_ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h. */
25481 #include <${TOP_DIR}/depkgs/readline/readline.h>
25483 if { (ac_try="$ac_cpp conftest.$ac_ext"
25484 case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25491 grep -v '^ *+' conftest.er1 >conftest.err
25493 cat conftest.err >&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } >/dev/null && {
25496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25497 test ! -s conftest.err
25499 ac_header_preproc=yes
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25504 ac_header_preproc=no
25507 rm -f conftest.err conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6; }
25511 # So? What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25514 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25518 ac_header_preproc=yes
25521 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25536 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25537 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25541 eval "$as_ac_Header=\$ac_header_preproc"
25543 ac_res=`eval echo '${'$as_ac_Header'}'`
25544 { echo "$as_me:$LINENO: result: $ac_res" >&5
25545 echo "${ECHO_T}$ac_res" >&6; }
25548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25551 cat >>confdefs.h <<\_ACEOF
25552 #define HAVE_READLINE 1
25556 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25557 CONS_LIBS="-lreadline -lhistory -ltermcap"
25558 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25559 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25564 echo "readline.h not found. readline turned off ..."
25591 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25592 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25593 if test "${ac_cv_header_stat_broken+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 cat >conftest.$ac_ext <<_ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25602 #include <sys/types.h>
25603 #include <sys/stat.h>
25605 #if defined S_ISBLK && defined S_IFDIR
25606 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25609 #if defined S_ISBLK && defined S_IFCHR
25610 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25613 #if defined S_ISLNK && defined S_IFREG
25614 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25617 #if defined S_ISSOCK && defined S_IFREG
25618 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25622 rm -f conftest.$ac_objext
25623 if { (ac_try="$ac_compile"
25624 case "(($ac_try" in
25625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626 *) ac_try_echo=$ac_try;;
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629 (eval "$ac_compile") 2>conftest.er1
25631 grep -v '^ *+' conftest.er1 >conftest.err
25633 cat conftest.err >&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); } && {
25636 test -z "$ac_c_werror_flag" ||
25637 test ! -s conftest.err
25638 } && test -s conftest.$ac_objext; then
25639 ac_cv_header_stat_broken=no
25641 echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25644 ac_cv_header_stat_broken=yes
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25650 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25651 if test $ac_cv_header_stat_broken = yes; then
25653 cat >>confdefs.h <<\_ACEOF
25654 #define STAT_MACROS_BROKEN 1
25664 ac_header_dirent=no
25665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25666 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25667 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25670 echo $ECHO_N "(cached) $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25678 #include <sys/types.h>
25690 rm -f conftest.$ac_objext
25691 if { (ac_try="$ac_compile"
25692 case "(($ac_try" in
25693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25694 *) ac_try_echo=$ac_try;;
25696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25697 (eval "$ac_compile") 2>conftest.er1
25699 grep -v '^ *+' conftest.er1 >conftest.err
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } && {
25704 test -z "$ac_c_werror_flag" ||
25705 test ! -s conftest.err
25706 } && test -s conftest.$ac_objext; then
25707 eval "$as_ac_Header=yes"
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 eval "$as_ac_Header=no"
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718 { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25721 cat >>confdefs.h <<_ACEOF
25722 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25725 ac_header_dirent=$ac_hdr; break
25729 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25730 if test $ac_header_dirent = dirent.h; then
25731 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25732 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25733 if test "${ac_cv_search_opendir+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25736 ac_func_search_save_LIBS=$LIBS
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25744 /* Override any GCC internal prototype to avoid an error.
25745 Use char because int might match the return type of a GCC
25746 builtin and then its argument prototype would still apply. */
25759 for ac_lib in '' dir; do
25760 if test -z "$ac_lib"; then
25761 ac_res="none required"
25764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25766 rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773 (eval "$ac_link") 2>conftest.er1
25775 grep -v '^ *+' conftest.er1 >conftest.err
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } && {
25780 test -z "$ac_c_werror_flag" ||
25781 test ! -s conftest.err
25782 } && test -s conftest$ac_exeext &&
25783 $as_test_x conftest$ac_exeext; then
25784 ac_cv_search_opendir=$ac_res
25786 echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25794 if test "${ac_cv_search_opendir+set}" = set; then
25798 if test "${ac_cv_search_opendir+set}" = set; then
25801 ac_cv_search_opendir=no
25803 rm conftest.$ac_ext
25804 LIBS=$ac_func_search_save_LIBS
25806 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25807 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25808 ac_res=$ac_cv_search_opendir
25809 if test "$ac_res" != no; then
25810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25815 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25816 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25817 if test "${ac_cv_search_opendir+set}" = set; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 ac_func_search_save_LIBS=$LIBS
25821 cat >conftest.$ac_ext <<_ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25828 /* Override any GCC internal prototype to avoid an error.
25829 Use char because int might match the return type of a GCC
25830 builtin and then its argument prototype would still apply. */
25843 for ac_lib in '' x; do
25844 if test -z "$ac_lib"; then
25845 ac_res="none required"
25848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25850 rm -f conftest.$ac_objext conftest$ac_exeext
25851 if { (ac_try="$ac_link"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>conftest.er1
25859 grep -v '^ *+' conftest.er1 >conftest.err
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest$ac_exeext &&
25867 $as_test_x conftest$ac_exeext; then
25868 ac_cv_search_opendir=$ac_res
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878 if test "${ac_cv_search_opendir+set}" = set; then
25882 if test "${ac_cv_search_opendir+set}" = set; then
25885 ac_cv_search_opendir=no
25887 rm conftest.$ac_ext
25888 LIBS=$ac_func_search_save_LIBS
25890 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25891 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25892 ac_res=$ac_cv_search_opendir
25893 if test "$ac_res" != no; then
25894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25907 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25923 #define $ac_func innocuous_$ac_func
25925 /* System header to define __stub macros and hopefully few prototypes,
25926 which can conflict with char $ac_func (); below.
25927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25928 <limits.h> exists even on freestanding compilers. */
25931 # include <limits.h>
25933 # include <assert.h>
25938 /* Override any GCC internal prototype to avoid an error.
25939 Use char because int might match the return type of a GCC
25940 builtin and then its argument prototype would still apply. */
25945 /* The GNU C library defines this for functions which it implements
25946 to always fail with ENOSYS. Some functions are actually named
25947 something starting with __ and the normal name is an alias. */
25948 #if defined __stub_$ac_func || defined __stub___$ac_func
25955 return $ac_func ();
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (ac_try="$ac_link"
25962 case "(($ac_try" in
25963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25964 *) ac_try_echo=$ac_try;;
25966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25967 (eval "$ac_link") 2>conftest.er1
25969 grep -v '^ *+' conftest.er1 >conftest.err
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } && {
25974 test -z "$ac_c_werror_flag" ||
25975 test ! -s conftest.err
25976 } && test -s conftest$ac_exeext &&
25977 $as_test_x conftest$ac_exeext; then
25978 eval "$as_ac_var=yes"
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 eval "$as_ac_var=no"
25986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25987 conftest$ac_exeext conftest.$ac_ext
25989 ac_res=`eval echo '${'$as_ac_var'}'`
25990 { echo "$as_me:$LINENO: result: $ac_res" >&5
25991 echo "${ECHO_T}$ac_res" >&6; }
25992 if test `eval echo '${'$as_ac_var'}'` = yes; then
25993 cat >>confdefs.h <<_ACEOF
25994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 for ac_func in nanosleep nl_langinfo
26004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26010 cat >conftest.$ac_ext <<_ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26018 #define $ac_func innocuous_$ac_func
26020 /* System header to define __stub macros and hopefully few prototypes,
26021 which can conflict with char $ac_func (); below.
26022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26023 <limits.h> exists even on freestanding compilers. */
26026 # include <limits.h>
26028 # include <assert.h>
26033 /* Override any GCC internal prototype to avoid an error.
26034 Use char because int might match the return type of a GCC
26035 builtin and then its argument prototype would still apply. */
26040 /* The GNU C library defines this for functions which it implements
26041 to always fail with ENOSYS. Some functions are actually named
26042 something starting with __ and the normal name is an alias. */
26043 #if defined __stub_$ac_func || defined __stub___$ac_func
26050 return $ac_func ();
26055 rm -f conftest.$ac_objext conftest$ac_exeext
26056 if { (ac_try="$ac_link"
26057 case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062 (eval "$ac_link") 2>conftest.er1
26064 grep -v '^ *+' conftest.er1 >conftest.err
26066 cat conftest.err >&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } && {
26069 test -z "$ac_c_werror_flag" ||
26070 test ! -s conftest.err
26071 } && test -s conftest$ac_exeext &&
26072 $as_test_x conftest$ac_exeext; then
26073 eval "$as_ac_var=yes"
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 eval "$as_ac_var=no"
26081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26082 conftest$ac_exeext conftest.$ac_ext
26084 ac_res=`eval echo '${'$as_ac_var'}'`
26085 { echo "$as_me:$LINENO: result: $ac_res" >&5
26086 echo "${ECHO_T}$ac_res" >&6; }
26087 if test `eval echo '${'$as_ac_var'}'` = yes; then
26088 cat >>confdefs.h <<_ACEOF
26089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26096 for ac_header in varargs.h
26098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103 echo $ECHO_N "(cached) $ECHO_C" >&6
26105 ac_res=`eval echo '${'$as_ac_Header'}'`
26106 { echo "$as_me:$LINENO: result: $ac_res" >&5
26107 echo "${ECHO_T}$ac_res" >&6; }
26109 # Is the header compilable?
26110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26112 cat >conftest.$ac_ext <<_ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26118 $ac_includes_default
26119 #include <$ac_header>
26121 rm -f conftest.$ac_objext
26122 if { (ac_try="$ac_compile"
26123 case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26128 (eval "$ac_compile") 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest.$ac_objext; then
26138 ac_header_compiler=yes
26140 echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26143 ac_header_compiler=no
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26148 echo "${ECHO_T}$ac_header_compiler" >&6; }
26150 # Is the header present?
26151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26159 #include <$ac_header>
26161 if { (ac_try="$ac_cpp conftest.$ac_ext"
26162 case "(($ac_try" in
26163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26164 *) ac_try_echo=$ac_try;;
26166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26169 grep -v '^ *+' conftest.er1 >conftest.err
26171 cat conftest.err >&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); } >/dev/null && {
26174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26175 test ! -s conftest.err
26177 ac_header_preproc=yes
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_header_preproc=no
26185 rm -f conftest.err conftest.$ac_ext
26186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26187 echo "${ECHO_T}$ac_header_preproc" >&6; }
26189 # So? What about this header?
26190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26196 ac_header_preproc=yes
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26219 eval "$as_ac_Header=\$ac_header_preproc"
26221 ac_res=`eval echo '${'$as_ac_Header'}'`
26222 { echo "$as_me:$LINENO: result: $ac_res" >&5
26223 echo "${ECHO_T}$ac_res" >&6; }
26226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26227 cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26237 { echo "$as_me:$LINENO: checking for Python support" >&5
26238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26240 # Check whether --with-python was given.
26241 if test "${with_python+set}" = set; then
26242 withval=$with_python;
26245 if test "$withval" != "no"; then
26246 if test "$withval" = "yes"; then
26247 if test -e /usr/bin/python-config ; then
26248 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26249 PYTHON_LIBS=`/usr/bin/python-config --libs`
26251 for python_root in /usr /usr/local /usr/sfw; do
26252 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26253 if test -f $python_root/include/${ver}/Python.h; then
26254 PYTHON_INCDIR=-I$python_root/include/${ver}
26255 if test -d $python_root/lib64/${ver}/config; then
26256 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26258 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26265 if test x$PYTHON_INCDIR = x; then
26266 if test -f $prefix/include/Python.h; then
26267 PYTHON_INCDIR=-I$prefix/include
26268 if test -d $prefix/lib64/config; then
26269 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26271 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26274 { echo "$as_me:$LINENO: result: no" >&5
26275 echo "${ECHO_T}no" >&6; }
26276 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26277 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26278 { (exit 1); exit 1; }; }
26283 if test -e $withval/bin/python-config ; then
26284 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26285 PYTHON_LIBS=`$withval/bin/python-config --libs`
26286 elif test -f $withval/Python.h; then
26287 PYTHON_INCDIR=-I$withval
26288 PYTHON_LIBS="-L$withval/config -lpython"
26289 elif test -f $withval/include/Python.h; then
26290 PYTHON_INCDIR=-I$withval/include
26291 if test -d $withval/lib64/config; then
26292 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26294 PYTHON_LIBS="-L$withval/lib/config -lpython"
26296 elif test -f $withval/include/python/Python.h; then
26297 PYTHON_INCDIR=-I$withval/include/python
26298 if test -d $withval/lib64/python/config; then
26299 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26301 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26304 { echo "$as_me:$LINENO: result: no" >&5
26305 echo "${ECHO_T}no" >&6; }
26306 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26307 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26308 { (exit 1); exit 1; }; }
26312 cat >>confdefs.h <<\_ACEOF
26313 #define HAVE_PYTHON 1
26316 { echo "$as_me:$LINENO: result: yes" >&5
26317 echo "${ECHO_T}yes" >&6; }
26319 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26320 echo "$as_me: checking for more Python libs" >&6;}
26321 saved_LIBS="$LIBS"; LIBS=
26322 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26323 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26324 if test "${ac_cv_search_shm_open+set}" = set; then
26325 echo $ECHO_N "(cached) $ECHO_C" >&6
26327 ac_func_search_save_LIBS=$LIBS
26328 cat >conftest.$ac_ext <<_ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26335 /* Override any GCC internal prototype to avoid an error.
26336 Use char because int might match the return type of a GCC
26337 builtin and then its argument prototype would still apply. */
26345 return shm_open ();
26350 for ac_lib in '' rt; do
26351 if test -z "$ac_lib"; then
26352 ac_res="none required"
26355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26357 rm -f conftest.$ac_objext conftest$ac_exeext
26358 if { (ac_try="$ac_link"
26359 case "(($ac_try" in
26360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361 *) ac_try_echo=$ac_try;;
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364 (eval "$ac_link") 2>conftest.er1
26366 grep -v '^ *+' conftest.er1 >conftest.err
26368 cat conftest.err >&5
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest$ac_exeext &&
26374 $as_test_x conftest$ac_exeext; then
26375 ac_cv_search_shm_open=$ac_res
26377 echo "$as_me: failed program was:" >&5
26378 sed 's/^/| /' conftest.$ac_ext >&5
26383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26385 if test "${ac_cv_search_shm_open+set}" = set; then
26389 if test "${ac_cv_search_shm_open+set}" = set; then
26392 ac_cv_search_shm_open=no
26394 rm conftest.$ac_ext
26395 LIBS=$ac_func_search_save_LIBS
26397 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26398 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26399 ac_res=$ac_cv_search_shm_open
26400 if test "$ac_res" != no; then
26401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26406 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26407 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26408 if test "${ac_cv_lib_util_openpty+set}" = set; then
26409 echo $ECHO_N "(cached) $ECHO_C" >&6
26411 ac_check_lib_save_LIBS=$LIBS
26412 LIBS="-lutil $LIBS"
26413 cat >conftest.$ac_ext <<_ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26420 /* Override any GCC internal prototype to avoid an error.
26421 Use char because int might match the return type of a GCC
26422 builtin and then its argument prototype would still apply. */
26435 rm -f conftest.$ac_objext conftest$ac_exeext
26436 if { (ac_try="$ac_link"
26437 case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442 (eval "$ac_link") 2>conftest.er1
26444 grep -v '^ *+' conftest.er1 >conftest.err
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } && {
26449 test -z "$ac_c_werror_flag" ||
26450 test ! -s conftest.err
26451 } && test -s conftest$ac_exeext &&
26452 $as_test_x conftest$ac_exeext; then
26453 ac_cv_lib_util_openpty=yes
26455 echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26458 ac_cv_lib_util_openpty=no
26461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26462 conftest$ac_exeext conftest.$ac_ext
26463 LIBS=$ac_check_lib_save_LIBS
26465 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26466 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26467 if test $ac_cv_lib_util_openpty = yes; then
26468 cat >>confdefs.h <<_ACEOF
26469 #define HAVE_LIBUTIL 1
26472 LIBS="-lutil $LIBS"
26476 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26479 { echo "$as_me:$LINENO: result: no" >&5
26480 echo "${ECHO_T}no" >&6; }
26485 { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26494 { echo "$as_me:$LINENO: checking for socket" >&5
26495 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26496 if test "${ac_cv_func_socket+set}" = set; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 cat >conftest.$ac_ext <<_ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h. */
26505 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26507 #define socket innocuous_socket
26509 /* System header to define __stub macros and hopefully few prototypes,
26510 which can conflict with char socket (); below.
26511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26512 <limits.h> exists even on freestanding compilers. */
26515 # include <limits.h>
26517 # include <assert.h>
26522 /* Override any GCC internal prototype to avoid an error.
26523 Use char because int might match the return type of a GCC
26524 builtin and then its argument prototype would still apply. */
26529 /* The GNU C library defines this for functions which it implements
26530 to always fail with ENOSYS. Some functions are actually named
26531 something starting with __ and the normal name is an alias. */
26532 #if defined __stub_socket || defined __stub___socket
26544 rm -f conftest.$ac_objext conftest$ac_exeext
26545 if { (ac_try="$ac_link"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_link") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } && {
26558 test -z "$ac_c_werror_flag" ||
26559 test ! -s conftest.err
26560 } && test -s conftest$ac_exeext &&
26561 $as_test_x conftest$ac_exeext; then
26562 ac_cv_func_socket=yes
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_cv_func_socket=no
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571 conftest$ac_exeext conftest.$ac_ext
26573 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26574 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26575 if test $ac_cv_func_socket = yes; then
26576 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26577 echo "${ECHO_T}using libc's socket" >&6; }
26580 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26581 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26582 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26585 ac_check_lib_save_LIBS=$LIBS
26586 LIBS="-lxnet $LIBS"
26587 cat >conftest.$ac_ext <<_ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26594 /* Override any GCC internal prototype to avoid an error.
26595 Use char because int might match the return type of a GCC
26596 builtin and then its argument prototype would still apply. */
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613 *) ac_try_echo=$ac_try;;
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616 (eval "$ac_link") 2>conftest.er1
26618 grep -v '^ *+' conftest.er1 >conftest.err
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && {
26623 test -z "$ac_c_werror_flag" ||
26624 test ! -s conftest.err
26625 } && test -s conftest$ac_exeext &&
26626 $as_test_x conftest$ac_exeext; then
26627 ac_cv_lib_xnet_socket=yes
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_cv_lib_xnet_socket=no
26635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26636 conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26639 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26641 if test $ac_cv_lib_xnet_socket = yes; then
26642 cat >>confdefs.h <<_ACEOF
26643 #define HAVE_LIBXNET 1
26646 LIBS="-lxnet $LIBS"
26651 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26653 if test "${ac_cv_lib_socket_socket+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 ac_check_lib_save_LIBS=$LIBS
26657 LIBS="-lsocket $LIBS"
26658 cat >conftest.$ac_ext <<_ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h. */
26665 /* Override any GCC internal prototype to avoid an error.
26666 Use char because int might match the return type of a GCC
26667 builtin and then its argument prototype would still apply. */
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (ac_try="$ac_link"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_link") 2>conftest.er1
26689 grep -v '^ *+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } && {
26694 test -z "$ac_c_werror_flag" ||
26695 test ! -s conftest.err
26696 } && test -s conftest$ac_exeext &&
26697 $as_test_x conftest$ac_exeext; then
26698 ac_cv_lib_socket_socket=yes
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_cv_lib_socket_socket=no
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707 conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26710 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26711 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26712 if test $ac_cv_lib_socket_socket = yes; then
26713 cat >>confdefs.h <<_ACEOF
26714 #define HAVE_LIBSOCKET 1
26717 LIBS="-lsocket $LIBS"
26722 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26723 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26724 if test "${ac_cv_lib_inet_socket+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 ac_check_lib_save_LIBS=$LIBS
26728 LIBS="-linet $LIBS"
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26736 /* Override any GCC internal prototype to avoid an error.
26737 Use char because int might match the return type of a GCC
26738 builtin and then its argument prototype would still apply. */
26751 rm -f conftest.$ac_objext conftest$ac_exeext
26752 if { (ac_try="$ac_link"
26753 case "(($ac_try" in
26754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755 *) ac_try_echo=$ac_try;;
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758 (eval "$ac_link") 2>conftest.er1
26760 grep -v '^ *+' conftest.er1 >conftest.err
26762 cat conftest.err >&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } && {
26765 test -z "$ac_c_werror_flag" ||
26766 test ! -s conftest.err
26767 } && test -s conftest$ac_exeext &&
26768 $as_test_x conftest$ac_exeext; then
26769 ac_cv_lib_inet_socket=yes
26771 echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ac_cv_lib_inet_socket=no
26777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26778 conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26781 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26782 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26783 if test $ac_cv_lib_inet_socket = yes; then
26784 cat >>confdefs.h <<_ACEOF
26785 #define HAVE_LIBINET 1
26788 LIBS="-linet $LIBS"
26798 # Check whether --with-tcp-wrappers was given.
26799 if test "${with_tcp_wrappers+set}" = set; then
26800 withval=$with_tcp_wrappers;
26801 if test "x$withval" != "xno" ; then
26803 LIBS="$saved_LIBS -lwrap"
26804 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26805 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26806 if test "${ac_cv_search_nanosleep+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 ac_func_search_save_LIBS=$LIBS
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26817 /* Override any GCC internal prototype to avoid an error.
26818 Use char because int might match the return type of a GCC
26819 builtin and then its argument prototype would still apply. */
26827 return nanosleep ();
26832 for ac_lib in '' rt; do
26833 if test -z "$ac_lib"; then
26834 ac_res="none required"
26837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (ac_try="$ac_link"
26841 case "(($ac_try" in
26842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846 (eval "$ac_link") 2>conftest.er1
26848 grep -v '^ *+' conftest.er1 >conftest.err
26850 cat conftest.err >&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } && {
26853 test -z "$ac_c_werror_flag" ||
26854 test ! -s conftest.err
26855 } && test -s conftest$ac_exeext &&
26856 $as_test_x conftest$ac_exeext; then
26857 ac_cv_search_nanosleep=$ac_res
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26867 if test "${ac_cv_search_nanosleep+set}" = set; then
26871 if test "${ac_cv_search_nanosleep+set}" = set; then
26874 ac_cv_search_nanosleep=no
26876 rm conftest.$ac_ext
26877 LIBS=$ac_func_search_save_LIBS
26879 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26880 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26881 ac_res=$ac_cv_search_nanosleep
26882 if test "$ac_res" != no; then
26883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26887 { echo "$as_me:$LINENO: checking for libwrap" >&5
26888 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26889 cat >conftest.$ac_ext <<_ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26896 #include <sys/types.h>
26898 int deny_severity = 0;
26899 int allow_severity = 0;
26900 struct request_info *req;
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_link") 2>conftest.er1
26921 grep -v '^ *+' conftest.er1 >conftest.err
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } && {
26926 test -z "$ac_c_werror_flag" ||
26927 test ! -s conftest.err
26928 } && test -s conftest$ac_exeext &&
26929 $as_test_x conftest$ac_exeext; then
26931 { echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6; }
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_LIBWRAP 1
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26947 LIBS="$saved_LIBS -lwrap -lnsl"
26948 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26949 cat >conftest.$ac_ext <<_ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h. */
26956 #include <sys/types.h>
26958 int deny_severity = 0;
26959 int allow_severity = 0;
26960 struct request_info *req;
26972 rm -f conftest.$ac_objext conftest$ac_exeext
26973 if { (ac_try="$ac_link"
26974 case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_link") 2>conftest.er1
26981 grep -v '^ *+' conftest.er1 >conftest.err
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } && {
26986 test -z "$ac_c_werror_flag" ||
26987 test ! -s conftest.err
26988 } && test -s conftest$ac_exeext &&
26989 $as_test_x conftest$ac_exeext; then
26991 { echo "$as_me:$LINENO: result: yes" >&5
26992 echo "${ECHO_T}yes" >&6; }
26994 cat >>confdefs.h <<\_ACEOF
26995 #define HAVE_LIBWRAP 1
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27007 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27008 echo "$as_me: error: *** libwrap missing" >&2;}
27009 { (exit 1); exit 1; }; }
27014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27015 conftest$ac_exeext conftest.$ac_ext
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021 conftest$ac_exeext conftest.$ac_ext
27028 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27029 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27031 # Check whether --with-openssl was given.
27032 if test "${with_openssl+set}" = set; then
27033 withval=$with_openssl;
27034 with_openssl_directory=${withval}
27040 if test "x$with_openssl_directory" != "xno"; then
27041 OPENSSL_LIBS="-lssl -lcrypto"
27044 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27046 # Make sure the $with_openssl_directory also makes sense
27048 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27049 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27050 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27054 saved_LIBS="${LIBS}"
27055 saved_CFLAGS="${CFLAGS}"
27056 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27057 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27059 cat >conftest.$ac_ext <<_ACEOF
27062 cat confdefs.h >>conftest.$ac_ext
27063 cat >>conftest.$ac_ext <<_ACEOF
27064 /* end confdefs.h. */
27066 #include <openssl/ssl.h>
27072 CRYPTO_set_id_callback(NULL);
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (ac_try="$ac_link"
27080 case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_link") 2>conftest.er1
27087 grep -v '^ *+' conftest.er1 >conftest.err
27089 cat conftest.err >&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && {
27092 test -z "$ac_c_werror_flag" ||
27093 test ! -s conftest.err
27094 } && test -s conftest$ac_exeext &&
27095 $as_test_x conftest$ac_exeext; then
27098 support_crypto="yes"
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27111 conftest$ac_exeext conftest.$ac_ext
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27120 #include <openssl/evp.h>
27132 rm -f conftest.$ac_objext conftest$ac_exeext
27133 if { (ac_try="$ac_link"
27134 case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_link") 2>conftest.er1
27141 grep -v '^ *+' conftest.er1 >conftest.err
27143 cat conftest.err >&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest$ac_exeext &&
27149 $as_test_x conftest$ac_exeext; then
27151 ac_cv_openssl_sha2="yes"
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27158 ac_cv_openssl_sha2="no"
27163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27164 conftest$ac_exeext conftest.$ac_ext
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27173 #include <openssl/evp.h>
27185 rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189 *) ac_try_echo=$ac_try;;
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192 (eval "$ac_link") 2>conftest.er1
27194 grep -v '^ *+' conftest.er1 >conftest.err
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } && {
27199 test -z "$ac_c_werror_flag" ||
27200 test ! -s conftest.err
27201 } && test -s conftest$ac_exeext &&
27202 $as_test_x conftest$ac_exeext; then
27204 ac_cv_openssl_export="no"
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_cv_openssl_export="yes"
27216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27217 conftest$ac_exeext conftest.$ac_ext
27219 LIBS="${saved_LIBS}"
27220 CFLAGS="${saved_CFLAGS}"
27222 if test "$support_tls" = "yes"; then
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_OPENSSL 1
27229 cat >>confdefs.h <<\_ACEOF
27234 cat >>confdefs.h <<\_ACEOF
27235 #define HAVE_CRYPTO 1
27240 if test "$ac_cv_openssl_sha2" = "yes"; then
27242 cat >>confdefs.h <<\_ACEOF
27243 #define HAVE_SHA2 1
27248 if test "$ac_cv_openssl_export" = "yes"; then
27250 cat >>confdefs.h <<\_ACEOF
27251 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27257 support_crypto="no"
27262 if test "$support_tls" = "no"; then
27267 { echo "$as_me:$LINENO: result: $support_tls" >&5
27268 echo "${ECHO_T}$support_tls" >&6; }
27272 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27273 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27274 if test "${ac_cv_search_dlopen+set}" = set; then
27275 echo $ECHO_N "(cached) $ECHO_C" >&6
27277 ac_func_search_save_LIBS=$LIBS
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27285 /* Override any GCC internal prototype to avoid an error.
27286 Use char because int might match the return type of a GCC
27287 builtin and then its argument prototype would still apply. */
27300 for ac_lib in '' dl; do
27301 if test -z "$ac_lib"; then
27302 ac_res="none required"
27305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27307 rm -f conftest.$ac_objext conftest$ac_exeext
27308 if { (ac_try="$ac_link"
27309 case "(($ac_try" in
27310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311 *) ac_try_echo=$ac_try;;
27313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314 (eval "$ac_link") 2>conftest.er1
27316 grep -v '^ *+' conftest.er1 >conftest.err
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } && {
27321 test -z "$ac_c_werror_flag" ||
27322 test ! -s conftest.err
27323 } && test -s conftest$ac_exeext &&
27324 $as_test_x conftest$ac_exeext; then
27325 ac_cv_search_dlopen=$ac_res
27327 echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27335 if test "${ac_cv_search_dlopen+set}" = set; then
27339 if test "${ac_cv_search_dlopen+set}" = set; then
27342 ac_cv_search_dlopen=no
27344 rm conftest.$ac_ext
27345 LIBS=$ac_func_search_save_LIBS
27347 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27348 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27349 ac_res=$ac_cv_search_dlopen
27350 if test "$ac_res" != no; then
27351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27356 working_dir=`eval echo ${prefix}/var/bacula/working`
27358 # Check whether --with-working-dir was given.
27359 if test "${with_working_dir+set}" = set; then
27360 withval=$with_working_dir;
27361 if test "x$withval" != "xno" ; then
27362 working_dir=$withval
27373 # Check whether --with-archivedir was given.
27374 if test "${with_archivedir+set}" = set; then
27375 withval=$with_archivedir;
27376 if test "x$withval" != "xno" ; then
27377 archivedir=$withval
27386 basename=`hostname`
27388 # Check whether --with-basename was given.
27389 if test "${with_basename+set}" = set; then
27390 withval=$with_basename;
27391 if test "x$withval" != "xno" ; then
27401 hostname=`uname -n | cut -d '.' -f 1`
27402 if test x${hostname} = x ; then
27403 hostname="localhost"
27406 # Check whether --with-hostname was given.
27407 if test "${with_hostname+set}" = set; then
27408 withval=$with_hostname;
27409 if test "x$withval" != "xno" ; then
27420 scriptdir=`eval echo ${sysconfdir}`
27422 # Check whether --with-scriptdir was given.
27423 if test "${with_scriptdir+set}" = set; then
27424 withval=$with_scriptdir;
27425 if test "x$withval" != "xno" ; then
27438 # Check whether --with-bsrdir was given.
27439 if test "${with_bsrdir+set}" = set; then
27440 withval=$with_bsrdir;
27441 if test "x$withval" != "xno" ; then
27453 # Check whether --with-logdir was given.
27454 if test "${with_logdir+set}" = set; then
27455 withval=$with_logdir;
27456 if test "x$withval" != "xno" ; then
27467 # ------------------------------------------
27468 # Where to place plugindir (plugin files)
27469 # ------------------------------------------
27470 plugindir=`eval echo ${libdir}`
27472 # Check whether --with-plugindir was given.
27473 if test "${with_plugindir+set}" = set; then
27474 withval=$with_plugindir;
27475 if test "x$withval" != "xno" ; then
27485 dump_email=root@localhost
27487 # Check whether --with-dump-email was given.
27488 if test "${with_dump_email+set}" = set; then
27489 withval=$with_dump_email;
27490 if test "x$withval" != "xno" ; then
27491 dump_email=$withval
27500 job_email=root@localhost
27502 # Check whether --with-job-email was given.
27503 if test "${with_job_email+set}" = set; then
27504 withval=$with_job_email;
27505 if test "x$withval" != "xno" ; then
27515 smtp_host=localhost
27517 # Check whether --with-smtp_host was given.
27518 if test "${with_smtp_host+set}" = set; then
27519 withval=$with_smtp_host;
27520 if test "x$withval" != "xno" ; then
27532 # Check whether --with-pid-dir was given.
27533 if test "${with_pid_dir+set}" = set; then
27534 withval=$with_pid_dir;
27535 if test "x$withval" != "xno" ; then
27543 cat >>confdefs.h <<_ACEOF
27544 #define _PATH_BACULA_PIDDIR "$piddir"
27549 subsysdir=/var/run/subsys
27550 if test -d /var/run/subsys; then
27551 subsysdir=/var/run/subsys
27552 elif test -d /var/lock/subsys; then
27553 subsysdir=/var/lock/subsys
27555 subsysdir=/var/run/subsys
27558 # Check whether --with-subsys-dir was given.
27559 if test "${with_subsys_dir+set}" = set; then
27560 withval=$with_subsys_dir;
27561 if test "x$withval" != "xno" ; then
27573 # Check whether --with-baseport was given.
27574 if test "${with_baseport+set}" = set; then
27575 withval=$with_baseport;
27576 if test "x$withval" != "xno" ; then
27585 dir_port=`expr $baseport`
27586 fd_port=`expr $baseport + 1`
27587 sd_port=`expr $fd_port + 1`
27595 # Check whether --with-dir-password was given.
27596 if test "${with_dir_password+set}" = set; then
27597 withval=$with_dir_password;
27598 if test "x$withval" != "xno" ; then
27599 dir_password=$withval
27606 if test "x$dir_password" = "x" ; then
27607 if test "x$OPENSSL" = "xnone" ; then
27608 key=`autoconf/randpass 33`
27610 key=`openssl rand -base64 33`
27617 # Check whether --with-fd-password was given.
27618 if test "${with_fd_password+set}" = set; then
27619 withval=$with_fd_password;
27620 if test "x$withval" != "xno" ; then
27621 fd_password=$withval
27628 if test "x$fd_password" = "x" ; then
27629 if test "x$OPENSSL" = "xnone" ; then
27630 key=`autoconf/randpass 37`
27632 key=`openssl rand -base64 33`
27639 # Check whether --with-sd-password was given.
27640 if test "${with_sd_password+set}" = set; then
27641 withval=$with_sd_password;
27642 if test "x$withval" != "xno" ; then
27643 sd_password=$withval
27650 if test "x$sd_password" = "x" ; then
27651 if test "x$OPENSSL" = "xnone" ; then
27652 key=`autoconf/randpass 41`
27654 key=`openssl rand -base64 33`
27661 # Check whether --with-mon-dir-password was given.
27662 if test "${with_mon_dir_password+set}" = set; then
27663 withval=$with_mon_dir_password;
27664 if test "x$withval" != "xno" ; then
27665 mon_dir_password=$withval
27672 if test "x$mon_dir_password" = "x" ; then
27673 if test "x$OPENSSL" = "xnone" ; then
27674 key=`autoconf/randpass 33`
27676 key=`openssl rand -base64 33`
27678 mon_dir_password=$key
27683 # Check whether --with-mon-fd-password was given.
27684 if test "${with_mon_fd_password+set}" = set; then
27685 withval=$with_mon_fd_password;
27686 if test "x$withval" != "xno" ; then
27687 mon_fd_password=$withval
27694 if test "x$mon_fd_password" = "x" ; then
27695 if test "x$OPENSSL" = "xnone" ; then
27696 key=`autoconf/randpass 37`
27698 key=`openssl rand -base64 33`
27700 mon_fd_password=$key
27705 # Check whether --with-mon-sd-password was given.
27706 if test "${with_mon_sd_password+set}" = set; then
27707 withval=$with_mon_sd_password;
27708 if test "x$withval" != "xno" ; then
27709 mon_sd_password=$withval
27716 if test "x$mon_sd_password" = "x" ; then
27717 if test "x$OPENSSL" = "xnone" ; then
27718 key=`autoconf/randpass 41`
27720 key=`openssl rand -base64 33`
27722 mon_sd_password=$key
27734 # Check whether --with-db_name was given.
27735 if test "${with_db_name+set}" = set; then
27736 withval=$with_db_name;
27737 if test "x$withval" != "x" ; then
27748 # Check whether --with-db_user was given.
27749 if test "${with_db_user+set}" = set; then
27750 withval=$with_db_user;
27751 if test "x$withval" != "x" ; then
27762 # Check whether --with-db_password was given.
27763 if test "${with_db_password+set}" = set; then
27764 withval=$with_db_password;
27765 if test "x$withval" != "x" ; then
27766 db_password=$withval
27776 # Check whether --with-db_port was given.
27777 if test "${with_db_port+set}" = set; then
27778 withval=$with_db_port;
27779 if test "x$withval" != "x" ; then
27789 # Handle users and groups for each daemon
27793 # Check whether --with-dir_user was given.
27794 if test "${with_dir_user+set}" = set; then
27795 withval=$with_dir_user;
27796 if test "x$withval" != "x" ; then
27806 # Check whether --with-dir_group was given.
27807 if test "${with_dir_group+set}" = set; then
27808 withval=$with_dir_group;
27809 if test "x$withval" != "x" ; then
27819 # Check whether --with-sd_user was given.
27820 if test "${with_sd_user+set}" = set; then
27821 withval=$with_sd_user;
27822 if test "x$withval" != "x" ; then
27832 # Check whether --with-sd_group was given.
27833 if test "${with_sd_group+set}" = set; then
27834 withval=$with_sd_group;
27835 if test "x$withval" != "x" ; then
27845 # Check whether --with-fd_user was given.
27846 if test "${with_fd_user+set}" = set; then
27847 withval=$with_fd_user;
27848 if test "x$withval" != "x" ; then
27858 # Check whether --with-fd_group was given.
27859 if test "${with_fd_group+set}" = set; then
27860 withval=$with_fd_group;
27861 if test "x$withval" != "x" ; then
27878 # Check whether --with-sbin-perm was given.
27879 if test "${with_sbin_perm+set}" = set; then
27880 withval=$with_sbin_perm;
27881 if test "x$withval" != "x" ; then
27894 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27895 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27897 # Check whether --with-postgresql was given.
27898 if test "${with_postgresql+set}" = set; then
27899 withval=$with_postgresql;
27900 if test "$withval" != "no"; then
27901 if test "$db_found" = "yes"; then
27902 { echo "$as_me:$LINENO: result: error" >&5
27903 echo "${ECHO_T}error" >&6; }
27904 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27905 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27906 { (exit 1); exit 1; }; };
27908 if test "$withval" = "yes"; then
27909 PG_CONFIG=`which pg_config`
27910 if test -n "$PG_CONFIG";then
27911 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27912 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27913 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27914 elif test -f /usr/local/include/libpq-fe.h; then
27915 POSTGRESQL_INCDIR=/usr/local/include
27916 if test -d /usr/local/lib64; then
27917 POSTGRESQL_LIBDIR=/usr/local/lib64
27919 POSTGRESQL_LIBDIR=/usr/local/lib
27921 POSTGRESQL_BINDIR=/usr/local/bin
27922 elif test -f /usr/include/libpq-fe.h; then
27923 POSTGRESQL_INCDIR=/usr/include
27924 if test -d /usr/lib64; then
27925 POSTGRESQL_LIBDIR=/usr/lib64
27927 POSTGRESQL_LIBDIR=/usr/lib
27929 POSTGRESQL_BINDIR=/usr/bin
27930 elif test -f /usr/include/pgsql/libpq-fe.h; then
27931 POSTGRESQL_INCDIR=/usr/include/pgsql
27932 if test -d /usr/lib64/pgsql; then
27933 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27935 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27937 POSTGRESQL_BINDIR=/usr/bin
27938 elif test -f /usr/include/postgresql/libpq-fe.h; then
27939 POSTGRESQL_INCDIR=/usr/include/postgresql
27940 if test -d /usr/lib64/postgresql; then
27941 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27943 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27945 POSTGRESQL_BINDIR=/usr/bin
27947 { echo "$as_me:$LINENO: result: no" >&5
27948 echo "${ECHO_T}no" >&6; }
27949 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27950 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27951 { (exit 1); exit 1; }; }
27953 elif test -f $withval/include/libpq-fe.h; then
27954 POSTGRESQL_INCDIR=$withval/include
27955 POSTGRESQL_LIBDIR=$withval/lib
27956 POSTGRESQL_BINDIR=$withval/bin
27957 elif test -f $withval/include/postgresql/libpq-fe.h; then
27958 POSTGRESQL_INCDIR=$withval/include/postgresql
27959 if test -d $withval/lib64; then
27960 POSTGRESQL_LIBDIR=$withval/lib64
27962 POSTGRESQL_LIBDIR=$withval/lib
27964 POSTGRESQL_BINDIR=$withval/bin
27966 { echo "$as_me:$LINENO: result: no" >&5
27967 echo "${ECHO_T}no" >&6; }
27968 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27969 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27970 { (exit 1); exit 1; }; }
27972 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27973 { echo "$as_me:$LINENO: checking for crypt" >&5
27974 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27975 if test "${ac_cv_func_crypt+set}" = set; then
27976 echo $ECHO_N "(cached) $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27986 #define crypt innocuous_crypt
27988 /* System header to define __stub macros and hopefully few prototypes,
27989 which can conflict with char crypt (); below.
27990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27991 <limits.h> exists even on freestanding compilers. */
27994 # include <limits.h>
27996 # include <assert.h>
28001 /* Override any GCC internal prototype to avoid an error.
28002 Use char because int might match the return type of a GCC
28003 builtin and then its argument prototype would still apply. */
28008 /* The GNU C library defines this for functions which it implements
28009 to always fail with ENOSYS. Some functions are actually named
28010 something starting with __ and the normal name is an alias. */
28011 #if defined __stub_crypt || defined __stub___crypt
28023 rm -f conftest.$ac_objext conftest$ac_exeext
28024 if { (ac_try="$ac_link"
28025 case "(($ac_try" in
28026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027 *) ac_try_echo=$ac_try;;
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030 (eval "$ac_link") 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } && {
28037 test -z "$ac_c_werror_flag" ||
28038 test ! -s conftest.err
28039 } && test -s conftest$ac_exeext &&
28040 $as_test_x conftest$ac_exeext; then
28041 ac_cv_func_crypt=yes
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 ac_cv_func_crypt=no
28049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28050 conftest$ac_exeext conftest.$ac_ext
28052 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28053 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28054 if test $ac_cv_func_crypt = yes; then
28057 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28058 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28059 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28062 ac_check_lib_save_LIBS=$LIBS
28063 LIBS="-lcrypt $LIBS"
28064 cat >conftest.$ac_ext <<_ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28071 /* Override any GCC internal prototype to avoid an error.
28072 Use char because int might match the return type of a GCC
28073 builtin and then its argument prototype would still apply. */
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (ac_try="$ac_link"
28088 case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_link") 2>conftest.er1
28095 grep -v '^ *+' conftest.er1 >conftest.err
28097 cat conftest.err >&5
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } && {
28100 test -z "$ac_c_werror_flag" ||
28101 test ! -s conftest.err
28102 } && test -s conftest$ac_exeext &&
28103 $as_test_x conftest$ac_exeext; then
28104 ac_cv_lib_crypt_crypt=yes
28106 echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28109 ac_cv_lib_crypt_crypt=no
28112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28113 conftest$ac_exeext conftest.$ac_ext
28114 LIBS=$ac_check_lib_save_LIBS
28116 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28117 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28118 if test $ac_cv_lib_crypt_crypt = yes; then
28119 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28124 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28125 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28126 SQL_BINDIR=$POSTGRESQL_BINDIR
28127 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28129 cat >>confdefs.h <<\_ACEOF
28130 #define HAVE_POSTGRESQL 1
28133 { echo "$as_me:$LINENO: result: yes" >&5
28134 echo "${ECHO_T}yes" >&6; }
28136 support_postgresql=yes
28140 { echo "$as_me:$LINENO: result: no" >&5
28141 echo "${ECHO_T}no" >&6; }
28146 { echo "$as_me:$LINENO: result: no" >&5
28147 echo "${ECHO_T}no" >&6; }
28159 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28160 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28162 # Check whether --with-mysql was given.
28163 if test "${with_mysql+set}" = set; then
28164 withval=$with_mysql;
28165 if test "$withval" != "no"; then
28166 if test "$withval" = "yes"; then
28167 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28168 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28169 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28170 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28171 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28173 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28175 MYSQL_BINDIR=/usr/local/mysql/bin
28176 elif test -f /usr/include/mysql/mysql.h; then
28177 MYSQL_INCDIR=/usr/include/mysql
28178 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28179 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28180 MYSQL_LIBDIR=/usr/lib64/mysql
28181 elif test -f /usr/lib64/libmysqlclient_r.a \
28182 -o -f /usr/lib64/libmysqlclient_r.so; then
28183 MYSQL_LIBDIR=/usr/lib64
28184 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28185 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28186 MYSQL_LIBDIR=/usr/lib/mysql
28188 MYSQL_LIBDIR=/usr/lib
28190 MYSQL_BINDIR=/usr/bin
28191 elif test -f /usr/include/mysql.h; then
28192 MYSQL_INCDIR=/usr/include
28193 if test -f /usr/lib64/libmysqlclient_r.a \
28194 -o -f /usr/lib64/libmysqlclient_r.so; then
28195 MYSQL_LIBDIR=/usr/lib64
28197 MYSQL_LIBDIR=/usr/lib
28199 MYSQL_BINDIR=/usr/bin
28200 elif test -f /usr/local/include/mysql/mysql.h; then
28201 MYSQL_INCDIR=/usr/local/include/mysql
28202 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28203 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28204 MYSQL_LIBDIR=/usr/local/lib64/mysql
28206 MYSQL_LIBDIR=/usr/local/lib/mysql
28208 MYSQL_BINDIR=/usr/local/bin
28209 elif test -f /usr/local/include/mysql.h; then
28210 MYSQL_INCDIR=/usr/local/include
28211 if test -f /usr/local/lib64/libmysqlclient_r.a \
28212 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28213 MYSQL_LIBDIR=/usr/local/lib64
28215 MYSQL_LIBDIR=/usr/local/lib
28217 MYSQL_BINDIR=/usr/local/bin
28219 { echo "$as_me:$LINENO: result: no" >&5
28220 echo "${ECHO_T}no" >&6; }
28221 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28222 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28223 { (exit 1); exit 1; }; }
28226 if test -f $withval/include/mysql/mysql.h; then
28227 MYSQL_INCDIR=$withval/include/mysql
28228 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28229 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28230 MYSQL_LIBDIR=$withval/lib64/mysql
28231 elif test -f $withval/lib64/libmysqlclient_r.a \
28232 -o -f $withval/lib64/libmysqlclient_r.so; then
28233 MYSQL_LIBDIR=$withval/lib64
28234 elif test -f $withval/lib/libmysqlclient_r.a \
28235 -o -f $withval/lib/libmysqlclient_r.so; then
28236 MYSQL_LIBDIR=$withval/lib
28238 MYSQL_LIBDIR=$withval/lib/mysql
28240 MYSQL_BINDIR=$withval/bin
28241 elif test -f $withval/include/mysql.h; then
28242 MYSQL_INCDIR=$withval/include
28243 if test -f $withval/lib64/libmysqlclient_r.a \
28244 -o -f $withval/lib64/libmysqlclient_r.so; then
28245 MYSQL_LIBDIR=$withval/lib64
28247 MYSQL_LIBDIR=$withval/lib
28249 MYSQL_BINDIR=$withval/bin
28251 { echo "$as_me:$LINENO: result: no" >&5
28252 echo "${ECHO_T}no" >&6; }
28253 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28254 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28255 { (exit 1); exit 1; }; }
28258 SQL_INCLUDE=-I$MYSQL_INCDIR
28259 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28260 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28261 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28262 cat >>confdefs.h <<\_ACEOF
28263 #define HAVE_THREAD_SAFE_MYSQL 1
28267 SQL_BINDIR=$MYSQL_BINDIR
28268 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28270 cat >>confdefs.h <<\_ACEOF
28271 #define HAVE_MYSQL 1
28274 { echo "$as_me:$LINENO: result: yes" >&5
28275 echo "${ECHO_T}yes" >&6; }
28282 { echo "$as_me:$LINENO: result: no" >&5
28283 echo "${ECHO_T}no" >&6; }
28291 # Check whether --with-embedded-mysql was given.
28292 if test "${with_embedded_mysql+set}" = set; then
28293 withval=$with_embedded_mysql;
28294 if test "$withval" != "no"; then
28295 if test "$withval" = "yes"; then
28296 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28297 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28298 if test -d /usr/local/mysql/lib64/mysql; then
28299 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28301 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28303 MYSQL_BINDIR=/usr/local/mysql/bin
28304 elif test -f /usr/include/mysql/mysql.h; then
28305 MYSQL_INCDIR=/usr/include/mysql
28306 if test -d /usr/lib64/mysql; then
28307 MYSQL_LIBDIR=/usr/lib64/mysql
28309 MYSQL_LIBDIR=/usr/lib/mysql
28311 MYSQL_BINDIR=/usr/bin
28312 elif test -f /usr/include/mysql.h; then
28313 MYSQL_INCDIR=/usr/include
28314 if test -d /usr/lib64; then
28315 MYSQL_LIBDIR=/usr/lib64
28317 MYSQL_LIBDIR=/usr/lib
28319 MYSQL_BINDIR=/usr/bin
28320 elif test -f /usr/local/include/mysql/mysql.h; then
28321 MYSQL_INCDIR=/usr/local/include/mysql
28322 if test -d /usr/local/lib64/mysql; then
28323 MYSQL_LIBDIR=/usr/local/lib64/mysql
28325 MYSQL_LIBDIR=/usr/local/lib/mysql
28327 MYSQL_BINDIR=/usr/local/bin
28328 elif test -f /usr/local/include/mysql.h; then
28329 MYSQL_INCDIR=/usr/local/include
28330 if test -d /usr/local/lib64; then
28331 MYSQL_LIBDIR=/usr/local/lib64
28333 MYSQL_LIBDIR=/usr/local/lib
28335 MYSQL_BINDIR=/usr/local/bin
28337 { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28340 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28341 { (exit 1); exit 1; }; }
28344 if test -f $withval/include/mysql/mysql.h; then
28345 MYSQL_INCDIR=$withval/include/mysql
28346 if test -d $withval/lib64/mysql; then
28347 MYSQL_LIBDIR=$withval/lib64/mysql
28349 MYSQL_LIBDIR=$withval/lib/mysql
28351 MYSQL_BINDIR=$withval/bin
28352 elif test -f $withval/include/mysql.h; then
28353 MYSQL_INCDIR=$withval/include
28354 if test -d $withval/lib64; then
28355 MYSQL_LIBDIR=$withval/lib64
28357 MYSQL_LIBDIR=$withval/lib
28359 MYSQL_BINDIR=$withval/bin
28361 { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28363 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28364 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28365 { (exit 1); exit 1; }; }
28368 SQL_INCLUDE=-I$MYSQL_INCDIR
28369 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28370 SQL_BINDIR=$MYSQL_BINDIR
28371 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28373 cat >>confdefs.h <<\_ACEOF
28374 #define HAVE_MYSQL 1
28377 cat >>confdefs.h <<\_ACEOF
28378 #define HAVE_EMBEDDED_MYSQL 1
28381 { echo "$as_me:$LINENO: result: yes" >&5
28382 echo "${ECHO_T}yes" >&6; }
28389 { echo "$as_me:$LINENO: result: no" >&5
28390 echo "${ECHO_T}no" >&6; }
28406 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28407 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28409 # Check whether --with-sqlite3 was given.
28410 if test "${with_sqlite3+set}" = set; then
28411 withval=$with_sqlite3;
28412 if test "$withval" != "no"; then
28413 if test "$withval" = "yes"; then
28414 if test -f /usr/local/include/sqlite3.h; then
28415 SQLITE_INCDIR=/usr/local/include
28416 if test -d /usr/local/lib64; then
28417 SQLITE_LIBDIR=/usr/local/lib64
28419 SQLITE_LIBDIR=/usr/local/lib
28421 SQLITE_BINDIR=/usr/local/bin
28422 elif test -f /usr/include/sqlite3.h; then
28423 SQLITE_INCDIR=/usr/include
28424 if test -d /usr/lib64; then
28425 SQLITE_LIBDIR=/usr/lib64
28427 SQLITE_LIBDIR=/usr/lib
28429 SQLITE_BINDIR=/usr/bin
28430 elif test -f $prefix/include/sqlite3.h; then
28431 SQLITE_INCDIR=$prefix/include
28432 if test -d $prefix/lib64; then
28433 SQLITE_LIBDIR=$prefix/lib64
28435 SQLITE_LIBDIR=$prefix/lib
28437 SQLITE_BINDIR=$prefix/bin
28439 { echo "$as_me:$LINENO: result: no" >&5
28440 echo "${ECHO_T}no" >&6; }
28441 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28442 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28443 { (exit 1); exit 1; }; }
28446 if test -f $withval/sqlite3.h; then
28447 SQLITE_INCDIR=$withval
28448 SQLITE_LIBDIR=$withval
28449 SQLITE_BINDIR=$withval
28450 elif test -f $withval/include/sqlite3.h; then
28451 SQLITE_INCDIR=$withval/include
28452 if test -d $withval/lib64; then
28453 SQLITE_LIBDIR=$withval/lib64
28455 SQLITE_LIBDIR=$withval/lib
28457 SQLITE_BINDIR=$withval/bin
28459 { echo "$as_me:$LINENO: result: no" >&5
28460 echo "${ECHO_T}no" >&6; }
28461 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28462 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28463 { (exit 1); exit 1; }; }
28466 SQL_INCLUDE=-I$SQLITE_INCDIR
28467 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28468 SQL_BINDIR=$SQLITE_BINDIR
28469 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28471 cat >>confdefs.h <<\_ACEOF
28472 #define HAVE_SQLITE3 1
28475 { echo "$as_me:$LINENO: result: yes" >&5
28476 echo "${ECHO_T}yes" >&6; }
28478 support_sqlite3=yes
28483 { echo "$as_me:$LINENO: result: no" >&5
28484 echo "${ECHO_T}no" >&6; }
28489 { echo "$as_me:$LINENO: result: no" >&5
28490 echo "${ECHO_T}no" >&6; }
28500 # BA_CHECK_SQLITE_DB
28504 { echo "$as_me:$LINENO: checking for DBI support" >&5
28505 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28507 # Check whether --with-dbi was given.
28508 if test "${with_dbi+set}" = set; then
28510 if test "$withval" != "no"; then
28511 if test "$withval" = "yes"; then
28512 if test -f /usr/local/include/dbi/dbi.h; then
28513 DBI_INCDIR=/usr/local/dbi/include
28514 if test -d /usr/local/lib64; then
28515 DBI_LIBDIR=/usr/local/lib64
28517 DBI_LIBDIR=/usr/local/lib
28519 DBI_BINDIR=/usr/local/bin
28520 elif test -f /usr/include/dbi/dbi.h; then
28521 DBI_INCDIR=/usr/include
28522 if test -d /usr/lib64; then
28523 DBI_LIBDIR=/usr/lib64
28525 DBI_LIBDIR=/usr/lib
28527 DBI_BINDIR=/usr/bin
28528 elif test -f $prefix/include/dbi/dbi.h; then
28529 DBI_INCDIR=$prefix/include
28530 if test -d $prefix/lib64; then
28531 DBI_LIBDIR=$prefix/lib64
28533 DBI_LIBDIR=$prefix/lib
28535 DBI_BINDIR=$prefix/bin
28537 { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28540 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28541 { (exit 1); exit 1; }; }
28543 if test -d /usr/local/lib/dbd; then
28544 DRIVERDIR=/usr/local/lib/dbd
28545 if test -d /usr/local/lib64/dbd; then
28546 DRIVERDIR=/usr/local/lib64/dbd
28548 DRIVERDIR=/usr/local/lib/dbd
28550 elif test -d /usr/lib/dbd; then
28551 DRIVERDIR=/usr/lib/dbd
28552 if test -d /usr/lib64/dbd; then
28553 DRIVERDIR=/usr/lib64/dbd
28555 DRIVERDIR=/usr/lib/dbd
28557 elif test -d $prefix/lib/dbd; then
28558 if test -d $prefix/lib64/dbd; then
28559 DRIVERDIR=$prefix/lib64/dbd
28561 DRIVERDIR=$prefix/lib/dbd
28563 elif test -d /usr/local/lib64/dbd; then
28564 DRIVERDIR=/usr/local/lib64/dbd
28565 elif test -d /usr/lib64/dbd; then
28566 DRIVERDIR=/usr/lib64/dbd
28567 elif test -d $prefix/lib64/dbd; then
28568 DRIVERDIR=$prefix/lib64/dbd
28570 { echo "$as_me:$LINENO: result: no" >&5
28571 echo "${ECHO_T}no" >&6; }
28572 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28573 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28574 { (exit 1); exit 1; }; }
28577 if test -f $withval/dbi.h; then
28578 DBI_INCDIR=$withval
28579 DBI_LIBDIR=$withval
28580 DBI_BINDIR=$withval
28581 elif test -f $withval/include/dbi/dbi.h; then
28582 DBI_INCDIR=$withval/include
28583 if test -d $withval/lib64; then
28584 DBI_LIBDIR=$withval/lib64
28586 DBI_LIBDIR=$withval/lib
28588 DBI_BINDIR=$withval/bin
28590 { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28593 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28594 { (exit 1); exit 1; }; }
28596 if test -d $withval/dbd; then
28597 DRIVERDIR=$withval/dbd
28598 elif test -d $withval/lib/; then
28599 if test -d $withval/lib64/dbd; then
28600 DRIVERDIR=$withval/lib64/dbd
28602 DRIVERDIR=$withval/lib/dbd
28604 elif test -d $withval/lib64/dbd; then
28605 DRIVERDIR=$withval/lib64/dbd
28607 { echo "$as_me:$LINENO: result: no" >&5
28608 echo "${ECHO_T}no" >&6; }
28609 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28610 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28611 { (exit 1); exit 1; }; }
28614 SQL_INCLUDE=-I$DBI_INCDIR
28615 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28616 SQL_BINDIR=$DBI_BINDIR
28617 SQL_LIB=$DBI_LIBDIR/libdbi.a
28618 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28621 cat >>confdefs.h <<\_ACEOF
28625 { echo "$as_me:$LINENO: result: yes" >&5
28626 echo "${ECHO_T}yes" >&6; }
28634 { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28640 { echo "$as_me:$LINENO: result: no" >&5
28641 echo "${ECHO_T}no" >&6; }
28656 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28657 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28659 # Check whether --with-dbi-driver was given.
28660 if test "${with_dbi_driver+set}" = set; then
28661 withval=$with_dbi_driver;
28662 if test "$withval" != "no"; then
28666 if test -f /usr/local/mysql/bin/mysql; then
28667 SQL_BINDIR=/usr/local/mysql/bin
28668 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28669 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28670 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28672 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28674 elif test -f /usr/bin/mysql; then
28675 SQL_BINDIR=/usr/bin
28676 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28677 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28678 SQL_LIBDIR=/usr/lib64/mysql
28679 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28680 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28681 SQL_LIBDIR=/usr/lib/mysql
28683 SQL_LIBDIR=/usr/lib
28685 elif test -f /usr/local/bin/mysql; then
28686 SQL_BINDIR=/usr/local/bin
28687 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28688 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28689 SQL_LIBDIR=/usr/local/lib64/mysql
28690 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28691 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28692 SQL_LIBDIR=/usr/local/lib/mysql
28694 SQL_LIBDIR=/usr/local/lib
28696 elif test -f $withval/bin/mysql; then
28697 SQL_BINDIR=$withval/bin
28698 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28699 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28700 SQL_LIBDIR=$withval/lib64/mysql
28701 elif test -f $withval/lib64/libmysqlclient_r.a \
28702 -o -f $withval/lib64/libmysqlclient_r.so; then
28703 SQL_LIBDIR=$withval/lib64
28704 elif test -f $withval/lib/libmysqlclient_r.a \
28705 -o -f $withval/lib/libmysqlclient_r.so; then
28706 SQL_LIBDIR=$withval/lib/
28708 SQL_LIBDIR=$withval/lib/mysql
28711 { echo "$as_me:$LINENO: result: no" >&5
28712 echo "${ECHO_T}no" >&6; }
28713 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28714 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28715 { (exit 1); exit 1; }; }
28717 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28718 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28720 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28724 db_prog="postgresql"
28725 PG_CONFIG=`which pg_config`
28726 if test -n "$PG_CONFIG"; then
28727 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28728 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28729 elif test -f /usr/local/bin/psql; then
28730 SQL_BINDIR=/usr/local/bin
28731 if test -d /usr/local/lib64; then
28732 SQL_LIBDIR=/usr/local/lib64
28734 SQL_LIBDIR=/usr/local/lib
28736 elif test -f /usr/bin/psql; then
28737 SQL_BINDIR=/usr/local/bin
28738 if test -d /usr/lib64/postgresql; then
28739 SQL_LIBDIR=/usr/lib64/postgresql
28740 elif test -d /usr/lib/postgresql; then
28741 SQL_LIBDIR=/usr/lib/postgresql
28742 elif test -d /usr/lib64; then
28743 SQL_LIBDIR=/usr/lib64
28745 SQL_LIBDIR=/usr/lib
28747 elif test -f $withval/bin/psql; then
28748 SQL_BINDIR=$withval/bin
28749 if test -d $withval/lib64; then
28750 SQL_LIBDIR=$withval/lib64
28752 SQL_LIBDIR=$withval/lib
28755 { echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6; }
28757 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28758 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28759 { (exit 1); exit 1; }; }
28761 if test -f $SQL_LIBDIR/libpq.so; then
28762 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28764 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28769 if test -f /usr/local/bin/sqlite; then
28770 SQL_BINDIR=/usr/local/bin
28771 if test -d /usr/local/lib64; then
28772 SQL_LIBDIR=/usr/local/lib64
28774 SQL_LIBDIR=/usr/local/lib
28776 elif test -f /usr/bin/sqlite; then
28777 SQL_BINDIR=/usr/bin
28778 if test -d /usr/lib64; then
28779 SQL_LIBDIR=/usr/lib64
28781 SQL_LIBDIR=/usr/lib
28783 elif test -f $withval/bin/sqlite; then
28784 SQL_BINDIR=$withval/bin
28785 if test -d $withval/lib64; then
28786 SQL_LIBDIR=$withval/lib64
28788 SQL_LIBDIR=$withval/lib
28791 { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28794 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28795 { (exit 1); exit 1; }; }
28797 if test -f $SQL_LIBDIR/libsqlite.so; then
28798 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28800 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28805 if test -f /usr/local/bin/sqlite3; then
28806 SQL_BINDIR=/usr/local/bin
28807 if test -d /usr/local/lib64; then
28808 SQL_LIBDIR=/usr/local/lib64
28810 SQL_LIBDIR=/usr/local/lib
28812 elif test -f /usr/bin/sqlite3; then
28813 SQL_BINDIR=/usr/bin
28814 if test -d /usr/lib64; then
28815 SQL_LIBDIR=/usr/lib64
28817 SQL_LIBDIR=/usr/lib
28819 elif test -f $withval/bin/sqlite3; then
28820 SQL_BINDIR=$withval/bin
28821 if test -d $withval/lib64; then
28822 SQL_LIBDIR=$withval/lib64
28824 SQL_LIBDIR=$withval/lib
28827 { echo "$as_me:$LINENO: result: no" >&5
28828 echo "${ECHO_T}no" >&6; }
28829 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28830 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28831 { (exit 1); exit 1; }; }
28833 if test -f $SQL_LIBDIR/libsqlite3.so; then
28834 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28836 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28840 { echo "$as_me:$LINENO: result: no" >&5
28841 echo "${ECHO_T}no" >&6; }
28842 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28843 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28844 { (exit 1); exit 1; }; }
28848 { echo "$as_me:$LINENO: result: yes" >&5
28849 echo "${ECHO_T}yes" >&6; }
28852 { echo "$as_me:$LINENO: result: no" >&5
28853 echo "${ECHO_T}no" >&6; }
28858 { echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6; }
28872 support_batch_insert=no
28873 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28875 if test $pkg = 0; then
28876 support_batch_insert=yes
28877 # Check whether --enable-batch-insert was given.
28878 if test "${enable_batch_insert+set}" = set; then
28879 enableval=$enable_batch_insert;
28880 if test x$enableval = xno; then
28881 support_batch_insert=no
28883 support_batch_insert=yes
28891 if test x$DB_TYPE = xpostgresql; then
28892 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28893 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28894 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28897 ac_check_lib_save_LIBS=$LIBS
28899 cat >conftest.$ac_ext <<_ACEOF
28902 cat confdefs.h >>conftest.$ac_ext
28903 cat >>conftest.$ac_ext <<_ACEOF
28904 /* end confdefs.h. */
28906 /* Override any GCC internal prototype to avoid an error.
28907 Use char because int might match the return type of a GCC
28908 builtin and then its argument prototype would still apply. */
28912 char PQisthreadsafe ();
28916 return PQisthreadsafe ();
28921 rm -f conftest.$ac_objext conftest$ac_exeext
28922 if { (ac_try="$ac_link"
28923 case "(($ac_try" in
28924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_link") 2>conftest.er1
28930 grep -v '^ *+' conftest.er1 >conftest.err
28932 cat conftest.err >&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } && {
28935 test -z "$ac_c_werror_flag" ||
28936 test ! -s conftest.err
28937 } && test -s conftest$ac_exeext &&
28938 $as_test_x conftest$ac_exeext; then
28939 ac_cv_lib_pq_PQisthreadsafe=yes
28941 echo "$as_me: failed program was:" >&5
28942 sed 's/^/| /' conftest.$ac_ext >&5
28944 ac_cv_lib_pq_PQisthreadsafe=no
28947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28948 conftest$ac_exeext conftest.$ac_ext
28949 LIBS=$ac_check_lib_save_LIBS
28951 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28952 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28953 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28955 cat >>confdefs.h <<\_ACEOF
28956 #define HAVE_PQISTHREADSAFE 1
28961 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28962 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28963 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 ac_check_lib_save_LIBS=$LIBS
28968 cat >conftest.$ac_ext <<_ACEOF
28971 cat confdefs.h >>conftest.$ac_ext
28972 cat >>conftest.$ac_ext <<_ACEOF
28973 /* end confdefs.h. */
28975 /* Override any GCC internal prototype to avoid an error.
28976 Use char because int might match the return type of a GCC
28977 builtin and then its argument prototype would still apply. */
28981 char PQputCopyData ();
28985 return PQputCopyData ();
28990 rm -f conftest.$ac_objext conftest$ac_exeext
28991 if { (ac_try="$ac_link"
28992 case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_link") 2>conftest.er1
28999 grep -v '^ *+' conftest.er1 >conftest.err
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } && {
29004 test -z "$ac_c_werror_flag" ||
29005 test ! -s conftest.err
29006 } && test -s conftest$ac_exeext &&
29007 $as_test_x conftest$ac_exeext; then
29008 ac_cv_lib_pq_PQputCopyData=yes
29010 echo "$as_me: failed program was:" >&5
29011 sed 's/^/| /' conftest.$ac_ext >&5
29013 ac_cv_lib_pq_PQputCopyData=no
29016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29017 conftest$ac_exeext conftest.$ac_ext
29018 LIBS=$ac_check_lib_save_LIBS
29020 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29021 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29022 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29024 cat >>confdefs.h <<\_ACEOF
29025 #define HAVE_PQ_COPY 1
29030 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29032 support_batch_insert=no
29036 if test x$DB_TYPE = xdbi; then
29040 if test $DB_PROG = postgresql; then
29041 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29042 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29043 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 ac_check_lib_save_LIBS=$LIBS
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29055 /* Override any GCC internal prototype to avoid an error.
29056 Use char because int might match the return type of a GCC
29057 builtin and then its argument prototype would still apply. */
29061 char PQisthreadsafe ();
29065 return PQisthreadsafe ();
29070 rm -f conftest.$ac_objext conftest$ac_exeext
29071 if { (ac_try="$ac_link"
29072 case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_link") 2>conftest.er1
29079 grep -v '^ *+' conftest.er1 >conftest.err
29081 cat conftest.err >&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } && {
29084 test -z "$ac_c_werror_flag" ||
29085 test ! -s conftest.err
29086 } && test -s conftest$ac_exeext &&
29087 $as_test_x conftest$ac_exeext; then
29088 ac_cv_lib_pq_PQisthreadsafe=yes
29090 echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29093 ac_cv_lib_pq_PQisthreadsafe=no
29096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29097 conftest$ac_exeext conftest.$ac_ext
29098 LIBS=$ac_check_lib_save_LIBS
29100 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29101 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29102 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29103 cat >>confdefs.h <<\_ACEOF
29104 #define HAVE_PQISTHREADSAFE 1
29109 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29110 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29111 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 ac_check_lib_save_LIBS=$LIBS
29116 cat >conftest.$ac_ext <<_ACEOF
29119 cat confdefs.h >>conftest.$ac_ext
29120 cat >>conftest.$ac_ext <<_ACEOF
29121 /* end confdefs.h. */
29123 /* Override any GCC internal prototype to avoid an error.
29124 Use char because int might match the return type of a GCC
29125 builtin and then its argument prototype would still apply. */
29129 char PQputCopyData ();
29133 return PQputCopyData ();
29138 rm -f conftest.$ac_objext conftest$ac_exeext
29139 if { (ac_try="$ac_link"
29140 case "(($ac_try" in
29141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142 *) ac_try_echo=$ac_try;;
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145 (eval "$ac_link") 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } && {
29152 test -z "$ac_c_werror_flag" ||
29153 test ! -s conftest.err
29154 } && test -s conftest$ac_exeext &&
29155 $as_test_x conftest$ac_exeext; then
29156 ac_cv_lib_pq_PQputCopyData=yes
29158 echo "$as_me: failed program was:" >&5
29159 sed 's/^/| /' conftest.$ac_ext >&5
29161 ac_cv_lib_pq_PQputCopyData=no
29164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29165 conftest$ac_exeext conftest.$ac_ext
29166 LIBS=$ac_check_lib_save_LIBS
29168 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29169 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29170 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29171 cat >>confdefs.h <<\_ACEOF
29172 #define HAVE_PQ_COPY 1
29177 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29181 if test $DB_PROG = mysql; then
29182 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29186 if test $DB_PROG = sqlite3; then
29187 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29191 if test $pkg = 0; then
29192 # Check whether --enable-batch-insert was given.
29193 if test "${enable_batch_insert+set}" = set; then
29194 enableval=$enable_batch_insert;
29195 if test x$enableval = xno; then
29196 support_batch_insert=no
29198 support_batch_insert=yes
29211 if test $support_batch_insert = yes ; then
29213 cat >>confdefs.h <<\_ACEOF
29214 #define HAVE_BATCH_FILE_INSERT 1
29219 cat >>confdefs.h <<\_ACEOF
29220 #define PROTOTYPES 1
29224 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29225 if test -z "$CCOPTS"; then
29226 CCOPTS='-g -O2 -Wall'
29233 largefile_support="no"
29235 # Check whether --enable-largefile was given.
29236 if test "${enable_largefile+set}" = set; then
29237 enableval=$enable_largefile;
29240 if test "$enable_largefile" != no; then
29241 if test -n "$ac_tool_prefix"; then
29242 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29243 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29246 if test "${ac_cv_prog_GETCONF+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29249 if test -n "$GETCONF"; then
29250 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29253 for as_dir in $PATH
29256 test -z "$as_dir" && as_dir=.
29257 for ac_exec_ext in '' $ac_executable_extensions; do
29258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29259 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29269 GETCONF=$ac_cv_prog_GETCONF
29270 if test -n "$GETCONF"; then
29271 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29272 echo "${ECHO_T}$GETCONF" >&6; }
29274 { echo "$as_me:$LINENO: result: no" >&5
29275 echo "${ECHO_T}no" >&6; }
29280 if test -z "$ac_cv_prog_GETCONF"; then
29281 ac_ct_GETCONF=$GETCONF
29282 # Extract the first word of "getconf", so it can be a program name with args.
29283 set dummy getconf; ac_word=$2
29284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29286 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29289 if test -n "$ac_ct_GETCONF"; then
29290 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29293 for as_dir in $PATH
29296 test -z "$as_dir" && as_dir=.
29297 for ac_exec_ext in '' $ac_executable_extensions; do
29298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29299 ac_cv_prog_ac_ct_GETCONF="getconf"
29300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29309 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29310 if test -n "$ac_ct_GETCONF"; then
29311 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29312 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29314 { echo "$as_me:$LINENO: result: no" >&5
29315 echo "${ECHO_T}no" >&6; }
29318 if test "x$ac_ct_GETCONF" = x; then
29321 case $cross_compiling:$ac_tool_warned in
29323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29324 whose name does not start with the host triplet. If you think this
29325 configuration is useful to you, please write to autoconf@gnu.org." >&5
29326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29327 whose name does not start with the host triplet. If you think this
29328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29329 ac_tool_warned=yes ;;
29331 GETCONF=$ac_ct_GETCONF
29334 GETCONF="$ac_cv_prog_GETCONF"
29337 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29338 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29339 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29343 ac_cv_sys_largefile_CFLAGS=no
29345 # IRIX 6.2 and later require cc -n32.
29346 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29347 if test "$GCC" != yes; then
29348 ac_cv_sys_largefile_CFLAGS=-n32
29351 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29352 cat >conftest.$ac_ext <<_ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h. */
29367 rm -f conftest.$ac_objext conftest$ac_exeext
29368 if { (ac_try="$ac_link"
29369 case "(($ac_try" in
29370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29371 *) ac_try_echo=$ac_try;;
29373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29374 (eval "$ac_link") 2>conftest.er1
29376 grep -v '^ *+' conftest.er1 >conftest.err
29378 cat conftest.err >&5
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); } && {
29381 test -z "$ac_c_werror_flag" ||
29382 test ! -s conftest.err
29383 } && test -s conftest$ac_exeext &&
29384 $as_test_x conftest$ac_exeext; then
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29390 ac_cv_sys_largefile_CFLAGS=no
29393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29394 conftest$ac_exeext conftest.$ac_ext
29399 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29400 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29401 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29402 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29403 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29406 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29407 ac_cv_sys_largefile_LDFLAGS=no
29411 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29412 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29413 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29414 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29415 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29416 echo $ECHO_N "(cached) $ECHO_C" >&6
29418 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29419 ac_cv_sys_largefile_LIBS=no
29423 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29424 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29426 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29429 -D_FILE_OFFSET_BITS=*) ;;
29430 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29431 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29436 case "$CPPFLAGS" in
29437 '') CPPFLAGS="$ac_flag" ;;
29438 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29446 '') CFLAGS="$ac_flag" ;;
29447 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29452 case "$ac_cv_sys_largefile_LDFLAGS" in
29456 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29457 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29460 case "$ac_cv_sys_largefile_LIBS" in
29464 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29465 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29468 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29469 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29470 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 ac_cv_sys_file_offset_bits=no
29474 ac_cv_sys_file_offset_bits=64
29475 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29477 -D_FILE_OFFSET_BITS)
29478 ac_cv_sys_file_offset_bits=1 ;;
29479 -D_FILE_OFFSET_BITS=*)
29480 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29485 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29486 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29487 if test "$ac_cv_sys_file_offset_bits" != no; then
29489 cat >>confdefs.h <<_ACEOF
29490 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29494 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29495 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29496 if test "${ac_cv_sys_largefile_source+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29499 ac_cv_sys_largefile_source=no
29500 ac_cv_sys_largefile_source=1
29501 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29503 -D_LARGEFILE_SOURCE)
29504 ac_cv_sys_largefile_source=1 ;;
29505 -D_LARGEFILE_SOURCE=*)
29506 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29511 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29512 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29513 if test "$ac_cv_sys_largefile_source" != no; then
29515 cat >>confdefs.h <<_ACEOF
29516 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29520 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29521 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29522 if test "${ac_cv_sys_large_files+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29525 ac_cv_sys_large_files=no
29526 ac_cv_sys_large_files=1
29527 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29530 ac_cv_sys_large_files=1 ;;
29532 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29537 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29538 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29539 if test "$ac_cv_sys_large_files" != no; then
29541 cat >>confdefs.h <<_ACEOF
29542 #define _LARGE_FILES $ac_cv_sys_large_files
29549 { echo "$as_me:$LINENO: checking for X" >&5
29550 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29553 # Check whether --with-x was given.
29554 if test "${with_x+set}" = set; then
29558 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29559 if test "x$with_x" = xno; then
29560 # The user explicitly disabled X.
29563 case $x_includes,$x_libraries in #(
29564 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29565 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29566 { (exit 1); exit 1; }; };; #(
29567 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29568 echo $ECHO_N "(cached) $ECHO_C" >&6
29570 # One or both of the vars are not set, and there is no cached value.
29571 ac_x_includes=no ac_x_libraries=no
29572 rm -f -r conftest.dir
29573 if mkdir conftest.dir; then
29575 cat >Imakefile <<'_ACEOF'
29577 @echo incroot='${INCROOT}'
29579 @echo usrlibdir='${USRLIBDIR}'
29581 @echo libdir='${LIBDIR}'
29583 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29584 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29585 for ac_var in incroot usrlibdir libdir; do
29586 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29588 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29589 for ac_extension in a so sl; do
29590 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29591 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29592 ac_im_usrlibdir=$ac_im_libdir; break
29595 # Screen out bogus values from the imake configuration. They are
29596 # bogus both because they are the default anyway, and because
29597 # using them would break gcc on systems where it needs fixed includes.
29598 case $ac_im_incroot in
29599 /usr/include) ac_x_includes= ;;
29600 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29602 case $ac_im_usrlibdir in
29603 /usr/lib | /lib) ;;
29604 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29608 rm -f -r conftest.dir
29611 # Standard set of common directories for X headers.
29612 # Check X11 before X11Rn because it is often a symlink to the current release.
29624 /usr/local/X11/include
29625 /usr/local/X11R6/include
29626 /usr/local/X11R5/include
29627 /usr/local/X11R4/include
29629 /usr/local/include/X11
29630 /usr/local/include/X11R6
29631 /usr/local/include/X11R5
29632 /usr/local/include/X11R4
29636 /usr/XFree86/include/X11
29640 /usr/unsupported/include
29641 /usr/athena/include
29642 /usr/local/x11r5/include
29643 /usr/lpp/Xamples/include
29645 /usr/openwin/include
29646 /usr/openwin/share/include'
29648 if test "$ac_x_includes" = no; then
29649 # Guess where to find include files, by looking for Xlib.h.
29650 # First, try using that file with no special directory specified.
29651 cat >conftest.$ac_ext <<_ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h. */
29657 #include <X11/Xlib.h>
29659 if { (ac_try="$ac_cpp conftest.$ac_ext"
29660 case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29667 grep -v '^ *+' conftest.er1 >conftest.err
29669 cat conftest.err >&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); } >/dev/null && {
29672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29673 test ! -s conftest.err
29675 # We can compile using X headers with no special include directory.
29678 echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29681 for ac_dir in $ac_x_header_dirs; do
29682 if test -r "$ac_dir/X11/Xlib.h"; then
29683 ac_x_includes=$ac_dir
29689 rm -f conftest.err conftest.$ac_ext
29690 fi # $ac_x_includes = no
29692 if test "$ac_x_libraries" = no; then
29693 # Check for the libraries.
29694 # See if we find them without any special options.
29695 # Don't add to $LIBS permanently.
29698 cat >conftest.$ac_ext <<_ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h. */
29704 #include <X11/Xlib.h>
29713 rm -f conftest.$ac_objext conftest$ac_exeext
29714 if { (ac_try="$ac_link"
29715 case "(($ac_try" in
29716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717 *) ac_try_echo=$ac_try;;
29719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29720 (eval "$ac_link") 2>conftest.er1
29722 grep -v '^ *+' conftest.er1 >conftest.err
29724 cat conftest.err >&5
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } && {
29727 test -z "$ac_c_werror_flag" ||
29728 test ! -s conftest.err
29729 } && test -s conftest$ac_exeext &&
29730 $as_test_x conftest$ac_exeext; then
29732 # We can link X programs with no special library path.
29735 echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29739 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29741 # Don't even attempt the hair of trying to link an X program!
29742 for ac_extension in a so sl; do
29743 if test -r "$ac_dir/libX11.$ac_extension"; then
29744 ac_x_libraries=$ac_dir
29751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29752 conftest$ac_exeext conftest.$ac_ext
29753 fi # $ac_x_libraries = no
29755 case $ac_x_includes,$ac_x_libraries in #(
29756 no,* | *,no | *\'*)
29757 # Didn't find X, or a directory has "'" in its name.
29758 ac_cv_have_x="have_x=no";; #(
29760 # Record where we found X for the cache.
29761 ac_cv_have_x="have_x=yes\
29762 ac_x_includes='$ac_x_includes'\
29763 ac_x_libraries='$ac_x_libraries'"
29769 eval "$ac_cv_have_x"
29772 if test "$have_x" != yes; then
29773 { echo "$as_me:$LINENO: result: $have_x" >&5
29774 echo "${ECHO_T}$have_x" >&6; }
29777 # If each of the values was on the command line, it overrides each guess.
29778 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29779 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29780 # Update the cache value to reflect the command line values.
29781 ac_cv_have_x="have_x=yes\
29782 ac_x_includes='$x_includes'\
29783 ac_x_libraries='$x_libraries'"
29784 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29785 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29788 if test "$no_x" = yes; then
29789 # Not all programs may use this symbol, but it does not hurt to define it.
29791 cat >>confdefs.h <<\_ACEOF
29792 #define X_DISPLAY_MISSING 1
29795 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29797 if test -n "$x_includes"; then
29798 X_CFLAGS="$X_CFLAGS -I$x_includes"
29801 # It would also be nice to do this for all -L options, not just this one.
29802 if test -n "$x_libraries"; then
29803 X_LIBS="$X_LIBS -L$x_libraries"
29804 # For Solaris; some versions of Sun CC require a space after -R and
29805 # others require no space. Words are not sufficient . . . .
29806 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29807 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29808 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29809 ac_xsave_c_werror_flag=$ac_c_werror_flag
29810 ac_c_werror_flag=yes
29811 cat >conftest.$ac_ext <<_ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h. */
29826 rm -f conftest.$ac_objext conftest$ac_exeext
29827 if { (ac_try="$ac_link"
29828 case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_link") 2>conftest.er1
29835 grep -v '^ *+' conftest.er1 >conftest.err
29837 cat conftest.err >&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } && {
29840 test -z "$ac_c_werror_flag" ||
29841 test ! -s conftest.err
29842 } && test -s conftest$ac_exeext &&
29843 $as_test_x conftest$ac_exeext; then
29844 { echo "$as_me:$LINENO: result: no" >&5
29845 echo "${ECHO_T}no" >&6; }
29846 X_LIBS="$X_LIBS -R$x_libraries"
29848 echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29851 LIBS="$ac_xsave_LIBS -R $x_libraries"
29852 cat >conftest.$ac_ext <<_ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h. */
29867 rm -f conftest.$ac_objext conftest$ac_exeext
29868 if { (ac_try="$ac_link"
29869 case "(($ac_try" in
29870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871 *) ac_try_echo=$ac_try;;
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874 (eval "$ac_link") 2>conftest.er1
29876 grep -v '^ *+' conftest.er1 >conftest.err
29878 cat conftest.err >&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } && {
29881 test -z "$ac_c_werror_flag" ||
29882 test ! -s conftest.err
29883 } && test -s conftest$ac_exeext &&
29884 $as_test_x conftest$ac_exeext; then
29885 { echo "$as_me:$LINENO: result: yes" >&5
29886 echo "${ECHO_T}yes" >&6; }
29887 X_LIBS="$X_LIBS -R $x_libraries"
29889 echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29892 { echo "$as_me:$LINENO: result: neither works" >&5
29893 echo "${ECHO_T}neither works" >&6; }
29896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29897 conftest$ac_exeext conftest.$ac_ext
29900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29901 conftest$ac_exeext conftest.$ac_ext
29902 ac_c_werror_flag=$ac_xsave_c_werror_flag
29903 LIBS=$ac_xsave_LIBS
29906 # Check for system-dependent libraries X programs must link with.
29907 # Do this before checking for the system-independent R6 libraries
29908 # (-lICE), since we may need -lsocket or whatever for X linking.
29910 if test "$ISC" = yes; then
29911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29913 # Martyn Johnson says this is needed for Ultrix, if the X
29914 # libraries were built with DECnet support. And Karl Berry says
29915 # the Alpha needs dnet_stub (dnet does not exist).
29916 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29917 cat >conftest.$ac_ext <<_ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29924 /* Override any GCC internal prototype to avoid an error.
29925 Use char because int might match the return type of a GCC
29926 builtin and then its argument prototype would still apply. */
29930 char XOpenDisplay ();
29934 return XOpenDisplay ();
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (ac_try="$ac_link"
29941 case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_link") 2>conftest.er1
29948 grep -v '^ *+' conftest.er1 >conftest.err
29950 cat conftest.err >&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } && {
29953 test -z "$ac_c_werror_flag" ||
29954 test ! -s conftest.err
29955 } && test -s conftest$ac_exeext &&
29956 $as_test_x conftest$ac_exeext; then
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29962 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29963 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29964 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-ldnet $LIBS"
29969 cat >conftest.$ac_ext <<_ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29976 /* Override any GCC internal prototype to avoid an error.
29977 Use char because int might match the return type of a GCC
29978 builtin and then its argument prototype would still apply. */
29986 return dnet_ntoa ();
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_link") 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } && {
30005 test -z "$ac_c_werror_flag" ||
30006 test ! -s conftest.err
30007 } && test -s conftest$ac_exeext &&
30008 $as_test_x conftest$ac_exeext; then
30009 ac_cv_lib_dnet_dnet_ntoa=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_cv_lib_dnet_dnet_ntoa=no
30017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30018 conftest$ac_exeext conftest.$ac_ext
30019 LIBS=$ac_check_lib_save_LIBS
30021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30022 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30023 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30024 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30027 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30028 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30029 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30030 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30033 ac_check_lib_save_LIBS=$LIBS
30034 LIBS="-ldnet_stub $LIBS"
30035 cat >conftest.$ac_ext <<_ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h. */
30042 /* Override any GCC internal prototype to avoid an error.
30043 Use char because int might match the return type of a GCC
30044 builtin and then its argument prototype would still apply. */
30052 return dnet_ntoa ();
30057 rm -f conftest.$ac_objext conftest$ac_exeext
30058 if { (ac_try="$ac_link"
30059 case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_link") 2>conftest.er1
30066 grep -v '^ *+' conftest.er1 >conftest.err
30068 cat conftest.err >&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } && {
30071 test -z "$ac_c_werror_flag" ||
30072 test ! -s conftest.err
30073 } && test -s conftest$ac_exeext &&
30074 $as_test_x conftest$ac_exeext; then
30075 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30080 ac_cv_lib_dnet_stub_dnet_ntoa=no
30083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30084 conftest$ac_exeext conftest.$ac_ext
30085 LIBS=$ac_check_lib_save_LIBS
30087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30088 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30089 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30090 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30097 conftest$ac_exeext conftest.$ac_ext
30098 LIBS="$ac_xsave_LIBS"
30100 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30101 # to get the SysV transport functions.
30102 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30104 # The nsl library prevents programs from opening the X display
30105 # on Irix 5.2, according to T.E. Dickey.
30106 # The functions gethostbyname, getservbyname, and inet_addr are
30107 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30108 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30110 if test "${ac_cv_func_gethostbyname+set}" = set; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30121 #define gethostbyname innocuous_gethostbyname
30123 /* System header to define __stub macros and hopefully few prototypes,
30124 which can conflict with char gethostbyname (); below.
30125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30126 <limits.h> exists even on freestanding compilers. */
30129 # include <limits.h>
30131 # include <assert.h>
30134 #undef gethostbyname
30136 /* Override any GCC internal prototype to avoid an error.
30137 Use char because int might match the return type of a GCC
30138 builtin and then its argument prototype would still apply. */
30142 char gethostbyname ();
30143 /* The GNU C library defines this for functions which it implements
30144 to always fail with ENOSYS. Some functions are actually named
30145 something starting with __ and the normal name is an alias. */
30146 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30153 return gethostbyname ();
30158 rm -f conftest.$ac_objext conftest$ac_exeext
30159 if { (ac_try="$ac_link"
30160 case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_link") 2>conftest.er1
30167 grep -v '^ *+' conftest.er1 >conftest.err
30169 cat conftest.err >&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); } && {
30172 test -z "$ac_c_werror_flag" ||
30173 test ! -s conftest.err
30174 } && test -s conftest$ac_exeext &&
30175 $as_test_x conftest$ac_exeext; then
30176 ac_cv_func_gethostbyname=yes
30178 echo "$as_me: failed program was:" >&5
30179 sed 's/^/| /' conftest.$ac_ext >&5
30181 ac_cv_func_gethostbyname=no
30184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30185 conftest$ac_exeext conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30188 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30190 if test $ac_cv_func_gethostbyname = no; then
30191 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30192 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30193 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30196 ac_check_lib_save_LIBS=$LIBS
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30205 /* Override any GCC internal prototype to avoid an error.
30206 Use char because int might match the return type of a GCC
30207 builtin and then its argument prototype would still apply. */
30211 char gethostbyname ();
30215 return gethostbyname ();
30220 rm -f conftest.$ac_objext conftest$ac_exeext
30221 if { (ac_try="$ac_link"
30222 case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227 (eval "$ac_link") 2>conftest.er1
30229 grep -v '^ *+' conftest.er1 >conftest.err
30231 cat conftest.err >&5
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); } && {
30234 test -z "$ac_c_werror_flag" ||
30235 test ! -s conftest.err
30236 } && test -s conftest$ac_exeext &&
30237 $as_test_x conftest$ac_exeext; then
30238 ac_cv_lib_nsl_gethostbyname=yes
30240 echo "$as_me: failed program was:" >&5
30241 sed 's/^/| /' conftest.$ac_ext >&5
30243 ac_cv_lib_nsl_gethostbyname=no
30246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30247 conftest$ac_exeext conftest.$ac_ext
30248 LIBS=$ac_check_lib_save_LIBS
30250 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30251 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30252 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30256 if test $ac_cv_lib_nsl_gethostbyname = no; then
30257 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30258 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30259 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30260 echo $ECHO_N "(cached) $ECHO_C" >&6
30262 ac_check_lib_save_LIBS=$LIBS
30264 cat >conftest.$ac_ext <<_ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30271 /* Override any GCC internal prototype to avoid an error.
30272 Use char because int might match the return type of a GCC
30273 builtin and then its argument prototype would still apply. */
30277 char gethostbyname ();
30281 return gethostbyname ();
30286 rm -f conftest.$ac_objext conftest$ac_exeext
30287 if { (ac_try="$ac_link"
30288 case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_link") 2>conftest.er1
30295 grep -v '^ *+' conftest.er1 >conftest.err
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } && {
30300 test -z "$ac_c_werror_flag" ||
30301 test ! -s conftest.err
30302 } && test -s conftest$ac_exeext &&
30303 $as_test_x conftest$ac_exeext; then
30304 ac_cv_lib_bsd_gethostbyname=yes
30306 echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30309 ac_cv_lib_bsd_gethostbyname=no
30312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30313 conftest$ac_exeext conftest.$ac_ext
30314 LIBS=$ac_check_lib_save_LIBS
30316 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30317 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30318 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30325 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30326 # socket/setsockopt and other routines are undefined under SCO ODT
30327 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30328 # on later versions), says Simon Leinen: it contains gethostby*
30329 # variants that don't use the name server (or something). -lsocket
30330 # must be given before -lnsl if both are needed. We assume that
30331 # if connect needs -lnsl, so does gethostbyname.
30332 { echo "$as_me:$LINENO: checking for connect" >&5
30333 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30334 if test "${ac_cv_func_connect+set}" = set; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30345 #define connect innocuous_connect
30347 /* System header to define __stub macros and hopefully few prototypes,
30348 which can conflict with char connect (); below.
30349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30350 <limits.h> exists even on freestanding compilers. */
30353 # include <limits.h>
30355 # include <assert.h>
30360 /* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply. */
30367 /* The GNU C library defines this for functions which it implements
30368 to always fail with ENOSYS. Some functions are actually named
30369 something starting with __ and the normal name is an alias. */
30370 #if defined __stub_connect || defined __stub___connect
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (ac_try="$ac_link"
30384 case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_link") 2>conftest.er1
30391 grep -v '^ *+' conftest.er1 >conftest.err
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } && {
30396 test -z "$ac_c_werror_flag" ||
30397 test ! -s conftest.err
30398 } && test -s conftest$ac_exeext &&
30399 $as_test_x conftest$ac_exeext; then
30400 ac_cv_func_connect=yes
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 ac_cv_func_connect=no
30408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30409 conftest$ac_exeext conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30412 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30414 if test $ac_cv_func_connect = no; then
30415 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30416 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30417 if test "${ac_cv_lib_socket_connect+set}" = set; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30420 ac_check_lib_save_LIBS=$LIBS
30421 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30422 cat >conftest.$ac_ext <<_ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30429 /* Override any GCC internal prototype to avoid an error.
30430 Use char because int might match the return type of a GCC
30431 builtin and then its argument prototype would still apply. */
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (ac_try="$ac_link"
30446 case "(($ac_try" in
30447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30448 *) ac_try_echo=$ac_try;;
30450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30451 (eval "$ac_link") 2>conftest.er1
30453 grep -v '^ *+' conftest.er1 >conftest.err
30455 cat conftest.err >&5
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); } && {
30458 test -z "$ac_c_werror_flag" ||
30459 test ! -s conftest.err
30460 } && test -s conftest$ac_exeext &&
30461 $as_test_x conftest$ac_exeext; then
30462 ac_cv_lib_socket_connect=yes
30464 echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30467 ac_cv_lib_socket_connect=no
30470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30471 conftest$ac_exeext conftest.$ac_ext
30472 LIBS=$ac_check_lib_save_LIBS
30474 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30475 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30476 if test $ac_cv_lib_socket_connect = yes; then
30477 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30482 # Guillermo Gomez says -lposix is necessary on A/UX.
30483 { echo "$as_me:$LINENO: checking for remove" >&5
30484 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30485 if test "${ac_cv_func_remove+set}" = set; then
30486 echo $ECHO_N "(cached) $ECHO_C" >&6
30488 cat >conftest.$ac_ext <<_ACEOF
30491 cat confdefs.h >>conftest.$ac_ext
30492 cat >>conftest.$ac_ext <<_ACEOF
30493 /* end confdefs.h. */
30494 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30496 #define remove innocuous_remove
30498 /* System header to define __stub macros and hopefully few prototypes,
30499 which can conflict with char remove (); below.
30500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30501 <limits.h> exists even on freestanding compilers. */
30504 # include <limits.h>
30506 # include <assert.h>
30511 /* Override any GCC internal prototype to avoid an error.
30512 Use char because int might match the return type of a GCC
30513 builtin and then its argument prototype would still apply. */
30518 /* The GNU C library defines this for functions which it implements
30519 to always fail with ENOSYS. Some functions are actually named
30520 something starting with __ and the normal name is an alias. */
30521 #if defined __stub_remove || defined __stub___remove
30533 rm -f conftest.$ac_objext conftest$ac_exeext
30534 if { (ac_try="$ac_link"
30535 case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_link") 2>conftest.er1
30542 grep -v '^ *+' conftest.er1 >conftest.err
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } && {
30547 test -z "$ac_c_werror_flag" ||
30548 test ! -s conftest.err
30549 } && test -s conftest$ac_exeext &&
30550 $as_test_x conftest$ac_exeext; then
30551 ac_cv_func_remove=yes
30553 echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30556 ac_cv_func_remove=no
30559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30560 conftest$ac_exeext conftest.$ac_ext
30562 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30563 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30565 if test $ac_cv_func_remove = no; then
30566 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30567 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30568 if test "${ac_cv_lib_posix_remove+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lposix $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h. */
30580 /* Override any GCC internal prototype to avoid an error.
30581 Use char because int might match the return type of a GCC
30582 builtin and then its argument prototype would still apply. */
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_link") 2>conftest.er1
30604 grep -v '^ *+' conftest.er1 >conftest.err
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } && {
30609 test -z "$ac_c_werror_flag" ||
30610 test ! -s conftest.err
30611 } && test -s conftest$ac_exeext &&
30612 $as_test_x conftest$ac_exeext; then
30613 ac_cv_lib_posix_remove=yes
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618 ac_cv_lib_posix_remove=no
30621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30622 conftest$ac_exeext conftest.$ac_ext
30623 LIBS=$ac_check_lib_save_LIBS
30625 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30626 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30627 if test $ac_cv_lib_posix_remove = yes; then
30628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30633 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30634 { echo "$as_me:$LINENO: checking for shmat" >&5
30635 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30636 if test "${ac_cv_func_shmat+set}" = set; then
30637 echo $ECHO_N "(cached) $ECHO_C" >&6
30639 cat >conftest.$ac_ext <<_ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h. */
30645 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30647 #define shmat innocuous_shmat
30649 /* System header to define __stub macros and hopefully few prototypes,
30650 which can conflict with char shmat (); below.
30651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30652 <limits.h> exists even on freestanding compilers. */
30655 # include <limits.h>
30657 # include <assert.h>
30662 /* Override any GCC internal prototype to avoid an error.
30663 Use char because int might match the return type of a GCC
30664 builtin and then its argument prototype would still apply. */
30669 /* The GNU C library defines this for functions which it implements
30670 to always fail with ENOSYS. Some functions are actually named
30671 something starting with __ and the normal name is an alias. */
30672 #if defined __stub_shmat || defined __stub___shmat
30684 rm -f conftest.$ac_objext conftest$ac_exeext
30685 if { (ac_try="$ac_link"
30686 case "(($ac_try" in
30687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30688 *) ac_try_echo=$ac_try;;
30690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30691 (eval "$ac_link") 2>conftest.er1
30693 grep -v '^ *+' conftest.er1 >conftest.err
30695 cat conftest.err >&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); } && {
30698 test -z "$ac_c_werror_flag" ||
30699 test ! -s conftest.err
30700 } && test -s conftest$ac_exeext &&
30701 $as_test_x conftest$ac_exeext; then
30702 ac_cv_func_shmat=yes
30704 echo "$as_me: failed program was:" >&5
30705 sed 's/^/| /' conftest.$ac_ext >&5
30707 ac_cv_func_shmat=no
30710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30711 conftest$ac_exeext conftest.$ac_ext
30713 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30714 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30716 if test $ac_cv_func_shmat = no; then
30717 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30718 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30719 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 ac_check_lib_save_LIBS=$LIBS
30724 cat >conftest.$ac_ext <<_ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h. */
30731 /* Override any GCC internal prototype to avoid an error.
30732 Use char because int might match the return type of a GCC
30733 builtin and then its argument prototype would still apply. */
30746 rm -f conftest.$ac_objext conftest$ac_exeext
30747 if { (ac_try="$ac_link"
30748 case "(($ac_try" in
30749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30750 *) ac_try_echo=$ac_try;;
30752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30753 (eval "$ac_link") 2>conftest.er1
30755 grep -v '^ *+' conftest.er1 >conftest.err
30757 cat conftest.err >&5
30758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759 (exit $ac_status); } && {
30760 test -z "$ac_c_werror_flag" ||
30761 test ! -s conftest.err
30762 } && test -s conftest$ac_exeext &&
30763 $as_test_x conftest$ac_exeext; then
30764 ac_cv_lib_ipc_shmat=yes
30766 echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30769 ac_cv_lib_ipc_shmat=no
30772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30773 conftest$ac_exeext conftest.$ac_ext
30774 LIBS=$ac_check_lib_save_LIBS
30776 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30777 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30778 if test $ac_cv_lib_ipc_shmat = yes; then
30779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30785 # Check for libraries that X11R6 Xt/Xaw programs need.
30786 ac_save_LDFLAGS=$LDFLAGS
30787 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30788 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30789 # check for ICE first), but we must link in the order -lSM -lICE or
30790 # we get undefined symbols. So assume we have SM if we have ICE.
30791 # These have to be linked with before -lX11, unlike the other
30792 # libraries we check for below, so use a different variable.
30793 # John Interrante, Karl Berry
30794 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30795 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30796 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30797 echo $ECHO_N "(cached) $ECHO_C" >&6
30799 ac_check_lib_save_LIBS=$LIBS
30800 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30801 cat >conftest.$ac_ext <<_ACEOF
30804 cat confdefs.h >>conftest.$ac_ext
30805 cat >>conftest.$ac_ext <<_ACEOF
30806 /* end confdefs.h. */
30808 /* Override any GCC internal prototype to avoid an error.
30809 Use char because int might match the return type of a GCC
30810 builtin and then its argument prototype would still apply. */
30814 char IceConnectionNumber ();
30818 return IceConnectionNumber ();
30823 rm -f conftest.$ac_objext conftest$ac_exeext
30824 if { (ac_try="$ac_link"
30825 case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_link") 2>conftest.er1
30832 grep -v '^ *+' conftest.er1 >conftest.err
30834 cat conftest.err >&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); } && {
30837 test -z "$ac_c_werror_flag" ||
30838 test ! -s conftest.err
30839 } && test -s conftest$ac_exeext &&
30840 $as_test_x conftest$ac_exeext; then
30841 ac_cv_lib_ICE_IceConnectionNumber=yes
30843 echo "$as_me: failed program was:" >&5
30844 sed 's/^/| /' conftest.$ac_ext >&5
30846 ac_cv_lib_ICE_IceConnectionNumber=no
30849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30850 conftest$ac_exeext conftest.$ac_ext
30851 LIBS=$ac_check_lib_save_LIBS
30853 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30854 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30855 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30856 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30859 LDFLAGS=$ac_save_LDFLAGS
30925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30932 ac_res=`eval echo '${'$as_ac_Header'}'`
30933 { echo "$as_me:$LINENO: result: $ac_res" >&5
30934 echo "${ECHO_T}$ac_res" >&6; }
30936 # Is the header compilable?
30937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30939 cat >conftest.$ac_ext <<_ACEOF
30942 cat confdefs.h >>conftest.$ac_ext
30943 cat >>conftest.$ac_ext <<_ACEOF
30944 /* end confdefs.h. */
30945 $ac_includes_default
30946 #include <$ac_header>
30948 rm -f conftest.$ac_objext
30949 if { (ac_try="$ac_compile"
30950 case "(($ac_try" in
30951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952 *) ac_try_echo=$ac_try;;
30954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955 (eval "$ac_compile") 2>conftest.er1
30957 grep -v '^ *+' conftest.er1 >conftest.err
30959 cat conftest.err >&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } && {
30962 test -z "$ac_c_werror_flag" ||
30963 test ! -s conftest.err
30964 } && test -s conftest.$ac_objext; then
30965 ac_header_compiler=yes
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 ac_header_compiler=no
30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30975 echo "${ECHO_T}$ac_header_compiler" >&6; }
30977 # Is the header present?
30978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30980 cat >conftest.$ac_ext <<_ACEOF
30983 cat confdefs.h >>conftest.$ac_ext
30984 cat >>conftest.$ac_ext <<_ACEOF
30985 /* end confdefs.h. */
30986 #include <$ac_header>
30988 if { (ac_try="$ac_cpp conftest.$ac_ext"
30989 case "(($ac_try" in
30990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30991 *) ac_try_echo=$ac_try;;
30993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30996 grep -v '^ *+' conftest.er1 >conftest.err
30998 cat conftest.err >&5
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); } >/dev/null && {
31001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31002 test ! -s conftest.err
31004 ac_header_preproc=yes
31006 echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31009 ac_header_preproc=no
31012 rm -f conftest.err conftest.$ac_ext
31013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31014 echo "${ECHO_T}$ac_header_preproc" >&6; }
31016 # So? What about this header?
31017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31023 ac_header_preproc=yes
31026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31044 echo $ECHO_N "(cached) $ECHO_C" >&6
31046 eval "$as_ac_Header=\$ac_header_preproc"
31048 ac_res=`eval echo '${'$as_ac_Header'}'`
31049 { echo "$as_me:$LINENO: result: $ac_res" >&5
31050 echo "${ECHO_T}$ac_res" >&6; }
31053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31054 cat >>confdefs.h <<_ACEOF
31055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31062 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31064 if test "${ac_cv_header_stdc+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 cat >conftest.$ac_ext <<_ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 #include <stdlib.h>
31074 #include <stdarg.h>
31075 #include <string.h>
31086 rm -f conftest.$ac_objext
31087 if { (ac_try="$ac_compile"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_compile") 2>conftest.er1
31095 grep -v '^ *+' conftest.er1 >conftest.err
31097 cat conftest.err >&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } && {
31100 test -z "$ac_c_werror_flag" ||
31101 test ! -s conftest.err
31102 } && test -s conftest.$ac_objext; then
31103 ac_cv_header_stdc=yes
31105 echo "$as_me: failed program was:" >&5
31106 sed 's/^/| /' conftest.$ac_ext >&5
31108 ac_cv_header_stdc=no
31111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31113 if test $ac_cv_header_stdc = yes; then
31114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31115 cat >conftest.$ac_ext <<_ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h. */
31121 #include <string.h>
31124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31125 $EGREP "memchr" >/dev/null 2>&1; then
31128 ac_cv_header_stdc=no
31134 if test $ac_cv_header_stdc = yes; then
31135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31136 cat >conftest.$ac_ext <<_ACEOF
31139 cat confdefs.h >>conftest.$ac_ext
31140 cat >>conftest.$ac_ext <<_ACEOF
31141 /* end confdefs.h. */
31142 #include <stdlib.h>
31145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31146 $EGREP "free" >/dev/null 2>&1; then
31149 ac_cv_header_stdc=no
31155 if test $ac_cv_header_stdc = yes; then
31156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31157 if test "$cross_compiling" = yes; then
31160 cat >conftest.$ac_ext <<_ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h. */
31167 #include <stdlib.h>
31168 #if ((' ' & 0x0FF) == 0x020)
31169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31172 # define ISLOWER(c) \
31173 (('a' <= (c) && (c) <= 'i') \
31174 || ('j' <= (c) && (c) <= 'r') \
31175 || ('s' <= (c) && (c) <= 'z'))
31176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31184 for (i = 0; i < 256; i++)
31185 if (XOR (islower (i), ISLOWER (i))
31186 || toupper (i) != TOUPPER (i))
31191 rm -f conftest$ac_exeext
31192 if { (ac_try="$ac_link"
31193 case "(($ac_try" in
31194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195 *) ac_try_echo=$ac_try;;
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198 (eval "$ac_link") 2>&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31202 { (case "(($ac_try" in
31203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_try") 2>&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); }; }; then
31213 echo "$as_me: program exited with status $ac_status" >&5
31214 echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31217 ( exit $ac_status )
31218 ac_cv_header_stdc=no
31220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31226 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31227 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31228 if test $ac_cv_header_stdc = yes; then
31230 cat >>confdefs.h <<\_ACEOF
31231 #define STDC_HEADERS 1
31236 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31237 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31238 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31239 echo $ECHO_N "(cached) $ECHO_C" >&6
31241 cat >conftest.$ac_ext <<_ACEOF
31244 cat confdefs.h >>conftest.$ac_ext
31245 cat >>conftest.$ac_ext <<_ACEOF
31246 /* end confdefs.h. */
31247 #include <sys/types.h>
31251 return makedev(0, 0);
31256 rm -f conftest.$ac_objext conftest$ac_exeext
31257 if { (ac_try="$ac_link"
31258 case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_link") 2>conftest.er1
31265 grep -v '^ *+' conftest.er1 >conftest.err
31267 cat conftest.err >&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } && {
31270 test -z "$ac_c_werror_flag" ||
31271 test ! -s conftest.err
31272 } && test -s conftest$ac_exeext &&
31273 $as_test_x conftest$ac_exeext; then
31274 ac_cv_header_sys_types_h_makedev=yes
31276 echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31279 ac_cv_header_sys_types_h_makedev=no
31282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31283 conftest$ac_exeext conftest.$ac_ext
31286 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31287 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31289 if test $ac_cv_header_sys_types_h_makedev = no; then
31290 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31291 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31292 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31293 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31294 echo $ECHO_N "(cached) $ECHO_C" >&6
31296 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31297 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31299 # Is the header compilable?
31300 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31301 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31302 cat >conftest.$ac_ext <<_ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h. */
31308 $ac_includes_default
31309 #include <sys/mkdev.h>
31311 rm -f conftest.$ac_objext
31312 if { (ac_try="$ac_compile"
31313 case "(($ac_try" in
31314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315 *) ac_try_echo=$ac_try;;
31317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31318 (eval "$ac_compile") 2>conftest.er1
31320 grep -v '^ *+' conftest.er1 >conftest.err
31322 cat conftest.err >&5
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); } && {
31325 test -z "$ac_c_werror_flag" ||
31326 test ! -s conftest.err
31327 } && test -s conftest.$ac_objext; then
31328 ac_header_compiler=yes
31330 echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.$ac_ext >&5
31333 ac_header_compiler=no
31336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31338 echo "${ECHO_T}$ac_header_compiler" >&6; }
31340 # Is the header present?
31341 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31342 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31343 cat >conftest.$ac_ext <<_ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h. */
31349 #include <sys/mkdev.h>
31351 if { (ac_try="$ac_cpp conftest.$ac_ext"
31352 case "(($ac_try" in
31353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31354 *) ac_try_echo=$ac_try;;
31356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31359 grep -v '^ *+' conftest.er1 >conftest.err
31361 cat conftest.err >&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); } >/dev/null && {
31364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31365 test ! -s conftest.err
31367 ac_header_preproc=yes
31369 echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31372 ac_header_preproc=no
31375 rm -f conftest.err conftest.$ac_ext
31376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31377 echo "${ECHO_T}$ac_header_preproc" >&6; }
31379 # So? What about this header?
31380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31382 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31383 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31384 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31385 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31386 ac_header_preproc=yes
31389 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31390 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31391 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31392 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31393 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31394 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31395 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31396 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31397 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31398 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31400 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31404 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31405 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31406 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31407 echo $ECHO_N "(cached) $ECHO_C" >&6
31409 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31411 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31412 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31415 if test $ac_cv_header_sys_mkdev_h = yes; then
31417 cat >>confdefs.h <<\_ACEOF
31418 #define MAJOR_IN_MKDEV 1
31425 if test $ac_cv_header_sys_mkdev_h = no; then
31426 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31427 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31428 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31429 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31432 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31433 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31435 # Is the header compilable?
31436 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31437 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31444 $ac_includes_default
31445 #include <sys/sysmacros.h>
31447 rm -f conftest.$ac_objext
31448 if { (ac_try="$ac_compile"
31449 case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_compile") 2>conftest.er1
31456 grep -v '^ *+' conftest.er1 >conftest.err
31458 cat conftest.err >&5
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); } && {
31461 test -z "$ac_c_werror_flag" ||
31462 test ! -s conftest.err
31463 } && test -s conftest.$ac_objext; then
31464 ac_header_compiler=yes
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31469 ac_header_compiler=no
31472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31474 echo "${ECHO_T}$ac_header_compiler" >&6; }
31476 # Is the header present?
31477 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31478 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31479 cat >conftest.$ac_ext <<_ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h. */
31485 #include <sys/sysmacros.h>
31487 if { (ac_try="$ac_cpp conftest.$ac_ext"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31495 grep -v '^ *+' conftest.er1 >conftest.err
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } >/dev/null && {
31500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31501 test ! -s conftest.err
31503 ac_header_preproc=yes
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31508 ac_header_preproc=no
31511 rm -f conftest.err conftest.$ac_ext
31512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31513 echo "${ECHO_T}$ac_header_preproc" >&6; }
31515 # So? What about this header?
31516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31519 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31520 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31521 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31522 ac_header_preproc=yes
31525 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31526 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31527 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31528 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31529 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31530 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31531 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31532 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31533 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31534 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31535 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31536 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31540 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31541 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31542 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31543 echo $ECHO_N "(cached) $ECHO_C" >&6
31545 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31547 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31548 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31551 if test $ac_cv_header_sys_sysmacros_h = yes; then
31553 cat >>confdefs.h <<\_ACEOF
31554 #define MAJOR_IN_SYSMACROS 1
31568 ac_header_dirent=no
31569 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31570 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31571 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31572 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31574 echo $ECHO_N "(cached) $ECHO_C" >&6
31576 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31582 #include <sys/types.h>
31594 rm -f conftest.$ac_objext
31595 if { (ac_try="$ac_compile"
31596 case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_compile") 2>conftest.er1
31603 grep -v '^ *+' conftest.er1 >conftest.err
31605 cat conftest.err >&5
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); } && {
31608 test -z "$ac_c_werror_flag" ||
31609 test ! -s conftest.err
31610 } && test -s conftest.$ac_objext; then
31611 eval "$as_ac_Header=yes"
31613 echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31616 eval "$as_ac_Header=no"
31619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31621 ac_res=`eval echo '${'$as_ac_Header'}'`
31622 { echo "$as_me:$LINENO: result: $ac_res" >&5
31623 echo "${ECHO_T}$ac_res" >&6; }
31624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31625 cat >>confdefs.h <<_ACEOF
31626 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31629 ac_header_dirent=$ac_hdr; break
31633 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31634 if test $ac_header_dirent = dirent.h; then
31635 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31636 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31637 if test "${ac_cv_search_opendir+set}" = set; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31640 ac_func_search_save_LIBS=$LIBS
31641 cat >conftest.$ac_ext <<_ACEOF
31644 cat confdefs.h >>conftest.$ac_ext
31645 cat >>conftest.$ac_ext <<_ACEOF
31646 /* end confdefs.h. */
31648 /* Override any GCC internal prototype to avoid an error.
31649 Use char because int might match the return type of a GCC
31650 builtin and then its argument prototype would still apply. */
31663 for ac_lib in '' dir; do
31664 if test -z "$ac_lib"; then
31665 ac_res="none required"
31668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31670 rm -f conftest.$ac_objext conftest$ac_exeext
31671 if { (ac_try="$ac_link"
31672 case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_link") 2>conftest.er1
31679 grep -v '^ *+' conftest.er1 >conftest.err
31681 cat conftest.err >&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); } && {
31684 test -z "$ac_c_werror_flag" ||
31685 test ! -s conftest.err
31686 } && test -s conftest$ac_exeext &&
31687 $as_test_x conftest$ac_exeext; then
31688 ac_cv_search_opendir=$ac_res
31690 echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31698 if test "${ac_cv_search_opendir+set}" = set; then
31702 if test "${ac_cv_search_opendir+set}" = set; then
31705 ac_cv_search_opendir=no
31707 rm conftest.$ac_ext
31708 LIBS=$ac_func_search_save_LIBS
31710 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31711 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31712 ac_res=$ac_cv_search_opendir
31713 if test "$ac_res" != no; then
31714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31719 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31720 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31721 if test "${ac_cv_search_opendir+set}" = set; then
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31724 ac_func_search_save_LIBS=$LIBS
31725 cat >conftest.$ac_ext <<_ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31732 /* Override any GCC internal prototype to avoid an error.
31733 Use char because int might match the return type of a GCC
31734 builtin and then its argument prototype would still apply. */
31747 for ac_lib in '' x; do
31748 if test -z "$ac_lib"; then
31749 ac_res="none required"
31752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31754 rm -f conftest.$ac_objext conftest$ac_exeext
31755 if { (ac_try="$ac_link"
31756 case "(($ac_try" in
31757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31758 *) ac_try_echo=$ac_try;;
31760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31761 (eval "$ac_link") 2>conftest.er1
31763 grep -v '^ *+' conftest.er1 >conftest.err
31765 cat conftest.err >&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } && {
31768 test -z "$ac_c_werror_flag" ||
31769 test ! -s conftest.err
31770 } && test -s conftest$ac_exeext &&
31771 $as_test_x conftest$ac_exeext; then
31772 ac_cv_search_opendir=$ac_res
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31782 if test "${ac_cv_search_opendir+set}" = set; then
31786 if test "${ac_cv_search_opendir+set}" = set; then
31789 ac_cv_search_opendir=no
31791 rm conftest.$ac_ext
31792 LIBS=$ac_func_search_save_LIBS
31794 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31795 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31796 ac_res=$ac_cv_search_opendir
31797 if test "$ac_res" != no; then
31798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31804 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31805 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31806 if test "${ac_cv_header_stat_broken+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 cat >conftest.$ac_ext <<_ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h. */
31815 #include <sys/types.h>
31816 #include <sys/stat.h>
31818 #if defined S_ISBLK && defined S_IFDIR
31819 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31822 #if defined S_ISBLK && defined S_IFCHR
31823 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31826 #if defined S_ISLNK && defined S_IFREG
31827 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31830 #if defined S_ISSOCK && defined S_IFREG
31831 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31835 rm -f conftest.$ac_objext
31836 if { (ac_try="$ac_compile"
31837 case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842 (eval "$ac_compile") 2>conftest.er1
31844 grep -v '^ *+' conftest.er1 >conftest.err
31846 cat conftest.err >&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } && {
31849 test -z "$ac_c_werror_flag" ||
31850 test ! -s conftest.err
31851 } && test -s conftest.$ac_objext; then
31852 ac_cv_header_stat_broken=no
31854 echo "$as_me: failed program was:" >&5
31855 sed 's/^/| /' conftest.$ac_ext >&5
31857 ac_cv_header_stat_broken=yes
31860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31862 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31863 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31864 if test $ac_cv_header_stat_broken = yes; then
31866 cat >>confdefs.h <<\_ACEOF
31867 #define STAT_MACROS_BROKEN 1
31872 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31873 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31874 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 cat >conftest.$ac_ext <<_ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 #include <sys/types.h>
31884 #include <sys/wait.h>
31885 #ifndef WEXITSTATUS
31886 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31889 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31902 rm -f conftest.$ac_objext
31903 if { (ac_try="$ac_compile"
31904 case "(($ac_try" in
31905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906 *) ac_try_echo=$ac_try;;
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909 (eval "$ac_compile") 2>conftest.er1
31911 grep -v '^ *+' conftest.er1 >conftest.err
31913 cat conftest.err >&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); } && {
31916 test -z "$ac_c_werror_flag" ||
31917 test ! -s conftest.err
31918 } && test -s conftest.$ac_objext; then
31919 ac_cv_header_sys_wait_h=yes
31921 echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31924 ac_cv_header_sys_wait_h=no
31927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31929 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31930 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31931 if test $ac_cv_header_sys_wait_h = yes; then
31933 cat >>confdefs.h <<\_ACEOF
31934 #define HAVE_SYS_WAIT_H 1
31939 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31940 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31941 if test "${ac_cv_header_time+set}" = set; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31944 cat >conftest.$ac_ext <<_ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 #include <sys/types.h>
31951 #include <sys/time.h>
31957 if ((struct tm *) 0)
31963 rm -f conftest.$ac_objext
31964 if { (ac_try="$ac_compile"
31965 case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_compile") 2>conftest.er1
31972 grep -v '^ *+' conftest.er1 >conftest.err
31974 cat conftest.err >&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } && {
31977 test -z "$ac_c_werror_flag" ||
31978 test ! -s conftest.err
31979 } && test -s conftest.$ac_objext; then
31980 ac_cv_header_time=yes
31982 echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31985 ac_cv_header_time=no
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31990 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31991 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31992 if test $ac_cv_header_time = yes; then
31994 cat >>confdefs.h <<\_ACEOF
31995 #define TIME_WITH_SYS_TIME 1
32000 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32001 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32002 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32003 echo $ECHO_N "(cached) $ECHO_C" >&6
32005 cat >conftest.$ac_ext <<_ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h. */
32011 $ac_includes_default
32015 static struct stat ac_aggr;
32016 if (ac_aggr.st_blksize)
32022 rm -f conftest.$ac_objext
32023 if { (ac_try="$ac_compile"
32024 case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_compile") 2>conftest.er1
32031 grep -v '^ *+' conftest.er1 >conftest.err
32033 cat conftest.err >&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); } && {
32036 test -z "$ac_c_werror_flag" ||
32037 test ! -s conftest.err
32038 } && test -s conftest.$ac_objext; then
32039 ac_cv_member_struct_stat_st_blksize=yes
32041 echo "$as_me: failed program was:" >&5
32042 sed 's/^/| /' conftest.$ac_ext >&5
32044 cat >conftest.$ac_ext <<_ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h. */
32050 $ac_includes_default
32054 static struct stat ac_aggr;
32055 if (sizeof ac_aggr.st_blksize)
32061 rm -f conftest.$ac_objext
32062 if { (ac_try="$ac_compile"
32063 case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_compile") 2>conftest.er1
32070 grep -v '^ *+' conftest.er1 >conftest.err
32072 cat conftest.err >&5
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); } && {
32075 test -z "$ac_c_werror_flag" ||
32076 test ! -s conftest.err
32077 } && test -s conftest.$ac_objext; then
32078 ac_cv_member_struct_stat_st_blksize=yes
32080 echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32083 ac_cv_member_struct_stat_st_blksize=no
32086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32091 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32092 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32093 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32095 cat >>confdefs.h <<_ACEOF
32096 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32100 cat >>confdefs.h <<\_ACEOF
32101 #define HAVE_ST_BLKSIZE 1
32107 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32108 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32109 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32118 $ac_includes_default
32122 static struct stat ac_aggr;
32123 if (ac_aggr.st_blocks)
32129 rm -f conftest.$ac_objext
32130 if { (ac_try="$ac_compile"
32131 case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_compile") 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } && {
32143 test -z "$ac_c_werror_flag" ||
32144 test ! -s conftest.err
32145 } && test -s conftest.$ac_objext; then
32146 ac_cv_member_struct_stat_st_blocks=yes
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 cat >conftest.$ac_ext <<_ACEOF
32154 cat confdefs.h >>conftest.$ac_ext
32155 cat >>conftest.$ac_ext <<_ACEOF
32156 /* end confdefs.h. */
32157 $ac_includes_default
32161 static struct stat ac_aggr;
32162 if (sizeof ac_aggr.st_blocks)
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } && {
32182 test -z "$ac_c_werror_flag" ||
32183 test ! -s conftest.err
32184 } && test -s conftest.$ac_objext; then
32185 ac_cv_member_struct_stat_st_blocks=yes
32187 echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32190 ac_cv_member_struct_stat_st_blocks=no
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32198 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32200 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32207 cat >>confdefs.h <<\_ACEOF
32208 #define HAVE_ST_BLOCKS 1
32212 case " $LIBOBJS " in
32213 *" fileblocks.$ac_objext "* ) ;;
32214 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32221 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32223 if test "${ac_cv_struct_tm+set}" = set; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 #include <sys/types.h>
32239 int *p = &tm.tm_sec;
32245 rm -f conftest.$ac_objext
32246 if { (ac_try="$ac_compile"
32247 case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252 (eval "$ac_compile") 2>conftest.er1
32254 grep -v '^ *+' conftest.er1 >conftest.err
32256 cat conftest.err >&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); } && {
32259 test -z "$ac_c_werror_flag" ||
32260 test ! -s conftest.err
32261 } && test -s conftest.$ac_objext; then
32262 ac_cv_struct_tm=time.h
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32267 ac_cv_struct_tm=sys/time.h
32270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32272 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32273 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32274 if test $ac_cv_struct_tm = sys/time.h; then
32276 cat >>confdefs.h <<\_ACEOF
32277 #define TM_IN_SYS_TIME 1
32282 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32283 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32284 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
32287 cat >conftest.$ac_ext <<_ACEOF
32290 cat confdefs.h >>conftest.$ac_ext
32291 cat >>conftest.$ac_ext <<_ACEOF
32292 /* end confdefs.h. */
32293 #include <sys/types.h>
32294 #include <$ac_cv_struct_tm>
32300 static struct tm ac_aggr;
32301 if (ac_aggr.tm_zone)
32307 rm -f conftest.$ac_objext
32308 if { (ac_try="$ac_compile"
32309 case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_compile") 2>conftest.er1
32316 grep -v '^ *+' conftest.er1 >conftest.err
32318 cat conftest.err >&5
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); } && {
32321 test -z "$ac_c_werror_flag" ||
32322 test ! -s conftest.err
32323 } && test -s conftest.$ac_objext; then
32324 ac_cv_member_struct_tm_tm_zone=yes
32326 echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32329 cat >conftest.$ac_ext <<_ACEOF
32332 cat confdefs.h >>conftest.$ac_ext
32333 cat >>conftest.$ac_ext <<_ACEOF
32334 /* end confdefs.h. */
32335 #include <sys/types.h>
32336 #include <$ac_cv_struct_tm>
32342 static struct tm ac_aggr;
32343 if (sizeof ac_aggr.tm_zone)
32349 rm -f conftest.$ac_objext
32350 if { (ac_try="$ac_compile"
32351 case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_compile") 2>conftest.er1
32358 grep -v '^ *+' conftest.er1 >conftest.err
32360 cat conftest.err >&5
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); } && {
32363 test -z "$ac_c_werror_flag" ||
32364 test ! -s conftest.err
32365 } && test -s conftest.$ac_objext; then
32366 ac_cv_member_struct_tm_tm_zone=yes
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ac_cv_member_struct_tm_tm_zone=no
32374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32380 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32381 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32383 cat >>confdefs.h <<_ACEOF
32384 #define HAVE_STRUCT_TM_TM_ZONE 1
32390 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE_TM_ZONE 1
32397 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32398 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32399 if test "${ac_cv_have_decl_tzname+set}" = set; then
32400 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 cat >conftest.$ac_ext <<_ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h. */
32421 rm -f conftest.$ac_objext
32422 if { (ac_try="$ac_compile"
32423 case "(($ac_try" in
32424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425 *) ac_try_echo=$ac_try;;
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428 (eval "$ac_compile") 2>conftest.er1
32430 grep -v '^ *+' conftest.er1 >conftest.err
32432 cat conftest.err >&5
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); } && {
32435 test -z "$ac_c_werror_flag" ||
32436 test ! -s conftest.err
32437 } && test -s conftest.$ac_objext; then
32438 ac_cv_have_decl_tzname=yes
32440 echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32443 ac_cv_have_decl_tzname=no
32446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32449 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32450 if test $ac_cv_have_decl_tzname = yes; then
32452 cat >>confdefs.h <<_ACEOF
32453 #define HAVE_DECL_TZNAME 1
32458 cat >>confdefs.h <<_ACEOF
32459 #define HAVE_DECL_TZNAME 0
32466 { echo "$as_me:$LINENO: checking for tzname" >&5
32467 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32468 if test "${ac_cv_var_tzname+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32471 cat >conftest.$ac_ext <<_ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h. */
32478 #if !HAVE_DECL_TZNAME
32479 extern char *tzname[];
32485 return tzname[0][0];
32490 rm -f conftest.$ac_objext conftest$ac_exeext
32491 if { (ac_try="$ac_link"
32492 case "(($ac_try" in
32493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32494 *) ac_try_echo=$ac_try;;
32496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32497 (eval "$ac_link") 2>conftest.er1
32499 grep -v '^ *+' conftest.er1 >conftest.err
32501 cat conftest.err >&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } && {
32504 test -z "$ac_c_werror_flag" ||
32505 test ! -s conftest.err
32506 } && test -s conftest$ac_exeext &&
32507 $as_test_x conftest$ac_exeext; then
32508 ac_cv_var_tzname=yes
32510 echo "$as_me: failed program was:" >&5
32511 sed 's/^/| /' conftest.$ac_ext >&5
32513 ac_cv_var_tzname=no
32516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32517 conftest$ac_exeext conftest.$ac_ext
32519 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32520 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32521 if test $ac_cv_var_tzname = yes; then
32523 cat >>confdefs.h <<\_ACEOF
32524 #define HAVE_TZNAME 1
32531 { echo "$as_me:$LINENO: checking for utime.h" >&5
32532 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32533 if test "${ba_cv_header_utime_h+set}" = set; then
32534 echo $ECHO_N "(cached) $ECHO_C" >&6
32537 cat >conftest.$ac_ext <<_ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h. */
32544 #include <sys/types.h>
32557 rm -f conftest.$ac_objext
32558 if { (ac_try="$ac_compile"
32559 case "(($ac_try" in
32560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561 *) ac_try_echo=$ac_try;;
32563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564 (eval "$ac_compile") 2>conftest.er1
32566 grep -v '^ *+' conftest.er1 >conftest.err
32568 cat conftest.err >&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } && {
32571 test -z "$ac_c_werror_flag" ||
32572 test ! -s conftest.err
32573 } && test -s conftest.$ac_objext; then
32575 ba_cv_header_utime_h=yes
32578 echo "$as_me: failed program was:" >&5
32579 sed 's/^/| /' conftest.$ac_ext >&5
32582 ba_cv_header_utime_h=no
32587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32591 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32592 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32593 test $ba_cv_header_utime_h = yes &&
32594 cat >>confdefs.h <<\_ACEOF
32595 #define HAVE_UTIME_H 1
32599 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32600 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32601 if test "${ba_cv_header_socklen_t+set}" = set; then
32602 echo $ECHO_N "(cached) $ECHO_C" >&6
32605 cat >conftest.$ac_ext <<_ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32612 #include <sys/types.h>
32613 #include <sys/socket.h>
32625 rm -f conftest.$ac_objext
32626 if { (ac_try="$ac_compile"
32627 case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_compile") 2>conftest.er1
32634 grep -v '^ *+' conftest.er1 >conftest.err
32636 cat conftest.err >&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } && {
32639 test -z "$ac_c_werror_flag" ||
32640 test ! -s conftest.err
32641 } && test -s conftest.$ac_objext; then
32643 ba_cv_header_socklen_t=yes
32646 echo "$as_me: failed program was:" >&5
32647 sed 's/^/| /' conftest.$ac_ext >&5
32650 ba_cv_header_socklen_t=no
32655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32659 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32660 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32661 test $ba_cv_header_socklen_t = yes &&
32662 cat >>confdefs.h <<\_ACEOF
32663 #define HAVE_SOCKLEN_T 1
32667 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32668 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32669 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32670 echo $ECHO_N "(cached) $ECHO_C" >&6
32673 cat >conftest.$ac_ext <<_ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h. */
32680 #include <sys/types.h>
32681 #include <sys/ioctl.h>
32687 unsigned long int req = 0;
32695 rm -f conftest.$ac_objext
32696 if { (ac_try="$ac_compile"
32697 case "(($ac_try" in
32698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699 *) ac_try_echo=$ac_try;;
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702 (eval "$ac_compile") 2>conftest.er1
32704 grep -v '^ *+' conftest.er1 >conftest.err
32706 cat conftest.err >&5
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } && {
32709 test -z "$ac_c_werror_flag" ||
32710 test ! -s conftest.err
32711 } && test -s conftest.$ac_objext; then
32713 ba_cv_header_ioctl_req_t=yes
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32720 ba_cv_header_ioct_req_t_t=no
32725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32729 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32730 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32731 test $ba_cv_header_ioctl_req_t = yes &&
32732 cat >>confdefs.h <<\_ACEOF
32733 #define HAVE_IOCTL_ULINT_REQUEST 1
32739 ac_cpp='$CXXCPP $CPPFLAGS'
32740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32744 { echo "$as_me:$LINENO: checking for typeof" >&5
32745 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32746 if test "${ba_cv_have_typeof+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32750 if test "$cross_compiling" = yes; then
32752 ba_cv_have_typeof=no
32756 cat >conftest.$ac_ext <<_ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h. */
32763 main(){char *a = 0; a = (typeof a)a;}
32766 rm -f conftest$ac_exeext
32767 if { (ac_try="$ac_link"
32768 case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_link") 2>&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32777 { (case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_try") 2>&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32787 ba_cv_have_typeof=yes
32790 echo "$as_me: program exited with status $ac_status" >&5
32791 echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32794 ( exit $ac_status )
32796 ba_cv_have_typeof=no
32799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32806 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32807 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32808 test $ba_cv_have_typeof = yes &&
32809 cat >>confdefs.h <<\_ACEOF
32810 #define HAVE_TYPEOF 1
32814 ac_cpp='$CPP $CPPFLAGS'
32815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32822 if test "${ac_cv_c_const+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32825 cat >conftest.$ac_ext <<_ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h. */
32835 /* FIXME: Include the comments suggested by Paul. */
32836 #ifndef __cplusplus
32837 /* Ultrix mips cc rejects this. */
32838 typedef int charset[2];
32840 /* SunOS 4.1.1 cc rejects this. */
32841 char const *const *pcpcc;
32843 /* NEC SVR4.0.2 mips cc rejects this. */
32844 struct point {int x, y;};
32845 static struct point const zero = {0,0};
32846 /* AIX XL C 1.02.0.0 rejects this.
32847 It does not let you subtract one const X* pointer from another in
32848 an arm of an if-expression whose if-part is not a constant
32850 const char *g = "string";
32851 pcpcc = &g + (g ? g-g : 0);
32852 /* HPUX 7.0 cc rejects these. */
32854 ppc = (char**) pcpcc;
32855 pcpcc = (char const *const *) ppc;
32856 { /* SCO 3.2v4 cc rejects this. */
32858 char const *s = 0 ? (char *) 0 : (char const *) 0;
32863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32864 int x[] = {25, 17};
32865 const int *foo = &x[0];
32868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32869 typedef const int *iptr;
32873 { /* AIX XL C 1.02.0.0 rejects this saying
32874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32875 struct s { int j; const int *ap[3]; };
32876 struct s *b; b->j = 5;
32878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32879 const int foo = 10;
32880 if (!foo) return 0;
32882 return !cs[0] && !zero.x;
32889 rm -f conftest.$ac_objext
32890 if { (ac_try="$ac_compile"
32891 case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_compile") 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } && {
32903 test -z "$ac_c_werror_flag" ||
32904 test ! -s conftest.err
32905 } && test -s conftest.$ac_objext; then
32908 echo "$as_me: failed program was:" >&5
32909 sed 's/^/| /' conftest.$ac_ext >&5
32914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32918 if test $ac_cv_c_const = no; then
32920 cat >>confdefs.h <<\_ACEOF
32927 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32928 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32930 # The order of these tests is important.
32931 cat >conftest.$ac_ext <<_ACEOF
32934 cat confdefs.h >>conftest.$ac_ext
32935 cat >>conftest.$ac_ext <<_ACEOF
32936 /* end confdefs.h. */
32938 #include <sys/statvfs.h>
32939 #include <sys/fstyp.h>
32942 if { (ac_try="$ac_cpp conftest.$ac_ext"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32950 grep -v '^ *+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } >/dev/null && {
32955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32956 test ! -s conftest.err
32958 cat >>confdefs.h <<\_ACEOF
32959 #define FSTYPE_STATVFS 1
32964 echo "$as_me: failed program was:" >&5
32965 sed 's/^/| /' conftest.$ac_ext >&5
32970 rm -f conftest.err conftest.$ac_ext
32971 if test $fstype = no; then
32972 cat >conftest.$ac_ext <<_ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h. */
32979 #include <sys/statfs.h>
32980 #include <sys/fstyp.h>
32983 if { (ac_try="$ac_cpp conftest.$ac_ext"
32984 case "(($ac_try" in
32985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32986 *) ac_try_echo=$ac_try;;
32988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32991 grep -v '^ *+' conftest.er1 >conftest.err
32993 cat conftest.err >&5
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); } >/dev/null && {
32996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32997 test ! -s conftest.err
32999 cat >>confdefs.h <<\_ACEOF
33000 #define FSTYPE_USG_STATFS 1
33005 echo "$as_me: failed program was:" >&5
33006 sed 's/^/| /' conftest.$ac_ext >&5
33011 rm -f conftest.err conftest.$ac_ext
33013 if test $fstype = no; then
33014 cat >conftest.$ac_ext <<_ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h. */
33021 #include <sys/statfs.h>
33022 #include <sys/vmount.h>
33025 if { (ac_try="$ac_cpp conftest.$ac_ext"
33026 case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33033 grep -v '^ *+' conftest.er1 >conftest.err
33035 cat conftest.err >&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } >/dev/null && {
33038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33039 test ! -s conftest.err
33041 cat >>confdefs.h <<\_ACEOF
33042 #define FSTYPE_AIX_STATFS 1
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33053 rm -f conftest.err conftest.$ac_ext
33055 if test $fstype = no; then
33056 cat >conftest.$ac_ext <<_ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h. */
33063 #include <mntent.h>
33066 if { (ac_try="$ac_cpp conftest.$ac_ext"
33067 case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33074 grep -v '^ *+' conftest.er1 >conftest.err
33076 cat conftest.err >&5
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); } >/dev/null && {
33079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33080 test ! -s conftest.err
33082 cat >>confdefs.h <<\_ACEOF
33083 #define FSTYPE_MNTENT 1
33088 echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33094 rm -f conftest.err conftest.$ac_ext
33096 if test $fstype = no; then
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 #include <sys/mount.h>
33106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33107 $EGREP "f_type;" >/dev/null 2>&1; then
33108 cat >>confdefs.h <<\_ACEOF
33109 #define FSTYPE_STATFS 1
33116 if test $fstype = no; then
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33124 #include <sys/mount.h>
33125 #include <sys/fs_types.h>
33128 if { (ac_try="$ac_cpp conftest.$ac_ext"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } >/dev/null && {
33141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33144 cat >>confdefs.h <<\_ACEOF
33145 #define FSTYPE_GETMNT 1
33150 echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33156 rm -f conftest.err conftest.$ac_ext
33158 { echo "$as_me:$LINENO: result: $fstype" >&5
33159 echo "${ECHO_T}$fstype" >&6; }
33161 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33162 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33163 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33164 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33168 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33170 # Is the header compilable?
33171 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33172 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33173 cat >conftest.$ac_ext <<_ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h. */
33179 $ac_includes_default
33180 #include <sys/statvfs.h>
33182 rm -f conftest.$ac_objext
33183 if { (ac_try="$ac_compile"
33184 case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_compile") 2>conftest.er1
33191 grep -v '^ *+' conftest.er1 >conftest.err
33193 cat conftest.err >&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); } && {
33196 test -z "$ac_c_werror_flag" ||
33197 test ! -s conftest.err
33198 } && test -s conftest.$ac_objext; then
33199 ac_header_compiler=yes
33201 echo "$as_me: failed program was:" >&5
33202 sed 's/^/| /' conftest.$ac_ext >&5
33204 ac_header_compiler=no
33207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33209 echo "${ECHO_T}$ac_header_compiler" >&6; }
33211 # Is the header present?
33212 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33213 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33214 cat >conftest.$ac_ext <<_ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33220 #include <sys/statvfs.h>
33222 if { (ac_try="$ac_cpp conftest.$ac_ext"
33223 case "(($ac_try" in
33224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225 *) ac_try_echo=$ac_try;;
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33230 grep -v '^ *+' conftest.er1 >conftest.err
33232 cat conftest.err >&5
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); } >/dev/null && {
33235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33236 test ! -s conftest.err
33238 ac_header_preproc=yes
33240 echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33243 ac_header_preproc=no
33246 rm -f conftest.err conftest.$ac_ext
33247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33248 echo "${ECHO_T}$ac_header_preproc" >&6; }
33250 # So? What about this header?
33251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33253 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33254 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33255 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33256 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33257 ac_header_preproc=yes
33260 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33261 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33262 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33263 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33264 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33265 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33266 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33267 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33268 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33269 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33270 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33271 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33275 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33276 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33277 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33278 echo $ECHO_N "(cached) $ECHO_C" >&6
33280 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33283 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33286 if test $ac_cv_header_sys_statvfs_h = yes; then
33288 cat >>confdefs.h <<\_ACEOF
33289 #define HAVE_SYS_STATVFS_H 1
33296 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33297 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33298 if test "${ac_cv_type_signal+set}" = set; then
33299 echo $ECHO_N "(cached) $ECHO_C" >&6
33301 cat >conftest.$ac_ext <<_ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h. */
33307 #include <sys/types.h>
33308 #include <signal.h>
33313 return *(signal (0, 0)) (0) == 1;
33318 rm -f conftest.$ac_objext
33319 if { (ac_try="$ac_compile"
33320 case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
33327 grep -v '^ *+' conftest.er1 >conftest.err
33329 cat conftest.err >&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); } && {
33332 test -z "$ac_c_werror_flag" ||
33333 test ! -s conftest.err
33334 } && test -s conftest.$ac_objext; then
33335 ac_cv_type_signal=int
33337 echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33340 ac_cv_type_signal=void
33343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33345 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33346 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33348 cat >>confdefs.h <<_ACEOF
33349 #define RETSIGTYPE $ac_cv_type_signal
33354 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33355 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33356 if test "${bash_cv_signal_vintage+set}" = set; then
33357 echo $ECHO_N "(cached) $ECHO_C" >&6
33360 cat >conftest.$ac_ext <<_ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h. */
33366 #include <signal.h>
33372 struct sigaction sa;
33373 sigemptyset(&ss); sigsuspend(&ss);
33374 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33375 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33381 rm -f conftest.$ac_objext conftest$ac_exeext
33382 if { (ac_try="$ac_link"
33383 case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_link") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } && {
33395 test -z "$ac_c_werror_flag" ||
33396 test ! -s conftest.err
33397 } && test -s conftest$ac_exeext &&
33398 $as_test_x conftest$ac_exeext; then
33399 bash_cv_signal_vintage="posix"
33401 echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33405 cat >conftest.$ac_ext <<_ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 #include <signal.h>
33416 int mask = sigmask(SIGINT);
33417 sigsetmask(mask); sigblock(mask); sigpause(mask);
33423 rm -f conftest.$ac_objext conftest$ac_exeext
33424 if { (ac_try="$ac_link"
33425 case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_link") 2>conftest.er1
33432 grep -v '^ *+' conftest.er1 >conftest.err
33434 cat conftest.err >&5
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } && {
33437 test -z "$ac_c_werror_flag" ||
33438 test ! -s conftest.err
33439 } && test -s conftest$ac_exeext &&
33440 $as_test_x conftest$ac_exeext; then
33441 bash_cv_signal_vintage="4.2bsd"
33443 echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33447 cat >conftest.$ac_ext <<_ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33454 #include <signal.h>
33455 RETSIGTYPE foo() { }
33460 int mask = sigmask(SIGINT);
33461 sigset(SIGINT, foo); sigrelse(SIGINT);
33462 sighold(SIGINT); sigpause(SIGINT);
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (ac_try="$ac_link"
33470 case "(($ac_try" in
33471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472 *) ac_try_echo=$ac_try;;
33474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33475 (eval "$ac_link") 2>conftest.er1
33477 grep -v '^ *+' conftest.er1 >conftest.err
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } && {
33482 test -z "$ac_c_werror_flag" ||
33483 test ! -s conftest.err
33484 } && test -s conftest$ac_exeext &&
33485 $as_test_x conftest$ac_exeext; then
33486 bash_cv_signal_vintage="svr3"
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 bash_cv_signal_vintage="v7"
33495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33496 conftest$ac_exeext conftest.$ac_ext
33500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33501 conftest$ac_exeext conftest.$ac_ext
33505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33506 conftest$ac_exeext conftest.$ac_ext
33510 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33511 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33512 if test "$bash_cv_signal_vintage" = "posix"; then
33513 cat >>confdefs.h <<\_ACEOF
33514 #define HAVE_POSIX_SIGNALS 1
33517 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33518 cat >>confdefs.h <<\_ACEOF
33519 #define HAVE_BSD_SIGNALS 1
33522 elif test "$bash_cv_signal_vintage" = "svr3"; then
33523 cat >>confdefs.h <<\_ACEOF
33524 #define HAVE_USG_SIGHOLD 1
33529 { echo "$as_me:$LINENO: checking for mode_t" >&5
33530 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33531 if test "${ac_cv_type_mode_t+set}" = set; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33534 cat >conftest.$ac_ext <<_ACEOF
33537 cat confdefs.h >>conftest.$ac_ext
33538 cat >>conftest.$ac_ext <<_ACEOF
33539 /* end confdefs.h. */
33540 $ac_includes_default
33541 typedef mode_t ac__type_new_;
33545 if ((ac__type_new_ *) 0)
33547 if (sizeof (ac__type_new_))
33553 rm -f conftest.$ac_objext
33554 if { (ac_try="$ac_compile"
33555 case "(($ac_try" in
33556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557 *) ac_try_echo=$ac_try;;
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560 (eval "$ac_compile") 2>conftest.er1
33562 grep -v '^ *+' conftest.er1 >conftest.err
33564 cat conftest.err >&5
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } && {
33567 test -z "$ac_c_werror_flag" ||
33568 test ! -s conftest.err
33569 } && test -s conftest.$ac_objext; then
33570 ac_cv_type_mode_t=yes
33572 echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33575 ac_cv_type_mode_t=no
33578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33580 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33581 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33582 if test $ac_cv_type_mode_t = yes; then
33586 cat >>confdefs.h <<_ACEOF
33592 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33593 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33594 if test "${ac_cv_type_uid_t+set}" = set; then
33595 echo $ECHO_N "(cached) $ECHO_C" >&6
33597 cat >conftest.$ac_ext <<_ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h. */
33603 #include <sys/types.h>
33606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33607 $EGREP "uid_t" >/dev/null 2>&1; then
33608 ac_cv_type_uid_t=yes
33610 ac_cv_type_uid_t=no
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33617 if test $ac_cv_type_uid_t = no; then
33619 cat >>confdefs.h <<\_ACEOF
33624 cat >>confdefs.h <<\_ACEOF
33630 { echo "$as_me:$LINENO: checking for size_t" >&5
33631 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33632 if test "${ac_cv_type_size_t+set}" = set; then
33633 echo $ECHO_N "(cached) $ECHO_C" >&6
33635 cat >conftest.$ac_ext <<_ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33641 $ac_includes_default
33642 typedef size_t ac__type_new_;
33646 if ((ac__type_new_ *) 0)
33648 if (sizeof (ac__type_new_))
33654 rm -f conftest.$ac_objext
33655 if { (ac_try="$ac_compile"
33656 case "(($ac_try" in
33657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33658 *) ac_try_echo=$ac_try;;
33660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33661 (eval "$ac_compile") 2>conftest.er1
33663 grep -v '^ *+' conftest.er1 >conftest.err
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } && {
33668 test -z "$ac_c_werror_flag" ||
33669 test ! -s conftest.err
33670 } && test -s conftest.$ac_objext; then
33671 ac_cv_type_size_t=yes
33673 echo "$as_me: failed program was:" >&5
33674 sed 's/^/| /' conftest.$ac_ext >&5
33676 ac_cv_type_size_t=no
33679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33681 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33682 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33683 if test $ac_cv_type_size_t = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688 #define size_t unsigned int
33693 { echo "$as_me:$LINENO: checking for pid_t" >&5
33694 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33695 if test "${ac_cv_type_pid_t+set}" = set; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33698 cat >conftest.$ac_ext <<_ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33704 $ac_includes_default
33705 typedef pid_t ac__type_new_;
33709 if ((ac__type_new_ *) 0)
33711 if (sizeof (ac__type_new_))
33717 rm -f conftest.$ac_objext
33718 if { (ac_try="$ac_compile"
33719 case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_compile") 2>conftest.er1
33726 grep -v '^ *+' conftest.er1 >conftest.err
33728 cat conftest.err >&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } && {
33731 test -z "$ac_c_werror_flag" ||
33732 test ! -s conftest.err
33733 } && test -s conftest.$ac_objext; then
33734 ac_cv_type_pid_t=yes
33736 echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33739 ac_cv_type_pid_t=no
33742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33744 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33745 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33746 if test $ac_cv_type_pid_t = yes; then
33750 cat >>confdefs.h <<_ACEOF
33756 { echo "$as_me:$LINENO: checking for off_t" >&5
33757 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33758 if test "${ac_cv_type_off_t+set}" = set; then
33759 echo $ECHO_N "(cached) $ECHO_C" >&6
33761 cat >conftest.$ac_ext <<_ACEOF
33764 cat confdefs.h >>conftest.$ac_ext
33765 cat >>conftest.$ac_ext <<_ACEOF
33766 /* end confdefs.h. */
33767 $ac_includes_default
33768 typedef off_t ac__type_new_;
33772 if ((ac__type_new_ *) 0)
33774 if (sizeof (ac__type_new_))
33780 rm -f conftest.$ac_objext
33781 if { (ac_try="$ac_compile"
33782 case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_compile") 2>conftest.er1
33789 grep -v '^ *+' conftest.er1 >conftest.err
33791 cat conftest.err >&5
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); } && {
33794 test -z "$ac_c_werror_flag" ||
33795 test ! -s conftest.err
33796 } && test -s conftest.$ac_objext; then
33797 ac_cv_type_off_t=yes
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33802 ac_cv_type_off_t=no
33805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33807 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33808 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33809 if test $ac_cv_type_off_t = yes; then
33813 cat >>confdefs.h <<_ACEOF
33814 #define off_t long int
33820 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33821 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33822 if test "${ac_cv_type_intptr_t+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33825 cat >conftest.$ac_ext <<_ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h. */
33831 $ac_includes_default
33832 typedef intptr_t ac__type_new_;
33836 if ((ac__type_new_ *) 0)
33838 if (sizeof (ac__type_new_))
33844 rm -f conftest.$ac_objext
33845 if { (ac_try="$ac_compile"
33846 case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_compile") 2>conftest.er1
33853 grep -v '^ *+' conftest.er1 >conftest.err
33855 cat conftest.err >&5
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } && {
33858 test -z "$ac_c_werror_flag" ||
33859 test ! -s conftest.err
33860 } && test -s conftest.$ac_objext; then
33861 ac_cv_type_intptr_t=yes
33863 echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.$ac_ext >&5
33866 ac_cv_type_intptr_t=no
33869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33872 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33873 if test $ac_cv_type_intptr_t = yes; then
33875 cat >>confdefs.h <<\_ACEOF
33876 #define HAVE_INTPTR_T 1
33880 for ac_type in 'int' 'long int' 'long long int'; do
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
33891 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33907 grep -v '^ *+' conftest.er1 >conftest.err
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } && {
33912 test -z "$ac_c_werror_flag" ||
33913 test ! -s conftest.err
33914 } && test -s conftest.$ac_objext; then
33916 cat >>confdefs.h <<_ACEOF
33917 #define intptr_t $ac_type
33922 echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.$ac_ext >&5
33928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33929 test -z "$ac_type" && break
33935 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33936 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33937 if test "${ac_cv_type_uintptr_t+set}" = set; then
33938 echo $ECHO_N "(cached) $ECHO_C" >&6
33940 cat >conftest.$ac_ext <<_ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h. */
33946 $ac_includes_default
33947 typedef uintptr_t ac__type_new_;
33951 if ((ac__type_new_ *) 0)
33953 if (sizeof (ac__type_new_))
33959 rm -f conftest.$ac_objext
33960 if { (ac_try="$ac_compile"
33961 case "(($ac_try" in
33962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33963 *) ac_try_echo=$ac_try;;
33965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33966 (eval "$ac_compile") 2>conftest.er1
33968 grep -v '^ *+' conftest.er1 >conftest.err
33970 cat conftest.err >&5
33971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33972 (exit $ac_status); } && {
33973 test -z "$ac_c_werror_flag" ||
33974 test ! -s conftest.err
33975 } && test -s conftest.$ac_objext; then
33976 ac_cv_type_uintptr_t=yes
33978 echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33981 ac_cv_type_uintptr_t=no
33984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33986 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33987 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33988 if test $ac_cv_type_uintptr_t = yes; then
33990 cat >>confdefs.h <<\_ACEOF
33991 #define HAVE_UINTPTR_T 1
33995 for ac_type in 'unsigned int' 'unsigned long int' \
33996 'unsigned long long int'; do
33997 cat >conftest.$ac_ext <<_ACEOF
34000 cat confdefs.h >>conftest.$ac_ext
34001 cat >>conftest.$ac_ext <<_ACEOF
34002 /* end confdefs.h. */
34003 $ac_includes_default
34007 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34014 rm -f conftest.$ac_objext
34015 if { (ac_try="$ac_compile"
34016 case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_compile") 2>conftest.er1
34023 grep -v '^ *+' conftest.er1 >conftest.err
34025 cat conftest.err >&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } && {
34028 test -z "$ac_c_werror_flag" ||
34029 test ! -s conftest.err
34030 } && test -s conftest.$ac_objext; then
34032 cat >>confdefs.h <<_ACEOF
34033 #define uintptr_t $ac_type
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34045 test -z "$ac_type" && break
34050 { echo "$as_me:$LINENO: checking for ino_t" >&5
34051 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34052 if test "${ac_cv_type_ino_t+set}" = set; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34055 cat >conftest.$ac_ext <<_ACEOF
34058 cat confdefs.h >>conftest.$ac_ext
34059 cat >>conftest.$ac_ext <<_ACEOF
34060 /* end confdefs.h. */
34061 $ac_includes_default
34062 typedef ino_t ac__type_new_;
34066 if ((ac__type_new_ *) 0)
34068 if (sizeof (ac__type_new_))
34074 rm -f conftest.$ac_objext
34075 if { (ac_try="$ac_compile"
34076 case "(($ac_try" in
34077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34078 *) ac_try_echo=$ac_try;;
34080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34081 (eval "$ac_compile") 2>conftest.er1
34083 grep -v '^ *+' conftest.er1 >conftest.err
34085 cat conftest.err >&5
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); } && {
34088 test -z "$ac_c_werror_flag" ||
34089 test ! -s conftest.err
34090 } && test -s conftest.$ac_objext; then
34091 ac_cv_type_ino_t=yes
34093 echo "$as_me: failed program was:" >&5
34094 sed 's/^/| /' conftest.$ac_ext >&5
34096 ac_cv_type_ino_t=no
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34102 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34103 if test $ac_cv_type_ino_t = yes; then
34107 cat >>confdefs.h <<_ACEOF
34108 #define ino_t unsigned long
34113 { echo "$as_me:$LINENO: checking for dev_t" >&5
34114 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34115 if test "${ac_cv_type_dev_t+set}" = set; then
34116 echo $ECHO_N "(cached) $ECHO_C" >&6
34118 cat >conftest.$ac_ext <<_ACEOF
34121 cat confdefs.h >>conftest.$ac_ext
34122 cat >>conftest.$ac_ext <<_ACEOF
34123 /* end confdefs.h. */
34124 $ac_includes_default
34125 typedef dev_t ac__type_new_;
34129 if ((ac__type_new_ *) 0)
34131 if (sizeof (ac__type_new_))
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141 *) ac_try_echo=$ac_try;;
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144 (eval "$ac_compile") 2>conftest.er1
34146 grep -v '^ *+' conftest.er1 >conftest.err
34148 cat conftest.err >&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } && {
34151 test -z "$ac_c_werror_flag" ||
34152 test ! -s conftest.err
34153 } && test -s conftest.$ac_objext; then
34154 ac_cv_type_dev_t=yes
34156 echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34159 ac_cv_type_dev_t=no
34162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34165 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34166 if test $ac_cv_type_dev_t = yes; then
34170 cat >>confdefs.h <<_ACEOF
34171 #define dev_t unsigned long
34176 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34177 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34178 if test "${ac_cv_type_daddr_t+set}" = set; then
34179 echo $ECHO_N "(cached) $ECHO_C" >&6
34181 cat >conftest.$ac_ext <<_ACEOF
34184 cat confdefs.h >>conftest.$ac_ext
34185 cat >>conftest.$ac_ext <<_ACEOF
34186 /* end confdefs.h. */
34187 $ac_includes_default
34188 typedef daddr_t ac__type_new_;
34192 if ((ac__type_new_ *) 0)
34194 if (sizeof (ac__type_new_))
34200 rm -f conftest.$ac_objext
34201 if { (ac_try="$ac_compile"
34202 case "(($ac_try" in
34203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34204 *) ac_try_echo=$ac_try;;
34206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34207 (eval "$ac_compile") 2>conftest.er1
34209 grep -v '^ *+' conftest.er1 >conftest.err
34211 cat conftest.err >&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); } && {
34214 test -z "$ac_c_werror_flag" ||
34215 test ! -s conftest.err
34216 } && test -s conftest.$ac_objext; then
34217 ac_cv_type_daddr_t=yes
34219 echo "$as_me: failed program was:" >&5
34220 sed 's/^/| /' conftest.$ac_ext >&5
34222 ac_cv_type_daddr_t=no
34225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34227 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34228 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34229 if test $ac_cv_type_daddr_t = yes; then
34233 cat >>confdefs.h <<_ACEOF
34234 #define daddr_t long
34239 { echo "$as_me:$LINENO: checking for major_t" >&5
34240 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34241 if test "${ac_cv_type_major_t+set}" = set; then
34242 echo $ECHO_N "(cached) $ECHO_C" >&6
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34250 $ac_includes_default
34251 typedef major_t ac__type_new_;
34255 if ((ac__type_new_ *) 0)
34257 if (sizeof (ac__type_new_))
34263 rm -f conftest.$ac_objext
34264 if { (ac_try="$ac_compile"
34265 case "(($ac_try" in
34266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34267 *) ac_try_echo=$ac_try;;
34269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34270 (eval "$ac_compile") 2>conftest.er1
34272 grep -v '^ *+' conftest.er1 >conftest.err
34274 cat conftest.err >&5
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } && {
34277 test -z "$ac_c_werror_flag" ||
34278 test ! -s conftest.err
34279 } && test -s conftest.$ac_objext; then
34280 ac_cv_type_major_t=yes
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34285 ac_cv_type_major_t=no
34288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34290 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34291 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34292 if test $ac_cv_type_major_t = yes; then
34296 cat >>confdefs.h <<_ACEOF
34297 #define major_t int
34302 { echo "$as_me:$LINENO: checking for minor_t" >&5
34303 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34304 if test "${ac_cv_type_minor_t+set}" = set; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 cat >conftest.$ac_ext <<_ACEOF
34310 cat confdefs.h >>conftest.$ac_ext
34311 cat >>conftest.$ac_ext <<_ACEOF
34312 /* end confdefs.h. */
34313 $ac_includes_default
34314 typedef minor_t ac__type_new_;
34318 if ((ac__type_new_ *) 0)
34320 if (sizeof (ac__type_new_))
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34330 *) ac_try_echo=$ac_try;;
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333 (eval "$ac_compile") 2>conftest.er1
34335 grep -v '^ *+' conftest.er1 >conftest.err
34337 cat conftest.err >&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); } && {
34340 test -z "$ac_c_werror_flag" ||
34341 test ! -s conftest.err
34342 } && test -s conftest.$ac_objext; then
34343 ac_cv_type_minor_t=yes
34345 echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34348 ac_cv_type_minor_t=no
34351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34353 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34354 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34355 if test $ac_cv_type_minor_t = yes; then
34359 cat >>confdefs.h <<_ACEOF
34360 #define minor_t int
34365 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34366 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34367 if test "${ac_cv_type_ssize_t+set}" = set; then
34368 echo $ECHO_N "(cached) $ECHO_C" >&6
34370 cat >conftest.$ac_ext <<_ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h. */
34376 $ac_includes_default
34377 typedef ssize_t ac__type_new_;
34381 if ((ac__type_new_ *) 0)
34383 if (sizeof (ac__type_new_))
34389 rm -f conftest.$ac_objext
34390 if { (ac_try="$ac_compile"
34391 case "(($ac_try" in
34392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34393 *) ac_try_echo=$ac_try;;
34395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34396 (eval "$ac_compile") 2>conftest.er1
34398 grep -v '^ *+' conftest.er1 >conftest.err
34400 cat conftest.err >&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); } && {
34403 test -z "$ac_c_werror_flag" ||
34404 test ! -s conftest.err
34405 } && test -s conftest.$ac_objext; then
34406 ac_cv_type_ssize_t=yes
34408 echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34411 ac_cv_type_ssize_t=no
34414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34416 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34417 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34418 if test $ac_cv_type_ssize_t = yes; then
34422 cat >>confdefs.h <<_ACEOF
34423 #define ssize_t int
34428 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34429 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34430 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34431 echo $ECHO_N "(cached) $ECHO_C" >&6
34433 cat >conftest.$ac_ext <<_ACEOF
34436 cat confdefs.h >>conftest.$ac_ext
34437 cat >>conftest.$ac_ext <<_ACEOF
34438 /* end confdefs.h. */
34439 $ac_includes_default
34443 static struct stat ac_aggr;
34444 if (ac_aggr.st_blocks)
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_compile") 2>conftest.er1
34459 grep -v '^ *+' conftest.er1 >conftest.err
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } && {
34464 test -z "$ac_c_werror_flag" ||
34465 test ! -s conftest.err
34466 } && test -s conftest.$ac_objext; then
34467 ac_cv_member_struct_stat_st_blocks=yes
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34472 cat >conftest.$ac_ext <<_ACEOF
34475 cat confdefs.h >>conftest.$ac_ext
34476 cat >>conftest.$ac_ext <<_ACEOF
34477 /* end confdefs.h. */
34478 $ac_includes_default
34482 static struct stat ac_aggr;
34483 if (sizeof ac_aggr.st_blocks)
34489 rm -f conftest.$ac_objext
34490 if { (ac_try="$ac_compile"
34491 case "(($ac_try" in
34492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34493 *) ac_try_echo=$ac_try;;
34495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34496 (eval "$ac_compile") 2>conftest.er1
34498 grep -v '^ *+' conftest.er1 >conftest.err
34500 cat conftest.err >&5
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); } && {
34503 test -z "$ac_c_werror_flag" ||
34504 test ! -s conftest.err
34505 } && test -s conftest.$ac_objext; then
34506 ac_cv_member_struct_stat_st_blocks=yes
34508 echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34511 ac_cv_member_struct_stat_st_blocks=no
34514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34520 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34521 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34523 cat >>confdefs.h <<_ACEOF
34524 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34528 cat >>confdefs.h <<\_ACEOF
34529 #define HAVE_ST_BLOCKS 1
34533 case " $LIBOBJS " in
34534 *" fileblocks.$ac_objext "* ) ;;
34535 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34542 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34543 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34544 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 cat >conftest.$ac_ext <<_ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34553 $ac_includes_default
34557 static struct stat ac_aggr;
34558 if (ac_aggr.st_rdev)
34564 rm -f conftest.$ac_objext
34565 if { (ac_try="$ac_compile"
34566 case "(($ac_try" in
34567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34568 *) ac_try_echo=$ac_try;;
34570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34571 (eval "$ac_compile") 2>conftest.er1
34573 grep -v '^ *+' conftest.er1 >conftest.err
34575 cat conftest.err >&5
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); } && {
34578 test -z "$ac_c_werror_flag" ||
34579 test ! -s conftest.err
34580 } && test -s conftest.$ac_objext; then
34581 ac_cv_member_struct_stat_st_rdev=yes
34583 echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34586 cat >conftest.$ac_ext <<_ACEOF
34589 cat confdefs.h >>conftest.$ac_ext
34590 cat >>conftest.$ac_ext <<_ACEOF
34591 /* end confdefs.h. */
34592 $ac_includes_default
34596 static struct stat ac_aggr;
34597 if (sizeof ac_aggr.st_rdev)
34603 rm -f conftest.$ac_objext
34604 if { (ac_try="$ac_compile"
34605 case "(($ac_try" in
34606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34607 *) ac_try_echo=$ac_try;;
34609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34610 (eval "$ac_compile") 2>conftest.er1
34612 grep -v '^ *+' conftest.er1 >conftest.err
34614 cat conftest.err >&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } && {
34617 test -z "$ac_c_werror_flag" ||
34618 test ! -s conftest.err
34619 } && test -s conftest.$ac_objext; then
34620 ac_cv_member_struct_stat_st_rdev=yes
34622 echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34625 ac_cv_member_struct_stat_st_rdev=no
34628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34633 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34634 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34635 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34637 cat >>confdefs.h <<_ACEOF
34638 #define HAVE_STRUCT_STAT_ST_RDEV 1
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_ST_RDEV 1
34649 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34650 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34651 if test "${ac_cv_struct_tm+set}" = set; then
34652 echo $ECHO_N "(cached) $ECHO_C" >&6
34654 cat >conftest.$ac_ext <<_ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h. */
34660 #include <sys/types.h>
34667 int *p = &tm.tm_sec;
34673 rm -f conftest.$ac_objext
34674 if { (ac_try="$ac_compile"
34675 case "(($ac_try" in
34676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677 *) ac_try_echo=$ac_try;;
34679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34680 (eval "$ac_compile") 2>conftest.er1
34682 grep -v '^ *+' conftest.er1 >conftest.err
34684 cat conftest.err >&5
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); } && {
34687 test -z "$ac_c_werror_flag" ||
34688 test ! -s conftest.err
34689 } && test -s conftest.$ac_objext; then
34690 ac_cv_struct_tm=time.h
34692 echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34695 ac_cv_struct_tm=sys/time.h
34698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34700 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34701 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34702 if test $ac_cv_struct_tm = sys/time.h; then
34704 cat >>confdefs.h <<\_ACEOF
34705 #define TM_IN_SYS_TIME 1
34710 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34711 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34712 if test "${ac_cv_c_const+set}" = set; then
34713 echo $ECHO_N "(cached) $ECHO_C" >&6
34715 cat >conftest.$ac_ext <<_ACEOF
34718 cat confdefs.h >>conftest.$ac_ext
34719 cat >>conftest.$ac_ext <<_ACEOF
34720 /* end confdefs.h. */
34725 /* FIXME: Include the comments suggested by Paul. */
34726 #ifndef __cplusplus
34727 /* Ultrix mips cc rejects this. */
34728 typedef int charset[2];
34730 /* SunOS 4.1.1 cc rejects this. */
34731 char const *const *pcpcc;
34733 /* NEC SVR4.0.2 mips cc rejects this. */
34734 struct point {int x, y;};
34735 static struct point const zero = {0,0};
34736 /* AIX XL C 1.02.0.0 rejects this.
34737 It does not let you subtract one const X* pointer from another in
34738 an arm of an if-expression whose if-part is not a constant
34740 const char *g = "string";
34741 pcpcc = &g + (g ? g-g : 0);
34742 /* HPUX 7.0 cc rejects these. */
34744 ppc = (char**) pcpcc;
34745 pcpcc = (char const *const *) ppc;
34746 { /* SCO 3.2v4 cc rejects this. */
34748 char const *s = 0 ? (char *) 0 : (char const *) 0;
34753 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34754 int x[] = {25, 17};
34755 const int *foo = &x[0];
34758 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34759 typedef const int *iptr;
34763 { /* AIX XL C 1.02.0.0 rejects this saying
34764 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34765 struct s { int j; const int *ap[3]; };
34766 struct s *b; b->j = 5;
34768 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34769 const int foo = 10;
34770 if (!foo) return 0;
34772 return !cs[0] && !zero.x;
34779 rm -f conftest.$ac_objext
34780 if { (ac_try="$ac_compile"
34781 case "(($ac_try" in
34782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34783 *) ac_try_echo=$ac_try;;
34785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34786 (eval "$ac_compile") 2>conftest.er1
34788 grep -v '^ *+' conftest.er1 >conftest.err
34790 cat conftest.err >&5
34791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792 (exit $ac_status); } && {
34793 test -z "$ac_c_werror_flag" ||
34794 test ! -s conftest.err
34795 } && test -s conftest.$ac_objext; then
34798 echo "$as_me: failed program was:" >&5
34799 sed 's/^/| /' conftest.$ac_ext >&5
34804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34806 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34807 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34808 if test $ac_cv_c_const = no; then
34810 cat >>confdefs.h <<\_ACEOF
34817 { echo "$as_me:$LINENO: checking for char" >&5
34818 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34819 if test "${ac_cv_type_char+set}" = set; then
34820 echo $ECHO_N "(cached) $ECHO_C" >&6
34822 cat >conftest.$ac_ext <<_ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h. */
34828 $ac_includes_default
34829 typedef char ac__type_new_;
34833 if ((ac__type_new_ *) 0)
34835 if (sizeof (ac__type_new_))
34841 rm -f conftest.$ac_objext
34842 if { (ac_try="$ac_compile"
34843 case "(($ac_try" in
34844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34845 *) ac_try_echo=$ac_try;;
34847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34848 (eval "$ac_compile") 2>conftest.er1
34850 grep -v '^ *+' conftest.er1 >conftest.err
34852 cat conftest.err >&5
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); } && {
34855 test -z "$ac_c_werror_flag" ||
34856 test ! -s conftest.err
34857 } && test -s conftest.$ac_objext; then
34858 ac_cv_type_char=yes
34860 echo "$as_me: failed program was:" >&5
34861 sed 's/^/| /' conftest.$ac_ext >&5
34866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34869 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34871 # The cast to long int works around a bug in the HP C Compiler
34872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34874 # This bug is HP SR number 8606223364.
34875 { echo "$as_me:$LINENO: checking size of char" >&5
34876 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34877 if test "${ac_cv_sizeof_char+set}" = set; then
34878 echo $ECHO_N "(cached) $ECHO_C" >&6
34880 if test "$cross_compiling" = yes; then
34881 # Depending upon the size, compute the lo and hi bounds.
34882 cat >conftest.$ac_ext <<_ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h. */
34888 $ac_includes_default
34889 typedef char ac__type_sizeof_;
34893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34900 rm -f conftest.$ac_objext
34901 if { (ac_try="$ac_compile"
34902 case "(($ac_try" in
34903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34904 *) ac_try_echo=$ac_try;;
34906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34907 (eval "$ac_compile") 2>conftest.er1
34909 grep -v '^ *+' conftest.er1 >conftest.err
34911 cat conftest.err >&5
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); } && {
34914 test -z "$ac_c_werror_flag" ||
34915 test ! -s conftest.err
34916 } && test -s conftest.$ac_objext; then
34919 cat >conftest.$ac_ext <<_ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h. */
34925 $ac_includes_default
34926 typedef char ac__type_sizeof_;
34930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34937 rm -f conftest.$ac_objext
34938 if { (ac_try="$ac_compile"
34939 case "(($ac_try" in
34940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941 *) ac_try_echo=$ac_try;;
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944 (eval "$ac_compile") 2>conftest.er1
34946 grep -v '^ *+' conftest.er1 >conftest.err
34948 cat conftest.err >&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); } && {
34951 test -z "$ac_c_werror_flag" ||
34952 test ! -s conftest.err
34953 } && test -s conftest.$ac_objext; then
34954 ac_hi=$ac_mid; break
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34959 ac_lo=`expr $ac_mid + 1`
34960 if test $ac_lo -le $ac_mid; then
34964 ac_mid=`expr 2 '*' $ac_mid + 1`
34967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970 echo "$as_me: failed program was:" >&5
34971 sed 's/^/| /' conftest.$ac_ext >&5
34973 cat >conftest.$ac_ext <<_ACEOF
34976 cat confdefs.h >>conftest.$ac_ext
34977 cat >>conftest.$ac_ext <<_ACEOF
34978 /* end confdefs.h. */
34979 $ac_includes_default
34980 typedef char ac__type_sizeof_;
34984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34991 rm -f conftest.$ac_objext
34992 if { (ac_try="$ac_compile"
34993 case "(($ac_try" in
34994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34995 *) ac_try_echo=$ac_try;;
34997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34998 (eval "$ac_compile") 2>conftest.er1
35000 grep -v '^ *+' conftest.er1 >conftest.err
35002 cat conftest.err >&5
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); } && {
35005 test -z "$ac_c_werror_flag" ||
35006 test ! -s conftest.err
35007 } && test -s conftest.$ac_objext; then
35010 cat >conftest.$ac_ext <<_ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h. */
35016 $ac_includes_default
35017 typedef char ac__type_sizeof_;
35021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35028 rm -f conftest.$ac_objext
35029 if { (ac_try="$ac_compile"
35030 case "(($ac_try" in
35031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032 *) ac_try_echo=$ac_try;;
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035 (eval "$ac_compile") 2>conftest.er1
35037 grep -v '^ *+' conftest.er1 >conftest.err
35039 cat conftest.err >&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); } && {
35042 test -z "$ac_c_werror_flag" ||
35043 test ! -s conftest.err
35044 } && test -s conftest.$ac_objext; then
35045 ac_lo=$ac_mid; break
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35050 ac_hi=`expr '(' $ac_mid ')' - 1`
35051 if test $ac_mid -le $ac_hi; then
35055 ac_mid=`expr 2 '*' $ac_mid`
35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35061 echo "$as_me: failed program was:" >&5
35062 sed 's/^/| /' conftest.$ac_ext >&5
35067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35071 # Binary search between lo and hi bounds.
35072 while test "x$ac_lo" != "x$ac_hi"; do
35073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35074 cat >conftest.$ac_ext <<_ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h. */
35080 $ac_includes_default
35081 typedef char ac__type_sizeof_;
35085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35092 rm -f conftest.$ac_objext
35093 if { (ac_try="$ac_compile"
35094 case "(($ac_try" in
35095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096 *) ac_try_echo=$ac_try;;
35098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099 (eval "$ac_compile") 2>conftest.er1
35101 grep -v '^ *+' conftest.er1 >conftest.err
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } && {
35106 test -z "$ac_c_werror_flag" ||
35107 test ! -s conftest.err
35108 } && test -s conftest.$ac_objext; then
35111 echo "$as_me: failed program was:" >&5
35112 sed 's/^/| /' conftest.$ac_ext >&5
35114 ac_lo=`expr '(' $ac_mid ')' + 1`
35117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35120 ?*) ac_cv_sizeof_char=$ac_lo;;
35121 '') if test "$ac_cv_type_char" = yes; then
35122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35123 See \`config.log' for more details." >&5
35124 echo "$as_me: error: cannot compute sizeof (char)
35125 See \`config.log' for more details." >&2;}
35126 { (exit 77); exit 77; }; }
35128 ac_cv_sizeof_char=0
35132 cat >conftest.$ac_ext <<_ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h. */
35138 $ac_includes_default
35139 typedef char ac__type_sizeof_;
35140 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35141 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35143 #include <stdlib.h>
35148 FILE *f = fopen ("conftest.val", "w");
35151 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35153 long int i = longval ();
35154 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35156 fprintf (f, "%ld\n", i);
35160 unsigned long int i = ulongval ();
35161 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35163 fprintf (f, "%lu\n", i);
35165 return ferror (f) || fclose (f) != 0;
35171 rm -f conftest$ac_exeext
35172 if { (ac_try="$ac_link"
35173 case "(($ac_try" in
35174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175 *) ac_try_echo=$ac_try;;
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178 (eval "$ac_link") 2>&5
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35182 { (case "(($ac_try" in
35183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35184 *) ac_try_echo=$ac_try;;
35186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35187 (eval "$ac_try") 2>&5
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; }; then
35191 ac_cv_sizeof_char=`cat conftest.val`
35193 echo "$as_me: program exited with status $ac_status" >&5
35194 echo "$as_me: failed program was:" >&5
35195 sed 's/^/| /' conftest.$ac_ext >&5
35197 ( exit $ac_status )
35198 if test "$ac_cv_type_char" = yes; then
35199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35200 See \`config.log' for more details." >&5
35201 echo "$as_me: error: cannot compute sizeof (char)
35202 See \`config.log' for more details." >&2;}
35203 { (exit 77); exit 77; }; }
35205 ac_cv_sizeof_char=0
35208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35212 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35213 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35217 cat >>confdefs.h <<_ACEOF
35218 #define SIZEOF_CHAR $ac_cv_sizeof_char
35222 { echo "$as_me:$LINENO: checking for short int" >&5
35223 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35224 if test "${ac_cv_type_short_int+set}" = set; then
35225 echo $ECHO_N "(cached) $ECHO_C" >&6
35227 cat >conftest.$ac_ext <<_ACEOF
35230 cat confdefs.h >>conftest.$ac_ext
35231 cat >>conftest.$ac_ext <<_ACEOF
35232 /* end confdefs.h. */
35233 $ac_includes_default
35234 typedef short int ac__type_new_;
35238 if ((ac__type_new_ *) 0)
35240 if (sizeof (ac__type_new_))
35246 rm -f conftest.$ac_objext
35247 if { (ac_try="$ac_compile"
35248 case "(($ac_try" in
35249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35250 *) ac_try_echo=$ac_try;;
35252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35253 (eval "$ac_compile") 2>conftest.er1
35255 grep -v '^ *+' conftest.er1 >conftest.err
35257 cat conftest.err >&5
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); } && {
35260 test -z "$ac_c_werror_flag" ||
35261 test ! -s conftest.err
35262 } && test -s conftest.$ac_objext; then
35263 ac_cv_type_short_int=yes
35265 echo "$as_me: failed program was:" >&5
35266 sed 's/^/| /' conftest.$ac_ext >&5
35268 ac_cv_type_short_int=no
35271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35274 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35276 # The cast to long int works around a bug in the HP C Compiler
35277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35279 # This bug is HP SR number 8606223364.
35280 { echo "$as_me:$LINENO: checking size of short int" >&5
35281 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35282 if test "${ac_cv_sizeof_short_int+set}" = set; then
35283 echo $ECHO_N "(cached) $ECHO_C" >&6
35285 if test "$cross_compiling" = yes; then
35286 # Depending upon the size, compute the lo and hi bounds.
35287 cat >conftest.$ac_ext <<_ACEOF
35290 cat confdefs.h >>conftest.$ac_ext
35291 cat >>conftest.$ac_ext <<_ACEOF
35292 /* end confdefs.h. */
35293 $ac_includes_default
35294 typedef short int ac__type_sizeof_;
35298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35305 rm -f conftest.$ac_objext
35306 if { (ac_try="$ac_compile"
35307 case "(($ac_try" in
35308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35309 *) ac_try_echo=$ac_try;;
35311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35312 (eval "$ac_compile") 2>conftest.er1
35314 grep -v '^ *+' conftest.er1 >conftest.err
35316 cat conftest.err >&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } && {
35319 test -z "$ac_c_werror_flag" ||
35320 test ! -s conftest.err
35321 } && test -s conftest.$ac_objext; then
35324 cat >conftest.$ac_ext <<_ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35330 $ac_includes_default
35331 typedef short int ac__type_sizeof_;
35335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35342 rm -f conftest.$ac_objext
35343 if { (ac_try="$ac_compile"
35344 case "(($ac_try" in
35345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346 *) ac_try_echo=$ac_try;;
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349 (eval "$ac_compile") 2>conftest.er1
35351 grep -v '^ *+' conftest.er1 >conftest.err
35353 cat conftest.err >&5
35354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); } && {
35356 test -z "$ac_c_werror_flag" ||
35357 test ! -s conftest.err
35358 } && test -s conftest.$ac_objext; then
35359 ac_hi=$ac_mid; break
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 ac_lo=`expr $ac_mid + 1`
35365 if test $ac_lo -le $ac_mid; then
35369 ac_mid=`expr 2 '*' $ac_mid + 1`
35372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35375 echo "$as_me: failed program was:" >&5
35376 sed 's/^/| /' conftest.$ac_ext >&5
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 short int ac__type_sizeof_;
35389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35396 rm -f conftest.$ac_objext
35397 if { (ac_try="$ac_compile"
35398 case "(($ac_try" in
35399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35400 *) ac_try_echo=$ac_try;;
35402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35403 (eval "$ac_compile") 2>conftest.er1
35405 grep -v '^ *+' conftest.er1 >conftest.err
35407 cat conftest.err >&5
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); } && {
35410 test -z "$ac_c_werror_flag" ||
35411 test ! -s conftest.err
35412 } && test -s conftest.$ac_objext; then
35415 cat >conftest.$ac_ext <<_ACEOF
35418 cat confdefs.h >>conftest.$ac_ext
35419 cat >>conftest.$ac_ext <<_ACEOF
35420 /* end confdefs.h. */
35421 $ac_includes_default
35422 typedef short int ac__type_sizeof_;
35426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35433 rm -f conftest.$ac_objext
35434 if { (ac_try="$ac_compile"
35435 case "(($ac_try" in
35436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35437 *) ac_try_echo=$ac_try;;
35439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35440 (eval "$ac_compile") 2>conftest.er1
35442 grep -v '^ *+' conftest.er1 >conftest.err
35444 cat conftest.err >&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); } && {
35447 test -z "$ac_c_werror_flag" ||
35448 test ! -s conftest.err
35449 } && test -s conftest.$ac_objext; then
35450 ac_lo=$ac_mid; break
35452 echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35455 ac_hi=`expr '(' $ac_mid ')' - 1`
35456 if test $ac_mid -le $ac_hi; then
35460 ac_mid=`expr 2 '*' $ac_mid`
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35466 echo "$as_me: failed program was:" >&5
35467 sed 's/^/| /' conftest.$ac_ext >&5
35472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35476 # Binary search between lo and hi bounds.
35477 while test "x$ac_lo" != "x$ac_hi"; do
35478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35479 cat >conftest.$ac_ext <<_ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35485 $ac_includes_default
35486 typedef short int ac__type_sizeof_;
35490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35497 rm -f conftest.$ac_objext
35498 if { (ac_try="$ac_compile"
35499 case "(($ac_try" in
35500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35501 *) ac_try_echo=$ac_try;;
35503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35504 (eval "$ac_compile") 2>conftest.er1
35506 grep -v '^ *+' conftest.er1 >conftest.err
35508 cat conftest.err >&5
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); } && {
35511 test -z "$ac_c_werror_flag" ||
35512 test ! -s conftest.err
35513 } && test -s conftest.$ac_objext; then
35516 echo "$as_me: failed program was:" >&5
35517 sed 's/^/| /' conftest.$ac_ext >&5
35519 ac_lo=`expr '(' $ac_mid ')' + 1`
35522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35525 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35526 '') if test "$ac_cv_type_short_int" = yes; then
35527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35528 See \`config.log' for more details." >&5
35529 echo "$as_me: error: cannot compute sizeof (short int)
35530 See \`config.log' for more details." >&2;}
35531 { (exit 77); exit 77; }; }
35533 ac_cv_sizeof_short_int=0
35537 cat >conftest.$ac_ext <<_ACEOF
35540 cat confdefs.h >>conftest.$ac_ext
35541 cat >>conftest.$ac_ext <<_ACEOF
35542 /* end confdefs.h. */
35543 $ac_includes_default
35544 typedef short int ac__type_sizeof_;
35545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35548 #include <stdlib.h>
35553 FILE *f = fopen ("conftest.val", "w");
35556 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35558 long int i = longval ();
35559 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35561 fprintf (f, "%ld\n", i);
35565 unsigned long int i = ulongval ();
35566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35568 fprintf (f, "%lu\n", i);
35570 return ferror (f) || fclose (f) != 0;
35576 rm -f conftest$ac_exeext
35577 if { (ac_try="$ac_link"
35578 case "(($ac_try" in
35579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580 *) ac_try_echo=$ac_try;;
35582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35583 (eval "$ac_link") 2>&5
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35587 { (case "(($ac_try" in
35588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35589 *) ac_try_echo=$ac_try;;
35591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35592 (eval "$ac_try") 2>&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; }; then
35596 ac_cv_sizeof_short_int=`cat conftest.val`
35598 echo "$as_me: program exited with status $ac_status" >&5
35599 echo "$as_me: failed program was:" >&5
35600 sed 's/^/| /' conftest.$ac_ext >&5
35602 ( exit $ac_status )
35603 if test "$ac_cv_type_short_int" = yes; then
35604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35605 See \`config.log' for more details." >&5
35606 echo "$as_me: error: cannot compute sizeof (short int)
35607 See \`config.log' for more details." >&2;}
35608 { (exit 77); exit 77; }; }
35610 ac_cv_sizeof_short_int=0
35613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35618 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35622 cat >>confdefs.h <<_ACEOF
35623 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35627 { echo "$as_me:$LINENO: checking for int" >&5
35628 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35629 if test "${ac_cv_type_int+set}" = set; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35632 cat >conftest.$ac_ext <<_ACEOF
35635 cat confdefs.h >>conftest.$ac_ext
35636 cat >>conftest.$ac_ext <<_ACEOF
35637 /* end confdefs.h. */
35638 $ac_includes_default
35639 typedef int ac__type_new_;
35643 if ((ac__type_new_ *) 0)
35645 if (sizeof (ac__type_new_))
35651 rm -f conftest.$ac_objext
35652 if { (ac_try="$ac_compile"
35653 case "(($ac_try" in
35654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35655 *) ac_try_echo=$ac_try;;
35657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35658 (eval "$ac_compile") 2>conftest.er1
35660 grep -v '^ *+' conftest.er1 >conftest.err
35662 cat conftest.err >&5
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); } && {
35665 test -z "$ac_c_werror_flag" ||
35666 test ! -s conftest.err
35667 } && test -s conftest.$ac_objext; then
35670 echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35678 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35679 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35681 # The cast to long int works around a bug in the HP C Compiler
35682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35684 # This bug is HP SR number 8606223364.
35685 { echo "$as_me:$LINENO: checking size of int" >&5
35686 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35687 if test "${ac_cv_sizeof_int+set}" = set; then
35688 echo $ECHO_N "(cached) $ECHO_C" >&6
35690 if test "$cross_compiling" = yes; then
35691 # Depending upon the size, compute the lo and hi bounds.
35692 cat >conftest.$ac_ext <<_ACEOF
35695 cat confdefs.h >>conftest.$ac_ext
35696 cat >>conftest.$ac_ext <<_ACEOF
35697 /* end confdefs.h. */
35698 $ac_includes_default
35699 typedef int ac__type_sizeof_;
35703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35710 rm -f conftest.$ac_objext
35711 if { (ac_try="$ac_compile"
35712 case "(($ac_try" in
35713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35714 *) ac_try_echo=$ac_try;;
35716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35717 (eval "$ac_compile") 2>conftest.er1
35719 grep -v '^ *+' conftest.er1 >conftest.err
35721 cat conftest.err >&5
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); } && {
35724 test -z "$ac_c_werror_flag" ||
35725 test ! -s conftest.err
35726 } && test -s conftest.$ac_objext; then
35729 cat >conftest.$ac_ext <<_ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h. */
35735 $ac_includes_default
35736 typedef int ac__type_sizeof_;
35740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35747 rm -f conftest.$ac_objext
35748 if { (ac_try="$ac_compile"
35749 case "(($ac_try" in
35750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35751 *) ac_try_echo=$ac_try;;
35753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35754 (eval "$ac_compile") 2>conftest.er1
35756 grep -v '^ *+' conftest.er1 >conftest.err
35758 cat conftest.err >&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } && {
35761 test -z "$ac_c_werror_flag" ||
35762 test ! -s conftest.err
35763 } && test -s conftest.$ac_objext; then
35764 ac_hi=$ac_mid; break
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35769 ac_lo=`expr $ac_mid + 1`
35770 if test $ac_lo -le $ac_mid; then
35774 ac_mid=`expr 2 '*' $ac_mid + 1`
35777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
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 int ac__type_sizeof_;
35794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35801 rm -f conftest.$ac_objext
35802 if { (ac_try="$ac_compile"
35803 case "(($ac_try" in
35804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35805 *) ac_try_echo=$ac_try;;
35807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35808 (eval "$ac_compile") 2>conftest.er1
35810 grep -v '^ *+' conftest.er1 >conftest.err
35812 cat conftest.err >&5
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); } && {
35815 test -z "$ac_c_werror_flag" ||
35816 test ! -s conftest.err
35817 } && test -s conftest.$ac_objext; then
35820 cat >conftest.$ac_ext <<_ACEOF
35823 cat confdefs.h >>conftest.$ac_ext
35824 cat >>conftest.$ac_ext <<_ACEOF
35825 /* end confdefs.h. */
35826 $ac_includes_default
35827 typedef int ac__type_sizeof_;
35831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35838 rm -f conftest.$ac_objext
35839 if { (ac_try="$ac_compile"
35840 case "(($ac_try" in
35841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35842 *) ac_try_echo=$ac_try;;
35844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35845 (eval "$ac_compile") 2>conftest.er1
35847 grep -v '^ *+' conftest.er1 >conftest.err
35849 cat conftest.err >&5
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); } && {
35852 test -z "$ac_c_werror_flag" ||
35853 test ! -s conftest.err
35854 } && test -s conftest.$ac_objext; then
35855 ac_lo=$ac_mid; break
35857 echo "$as_me: failed program was:" >&5
35858 sed 's/^/| /' conftest.$ac_ext >&5
35860 ac_hi=`expr '(' $ac_mid ')' - 1`
35861 if test $ac_mid -le $ac_hi; then
35865 ac_mid=`expr 2 '*' $ac_mid`
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35871 echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35881 # Binary search between lo and hi bounds.
35882 while test "x$ac_lo" != "x$ac_hi"; do
35883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35884 cat >conftest.$ac_ext <<_ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h. */
35890 $ac_includes_default
35891 typedef int ac__type_sizeof_;
35895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35902 rm -f conftest.$ac_objext
35903 if { (ac_try="$ac_compile"
35904 case "(($ac_try" in
35905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35906 *) ac_try_echo=$ac_try;;
35908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35909 (eval "$ac_compile") 2>conftest.er1
35911 grep -v '^ *+' conftest.er1 >conftest.err
35913 cat conftest.err >&5
35914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915 (exit $ac_status); } && {
35916 test -z "$ac_c_werror_flag" ||
35917 test ! -s conftest.err
35918 } && test -s conftest.$ac_objext; then
35921 echo "$as_me: failed program was:" >&5
35922 sed 's/^/| /' conftest.$ac_ext >&5
35924 ac_lo=`expr '(' $ac_mid ')' + 1`
35927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35930 ?*) ac_cv_sizeof_int=$ac_lo;;
35931 '') if test "$ac_cv_type_int" = yes; then
35932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35933 See \`config.log' for more details." >&5
35934 echo "$as_me: error: cannot compute sizeof (int)
35935 See \`config.log' for more details." >&2;}
35936 { (exit 77); exit 77; }; }
35942 cat >conftest.$ac_ext <<_ACEOF
35945 cat confdefs.h >>conftest.$ac_ext
35946 cat >>conftest.$ac_ext <<_ACEOF
35947 /* end confdefs.h. */
35948 $ac_includes_default
35949 typedef int ac__type_sizeof_;
35950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35953 #include <stdlib.h>
35958 FILE *f = fopen ("conftest.val", "w");
35961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35963 long int i = longval ();
35964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35966 fprintf (f, "%ld\n", i);
35970 unsigned long int i = ulongval ();
35971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35973 fprintf (f, "%lu\n", i);
35975 return ferror (f) || fclose (f) != 0;
35981 rm -f conftest$ac_exeext
35982 if { (ac_try="$ac_link"
35983 case "(($ac_try" in
35984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35985 *) ac_try_echo=$ac_try;;
35987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35988 (eval "$ac_link") 2>&5
35990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35992 { (case "(($ac_try" in
35993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35994 *) ac_try_echo=$ac_try;;
35996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35997 (eval "$ac_try") 2>&5
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); }; }; then
36001 ac_cv_sizeof_int=`cat conftest.val`
36003 echo "$as_me: program exited with status $ac_status" >&5
36004 echo "$as_me: failed program was:" >&5
36005 sed 's/^/| /' conftest.$ac_ext >&5
36007 ( exit $ac_status )
36008 if test "$ac_cv_type_int" = yes; then
36009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36010 See \`config.log' for more details." >&5
36011 echo "$as_me: error: cannot compute sizeof (int)
36012 See \`config.log' for more details." >&2;}
36013 { (exit 77); exit 77; }; }
36018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36023 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36027 cat >>confdefs.h <<_ACEOF
36028 #define SIZEOF_INT $ac_cv_sizeof_int
36032 { echo "$as_me:$LINENO: checking for long int" >&5
36033 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36034 if test "${ac_cv_type_long_int+set}" = set; then
36035 echo $ECHO_N "(cached) $ECHO_C" >&6
36037 cat >conftest.$ac_ext <<_ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h. */
36043 $ac_includes_default
36044 typedef long int ac__type_new_;
36048 if ((ac__type_new_ *) 0)
36050 if (sizeof (ac__type_new_))
36056 rm -f conftest.$ac_objext
36057 if { (ac_try="$ac_compile"
36058 case "(($ac_try" in
36059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36060 *) ac_try_echo=$ac_try;;
36062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36063 (eval "$ac_compile") 2>conftest.er1
36065 grep -v '^ *+' conftest.er1 >conftest.err
36067 cat conftest.err >&5
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); } && {
36070 test -z "$ac_c_werror_flag" ||
36071 test ! -s conftest.err
36072 } && test -s conftest.$ac_objext; then
36073 ac_cv_type_long_int=yes
36075 echo "$as_me: failed program was:" >&5
36076 sed 's/^/| /' conftest.$ac_ext >&5
36078 ac_cv_type_long_int=no
36081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36083 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36084 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36086 # The cast to long int works around a bug in the HP C Compiler
36087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36089 # This bug is HP SR number 8606223364.
36090 { echo "$as_me:$LINENO: checking size of long int" >&5
36091 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36092 if test "${ac_cv_sizeof_long_int+set}" = set; then
36093 echo $ECHO_N "(cached) $ECHO_C" >&6
36095 if test "$cross_compiling" = yes; then
36096 # Depending upon the size, compute the lo and hi bounds.
36097 cat >conftest.$ac_ext <<_ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h. */
36103 $ac_includes_default
36104 typedef long int ac__type_sizeof_;
36108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36115 rm -f conftest.$ac_objext
36116 if { (ac_try="$ac_compile"
36117 case "(($ac_try" in
36118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36119 *) ac_try_echo=$ac_try;;
36121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36122 (eval "$ac_compile") 2>conftest.er1
36124 grep -v '^ *+' conftest.er1 >conftest.err
36126 cat conftest.err >&5
36127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); } && {
36129 test -z "$ac_c_werror_flag" ||
36130 test ! -s conftest.err
36131 } && test -s conftest.$ac_objext; then
36134 cat >conftest.$ac_ext <<_ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h. */
36140 $ac_includes_default
36141 typedef long int ac__type_sizeof_;
36145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36152 rm -f conftest.$ac_objext
36153 if { (ac_try="$ac_compile"
36154 case "(($ac_try" in
36155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156 *) ac_try_echo=$ac_try;;
36158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36159 (eval "$ac_compile") 2>conftest.er1
36161 grep -v '^ *+' conftest.er1 >conftest.err
36163 cat conftest.err >&5
36164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165 (exit $ac_status); } && {
36166 test -z "$ac_c_werror_flag" ||
36167 test ! -s conftest.err
36168 } && test -s conftest.$ac_objext; then
36169 ac_hi=$ac_mid; break
36171 echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36174 ac_lo=`expr $ac_mid + 1`
36175 if test $ac_lo -le $ac_mid; then
36179 ac_mid=`expr 2 '*' $ac_mid + 1`
36182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36185 echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.$ac_ext >&5
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 long int ac__type_sizeof_;
36199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36206 rm -f conftest.$ac_objext
36207 if { (ac_try="$ac_compile"
36208 case "(($ac_try" in
36209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36210 *) ac_try_echo=$ac_try;;
36212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36213 (eval "$ac_compile") 2>conftest.er1
36215 grep -v '^ *+' conftest.er1 >conftest.err
36217 cat conftest.err >&5
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); } && {
36220 test -z "$ac_c_werror_flag" ||
36221 test ! -s conftest.err
36222 } && test -s conftest.$ac_objext; then
36225 cat >conftest.$ac_ext <<_ACEOF
36228 cat confdefs.h >>conftest.$ac_ext
36229 cat >>conftest.$ac_ext <<_ACEOF
36230 /* end confdefs.h. */
36231 $ac_includes_default
36232 typedef long int ac__type_sizeof_;
36236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36243 rm -f conftest.$ac_objext
36244 if { (ac_try="$ac_compile"
36245 case "(($ac_try" in
36246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247 *) ac_try_echo=$ac_try;;
36249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36250 (eval "$ac_compile") 2>conftest.er1
36252 grep -v '^ *+' conftest.er1 >conftest.err
36254 cat conftest.err >&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } && {
36257 test -z "$ac_c_werror_flag" ||
36258 test ! -s conftest.err
36259 } && test -s conftest.$ac_objext; then
36260 ac_lo=$ac_mid; break
36262 echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36265 ac_hi=`expr '(' $ac_mid ')' - 1`
36266 if test $ac_mid -le $ac_hi; then
36270 ac_mid=`expr 2 '*' $ac_mid`
36273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36276 echo "$as_me: failed program was:" >&5
36277 sed 's/^/| /' conftest.$ac_ext >&5
36282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36286 # Binary search between lo and hi bounds.
36287 while test "x$ac_lo" != "x$ac_hi"; do
36288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36289 cat >conftest.$ac_ext <<_ACEOF
36292 cat confdefs.h >>conftest.$ac_ext
36293 cat >>conftest.$ac_ext <<_ACEOF
36294 /* end confdefs.h. */
36295 $ac_includes_default
36296 typedef long int ac__type_sizeof_;
36300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36307 rm -f conftest.$ac_objext
36308 if { (ac_try="$ac_compile"
36309 case "(($ac_try" in
36310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36311 *) ac_try_echo=$ac_try;;
36313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36314 (eval "$ac_compile") 2>conftest.er1
36316 grep -v '^ *+' conftest.er1 >conftest.err
36318 cat conftest.err >&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); } && {
36321 test -z "$ac_c_werror_flag" ||
36322 test ! -s conftest.err
36323 } && test -s conftest.$ac_objext; then
36326 echo "$as_me: failed program was:" >&5
36327 sed 's/^/| /' conftest.$ac_ext >&5
36329 ac_lo=`expr '(' $ac_mid ')' + 1`
36332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36335 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36336 '') if test "$ac_cv_type_long_int" = yes; then
36337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36338 See \`config.log' for more details." >&5
36339 echo "$as_me: error: cannot compute sizeof (long int)
36340 See \`config.log' for more details." >&2;}
36341 { (exit 77); exit 77; }; }
36343 ac_cv_sizeof_long_int=0
36347 cat >conftest.$ac_ext <<_ACEOF
36350 cat confdefs.h >>conftest.$ac_ext
36351 cat >>conftest.$ac_ext <<_ACEOF
36352 /* end confdefs.h. */
36353 $ac_includes_default
36354 typedef long int ac__type_sizeof_;
36355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36358 #include <stdlib.h>
36363 FILE *f = fopen ("conftest.val", "w");
36366 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36368 long int i = longval ();
36369 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36371 fprintf (f, "%ld\n", i);
36375 unsigned long int i = ulongval ();
36376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36378 fprintf (f, "%lu\n", i);
36380 return ferror (f) || fclose (f) != 0;
36386 rm -f conftest$ac_exeext
36387 if { (ac_try="$ac_link"
36388 case "(($ac_try" in
36389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36390 *) ac_try_echo=$ac_try;;
36392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36393 (eval "$ac_link") 2>&5
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36397 { (case "(($ac_try" in
36398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36399 *) ac_try_echo=$ac_try;;
36401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36402 (eval "$ac_try") 2>&5
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); }; }; then
36406 ac_cv_sizeof_long_int=`cat conftest.val`
36408 echo "$as_me: program exited with status $ac_status" >&5
36409 echo "$as_me: failed program was:" >&5
36410 sed 's/^/| /' conftest.$ac_ext >&5
36412 ( exit $ac_status )
36413 if test "$ac_cv_type_long_int" = yes; then
36414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36415 See \`config.log' for more details." >&5
36416 echo "$as_me: error: cannot compute sizeof (long int)
36417 See \`config.log' for more details." >&2;}
36418 { (exit 77); exit 77; }; }
36420 ac_cv_sizeof_long_int=0
36423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36428 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36432 cat >>confdefs.h <<_ACEOF
36433 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36437 { echo "$as_me:$LINENO: checking for long long int" >&5
36438 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36439 if test "${ac_cv_type_long_long_int+set}" = set; then
36440 echo $ECHO_N "(cached) $ECHO_C" >&6
36442 cat >conftest.$ac_ext <<_ACEOF
36445 cat confdefs.h >>conftest.$ac_ext
36446 cat >>conftest.$ac_ext <<_ACEOF
36447 /* end confdefs.h. */
36448 $ac_includes_default
36449 typedef long long int ac__type_new_;
36453 if ((ac__type_new_ *) 0)
36455 if (sizeof (ac__type_new_))
36461 rm -f conftest.$ac_objext
36462 if { (ac_try="$ac_compile"
36463 case "(($ac_try" in
36464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465 *) ac_try_echo=$ac_try;;
36467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36468 (eval "$ac_compile") 2>conftest.er1
36470 grep -v '^ *+' conftest.er1 >conftest.err
36472 cat conftest.err >&5
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); } && {
36475 test -z "$ac_c_werror_flag" ||
36476 test ! -s conftest.err
36477 } && test -s conftest.$ac_objext; then
36478 ac_cv_type_long_long_int=yes
36480 echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36483 ac_cv_type_long_long_int=no
36486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36489 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36491 # The cast to long int works around a bug in the HP C Compiler
36492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36494 # This bug is HP SR number 8606223364.
36495 { echo "$as_me:$LINENO: checking size of long long int" >&5
36496 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36497 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36498 echo $ECHO_N "(cached) $ECHO_C" >&6
36500 if test "$cross_compiling" = yes; then
36501 # Depending upon the size, compute the lo and hi bounds.
36502 cat >conftest.$ac_ext <<_ACEOF
36505 cat confdefs.h >>conftest.$ac_ext
36506 cat >>conftest.$ac_ext <<_ACEOF
36507 /* end confdefs.h. */
36508 $ac_includes_default
36509 typedef long long int ac__type_sizeof_;
36513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36520 rm -f conftest.$ac_objext
36521 if { (ac_try="$ac_compile"
36522 case "(($ac_try" in
36523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36524 *) ac_try_echo=$ac_try;;
36526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36527 (eval "$ac_compile") 2>conftest.er1
36529 grep -v '^ *+' conftest.er1 >conftest.err
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } && {
36534 test -z "$ac_c_werror_flag" ||
36535 test ! -s conftest.err
36536 } && test -s conftest.$ac_objext; then
36539 cat >conftest.$ac_ext <<_ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h. */
36545 $ac_includes_default
36546 typedef long long int ac__type_sizeof_;
36550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36557 rm -f conftest.$ac_objext
36558 if { (ac_try="$ac_compile"
36559 case "(($ac_try" in
36560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36561 *) ac_try_echo=$ac_try;;
36563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36564 (eval "$ac_compile") 2>conftest.er1
36566 grep -v '^ *+' conftest.er1 >conftest.err
36568 cat conftest.err >&5
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); } && {
36571 test -z "$ac_c_werror_flag" ||
36572 test ! -s conftest.err
36573 } && test -s conftest.$ac_objext; then
36574 ac_hi=$ac_mid; break
36576 echo "$as_me: failed program was:" >&5
36577 sed 's/^/| /' conftest.$ac_ext >&5
36579 ac_lo=`expr $ac_mid + 1`
36580 if test $ac_lo -le $ac_mid; then
36584 ac_mid=`expr 2 '*' $ac_mid + 1`
36587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36590 echo "$as_me: failed program was:" >&5
36591 sed 's/^/| /' conftest.$ac_ext >&5
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 long int ac__type_sizeof_;
36604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36611 rm -f conftest.$ac_objext
36612 if { (ac_try="$ac_compile"
36613 case "(($ac_try" in
36614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36615 *) ac_try_echo=$ac_try;;
36617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36618 (eval "$ac_compile") 2>conftest.er1
36620 grep -v '^ *+' conftest.er1 >conftest.err
36622 cat conftest.err >&5
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); } && {
36625 test -z "$ac_c_werror_flag" ||
36626 test ! -s conftest.err
36627 } && test -s conftest.$ac_objext; then
36630 cat >conftest.$ac_ext <<_ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h. */
36636 $ac_includes_default
36637 typedef long long int ac__type_sizeof_;
36641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36648 rm -f conftest.$ac_objext
36649 if { (ac_try="$ac_compile"
36650 case "(($ac_try" in
36651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36652 *) ac_try_echo=$ac_try;;
36654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36655 (eval "$ac_compile") 2>conftest.er1
36657 grep -v '^ *+' conftest.er1 >conftest.err
36659 cat conftest.err >&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); } && {
36662 test -z "$ac_c_werror_flag" ||
36663 test ! -s conftest.err
36664 } && test -s conftest.$ac_objext; then
36665 ac_lo=$ac_mid; break
36667 echo "$as_me: failed program was:" >&5
36668 sed 's/^/| /' conftest.$ac_ext >&5
36670 ac_hi=`expr '(' $ac_mid ')' - 1`
36671 if test $ac_mid -le $ac_hi; then
36675 ac_mid=`expr 2 '*' $ac_mid`
36678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36681 echo "$as_me: failed program was:" >&5
36682 sed 's/^/| /' conftest.$ac_ext >&5
36687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36691 # Binary search between lo and hi bounds.
36692 while test "x$ac_lo" != "x$ac_hi"; do
36693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36694 cat >conftest.$ac_ext <<_ACEOF
36697 cat confdefs.h >>conftest.$ac_ext
36698 cat >>conftest.$ac_ext <<_ACEOF
36699 /* end confdefs.h. */
36700 $ac_includes_default
36701 typedef long long int ac__type_sizeof_;
36705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36712 rm -f conftest.$ac_objext
36713 if { (ac_try="$ac_compile"
36714 case "(($ac_try" in
36715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36716 *) ac_try_echo=$ac_try;;
36718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36719 (eval "$ac_compile") 2>conftest.er1
36721 grep -v '^ *+' conftest.er1 >conftest.err
36723 cat conftest.err >&5
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); } && {
36726 test -z "$ac_c_werror_flag" ||
36727 test ! -s conftest.err
36728 } && test -s conftest.$ac_objext; then
36731 echo "$as_me: failed program was:" >&5
36732 sed 's/^/| /' conftest.$ac_ext >&5
36734 ac_lo=`expr '(' $ac_mid ')' + 1`
36737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36740 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36741 '') if test "$ac_cv_type_long_long_int" = yes; then
36742 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36743 See \`config.log' for more details." >&5
36744 echo "$as_me: error: cannot compute sizeof (long long int)
36745 See \`config.log' for more details." >&2;}
36746 { (exit 77); exit 77; }; }
36748 ac_cv_sizeof_long_long_int=0
36752 cat >conftest.$ac_ext <<_ACEOF
36755 cat confdefs.h >>conftest.$ac_ext
36756 cat >>conftest.$ac_ext <<_ACEOF
36757 /* end confdefs.h. */
36758 $ac_includes_default
36759 typedef long long int ac__type_sizeof_;
36760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36763 #include <stdlib.h>
36768 FILE *f = fopen ("conftest.val", "w");
36771 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36773 long int i = longval ();
36774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36776 fprintf (f, "%ld\n", i);
36780 unsigned long int i = ulongval ();
36781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36783 fprintf (f, "%lu\n", i);
36785 return ferror (f) || fclose (f) != 0;
36791 rm -f conftest$ac_exeext
36792 if { (ac_try="$ac_link"
36793 case "(($ac_try" in
36794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36795 *) ac_try_echo=$ac_try;;
36797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36798 (eval "$ac_link") 2>&5
36800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36802 { (case "(($ac_try" in
36803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36804 *) ac_try_echo=$ac_try;;
36806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36807 (eval "$ac_try") 2>&5
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); }; }; then
36811 ac_cv_sizeof_long_long_int=`cat conftest.val`
36813 echo "$as_me: program exited with status $ac_status" >&5
36814 echo "$as_me: failed program was:" >&5
36815 sed 's/^/| /' conftest.$ac_ext >&5
36817 ( exit $ac_status )
36818 if test "$ac_cv_type_long_long_int" = yes; then
36819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36820 See \`config.log' for more details." >&5
36821 echo "$as_me: error: cannot compute sizeof (long long int)
36822 See \`config.log' for more details." >&2;}
36823 { (exit 77); exit 77; }; }
36825 ac_cv_sizeof_long_long_int=0
36828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36833 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36837 cat >>confdefs.h <<_ACEOF
36838 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36842 { echo "$as_me:$LINENO: checking for int *" >&5
36843 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36844 if test "${ac_cv_type_int_p+set}" = set; then
36845 echo $ECHO_N "(cached) $ECHO_C" >&6
36847 cat >conftest.$ac_ext <<_ACEOF
36850 cat confdefs.h >>conftest.$ac_ext
36851 cat >>conftest.$ac_ext <<_ACEOF
36852 /* end confdefs.h. */
36853 $ac_includes_default
36854 typedef int * ac__type_new_;
36858 if ((ac__type_new_ *) 0)
36860 if (sizeof (ac__type_new_))
36866 rm -f conftest.$ac_objext
36867 if { (ac_try="$ac_compile"
36868 case "(($ac_try" in
36869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36870 *) ac_try_echo=$ac_try;;
36872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36873 (eval "$ac_compile") 2>conftest.er1
36875 grep -v '^ *+' conftest.er1 >conftest.err
36877 cat conftest.err >&5
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } && {
36880 test -z "$ac_c_werror_flag" ||
36881 test ! -s conftest.err
36882 } && test -s conftest.$ac_objext; then
36883 ac_cv_type_int_p=yes
36885 echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36888 ac_cv_type_int_p=no
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36894 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36896 # The cast to long int works around a bug in the HP C Compiler
36897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36899 # This bug is HP SR number 8606223364.
36900 { echo "$as_me:$LINENO: checking size of int *" >&5
36901 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36902 if test "${ac_cv_sizeof_int_p+set}" = set; then
36903 echo $ECHO_N "(cached) $ECHO_C" >&6
36905 if test "$cross_compiling" = yes; then
36906 # Depending upon the size, compute the lo and hi bounds.
36907 cat >conftest.$ac_ext <<_ACEOF
36910 cat confdefs.h >>conftest.$ac_ext
36911 cat >>conftest.$ac_ext <<_ACEOF
36912 /* end confdefs.h. */
36913 $ac_includes_default
36914 typedef int * ac__type_sizeof_;
36918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36925 rm -f conftest.$ac_objext
36926 if { (ac_try="$ac_compile"
36927 case "(($ac_try" in
36928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36929 *) ac_try_echo=$ac_try;;
36931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36932 (eval "$ac_compile") 2>conftest.er1
36934 grep -v '^ *+' conftest.er1 >conftest.err
36936 cat conftest.err >&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } && {
36939 test -z "$ac_c_werror_flag" ||
36940 test ! -s conftest.err
36941 } && test -s conftest.$ac_objext; then
36944 cat >conftest.$ac_ext <<_ACEOF
36947 cat confdefs.h >>conftest.$ac_ext
36948 cat >>conftest.$ac_ext <<_ACEOF
36949 /* end confdefs.h. */
36950 $ac_includes_default
36951 typedef int * ac__type_sizeof_;
36955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36962 rm -f conftest.$ac_objext
36963 if { (ac_try="$ac_compile"
36964 case "(($ac_try" in
36965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36966 *) ac_try_echo=$ac_try;;
36968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36969 (eval "$ac_compile") 2>conftest.er1
36971 grep -v '^ *+' conftest.er1 >conftest.err
36973 cat conftest.err >&5
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); } && {
36976 test -z "$ac_c_werror_flag" ||
36977 test ! -s conftest.err
36978 } && test -s conftest.$ac_objext; then
36979 ac_hi=$ac_mid; break
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36984 ac_lo=`expr $ac_mid + 1`
36985 if test $ac_lo -le $ac_mid; then
36989 ac_mid=`expr 2 '*' $ac_mid + 1`
36992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36995 echo "$as_me: failed program was:" >&5
36996 sed 's/^/| /' conftest.$ac_ext >&5
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 int * ac__type_sizeof_;
37009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37016 rm -f conftest.$ac_objext
37017 if { (ac_try="$ac_compile"
37018 case "(($ac_try" in
37019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37020 *) ac_try_echo=$ac_try;;
37022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37023 (eval "$ac_compile") 2>conftest.er1
37025 grep -v '^ *+' conftest.er1 >conftest.err
37027 cat conftest.err >&5
37028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029 (exit $ac_status); } && {
37030 test -z "$ac_c_werror_flag" ||
37031 test ! -s conftest.err
37032 } && test -s conftest.$ac_objext; then
37035 cat >conftest.$ac_ext <<_ACEOF
37038 cat confdefs.h >>conftest.$ac_ext
37039 cat >>conftest.$ac_ext <<_ACEOF
37040 /* end confdefs.h. */
37041 $ac_includes_default
37042 typedef int * ac__type_sizeof_;
37046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37053 rm -f conftest.$ac_objext
37054 if { (ac_try="$ac_compile"
37055 case "(($ac_try" in
37056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37057 *) ac_try_echo=$ac_try;;
37059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37060 (eval "$ac_compile") 2>conftest.er1
37062 grep -v '^ *+' conftest.er1 >conftest.err
37064 cat conftest.err >&5
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); } && {
37067 test -z "$ac_c_werror_flag" ||
37068 test ! -s conftest.err
37069 } && test -s conftest.$ac_objext; then
37070 ac_lo=$ac_mid; break
37072 echo "$as_me: failed program was:" >&5
37073 sed 's/^/| /' conftest.$ac_ext >&5
37075 ac_hi=`expr '(' $ac_mid ')' - 1`
37076 if test $ac_mid -le $ac_hi; then
37080 ac_mid=`expr 2 '*' $ac_mid`
37083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37086 echo "$as_me: failed program was:" >&5
37087 sed 's/^/| /' conftest.$ac_ext >&5
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37096 # Binary search between lo and hi bounds.
37097 while test "x$ac_lo" != "x$ac_hi"; do
37098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37099 cat >conftest.$ac_ext <<_ACEOF
37102 cat confdefs.h >>conftest.$ac_ext
37103 cat >>conftest.$ac_ext <<_ACEOF
37104 /* end confdefs.h. */
37105 $ac_includes_default
37106 typedef int * ac__type_sizeof_;
37110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37117 rm -f conftest.$ac_objext
37118 if { (ac_try="$ac_compile"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_compile") 2>conftest.er1
37126 grep -v '^ *+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } && {
37131 test -z "$ac_c_werror_flag" ||
37132 test ! -s conftest.err
37133 } && test -s conftest.$ac_objext; then
37136 echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37139 ac_lo=`expr '(' $ac_mid ')' + 1`
37142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37145 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37146 '') if test "$ac_cv_type_int_p" = yes; then
37147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37148 See \`config.log' for more details." >&5
37149 echo "$as_me: error: cannot compute sizeof (int *)
37150 See \`config.log' for more details." >&2;}
37151 { (exit 77); exit 77; }; }
37153 ac_cv_sizeof_int_p=0
37157 cat >conftest.$ac_ext <<_ACEOF
37160 cat confdefs.h >>conftest.$ac_ext
37161 cat >>conftest.$ac_ext <<_ACEOF
37162 /* end confdefs.h. */
37163 $ac_includes_default
37164 typedef int * ac__type_sizeof_;
37165 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37166 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37168 #include <stdlib.h>
37173 FILE *f = fopen ("conftest.val", "w");
37176 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37178 long int i = longval ();
37179 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37181 fprintf (f, "%ld\n", i);
37185 unsigned long int i = ulongval ();
37186 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37188 fprintf (f, "%lu\n", i);
37190 return ferror (f) || fclose (f) != 0;
37196 rm -f conftest$ac_exeext
37197 if { (ac_try="$ac_link"
37198 case "(($ac_try" in
37199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37200 *) ac_try_echo=$ac_try;;
37202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37203 (eval "$ac_link") 2>&5
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37207 { (case "(($ac_try" in
37208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37209 *) ac_try_echo=$ac_try;;
37211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37212 (eval "$ac_try") 2>&5
37214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215 (exit $ac_status); }; }; then
37216 ac_cv_sizeof_int_p=`cat conftest.val`
37218 echo "$as_me: program exited with status $ac_status" >&5
37219 echo "$as_me: failed program was:" >&5
37220 sed 's/^/| /' conftest.$ac_ext >&5
37222 ( exit $ac_status )
37223 if test "$ac_cv_type_int_p" = yes; then
37224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37225 See \`config.log' for more details." >&5
37226 echo "$as_me: error: cannot compute sizeof (int *)
37227 See \`config.log' for more details." >&2;}
37228 { (exit 77); exit 77; }; }
37230 ac_cv_sizeof_int_p=0
37233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37237 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37238 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37242 cat >>confdefs.h <<_ACEOF
37243 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37248 { echo "$as_me:$LINENO: checking for u_int type" >&5
37249 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37250 if test "${ac_cv_have_u_int+set}" = set; then
37251 echo $ECHO_N "(cached) $ECHO_C" >&6
37254 cat >conftest.$ac_ext <<_ACEOF
37257 cat confdefs.h >>conftest.$ac_ext
37258 cat >>conftest.$ac_ext <<_ACEOF
37259 /* end confdefs.h. */
37261 #include <sys/types.h>
37273 rm -f conftest.$ac_objext
37274 if { (ac_try="$ac_compile"
37275 case "(($ac_try" in
37276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37277 *) ac_try_echo=$ac_try;;
37279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37280 (eval "$ac_compile") 2>conftest.er1
37282 grep -v '^ *+' conftest.er1 >conftest.err
37284 cat conftest.err >&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); } && {
37287 test -z "$ac_c_werror_flag" ||
37288 test ! -s conftest.err
37289 } && test -s conftest.$ac_objext; then
37291 ac_cv_have_u_int="yes"
37294 echo "$as_me: failed program was:" >&5
37295 sed 's/^/| /' conftest.$ac_ext >&5
37298 ac_cv_have_u_int="no"
37303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37307 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37308 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37309 if test "x$ac_cv_have_u_int" = "xyes" ; then
37310 cat >>confdefs.h <<\_ACEOF
37311 #define HAVE_U_INT 1
37317 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37318 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37319 if test "${ac_cv_have_intmax_t+set}" = set; then
37320 echo $ECHO_N "(cached) $ECHO_C" >&6
37323 cat >conftest.$ac_ext <<_ACEOF
37326 cat confdefs.h >>conftest.$ac_ext
37327 cat >>conftest.$ac_ext <<_ACEOF
37328 /* end confdefs.h. */
37330 #include <sys/types.h>
37342 rm -f conftest.$ac_objext
37343 if { (ac_try="$ac_compile"
37344 case "(($ac_try" in
37345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37346 *) ac_try_echo=$ac_try;;
37348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37349 (eval "$ac_compile") 2>conftest.er1
37351 grep -v '^ *+' conftest.er1 >conftest.err
37353 cat conftest.err >&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); } && {
37356 test -z "$ac_c_werror_flag" ||
37357 test ! -s conftest.err
37358 } && test -s conftest.$ac_objext; then
37360 ac_cv_have_intmax_t="yes"
37363 echo "$as_me: failed program was:" >&5
37364 sed 's/^/| /' conftest.$ac_ext >&5
37367 cat >conftest.$ac_ext <<_ACEOF
37370 cat confdefs.h >>conftest.$ac_ext
37371 cat >>conftest.$ac_ext <<_ACEOF
37372 /* end confdefs.h. */
37374 #include <stdint.h>
37386 rm -f conftest.$ac_objext
37387 if { (ac_try="$ac_compile"
37388 case "(($ac_try" in
37389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37390 *) ac_try_echo=$ac_try;;
37392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37393 (eval "$ac_compile") 2>conftest.er1
37395 grep -v '^ *+' conftest.er1 >conftest.err
37397 cat conftest.err >&5
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); } && {
37400 test -z "$ac_c_werror_flag" ||
37401 test ! -s conftest.err
37402 } && test -s conftest.$ac_objext; then
37404 ac_cv_have_intmax_t="yes"
37407 echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37411 ac_cv_have_intmax_t="no"
37416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37425 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37426 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37427 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37428 cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_INTMAX_T 1
37435 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37436 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37437 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37438 echo $ECHO_N "(cached) $ECHO_C" >&6
37441 cat >conftest.$ac_ext <<_ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h. */
37448 #include <sys/types.h>
37454 u_intmax_t a; a = 1;
37460 rm -f conftest.$ac_objext
37461 if { (ac_try="$ac_compile"
37462 case "(($ac_try" in
37463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464 *) ac_try_echo=$ac_try;;
37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467 (eval "$ac_compile") 2>conftest.er1
37469 grep -v '^ *+' conftest.er1 >conftest.err
37471 cat conftest.err >&5
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } && {
37474 test -z "$ac_c_werror_flag" ||
37475 test ! -s conftest.err
37476 } && test -s conftest.$ac_objext; then
37478 ac_cv_have_u_intmax_t="yes"
37481 echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37485 cat >conftest.$ac_ext <<_ACEOF
37488 cat confdefs.h >>conftest.$ac_ext
37489 cat >>conftest.$ac_ext <<_ACEOF
37490 /* end confdefs.h. */
37492 #include <stdint.h>
37498 u_intmax_t a; a = 1;
37504 rm -f conftest.$ac_objext
37505 if { (ac_try="$ac_compile"
37506 case "(($ac_try" in
37507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37508 *) ac_try_echo=$ac_try;;
37510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37511 (eval "$ac_compile") 2>conftest.er1
37513 grep -v '^ *+' conftest.er1 >conftest.err
37515 cat conftest.err >&5
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); } && {
37518 test -z "$ac_c_werror_flag" ||
37519 test ! -s conftest.err
37520 } && test -s conftest.$ac_objext; then
37522 ac_cv_have_u_intmax_t="yes"
37525 echo "$as_me: failed program was:" >&5
37526 sed 's/^/| /' conftest.$ac_ext >&5
37529 ac_cv_have_u_intmax_t="no"
37534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37543 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37544 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37545 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37546 cat >>confdefs.h <<\_ACEOF
37547 #define HAVE_U_INTMAX_T 1
37553 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37554 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37555 if test "${ac_cv_have_intxx_t+set}" = set; then
37556 echo $ECHO_N "(cached) $ECHO_C" >&6
37559 cat >conftest.$ac_ext <<_ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37566 #include <sys/types.h>
37572 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37578 rm -f conftest.$ac_objext
37579 if { (ac_try="$ac_compile"
37580 case "(($ac_try" in
37581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37582 *) ac_try_echo=$ac_try;;
37584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37585 (eval "$ac_compile") 2>conftest.er1
37587 grep -v '^ *+' conftest.er1 >conftest.err
37589 cat conftest.err >&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } && {
37592 test -z "$ac_c_werror_flag" ||
37593 test ! -s conftest.err
37594 } && test -s conftest.$ac_objext; then
37596 ac_cv_have_intxx_t="yes"
37599 echo "$as_me: failed program was:" >&5
37600 sed 's/^/| /' conftest.$ac_ext >&5
37603 ac_cv_have_intxx_t="no"
37608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37612 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37613 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37614 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37615 cat >>confdefs.h <<\_ACEOF
37616 #define HAVE_INTXX_T 1
37622 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37623 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37624 if test "${ac_cv_have_int64_t+set}" = set; then
37625 echo $ECHO_N "(cached) $ECHO_C" >&6
37628 cat >conftest.$ac_ext <<_ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h. */
37635 #include <sys/types.h>
37647 rm -f conftest.$ac_objext
37648 if { (ac_try="$ac_compile"
37649 case "(($ac_try" in
37650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37651 *) ac_try_echo=$ac_try;;
37653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37654 (eval "$ac_compile") 2>conftest.er1
37656 grep -v '^ *+' conftest.er1 >conftest.err
37658 cat conftest.err >&5
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); } && {
37661 test -z "$ac_c_werror_flag" ||
37662 test ! -s conftest.err
37663 } && test -s conftest.$ac_objext; then
37665 ac_cv_have_int64_t="yes"
37668 echo "$as_me: failed program was:" >&5
37669 sed 's/^/| /' conftest.$ac_ext >&5
37672 ac_cv_have_int64_t="no"
37677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37681 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37682 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37683 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37684 cat >>confdefs.h <<\_ACEOF
37685 #define HAVE_INT64_T 1
37691 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37692 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37693 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37697 cat >conftest.$ac_ext <<_ACEOF
37700 cat confdefs.h >>conftest.$ac_ext
37701 cat >>conftest.$ac_ext <<_ACEOF
37702 /* end confdefs.h. */
37704 #include <sys/types.h>
37710 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37716 rm -f conftest.$ac_objext
37717 if { (ac_try="$ac_compile"
37718 case "(($ac_try" in
37719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37720 *) ac_try_echo=$ac_try;;
37722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37723 (eval "$ac_compile") 2>conftest.er1
37725 grep -v '^ *+' conftest.er1 >conftest.err
37727 cat conftest.err >&5
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); } && {
37730 test -z "$ac_c_werror_flag" ||
37731 test ! -s conftest.err
37732 } && test -s conftest.$ac_objext; then
37734 ac_cv_have_u_intxx_t="yes"
37737 echo "$as_me: failed program was:" >&5
37738 sed 's/^/| /' conftest.$ac_ext >&5
37741 ac_cv_have_u_intxx_t="no"
37746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37750 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37751 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37752 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37753 cat >>confdefs.h <<\_ACEOF
37754 #define HAVE_U_INTXX_T 1
37760 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37761 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37762 if test "${ac_cv_have_u_int64_t+set}" = set; then
37763 echo $ECHO_N "(cached) $ECHO_C" >&6
37766 cat >conftest.$ac_ext <<_ACEOF
37769 cat confdefs.h >>conftest.$ac_ext
37770 cat >>conftest.$ac_ext <<_ACEOF
37771 /* end confdefs.h. */
37773 #include <sys/types.h>
37779 u_int64_t a; a = 1;
37785 rm -f conftest.$ac_objext
37786 if { (ac_try="$ac_compile"
37787 case "(($ac_try" in
37788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37789 *) ac_try_echo=$ac_try;;
37791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37792 (eval "$ac_compile") 2>conftest.er1
37794 grep -v '^ *+' conftest.er1 >conftest.err
37796 cat conftest.err >&5
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); } && {
37799 test -z "$ac_c_werror_flag" ||
37800 test ! -s conftest.err
37801 } && test -s conftest.$ac_objext; then
37803 ac_cv_have_u_int64_t="yes"
37806 echo "$as_me: failed program was:" >&5
37807 sed 's/^/| /' conftest.$ac_ext >&5
37810 ac_cv_have_u_int64_t="no"
37815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37819 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37820 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37821 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37822 cat >>confdefs.h <<\_ACEOF
37823 #define HAVE_U_INT64_T 1
37829 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37830 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37832 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37833 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37834 cat >conftest.$ac_ext <<_ACEOF
37837 cat confdefs.h >>conftest.$ac_ext
37838 cat >>conftest.$ac_ext <<_ACEOF
37839 /* end confdefs.h. */
37841 #include <sys/bitypes.h>
37847 int8_t a; int16_t b; int32_t c;
37848 u_int8_t e; u_int16_t f; u_int32_t g;
37849 a = b = c = e = f = g = 1;
37855 rm -f conftest.$ac_objext
37856 if { (ac_try="$ac_compile"
37857 case "(($ac_try" in
37858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37859 *) ac_try_echo=$ac_try;;
37861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37862 (eval "$ac_compile") 2>conftest.er1
37864 grep -v '^ *+' conftest.er1 >conftest.err
37866 cat conftest.err >&5
37867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37868 (exit $ac_status); } && {
37869 test -z "$ac_c_werror_flag" ||
37870 test ! -s conftest.err
37871 } && test -s conftest.$ac_objext; then
37873 cat >>confdefs.h <<\_ACEOF
37874 #define HAVE_U_INTXX_T 1
37877 cat >>confdefs.h <<\_ACEOF
37878 #define HAVE_INTXX_T 1
37881 cat >>confdefs.h <<\_ACEOF
37882 #define HAVE_SYS_BITYPES_H 1
37885 { echo "$as_me:$LINENO: result: yes" >&5
37886 echo "${ECHO_T}yes" >&6; }
37889 echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37893 { echo "$as_me:$LINENO: result: no" >&5
37894 echo "${ECHO_T}no" >&6; }
37899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37902 if test -z "$have_u_intxx_t" ; then
37903 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37904 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37905 if test "${ac_cv_have_uintxx_t+set}" = set; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37909 cat >conftest.$ac_ext <<_ACEOF
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h. */
37916 #include <sys/types.h>
37922 uint8_t a; uint16_t b;
37923 uint32_t c; a = b = c = 1;
37929 rm -f conftest.$ac_objext
37930 if { (ac_try="$ac_compile"
37931 case "(($ac_try" in
37932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933 *) ac_try_echo=$ac_try;;
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936 (eval "$ac_compile") 2>conftest.er1
37938 grep -v '^ *+' conftest.er1 >conftest.err
37940 cat conftest.err >&5
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } && {
37943 test -z "$ac_c_werror_flag" ||
37944 test ! -s conftest.err
37945 } && test -s conftest.$ac_objext; then
37947 ac_cv_have_uintxx_t="yes"
37950 echo "$as_me: failed program was:" >&5
37951 sed 's/^/| /' conftest.$ac_ext >&5
37954 ac_cv_have_uintxx_t="no"
37959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37963 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37964 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37965 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37966 cat >>confdefs.h <<\_ACEOF
37967 #define HAVE_UINTXX_T 1
37973 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37974 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37976 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37977 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37978 cat >conftest.$ac_ext <<_ACEOF
37981 cat confdefs.h >>conftest.$ac_ext
37982 cat >>conftest.$ac_ext <<_ACEOF
37983 /* end confdefs.h. */
37985 #include <sys/bitypes.h>
37991 int64_t a; u_int64_t b;
37998 rm -f conftest.$ac_objext
37999 if { (ac_try="$ac_compile"
38000 case "(($ac_try" in
38001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38002 *) ac_try_echo=$ac_try;;
38004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38005 (eval "$ac_compile") 2>conftest.er1
38007 grep -v '^ *+' conftest.er1 >conftest.err
38009 cat conftest.err >&5
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); } && {
38012 test -z "$ac_c_werror_flag" ||
38013 test ! -s conftest.err
38014 } && test -s conftest.$ac_objext; then
38016 cat >>confdefs.h <<\_ACEOF
38017 #define HAVE_U_INT64_T 1
38020 cat >>confdefs.h <<\_ACEOF
38021 #define HAVE_INT64_T 1
38024 { echo "$as_me:$LINENO: result: yes" >&5
38025 echo "${ECHO_T}yes" >&6; }
38028 echo "$as_me: failed program was:" >&5
38029 sed 's/^/| /' conftest.$ac_ext >&5
38032 { echo "$as_me:$LINENO: result: no" >&5
38033 echo "${ECHO_T}no" >&6; }
38038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38041 if (test -z "$have_uintxx_t" && \
38042 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38044 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38045 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38046 cat >conftest.$ac_ext <<_ACEOF
38049 cat confdefs.h >>conftest.$ac_ext
38050 cat >>conftest.$ac_ext <<_ACEOF
38051 /* end confdefs.h. */
38053 #include <sys/bitypes.h>
38059 uint8_t a; uint16_t b;
38060 uint32_t c; a = b = c = 1;
38066 rm -f conftest.$ac_objext
38067 if { (ac_try="$ac_compile"
38068 case "(($ac_try" in
38069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38070 *) ac_try_echo=$ac_try;;
38072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38073 (eval "$ac_compile") 2>conftest.er1
38075 grep -v '^ *+' conftest.er1 >conftest.err
38077 cat conftest.err >&5
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); } && {
38080 test -z "$ac_c_werror_flag" ||
38081 test ! -s conftest.err
38082 } && test -s conftest.$ac_objext; then
38084 cat >>confdefs.h <<\_ACEOF
38085 #define HAVE_UINTXX_T 1
38088 { echo "$as_me:$LINENO: result: yes" >&5
38089 echo "${ECHO_T}yes" >&6; }
38092 echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38096 { echo "$as_me:$LINENO: result: no" >&5
38097 echo "${ECHO_T}no" >&6; }
38102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38138 echo $ECHO_N "(cached) $ECHO_C" >&6
38140 cat >conftest.$ac_ext <<_ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h. */
38146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38148 #define $ac_func innocuous_$ac_func
38150 /* System header to define __stub macros and hopefully few prototypes,
38151 which can conflict with char $ac_func (); below.
38152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38153 <limits.h> exists even on freestanding compilers. */
38156 # include <limits.h>
38158 # include <assert.h>
38163 /* Override any GCC internal prototype to avoid an error.
38164 Use char because int might match the return type of a GCC
38165 builtin and then its argument prototype would still apply. */
38170 /* The GNU C library defines this for functions which it implements
38171 to always fail with ENOSYS. Some functions are actually named
38172 something starting with __ and the normal name is an alias. */
38173 #if defined __stub_$ac_func || defined __stub___$ac_func
38180 return $ac_func ();
38185 rm -f conftest.$ac_objext conftest$ac_exeext
38186 if { (ac_try="$ac_link"
38187 case "(($ac_try" in
38188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189 *) ac_try_echo=$ac_try;;
38191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38192 (eval "$ac_link") 2>conftest.er1
38194 grep -v '^ *+' conftest.er1 >conftest.err
38196 cat conftest.err >&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); } && {
38199 test -z "$ac_c_werror_flag" ||
38200 test ! -s conftest.err
38201 } && test -s conftest$ac_exeext &&
38202 $as_test_x conftest$ac_exeext; then
38203 eval "$as_ac_var=yes"
38205 echo "$as_me: failed program was:" >&5
38206 sed 's/^/| /' conftest.$ac_ext >&5
38208 eval "$as_ac_var=no"
38211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38212 conftest$ac_exeext conftest.$ac_ext
38214 ac_res=`eval echo '${'$as_ac_var'}'`
38215 { echo "$as_me:$LINENO: result: $ac_res" >&5
38216 echo "${ECHO_T}$ac_res" >&6; }
38217 if test `eval echo '${'$as_ac_var'}'` = yes; then
38218 cat >>confdefs.h <<_ACEOF
38219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38223 echo 'configure: cannot find needed function.'; exit 1
38230 for ac_func in fchdir
38232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38238 cat >conftest.$ac_ext <<_ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h. */
38244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38246 #define $ac_func innocuous_$ac_func
38248 /* System header to define __stub macros and hopefully few prototypes,
38249 which can conflict with char $ac_func (); below.
38250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38251 <limits.h> exists even on freestanding compilers. */
38254 # include <limits.h>
38256 # include <assert.h>
38261 /* Override any GCC internal prototype to avoid an error.
38262 Use char because int might match the return type of a GCC
38263 builtin and then its argument prototype would still apply. */
38268 /* The GNU C library defines this for functions which it implements
38269 to always fail with ENOSYS. Some functions are actually named
38270 something starting with __ and the normal name is an alias. */
38271 #if defined __stub_$ac_func || defined __stub___$ac_func
38278 return $ac_func ();
38283 rm -f conftest.$ac_objext conftest$ac_exeext
38284 if { (ac_try="$ac_link"
38285 case "(($ac_try" in
38286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38287 *) ac_try_echo=$ac_try;;
38289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38290 (eval "$ac_link") 2>conftest.er1
38292 grep -v '^ *+' conftest.er1 >conftest.err
38294 cat conftest.err >&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); } && {
38297 test -z "$ac_c_werror_flag" ||
38298 test ! -s conftest.err
38299 } && test -s conftest$ac_exeext &&
38300 $as_test_x conftest$ac_exeext; then
38301 eval "$as_ac_var=yes"
38303 echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38306 eval "$as_ac_var=no"
38309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38310 conftest$ac_exeext conftest.$ac_ext
38312 ac_res=`eval echo '${'$as_ac_var'}'`
38313 { echo "$as_me:$LINENO: result: $ac_res" >&5
38314 echo "${ECHO_T}$ac_res" >&6; }
38315 if test `eval echo '${'$as_ac_var'}'` = yes; then
38316 cat >>confdefs.h <<_ACEOF
38317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38319 cat >>confdefs.h <<\_ACEOF
38320 #define HAVE_FCHDIR 1
38327 for ac_func in strtoll
38329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38333 echo $ECHO_N "(cached) $ECHO_C" >&6
38335 cat >conftest.$ac_ext <<_ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h. */
38341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38343 #define $ac_func innocuous_$ac_func
38345 /* System header to define __stub macros and hopefully few prototypes,
38346 which can conflict with char $ac_func (); below.
38347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38348 <limits.h> exists even on freestanding compilers. */
38351 # include <limits.h>
38353 # include <assert.h>
38358 /* Override any GCC internal prototype to avoid an error.
38359 Use char because int might match the return type of a GCC
38360 builtin and then its argument prototype would still apply. */
38365 /* The GNU C library defines this for functions which it implements
38366 to always fail with ENOSYS. Some functions are actually named
38367 something starting with __ and the normal name is an alias. */
38368 #if defined __stub_$ac_func || defined __stub___$ac_func
38375 return $ac_func ();
38380 rm -f conftest.$ac_objext conftest$ac_exeext
38381 if { (ac_try="$ac_link"
38382 case "(($ac_try" in
38383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38384 *) ac_try_echo=$ac_try;;
38386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38387 (eval "$ac_link") 2>conftest.er1
38389 grep -v '^ *+' conftest.er1 >conftest.err
38391 cat conftest.err >&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); } && {
38394 test -z "$ac_c_werror_flag" ||
38395 test ! -s conftest.err
38396 } && test -s conftest$ac_exeext &&
38397 $as_test_x conftest$ac_exeext; then
38398 eval "$as_ac_var=yes"
38400 echo "$as_me: failed program was:" >&5
38401 sed 's/^/| /' conftest.$ac_ext >&5
38403 eval "$as_ac_var=no"
38406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38407 conftest$ac_exeext conftest.$ac_ext
38409 ac_res=`eval echo '${'$as_ac_var'}'`
38410 { echo "$as_me:$LINENO: result: $ac_res" >&5
38411 echo "${ECHO_T}$ac_res" >&6; }
38412 if test `eval echo '${'$as_ac_var'}'` = yes; then
38413 cat >>confdefs.h <<_ACEOF
38414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38416 cat >>confdefs.h <<\_ACEOF
38417 #define HAVE_STRTOLL 1
38424 for ac_func in posix_fadvise
38426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38430 echo $ECHO_N "(cached) $ECHO_C" >&6
38432 cat >conftest.$ac_ext <<_ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h. */
38438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38440 #define $ac_func innocuous_$ac_func
38442 /* System header to define __stub macros and hopefully few prototypes,
38443 which can conflict with char $ac_func (); below.
38444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38445 <limits.h> exists even on freestanding compilers. */
38448 # include <limits.h>
38450 # include <assert.h>
38455 /* Override any GCC internal prototype to avoid an error.
38456 Use char because int might match the return type of a GCC
38457 builtin and then its argument prototype would still apply. */
38462 /* The GNU C library defines this for functions which it implements
38463 to always fail with ENOSYS. Some functions are actually named
38464 something starting with __ and the normal name is an alias. */
38465 #if defined __stub_$ac_func || defined __stub___$ac_func
38472 return $ac_func ();
38477 rm -f conftest.$ac_objext conftest$ac_exeext
38478 if { (ac_try="$ac_link"
38479 case "(($ac_try" in
38480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38481 *) ac_try_echo=$ac_try;;
38483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38484 (eval "$ac_link") 2>conftest.er1
38486 grep -v '^ *+' conftest.er1 >conftest.err
38488 cat conftest.err >&5
38489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490 (exit $ac_status); } && {
38491 test -z "$ac_c_werror_flag" ||
38492 test ! -s conftest.err
38493 } && test -s conftest$ac_exeext &&
38494 $as_test_x conftest$ac_exeext; then
38495 eval "$as_ac_var=yes"
38497 echo "$as_me: failed program was:" >&5
38498 sed 's/^/| /' conftest.$ac_ext >&5
38500 eval "$as_ac_var=no"
38503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38504 conftest$ac_exeext conftest.$ac_ext
38506 ac_res=`eval echo '${'$as_ac_var'}'`
38507 { echo "$as_me:$LINENO: result: $ac_res" >&5
38508 echo "${ECHO_T}$ac_res" >&6; }
38509 if test `eval echo '${'$as_ac_var'}'` = yes; then
38510 cat >>confdefs.h <<_ACEOF
38511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38518 for ac_func in fdatasync
38520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38526 cat >conftest.$ac_ext <<_ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h. */
38532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38534 #define $ac_func innocuous_$ac_func
38536 /* System header to define __stub macros and hopefully few prototypes,
38537 which can conflict with char $ac_func (); below.
38538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38539 <limits.h> exists even on freestanding compilers. */
38542 # include <limits.h>
38544 # include <assert.h>
38549 /* Override any GCC internal prototype to avoid an error.
38550 Use char because int might match the return type of a GCC
38551 builtin and then its argument prototype would still apply. */
38556 /* The GNU C library defines this for functions which it implements
38557 to always fail with ENOSYS. Some functions are actually named
38558 something starting with __ and the normal name is an alias. */
38559 #if defined __stub_$ac_func || defined __stub___$ac_func
38566 return $ac_func ();
38571 rm -f conftest.$ac_objext conftest$ac_exeext
38572 if { (ac_try="$ac_link"
38573 case "(($ac_try" in
38574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38575 *) ac_try_echo=$ac_try;;
38577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38578 (eval "$ac_link") 2>conftest.er1
38580 grep -v '^ *+' conftest.er1 >conftest.err
38582 cat conftest.err >&5
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); } && {
38585 test -z "$ac_c_werror_flag" ||
38586 test ! -s conftest.err
38587 } && test -s conftest$ac_exeext &&
38588 $as_test_x conftest$ac_exeext; then
38589 eval "$as_ac_var=yes"
38591 echo "$as_me: failed program was:" >&5
38592 sed 's/^/| /' conftest.$ac_ext >&5
38594 eval "$as_ac_var=no"
38597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38598 conftest$ac_exeext conftest.$ac_ext
38600 ac_res=`eval echo '${'$as_ac_var'}'`
38601 { echo "$as_me:$LINENO: result: $ac_res" >&5
38602 echo "${ECHO_T}$ac_res" >&6; }
38603 if test `eval echo '${'$as_ac_var'}'` = yes; then
38604 cat >>confdefs.h <<_ACEOF
38605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38613 for ac_func in chflags
38615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38619 echo $ECHO_N "(cached) $ECHO_C" >&6
38621 cat >conftest.$ac_ext <<_ACEOF
38624 cat confdefs.h >>conftest.$ac_ext
38625 cat >>conftest.$ac_ext <<_ACEOF
38626 /* end confdefs.h. */
38627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38629 #define $ac_func innocuous_$ac_func
38631 /* System header to define __stub macros and hopefully few prototypes,
38632 which can conflict with char $ac_func (); below.
38633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38634 <limits.h> exists even on freestanding compilers. */
38637 # include <limits.h>
38639 # include <assert.h>
38644 /* Override any GCC internal prototype to avoid an error.
38645 Use char because int might match the return type of a GCC
38646 builtin and then its argument prototype would still apply. */
38651 /* The GNU C library defines this for functions which it implements
38652 to always fail with ENOSYS. Some functions are actually named
38653 something starting with __ and the normal name is an alias. */
38654 #if defined __stub_$ac_func || defined __stub___$ac_func
38661 return $ac_func ();
38666 rm -f conftest.$ac_objext conftest$ac_exeext
38667 if { (ac_try="$ac_link"
38668 case "(($ac_try" in
38669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38670 *) ac_try_echo=$ac_try;;
38672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38673 (eval "$ac_link") 2>conftest.er1
38675 grep -v '^ *+' conftest.er1 >conftest.err
38677 cat conftest.err >&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); } && {
38680 test -z "$ac_c_werror_flag" ||
38681 test ! -s conftest.err
38682 } && test -s conftest$ac_exeext &&
38683 $as_test_x conftest$ac_exeext; then
38684 eval "$as_ac_var=yes"
38686 echo "$as_me: failed program was:" >&5
38687 sed 's/^/| /' conftest.$ac_ext >&5
38689 eval "$as_ac_var=no"
38692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38693 conftest$ac_exeext conftest.$ac_ext
38695 ac_res=`eval echo '${'$as_ac_var'}'`
38696 { echo "$as_me:$LINENO: result: $ac_res" >&5
38697 echo "${ECHO_T}$ac_res" >&6; }
38698 if test `eval echo '${'$as_ac_var'}'` = yes; then
38699 cat >>confdefs.h <<_ACEOF
38700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38711 for ac_func in snprintf vsnprintf gethostid fseeko
38713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38717 echo $ECHO_N "(cached) $ECHO_C" >&6
38719 cat >conftest.$ac_ext <<_ACEOF
38722 cat confdefs.h >>conftest.$ac_ext
38723 cat >>conftest.$ac_ext <<_ACEOF
38724 /* end confdefs.h. */
38725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38727 #define $ac_func innocuous_$ac_func
38729 /* System header to define __stub macros and hopefully few prototypes,
38730 which can conflict with char $ac_func (); below.
38731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38732 <limits.h> exists even on freestanding compilers. */
38735 # include <limits.h>
38737 # include <assert.h>
38742 /* Override any GCC internal prototype to avoid an error.
38743 Use char because int might match the return type of a GCC
38744 builtin and then its argument prototype would still apply. */
38749 /* The GNU C library defines this for functions which it implements
38750 to always fail with ENOSYS. Some functions are actually named
38751 something starting with __ and the normal name is an alias. */
38752 #if defined __stub_$ac_func || defined __stub___$ac_func
38759 return $ac_func ();
38764 rm -f conftest.$ac_objext conftest$ac_exeext
38765 if { (ac_try="$ac_link"
38766 case "(($ac_try" in
38767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38768 *) ac_try_echo=$ac_try;;
38770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38771 (eval "$ac_link") 2>conftest.er1
38773 grep -v '^ *+' conftest.er1 >conftest.err
38775 cat conftest.err >&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); } && {
38778 test -z "$ac_c_werror_flag" ||
38779 test ! -s conftest.err
38780 } && test -s conftest$ac_exeext &&
38781 $as_test_x conftest$ac_exeext; then
38782 eval "$as_ac_var=yes"
38784 echo "$as_me: failed program was:" >&5
38785 sed 's/^/| /' conftest.$ac_ext >&5
38787 eval "$as_ac_var=no"
38790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38791 conftest$ac_exeext conftest.$ac_ext
38793 ac_res=`eval echo '${'$as_ac_var'}'`
38794 { echo "$as_me:$LINENO: result: $ac_res" >&5
38795 echo "${ECHO_T}$ac_res" >&6; }
38796 if test `eval echo '${'$as_ac_var'}'` = yes; then
38797 cat >>confdefs.h <<_ACEOF
38798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38805 { echo "$as_me:$LINENO: checking for va_copy" >&5
38806 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38807 if test "${ba_cv_va_copy+set}" = set; then
38808 echo $ECHO_N "(cached) $ECHO_C" >&6
38811 cat >conftest.$ac_ext <<_ACEOF
38814 cat confdefs.h >>conftest.$ac_ext
38815 cat >>conftest.$ac_ext <<_ACEOF
38816 /* end confdefs.h. */
38818 #include <stdarg.h>
38819 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38820 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38826 call_use_va_copy(1,2,3)
38832 rm -f conftest.$ac_objext conftest$ac_exeext
38833 if { (ac_try="$ac_link"
38834 case "(($ac_try" in
38835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38836 *) ac_try_echo=$ac_try;;
38838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38839 (eval "$ac_link") 2>conftest.er1
38841 grep -v '^ *+' conftest.er1 >conftest.err
38843 cat conftest.err >&5
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); } && {
38846 test -z "$ac_c_werror_flag" ||
38847 test ! -s conftest.err
38848 } && test -s conftest$ac_exeext &&
38849 $as_test_x conftest$ac_exeext; then
38854 echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38864 conftest$ac_exeext conftest.$ac_ext
38868 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38869 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38870 test $ba_cv_va_copy = yes &&
38871 cat >>confdefs.h <<\_ACEOF
38872 #define HAVE_VA_COPY 1
38880 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38886 echo $ECHO_N "(cached) $ECHO_C" >&6
38888 cat >conftest.$ac_ext <<_ACEOF
38891 cat confdefs.h >>conftest.$ac_ext
38892 cat >>conftest.$ac_ext <<_ACEOF
38893 /* end confdefs.h. */
38894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38896 #define $ac_func innocuous_$ac_func
38898 /* System header to define __stub macros and hopefully few prototypes,
38899 which can conflict with char $ac_func (); below.
38900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38901 <limits.h> exists even on freestanding compilers. */
38904 # include <limits.h>
38906 # include <assert.h>
38911 /* Override any GCC internal prototype to avoid an error.
38912 Use char because int might match the return type of a GCC
38913 builtin and then its argument prototype would still apply. */
38918 /* The GNU C library defines this for functions which it implements
38919 to always fail with ENOSYS. Some functions are actually named
38920 something starting with __ and the normal name is an alias. */
38921 #if defined __stub_$ac_func || defined __stub___$ac_func
38928 return $ac_func ();
38933 rm -f conftest.$ac_objext conftest$ac_exeext
38934 if { (ac_try="$ac_link"
38935 case "(($ac_try" in
38936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38937 *) ac_try_echo=$ac_try;;
38939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38940 (eval "$ac_link") 2>conftest.er1
38942 grep -v '^ *+' conftest.er1 >conftest.err
38944 cat conftest.err >&5
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); } && {
38947 test -z "$ac_c_werror_flag" ||
38948 test ! -s conftest.err
38949 } && test -s conftest$ac_exeext &&
38950 $as_test_x conftest$ac_exeext; then
38951 eval "$as_ac_var=yes"
38953 echo "$as_me: failed program was:" >&5
38954 sed 's/^/| /' conftest.$ac_ext >&5
38956 eval "$as_ac_var=no"
38959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38960 conftest$ac_exeext conftest.$ac_ext
38962 ac_res=`eval echo '${'$as_ac_var'}'`
38963 { echo "$as_me:$LINENO: result: $ac_res" >&5
38964 echo "${ECHO_T}$ac_res" >&6; }
38965 if test `eval echo '${'$as_ac_var'}'` = yes; then
38966 cat >>confdefs.h <<_ACEOF
38967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38974 # If resolver functions are not in libc check for -lnsl or -lresolv.
38975 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38976 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38977 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38978 echo $ECHO_N "(cached) $ECHO_C" >&6
38980 cat >conftest.$ac_ext <<_ACEOF
38983 cat confdefs.h >>conftest.$ac_ext
38984 cat >>conftest.$ac_ext <<_ACEOF
38985 /* end confdefs.h. */
38986 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38988 #define gethostbyname_r innocuous_gethostbyname_r
38990 /* System header to define __stub macros and hopefully few prototypes,
38991 which can conflict with char gethostbyname_r (); below.
38992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38993 <limits.h> exists even on freestanding compilers. */
38996 # include <limits.h>
38998 # include <assert.h>
39001 #undef gethostbyname_r
39003 /* Override any GCC internal prototype to avoid an error.
39004 Use char because int might match the return type of a GCC
39005 builtin and then its argument prototype would still apply. */
39009 char gethostbyname_r ();
39010 /* The GNU C library defines this for functions which it implements
39011 to always fail with ENOSYS. Some functions are actually named
39012 something starting with __ and the normal name is an alias. */
39013 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39020 return gethostbyname_r ();
39025 rm -f conftest.$ac_objext conftest$ac_exeext
39026 if { (ac_try="$ac_link"
39027 case "(($ac_try" in
39028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39029 *) ac_try_echo=$ac_try;;
39031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39032 (eval "$ac_link") 2>conftest.er1
39034 grep -v '^ *+' conftest.er1 >conftest.err
39036 cat conftest.err >&5
39037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39038 (exit $ac_status); } && {
39039 test -z "$ac_c_werror_flag" ||
39040 test ! -s conftest.err
39041 } && test -s conftest$ac_exeext &&
39042 $as_test_x conftest$ac_exeext; then
39043 ac_cv_func_gethostbyname_r=yes
39045 echo "$as_me: failed program was:" >&5
39046 sed 's/^/| /' conftest.$ac_ext >&5
39048 ac_cv_func_gethostbyname_r=no
39051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39052 conftest$ac_exeext conftest.$ac_ext
39054 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39055 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39056 if test $ac_cv_func_gethostbyname_r = yes; then
39057 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39058 echo "${ECHO_T}using libc's resolver" >&6; }
39061 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39062 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39063 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39064 echo $ECHO_N "(cached) $ECHO_C" >&6
39066 ac_check_lib_save_LIBS=$LIBS
39068 cat >conftest.$ac_ext <<_ACEOF
39071 cat confdefs.h >>conftest.$ac_ext
39072 cat >>conftest.$ac_ext <<_ACEOF
39073 /* end confdefs.h. */
39075 /* Override any GCC internal prototype to avoid an error.
39076 Use char because int might match the return type of a GCC
39077 builtin and then its argument prototype would still apply. */
39081 char gethostbyname_r ();
39085 return gethostbyname_r ();
39090 rm -f conftest.$ac_objext conftest$ac_exeext
39091 if { (ac_try="$ac_link"
39092 case "(($ac_try" in
39093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39094 *) ac_try_echo=$ac_try;;
39096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39097 (eval "$ac_link") 2>conftest.er1
39099 grep -v '^ *+' conftest.er1 >conftest.err
39101 cat conftest.err >&5
39102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103 (exit $ac_status); } && {
39104 test -z "$ac_c_werror_flag" ||
39105 test ! -s conftest.err
39106 } && test -s conftest$ac_exeext &&
39107 $as_test_x conftest$ac_exeext; then
39108 ac_cv_lib_nsl_gethostbyname_r=yes
39110 echo "$as_me: failed program was:" >&5
39111 sed 's/^/| /' conftest.$ac_ext >&5
39113 ac_cv_lib_nsl_gethostbyname_r=no
39116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39117 conftest$ac_exeext conftest.$ac_ext
39118 LIBS=$ac_check_lib_save_LIBS
39120 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39121 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39122 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39123 cat >>confdefs.h <<_ACEOF
39124 #define HAVE_LIBNSL 1
39132 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39133 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39134 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39135 echo $ECHO_N "(cached) $ECHO_C" >&6
39137 ac_check_lib_save_LIBS=$LIBS
39138 LIBS="-lresolv $LIBS"
39139 cat >conftest.$ac_ext <<_ACEOF
39142 cat confdefs.h >>conftest.$ac_ext
39143 cat >>conftest.$ac_ext <<_ACEOF
39144 /* end confdefs.h. */
39146 /* Override any GCC internal prototype to avoid an error.
39147 Use char because int might match the return type of a GCC
39148 builtin and then its argument prototype would still apply. */
39152 char gethostbyname_r ();
39156 return gethostbyname_r ();
39161 rm -f conftest.$ac_objext conftest$ac_exeext
39162 if { (ac_try="$ac_link"
39163 case "(($ac_try" in
39164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39165 *) ac_try_echo=$ac_try;;
39167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39168 (eval "$ac_link") 2>conftest.er1
39170 grep -v '^ *+' conftest.er1 >conftest.err
39172 cat conftest.err >&5
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); } && {
39175 test -z "$ac_c_werror_flag" ||
39176 test ! -s conftest.err
39177 } && test -s conftest$ac_exeext &&
39178 $as_test_x conftest$ac_exeext; then
39179 ac_cv_lib_resolv_gethostbyname_r=yes
39181 echo "$as_me: failed program was:" >&5
39182 sed 's/^/| /' conftest.$ac_ext >&5
39184 ac_cv_lib_resolv_gethostbyname_r=no
39187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39188 conftest$ac_exeext conftest.$ac_ext
39189 LIBS=$ac_check_lib_save_LIBS
39191 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39192 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39193 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39194 cat >>confdefs.h <<_ACEOF
39195 #define HAVE_LIBRESOLV 1
39198 LIBS="-lresolv $LIBS"
39206 for ac_func in inet_pton
39208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39212 echo $ECHO_N "(cached) $ECHO_C" >&6
39214 cat >conftest.$ac_ext <<_ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h. */
39220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39222 #define $ac_func innocuous_$ac_func
39224 /* System header to define __stub macros and hopefully few prototypes,
39225 which can conflict with char $ac_func (); below.
39226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39227 <limits.h> exists even on freestanding compilers. */
39230 # include <limits.h>
39232 # include <assert.h>
39237 /* Override any GCC internal prototype to avoid an error.
39238 Use char because int might match the return type of a GCC
39239 builtin and then its argument prototype would still apply. */
39244 /* The GNU C library defines this for functions which it implements
39245 to always fail with ENOSYS. Some functions are actually named
39246 something starting with __ and the normal name is an alias. */
39247 #if defined __stub_$ac_func || defined __stub___$ac_func
39254 return $ac_func ();
39259 rm -f conftest.$ac_objext conftest$ac_exeext
39260 if { (ac_try="$ac_link"
39261 case "(($ac_try" in
39262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39263 *) ac_try_echo=$ac_try;;
39265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39266 (eval "$ac_link") 2>conftest.er1
39268 grep -v '^ *+' conftest.er1 >conftest.err
39270 cat conftest.err >&5
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); } && {
39273 test -z "$ac_c_werror_flag" ||
39274 test ! -s conftest.err
39275 } && test -s conftest$ac_exeext &&
39276 $as_test_x conftest$ac_exeext; then
39277 eval "$as_ac_var=yes"
39279 echo "$as_me: failed program was:" >&5
39280 sed 's/^/| /' conftest.$ac_ext >&5
39282 eval "$as_ac_var=no"
39285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39286 conftest$ac_exeext conftest.$ac_ext
39288 ac_res=`eval echo '${'$as_ac_var'}'`
39289 { echo "$as_me:$LINENO: result: $ac_res" >&5
39290 echo "${ECHO_T}$ac_res" >&6; }
39291 if test `eval echo '${'$as_ac_var'}'` = yes; then
39292 cat >>confdefs.h <<_ACEOF
39293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39295 cat >>confdefs.h <<\_ACEOF
39296 #define HAVE_INET_PTON 1
39303 for ac_func in inet_ntop
39305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39309 echo $ECHO_N "(cached) $ECHO_C" >&6
39311 cat >conftest.$ac_ext <<_ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h. */
39317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39319 #define $ac_func innocuous_$ac_func
39321 /* System header to define __stub macros and hopefully few prototypes,
39322 which can conflict with char $ac_func (); below.
39323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39324 <limits.h> exists even on freestanding compilers. */
39327 # include <limits.h>
39329 # include <assert.h>
39334 /* Override any GCC internal prototype to avoid an error.
39335 Use char because int might match the return type of a GCC
39336 builtin and then its argument prototype would still apply. */
39341 /* The GNU C library defines this for functions which it implements
39342 to always fail with ENOSYS. Some functions are actually named
39343 something starting with __ and the normal name is an alias. */
39344 #if defined __stub_$ac_func || defined __stub___$ac_func
39351 return $ac_func ();
39356 rm -f conftest.$ac_objext conftest$ac_exeext
39357 if { (ac_try="$ac_link"
39358 case "(($ac_try" in
39359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39360 *) ac_try_echo=$ac_try;;
39362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39363 (eval "$ac_link") 2>conftest.er1
39365 grep -v '^ *+' conftest.er1 >conftest.err
39367 cat conftest.err >&5
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); } && {
39370 test -z "$ac_c_werror_flag" ||
39371 test ! -s conftest.err
39372 } && test -s conftest$ac_exeext &&
39373 $as_test_x conftest$ac_exeext; then
39374 eval "$as_ac_var=yes"
39376 echo "$as_me: failed program was:" >&5
39377 sed 's/^/| /' conftest.$ac_ext >&5
39379 eval "$as_ac_var=no"
39382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39383 conftest$ac_exeext conftest.$ac_ext
39385 ac_res=`eval echo '${'$as_ac_var'}'`
39386 { echo "$as_me:$LINENO: result: $ac_res" >&5
39387 echo "${ECHO_T}$ac_res" >&6; }
39388 if test `eval echo '${'$as_ac_var'}'` = yes; then
39389 cat >>confdefs.h <<_ACEOF
39390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39392 cat >>confdefs.h <<\_ACEOF
39393 #define HAVE_INET_NTOP 1
39400 for ac_func in gethostbyname2
39402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39406 echo $ECHO_N "(cached) $ECHO_C" >&6
39408 cat >conftest.$ac_ext <<_ACEOF
39411 cat confdefs.h >>conftest.$ac_ext
39412 cat >>conftest.$ac_ext <<_ACEOF
39413 /* end confdefs.h. */
39414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39416 #define $ac_func innocuous_$ac_func
39418 /* System header to define __stub macros and hopefully few prototypes,
39419 which can conflict with char $ac_func (); below.
39420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39421 <limits.h> exists even on freestanding compilers. */
39424 # include <limits.h>
39426 # include <assert.h>
39431 /* Override any GCC internal prototype to avoid an error.
39432 Use char because int might match the return type of a GCC
39433 builtin and then its argument prototype would still apply. */
39438 /* The GNU C library defines this for functions which it implements
39439 to always fail with ENOSYS. Some functions are actually named
39440 something starting with __ and the normal name is an alias. */
39441 #if defined __stub_$ac_func || defined __stub___$ac_func
39448 return $ac_func ();
39453 rm -f conftest.$ac_objext conftest$ac_exeext
39454 if { (ac_try="$ac_link"
39455 case "(($ac_try" in
39456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39457 *) ac_try_echo=$ac_try;;
39459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39460 (eval "$ac_link") 2>conftest.er1
39462 grep -v '^ *+' conftest.er1 >conftest.err
39464 cat conftest.err >&5
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); } && {
39467 test -z "$ac_c_werror_flag" ||
39468 test ! -s conftest.err
39469 } && test -s conftest$ac_exeext &&
39470 $as_test_x conftest$ac_exeext; then
39471 eval "$as_ac_var=yes"
39473 echo "$as_me: failed program was:" >&5
39474 sed 's/^/| /' conftest.$ac_ext >&5
39476 eval "$as_ac_var=no"
39479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39480 conftest$ac_exeext conftest.$ac_ext
39482 ac_res=`eval echo '${'$as_ac_var'}'`
39483 { echo "$as_me:$LINENO: result: $ac_res" >&5
39484 echo "${ECHO_T}$ac_res" >&6; }
39485 if test `eval echo '${'$as_ac_var'}'` = yes; then
39486 cat >>confdefs.h <<_ACEOF
39487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39489 cat >>confdefs.h <<\_ACEOF
39490 #define HAVE_GETHOSTBYNAME2 1
39497 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39498 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39499 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39500 echo $ECHO_N "(cached) $ECHO_C" >&6
39503 cat >conftest.$ac_ext <<_ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h. */
39510 #include <sys/socket.h>
39516 struct sockaddr s; s.sa_len;
39522 rm -f conftest.$ac_objext
39523 if { (ac_try="$ac_compile"
39524 case "(($ac_try" in
39525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39526 *) ac_try_echo=$ac_try;;
39528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39529 (eval "$ac_compile") 2>conftest.er1
39531 grep -v '^ *+' conftest.er1 >conftest.err
39533 cat conftest.err >&5
39534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); } && {
39536 test -z "$ac_c_werror_flag" ||
39537 test ! -s conftest.err
39538 } && test -s conftest.$ac_objext; then
39540 ac_cv_struct_sockaddr_sa_len=yes
39543 echo "$as_me: failed program was:" >&5
39544 sed 's/^/| /' conftest.$ac_ext >&5
39546 ac_cv_struct_sockaddr_sa_len=no
39551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39555 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39556 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39558 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39560 cat >>confdefs.h <<\_ACEOF
39561 #define HAVE_SA_LEN 1
39567 for ac_func in strftime
39569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39573 echo $ECHO_N "(cached) $ECHO_C" >&6
39575 cat >conftest.$ac_ext <<_ACEOF
39578 cat confdefs.h >>conftest.$ac_ext
39579 cat >>conftest.$ac_ext <<_ACEOF
39580 /* end confdefs.h. */
39581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39583 #define $ac_func innocuous_$ac_func
39585 /* System header to define __stub macros and hopefully few prototypes,
39586 which can conflict with char $ac_func (); below.
39587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39588 <limits.h> exists even on freestanding compilers. */
39591 # include <limits.h>
39593 # include <assert.h>
39598 /* Override any GCC internal prototype to avoid an error.
39599 Use char because int might match the return type of a GCC
39600 builtin and then its argument prototype would still apply. */
39605 /* The GNU C library defines this for functions which it implements
39606 to always fail with ENOSYS. Some functions are actually named
39607 something starting with __ and the normal name is an alias. */
39608 #if defined __stub_$ac_func || defined __stub___$ac_func
39615 return $ac_func ();
39620 rm -f conftest.$ac_objext conftest$ac_exeext
39621 if { (ac_try="$ac_link"
39622 case "(($ac_try" in
39623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39624 *) ac_try_echo=$ac_try;;
39626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39627 (eval "$ac_link") 2>conftest.er1
39629 grep -v '^ *+' conftest.er1 >conftest.err
39631 cat conftest.err >&5
39632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633 (exit $ac_status); } && {
39634 test -z "$ac_c_werror_flag" ||
39635 test ! -s conftest.err
39636 } && test -s conftest$ac_exeext &&
39637 $as_test_x conftest$ac_exeext; then
39638 eval "$as_ac_var=yes"
39640 echo "$as_me: failed program was:" >&5
39641 sed 's/^/| /' conftest.$ac_ext >&5
39643 eval "$as_ac_var=no"
39646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39647 conftest$ac_exeext conftest.$ac_ext
39649 ac_res=`eval echo '${'$as_ac_var'}'`
39650 { echo "$as_me:$LINENO: result: $ac_res" >&5
39651 echo "${ECHO_T}$ac_res" >&6; }
39652 if test `eval echo '${'$as_ac_var'}'` = yes; then
39653 cat >>confdefs.h <<_ACEOF
39654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39658 # strftime is in -lintl on SCO UNIX.
39659 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39660 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39661 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39662 echo $ECHO_N "(cached) $ECHO_C" >&6
39664 ac_check_lib_save_LIBS=$LIBS
39665 LIBS="-lintl $LIBS"
39666 cat >conftest.$ac_ext <<_ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39673 /* Override any GCC internal prototype to avoid an error.
39674 Use char because int might match the return type of a GCC
39675 builtin and then its argument prototype would still apply. */
39683 return strftime ();
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (ac_try="$ac_link"
39690 case "(($ac_try" in
39691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692 *) ac_try_echo=$ac_try;;
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695 (eval "$ac_link") 2>conftest.er1
39697 grep -v '^ *+' conftest.er1 >conftest.err
39699 cat conftest.err >&5
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); } && {
39702 test -z "$ac_c_werror_flag" ||
39703 test ! -s conftest.err
39704 } && test -s conftest$ac_exeext &&
39705 $as_test_x conftest$ac_exeext; then
39706 ac_cv_lib_intl_strftime=yes
39708 echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39711 ac_cv_lib_intl_strftime=no
39714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39715 conftest$ac_exeext conftest.$ac_ext
39716 LIBS=$ac_check_lib_save_LIBS
39718 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39719 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39720 if test $ac_cv_lib_intl_strftime = yes; then
39721 cat >>confdefs.h <<\_ACEOF
39722 #define HAVE_STRFTIME 1
39725 LIBS="-lintl $LIBS"
39732 for ac_func in vprintf
39734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39738 echo $ECHO_N "(cached) $ECHO_C" >&6
39740 cat >conftest.$ac_ext <<_ACEOF
39743 cat confdefs.h >>conftest.$ac_ext
39744 cat >>conftest.$ac_ext <<_ACEOF
39745 /* end confdefs.h. */
39746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39748 #define $ac_func innocuous_$ac_func
39750 /* System header to define __stub macros and hopefully few prototypes,
39751 which can conflict with char $ac_func (); below.
39752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39753 <limits.h> exists even on freestanding compilers. */
39756 # include <limits.h>
39758 # include <assert.h>
39763 /* Override any GCC internal prototype to avoid an error.
39764 Use char because int might match the return type of a GCC
39765 builtin and then its argument prototype would still apply. */
39770 /* The GNU C library defines this for functions which it implements
39771 to always fail with ENOSYS. Some functions are actually named
39772 something starting with __ and the normal name is an alias. */
39773 #if defined __stub_$ac_func || defined __stub___$ac_func
39780 return $ac_func ();
39785 rm -f conftest.$ac_objext conftest$ac_exeext
39786 if { (ac_try="$ac_link"
39787 case "(($ac_try" in
39788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39789 *) ac_try_echo=$ac_try;;
39791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39792 (eval "$ac_link") 2>conftest.er1
39794 grep -v '^ *+' conftest.er1 >conftest.err
39796 cat conftest.err >&5
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); } && {
39799 test -z "$ac_c_werror_flag" ||
39800 test ! -s conftest.err
39801 } && test -s conftest$ac_exeext &&
39802 $as_test_x conftest$ac_exeext; then
39803 eval "$as_ac_var=yes"
39805 echo "$as_me: failed program was:" >&5
39806 sed 's/^/| /' conftest.$ac_ext >&5
39808 eval "$as_ac_var=no"
39811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39812 conftest$ac_exeext conftest.$ac_ext
39814 ac_res=`eval echo '${'$as_ac_var'}'`
39815 { echo "$as_me:$LINENO: result: $ac_res" >&5
39816 echo "${ECHO_T}$ac_res" >&6; }
39817 if test `eval echo '${'$as_ac_var'}'` = yes; then
39818 cat >>confdefs.h <<_ACEOF
39819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39822 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39823 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39824 if test "${ac_cv_func__doprnt+set}" = set; then
39825 echo $ECHO_N "(cached) $ECHO_C" >&6
39827 cat >conftest.$ac_ext <<_ACEOF
39830 cat confdefs.h >>conftest.$ac_ext
39831 cat >>conftest.$ac_ext <<_ACEOF
39832 /* end confdefs.h. */
39833 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39835 #define _doprnt innocuous__doprnt
39837 /* System header to define __stub macros and hopefully few prototypes,
39838 which can conflict with char _doprnt (); below.
39839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39840 <limits.h> exists even on freestanding compilers. */
39843 # include <limits.h>
39845 # include <assert.h>
39850 /* Override any GCC internal prototype to avoid an error.
39851 Use char because int might match the return type of a GCC
39852 builtin and then its argument prototype would still apply. */
39857 /* The GNU C library defines this for functions which it implements
39858 to always fail with ENOSYS. Some functions are actually named
39859 something starting with __ and the normal name is an alias. */
39860 #if defined __stub__doprnt || defined __stub____doprnt
39872 rm -f conftest.$ac_objext conftest$ac_exeext
39873 if { (ac_try="$ac_link"
39874 case "(($ac_try" in
39875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39876 *) ac_try_echo=$ac_try;;
39878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39879 (eval "$ac_link") 2>conftest.er1
39881 grep -v '^ *+' conftest.er1 >conftest.err
39883 cat conftest.err >&5
39884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39885 (exit $ac_status); } && {
39886 test -z "$ac_c_werror_flag" ||
39887 test ! -s conftest.err
39888 } && test -s conftest$ac_exeext &&
39889 $as_test_x conftest$ac_exeext; then
39890 ac_cv_func__doprnt=yes
39892 echo "$as_me: failed program was:" >&5
39893 sed 's/^/| /' conftest.$ac_ext >&5
39895 ac_cv_func__doprnt=no
39898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39899 conftest$ac_exeext conftest.$ac_ext
39901 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39902 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39903 if test $ac_cv_func__doprnt = yes; then
39905 cat >>confdefs.h <<\_ACEOF
39906 #define HAVE_DOPRNT 1
39915 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39916 # for constant arguments. Useless!
39917 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39918 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39919 if test "${ac_cv_working_alloca_h+set}" = set; then
39920 echo $ECHO_N "(cached) $ECHO_C" >&6
39922 cat >conftest.$ac_ext <<_ACEOF
39925 cat confdefs.h >>conftest.$ac_ext
39926 cat >>conftest.$ac_ext <<_ACEOF
39927 /* end confdefs.h. */
39928 #include <alloca.h>
39932 char *p = (char *) alloca (2 * sizeof (int));
39938 rm -f conftest.$ac_objext conftest$ac_exeext
39939 if { (ac_try="$ac_link"
39940 case "(($ac_try" in
39941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942 *) ac_try_echo=$ac_try;;
39944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945 (eval "$ac_link") 2>conftest.er1
39947 grep -v '^ *+' conftest.er1 >conftest.err
39949 cat conftest.err >&5
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); } && {
39952 test -z "$ac_c_werror_flag" ||
39953 test ! -s conftest.err
39954 } && test -s conftest$ac_exeext &&
39955 $as_test_x conftest$ac_exeext; then
39956 ac_cv_working_alloca_h=yes
39958 echo "$as_me: failed program was:" >&5
39959 sed 's/^/| /' conftest.$ac_ext >&5
39961 ac_cv_working_alloca_h=no
39964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39965 conftest$ac_exeext conftest.$ac_ext
39967 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39968 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39969 if test $ac_cv_working_alloca_h = yes; then
39971 cat >>confdefs.h <<\_ACEOF
39972 #define HAVE_ALLOCA_H 1
39977 { echo "$as_me:$LINENO: checking for alloca" >&5
39978 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39979 if test "${ac_cv_func_alloca_works+set}" = set; then
39980 echo $ECHO_N "(cached) $ECHO_C" >&6
39982 cat >conftest.$ac_ext <<_ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h. */
39989 # define alloca __builtin_alloca
39992 # include <malloc.h>
39993 # define alloca _alloca
39995 # ifdef HAVE_ALLOCA_H
39996 # include <alloca.h>
40001 # ifndef alloca /* predefined by HP cc +Olibcalls */
40012 char *p = (char *) alloca (1);
40018 rm -f conftest.$ac_objext conftest$ac_exeext
40019 if { (ac_try="$ac_link"
40020 case "(($ac_try" in
40021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40022 *) ac_try_echo=$ac_try;;
40024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40025 (eval "$ac_link") 2>conftest.er1
40027 grep -v '^ *+' conftest.er1 >conftest.err
40029 cat conftest.err >&5
40030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); } && {
40032 test -z "$ac_c_werror_flag" ||
40033 test ! -s conftest.err
40034 } && test -s conftest$ac_exeext &&
40035 $as_test_x conftest$ac_exeext; then
40036 ac_cv_func_alloca_works=yes
40038 echo "$as_me: failed program was:" >&5
40039 sed 's/^/| /' conftest.$ac_ext >&5
40041 ac_cv_func_alloca_works=no
40044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40045 conftest$ac_exeext conftest.$ac_ext
40047 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40048 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40050 if test $ac_cv_func_alloca_works = yes; then
40052 cat >>confdefs.h <<\_ACEOF
40053 #define HAVE_ALLOCA 1
40057 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40058 # that cause trouble. Some versions do not even contain alloca or
40059 # contain a buggy version. If you still want to use their alloca,
40060 # use ar to extract alloca.o from them instead of compiling alloca.c.
40062 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40064 cat >>confdefs.h <<\_ACEOF
40069 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40070 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40071 if test "${ac_cv_os_cray+set}" = set; then
40072 echo $ECHO_N "(cached) $ECHO_C" >&6
40074 cat >conftest.$ac_ext <<_ACEOF
40077 cat confdefs.h >>conftest.$ac_ext
40078 cat >>conftest.$ac_ext <<_ACEOF
40079 /* end confdefs.h. */
40080 #if defined CRAY && ! defined CRAY2
40087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40088 $EGREP "webecray" >/dev/null 2>&1; then
40096 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40097 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40098 if test $ac_cv_os_cray = yes; then
40099 for ac_func in _getb67 GETB67 getb67; do
40100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40104 echo $ECHO_N "(cached) $ECHO_C" >&6
40106 cat >conftest.$ac_ext <<_ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h. */
40112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40114 #define $ac_func innocuous_$ac_func
40116 /* System header to define __stub macros and hopefully few prototypes,
40117 which can conflict with char $ac_func (); below.
40118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40119 <limits.h> exists even on freestanding compilers. */
40122 # include <limits.h>
40124 # include <assert.h>
40129 /* Override any GCC internal prototype to avoid an error.
40130 Use char because int might match the return type of a GCC
40131 builtin and then its argument prototype would still apply. */
40136 /* The GNU C library defines this for functions which it implements
40137 to always fail with ENOSYS. Some functions are actually named
40138 something starting with __ and the normal name is an alias. */
40139 #if defined __stub_$ac_func || defined __stub___$ac_func
40146 return $ac_func ();
40151 rm -f conftest.$ac_objext conftest$ac_exeext
40152 if { (ac_try="$ac_link"
40153 case "(($ac_try" in
40154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40155 *) ac_try_echo=$ac_try;;
40157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40158 (eval "$ac_link") 2>conftest.er1
40160 grep -v '^ *+' conftest.er1 >conftest.err
40162 cat conftest.err >&5
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); } && {
40165 test -z "$ac_c_werror_flag" ||
40166 test ! -s conftest.err
40167 } && test -s conftest$ac_exeext &&
40168 $as_test_x conftest$ac_exeext; then
40169 eval "$as_ac_var=yes"
40171 echo "$as_me: failed program was:" >&5
40172 sed 's/^/| /' conftest.$ac_ext >&5
40174 eval "$as_ac_var=no"
40177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40178 conftest$ac_exeext conftest.$ac_ext
40180 ac_res=`eval echo '${'$as_ac_var'}'`
40181 { echo "$as_me:$LINENO: result: $ac_res" >&5
40182 echo "${ECHO_T}$ac_res" >&6; }
40183 if test `eval echo '${'$as_ac_var'}'` = yes; then
40185 cat >>confdefs.h <<_ACEOF
40186 #define CRAY_STACKSEG_END $ac_func
40195 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40196 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40197 if test "${ac_cv_c_stack_direction+set}" = set; then
40198 echo $ECHO_N "(cached) $ECHO_C" >&6
40200 if test "$cross_compiling" = yes; then
40201 ac_cv_c_stack_direction=0
40203 cat >conftest.$ac_ext <<_ACEOF
40206 cat confdefs.h >>conftest.$ac_ext
40207 cat >>conftest.$ac_ext <<_ACEOF
40208 /* end confdefs.h. */
40209 $ac_includes_default
40211 find_stack_direction ()
40213 static char *addr = 0;
40218 return find_stack_direction ();
40221 return (&dummy > addr) ? 1 : -1;
40227 return find_stack_direction () < 0;
40230 rm -f conftest$ac_exeext
40231 if { (ac_try="$ac_link"
40232 case "(($ac_try" in
40233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40234 *) ac_try_echo=$ac_try;;
40236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40237 (eval "$ac_link") 2>&5
40239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40241 { (case "(($ac_try" in
40242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40243 *) ac_try_echo=$ac_try;;
40245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40246 (eval "$ac_try") 2>&5
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); }; }; then
40250 ac_cv_c_stack_direction=1
40252 echo "$as_me: program exited with status $ac_status" >&5
40253 echo "$as_me: failed program was:" >&5
40254 sed 's/^/| /' conftest.$ac_ext >&5
40256 ( exit $ac_status )
40257 ac_cv_c_stack_direction=-1
40259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40264 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40265 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40267 cat >>confdefs.h <<_ACEOF
40268 #define STACK_DIRECTION $ac_cv_c_stack_direction
40274 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40275 # -lseq on Dynix/PTX, -lgen on Unixware.
40276 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40277 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40278 if test "${ac_cv_search_getmntent+set}" = set; then
40279 echo $ECHO_N "(cached) $ECHO_C" >&6
40281 ac_func_search_save_LIBS=$LIBS
40282 cat >conftest.$ac_ext <<_ACEOF
40285 cat confdefs.h >>conftest.$ac_ext
40286 cat >>conftest.$ac_ext <<_ACEOF
40287 /* end confdefs.h. */
40289 /* Override any GCC internal prototype to avoid an error.
40290 Use char because int might match the return type of a GCC
40291 builtin and then its argument prototype would still apply. */
40299 return getmntent ();
40304 for ac_lib in '' sun seq gen; do
40305 if test -z "$ac_lib"; then
40306 ac_res="none required"
40309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40311 rm -f conftest.$ac_objext conftest$ac_exeext
40312 if { (ac_try="$ac_link"
40313 case "(($ac_try" in
40314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40315 *) ac_try_echo=$ac_try;;
40317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40318 (eval "$ac_link") 2>conftest.er1
40320 grep -v '^ *+' conftest.er1 >conftest.err
40322 cat conftest.err >&5
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); } && {
40325 test -z "$ac_c_werror_flag" ||
40326 test ! -s conftest.err
40327 } && test -s conftest$ac_exeext &&
40328 $as_test_x conftest$ac_exeext; then
40329 ac_cv_search_getmntent=$ac_res
40331 echo "$as_me: failed program was:" >&5
40332 sed 's/^/| /' conftest.$ac_ext >&5
40337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40339 if test "${ac_cv_search_getmntent+set}" = set; then
40343 if test "${ac_cv_search_getmntent+set}" = set; then
40346 ac_cv_search_getmntent=no
40348 rm conftest.$ac_ext
40349 LIBS=$ac_func_search_save_LIBS
40351 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40352 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40353 ac_res=$ac_cv_search_getmntent
40354 if test "$ac_res" != no; then
40355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40356 ac_cv_func_getmntent=yes
40358 cat >>confdefs.h <<\_ACEOF
40359 #define HAVE_GETMNTENT 1
40363 ac_cv_func_getmntent=no
40367 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40368 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40369 if test "${ac_cv_func_closedir_void+set}" = set; then
40370 echo $ECHO_N "(cached) $ECHO_C" >&6
40372 if test "$cross_compiling" = yes; then
40373 ac_cv_func_closedir_void=yes
40375 cat >conftest.$ac_ext <<_ACEOF
40378 cat confdefs.h >>conftest.$ac_ext
40379 cat >>conftest.$ac_ext <<_ACEOF
40380 /* end confdefs.h. */
40381 $ac_includes_default
40382 #include <$ac_header_dirent>
40383 #ifndef __cplusplus
40390 return closedir (opendir (".")) != 0;
40395 rm -f conftest$ac_exeext
40396 if { (ac_try="$ac_link"
40397 case "(($ac_try" in
40398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40399 *) ac_try_echo=$ac_try;;
40401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40402 (eval "$ac_link") 2>&5
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40406 { (case "(($ac_try" in
40407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40408 *) ac_try_echo=$ac_try;;
40410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40411 (eval "$ac_try") 2>&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); }; }; then
40415 ac_cv_func_closedir_void=no
40417 echo "$as_me: program exited with status $ac_status" >&5
40418 echo "$as_me: failed program was:" >&5
40419 sed 's/^/| /' conftest.$ac_ext >&5
40421 ( exit $ac_status )
40422 ac_cv_func_closedir_void=yes
40424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40429 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40430 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40431 if test $ac_cv_func_closedir_void = yes; then
40433 cat >>confdefs.h <<\_ACEOF
40434 #define CLOSEDIR_VOID 1
40439 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40440 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40441 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40442 echo $ECHO_N "(cached) $ECHO_C" >&6
40444 if test "$cross_compiling" = yes; then
40445 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40446 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40447 { (exit 1); exit 1; }; }
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
40459 /* If this system has a BSD-style setpgrp which takes arguments,
40460 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40461 exit successfully. */
40462 return setpgrp (1,1) != -1;
40467 rm -f conftest$ac_exeext
40468 if { (ac_try="$ac_link"
40469 case "(($ac_try" in
40470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40471 *) ac_try_echo=$ac_try;;
40473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40474 (eval "$ac_link") 2>&5
40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); }; }; then
40487 ac_cv_func_setpgrp_void=no
40489 echo "$as_me: program exited with status $ac_status" >&5
40490 echo "$as_me: failed program was:" >&5
40491 sed 's/^/| /' conftest.$ac_ext >&5
40493 ( exit $ac_status )
40494 ac_cv_func_setpgrp_void=yes
40496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40501 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40502 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40503 if test $ac_cv_func_setpgrp_void = yes; then
40505 cat >>confdefs.h <<\_ACEOF
40506 #define SETPGRP_VOID 1
40510 # AC_FUNC_FNMATCH dnl use local version
40512 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40513 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40514 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40515 echo $ECHO_N "(cached) $ECHO_C" >&6
40517 ac_check_lib_save_LIBS=$LIBS
40518 LIBS="-lintl $LIBS"
40519 cat >conftest.$ac_ext <<_ACEOF
40522 cat confdefs.h >>conftest.$ac_ext
40523 cat >>conftest.$ac_ext <<_ACEOF
40524 /* end confdefs.h. */
40526 /* Override any GCC internal prototype to avoid an error.
40527 Use char because int might match the return type of a GCC
40528 builtin and then its argument prototype would still apply. */
40541 rm -f conftest.$ac_objext conftest$ac_exeext
40542 if { (ac_try="$ac_link"
40543 case "(($ac_try" in
40544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40545 *) ac_try_echo=$ac_try;;
40547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40548 (eval "$ac_link") 2>conftest.er1
40550 grep -v '^ *+' conftest.er1 >conftest.err
40552 cat conftest.err >&5
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); } && {
40555 test -z "$ac_c_werror_flag" ||
40556 test ! -s conftest.err
40557 } && test -s conftest$ac_exeext &&
40558 $as_test_x conftest$ac_exeext; then
40559 ac_cv_lib_intl_gettext=yes
40561 echo "$as_me: failed program was:" >&5
40562 sed 's/^/| /' conftest.$ac_ext >&5
40564 ac_cv_lib_intl_gettext=no
40567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40568 conftest$ac_exeext conftest.$ac_ext
40569 LIBS=$ac_check_lib_save_LIBS
40571 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40572 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40573 if test $ac_cv_lib_intl_gettext = yes; then
40574 LIBS="$LIBS -lintl"
40579 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40580 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40581 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40582 echo $ECHO_N "(cached) $ECHO_C" >&6
40584 ac_check_lib_save_LIBS=$LIBS
40586 cat >conftest.$ac_ext <<_ACEOF
40589 cat confdefs.h >>conftest.$ac_ext
40590 cat >>conftest.$ac_ext <<_ACEOF
40591 /* end confdefs.h. */
40593 /* Override any GCC internal prototype to avoid an error.
40594 Use char because int might match the return type of a GCC
40595 builtin and then its argument prototype would still apply. */
40603 return getpwnam ();
40608 rm -f conftest.$ac_objext conftest$ac_exeext
40609 if { (ac_try="$ac_link"
40610 case "(($ac_try" in
40611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40612 *) ac_try_echo=$ac_try;;
40614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40615 (eval "$ac_link") 2>conftest.er1
40617 grep -v '^ *+' conftest.er1 >conftest.err
40619 cat conftest.err >&5
40620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621 (exit $ac_status); } && {
40622 test -z "$ac_c_werror_flag" ||
40623 test ! -s conftest.err
40624 } && test -s conftest$ac_exeext &&
40625 $as_test_x conftest$ac_exeext; then
40626 ac_cv_lib_sun_getpwnam=yes
40628 echo "$as_me: failed program was:" >&5
40629 sed 's/^/| /' conftest.$ac_ext >&5
40631 ac_cv_lib_sun_getpwnam=no
40634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40635 conftest$ac_exeext conftest.$ac_ext
40636 LIBS=$ac_check_lib_save_LIBS
40638 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40639 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40640 if test $ac_cv_lib_sun_getpwnam = yes; then
40641 cat >>confdefs.h <<_ACEOF
40642 #define HAVE_LIBSUN 1
40651 for ac_header in zlib.h
40653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40658 echo $ECHO_N "(cached) $ECHO_C" >&6
40660 ac_res=`eval echo '${'$as_ac_Header'}'`
40661 { echo "$as_me:$LINENO: result: $ac_res" >&5
40662 echo "${ECHO_T}$ac_res" >&6; }
40664 # Is the header compilable?
40665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40667 cat >conftest.$ac_ext <<_ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h. */
40673 $ac_includes_default
40674 #include <$ac_header>
40676 rm -f conftest.$ac_objext
40677 if { (ac_try="$ac_compile"
40678 case "(($ac_try" in
40679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40680 *) ac_try_echo=$ac_try;;
40682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40683 (eval "$ac_compile") 2>conftest.er1
40685 grep -v '^ *+' conftest.er1 >conftest.err
40687 cat conftest.err >&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } && {
40690 test -z "$ac_c_werror_flag" ||
40691 test ! -s conftest.err
40692 } && test -s conftest.$ac_objext; then
40693 ac_header_compiler=yes
40695 echo "$as_me: failed program was:" >&5
40696 sed 's/^/| /' conftest.$ac_ext >&5
40698 ac_header_compiler=no
40701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40703 echo "${ECHO_T}$ac_header_compiler" >&6; }
40705 # Is the header present?
40706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40708 cat >conftest.$ac_ext <<_ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h. */
40714 #include <$ac_header>
40716 if { (ac_try="$ac_cpp conftest.$ac_ext"
40717 case "(($ac_try" in
40718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40719 *) ac_try_echo=$ac_try;;
40721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40724 grep -v '^ *+' conftest.er1 >conftest.err
40726 cat conftest.err >&5
40727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728 (exit $ac_status); } >/dev/null && {
40729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40730 test ! -s conftest.err
40732 ac_header_preproc=yes
40734 echo "$as_me: failed program was:" >&5
40735 sed 's/^/| /' conftest.$ac_ext >&5
40737 ac_header_preproc=no
40740 rm -f conftest.err conftest.$ac_ext
40741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40742 echo "${ECHO_T}$ac_header_preproc" >&6; }
40744 # So? What about this header?
40745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40751 ac_header_preproc=yes
40754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40772 echo $ECHO_N "(cached) $ECHO_C" >&6
40774 eval "$as_ac_Header=\$ac_header_preproc"
40776 ac_res=`eval echo '${'$as_ac_Header'}'`
40777 { echo "$as_me:$LINENO: result: $ac_res" >&5
40778 echo "${ECHO_T}$ac_res" >&6; }
40781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40782 cat >>confdefs.h <<_ACEOF
40783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40790 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40791 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40792 if test "${ac_cv_lib_z_deflate+set}" = set; then
40793 echo $ECHO_N "(cached) $ECHO_C" >&6
40795 ac_check_lib_save_LIBS=$LIBS
40797 cat >conftest.$ac_ext <<_ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h. */
40804 /* Override any GCC internal prototype to avoid an error.
40805 Use char because int might match the return type of a GCC
40806 builtin and then its argument prototype would still apply. */
40819 rm -f conftest.$ac_objext conftest$ac_exeext
40820 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
40828 grep -v '^ *+' conftest.er1 >conftest.err
40830 cat conftest.err >&5
40831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832 (exit $ac_status); } && {
40833 test -z "$ac_c_werror_flag" ||
40834 test ! -s conftest.err
40835 } && test -s conftest$ac_exeext &&
40836 $as_test_x conftest$ac_exeext; then
40837 ac_cv_lib_z_deflate=yes
40839 echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.$ac_ext >&5
40842 ac_cv_lib_z_deflate=no
40845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40846 conftest$ac_exeext conftest.$ac_ext
40847 LIBS=$ac_check_lib_save_LIBS
40849 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40850 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40851 if test $ac_cv_lib_z_deflate = yes; then
40856 if test x$FDLIBS = x-lz; then
40857 cat >>confdefs.h <<\_ACEOF
40858 #define HAVE_LIBZ 1
40865 # Check whether --enable-acl was given.
40866 if test "${enable_acl+set}" = set; then
40867 enableval=$enable_acl;
40868 if test x$enableval = xyes; then
40870 elif test x$enableval = xno; then
40879 have_extended_acl=no
40880 if test x$support_acl = xyes -o x$support_acl = xauto; then
40881 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40882 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40883 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40884 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40885 echo $ECHO_N "(cached) $ECHO_C" >&6
40887 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40888 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40890 # Is the header compilable?
40891 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40892 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40893 cat >conftest.$ac_ext <<_ACEOF
40896 cat confdefs.h >>conftest.$ac_ext
40897 cat >>conftest.$ac_ext <<_ACEOF
40898 /* end confdefs.h. */
40899 $ac_includes_default
40900 #include <sys/acl.h>
40902 rm -f conftest.$ac_objext
40903 if { (ac_try="$ac_compile"
40904 case "(($ac_try" in
40905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40906 *) ac_try_echo=$ac_try;;
40908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40909 (eval "$ac_compile") 2>conftest.er1
40911 grep -v '^ *+' conftest.er1 >conftest.err
40913 cat conftest.err >&5
40914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40915 (exit $ac_status); } && {
40916 test -z "$ac_c_werror_flag" ||
40917 test ! -s conftest.err
40918 } && test -s conftest.$ac_objext; then
40919 ac_header_compiler=yes
40921 echo "$as_me: failed program was:" >&5
40922 sed 's/^/| /' conftest.$ac_ext >&5
40924 ac_header_compiler=no
40927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40929 echo "${ECHO_T}$ac_header_compiler" >&6; }
40931 # Is the header present?
40932 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40933 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40934 cat >conftest.$ac_ext <<_ACEOF
40937 cat confdefs.h >>conftest.$ac_ext
40938 cat >>conftest.$ac_ext <<_ACEOF
40939 /* end confdefs.h. */
40940 #include <sys/acl.h>
40942 if { (ac_try="$ac_cpp conftest.$ac_ext"
40943 case "(($ac_try" in
40944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40945 *) ac_try_echo=$ac_try;;
40947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40950 grep -v '^ *+' conftest.er1 >conftest.err
40952 cat conftest.err >&5
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); } >/dev/null && {
40955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40956 test ! -s conftest.err
40958 ac_header_preproc=yes
40960 echo "$as_me: failed program was:" >&5
40961 sed 's/^/| /' conftest.$ac_ext >&5
40963 ac_header_preproc=no
40966 rm -f conftest.err conftest.$ac_ext
40967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40968 echo "${ECHO_T}$ac_header_preproc" >&6; }
40970 # So? What about this header?
40971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40973 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40974 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40975 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40976 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40977 ac_header_preproc=yes
40980 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40981 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40982 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40983 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40984 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40985 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40986 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40987 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40988 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40989 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40990 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40991 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40995 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40996 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40997 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40998 echo $ECHO_N "(cached) $ECHO_C" >&6
41000 ac_cv_header_sys_acl_h=$ac_header_preproc
41002 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41003 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41006 if test $ac_cv_header_sys_acl_h = yes; then
41008 cat >>confdefs.h <<\_ACEOF
41009 #define HAVE_SYS_ACL_H 1
41015 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41016 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41017 if test "${ac_cv_func_acl_get_file+set}" = set; then
41018 echo $ECHO_N "(cached) $ECHO_C" >&6
41020 cat >conftest.$ac_ext <<_ACEOF
41023 cat confdefs.h >>conftest.$ac_ext
41024 cat >>conftest.$ac_ext <<_ACEOF
41025 /* end confdefs.h. */
41026 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41028 #define acl_get_file innocuous_acl_get_file
41030 /* System header to define __stub macros and hopefully few prototypes,
41031 which can conflict with char acl_get_file (); below.
41032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41033 <limits.h> exists even on freestanding compilers. */
41036 # include <limits.h>
41038 # include <assert.h>
41041 #undef acl_get_file
41043 /* Override any GCC internal prototype to avoid an error.
41044 Use char because int might match the return type of a GCC
41045 builtin and then its argument prototype would still apply. */
41049 char acl_get_file ();
41050 /* The GNU C library defines this for functions which it implements
41051 to always fail with ENOSYS. Some functions are actually named
41052 something starting with __ and the normal name is an alias. */
41053 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41060 return acl_get_file ();
41065 rm -f conftest.$ac_objext conftest$ac_exeext
41066 if { (ac_try="$ac_link"
41067 case "(($ac_try" in
41068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41069 *) ac_try_echo=$ac_try;;
41071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41072 (eval "$ac_link") 2>conftest.er1
41074 grep -v '^ *+' conftest.er1 >conftest.err
41076 cat conftest.err >&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); } && {
41079 test -z "$ac_c_werror_flag" ||
41080 test ! -s conftest.err
41081 } && test -s conftest$ac_exeext &&
41082 $as_test_x conftest$ac_exeext; then
41083 ac_cv_func_acl_get_file=yes
41085 echo "$as_me: failed program was:" >&5
41086 sed 's/^/| /' conftest.$ac_ext >&5
41088 ac_cv_func_acl_get_file=no
41091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41092 conftest$ac_exeext conftest.$ac_ext
41094 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41095 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41096 if test $ac_cv_func_acl_get_file = yes; then
41102 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41103 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41104 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41105 echo $ECHO_N "(cached) $ECHO_C" >&6
41107 ac_check_lib_save_LIBS=$LIBS
41109 cat >conftest.$ac_ext <<_ACEOF
41112 cat confdefs.h >>conftest.$ac_ext
41113 cat >>conftest.$ac_ext <<_ACEOF
41114 /* end confdefs.h. */
41116 /* Override any GCC internal prototype to avoid an error.
41117 Use char because int might match the return type of a GCC
41118 builtin and then its argument prototype would still apply. */
41122 char acl_get_file ();
41126 return acl_get_file ();
41131 rm -f conftest.$ac_objext conftest$ac_exeext
41132 if { (ac_try="$ac_link"
41133 case "(($ac_try" in
41134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41135 *) ac_try_echo=$ac_try;;
41137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41138 (eval "$ac_link") 2>conftest.er1
41140 grep -v '^ *+' conftest.er1 >conftest.err
41142 cat conftest.err >&5
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); } && {
41145 test -z "$ac_c_werror_flag" ||
41146 test ! -s conftest.err
41147 } && test -s conftest$ac_exeext &&
41148 $as_test_x conftest$ac_exeext; then
41149 ac_cv_lib_acl_acl_get_file=yes
41151 echo "$as_me: failed program was:" >&5
41152 sed 's/^/| /' conftest.$ac_ext >&5
41154 ac_cv_lib_acl_acl_get_file=no
41157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41158 conftest$ac_exeext conftest.$ac_ext
41159 LIBS=$ac_check_lib_save_LIBS
41161 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41162 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41163 if test $ac_cv_lib_acl_acl_get_file = yes; then
41166 FDLIBS="-lacl $FDLIBS"
41170 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41171 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41172 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41173 echo $ECHO_N "(cached) $ECHO_C" >&6
41175 ac_check_lib_save_LIBS=$LIBS
41176 LIBS="-lpacl $LIBS"
41177 cat >conftest.$ac_ext <<_ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h. */
41184 /* Override any GCC internal prototype to avoid an error.
41185 Use char because int might match the return type of a GCC
41186 builtin and then its argument prototype would still apply. */
41190 char acl_get_file ();
41194 return acl_get_file ();
41199 rm -f conftest.$ac_objext conftest$ac_exeext
41200 if { (ac_try="$ac_link"
41201 case "(($ac_try" in
41202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41203 *) ac_try_echo=$ac_try;;
41205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41206 (eval "$ac_link") 2>conftest.er1
41208 grep -v '^ *+' conftest.er1 >conftest.err
41210 cat conftest.err >&5
41211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41212 (exit $ac_status); } && {
41213 test -z "$ac_c_werror_flag" ||
41214 test ! -s conftest.err
41215 } && test -s conftest$ac_exeext &&
41216 $as_test_x conftest$ac_exeext; then
41217 ac_cv_lib_pacl_acl_get_file=yes
41219 echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41222 ac_cv_lib_pacl_acl_get_file=no
41225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41226 conftest$ac_exeext conftest.$ac_ext
41227 LIBS=$ac_check_lib_save_LIBS
41229 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41230 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41231 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41234 FDLIBS="-lpacl $FDLIBS"
41238 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41239 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41240 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41241 echo $ECHO_N "(cached) $ECHO_C" >&6
41243 ac_check_lib_save_LIBS=$LIBS
41245 cat >conftest.$ac_ext <<_ACEOF
41248 cat confdefs.h >>conftest.$ac_ext
41249 cat >>conftest.$ac_ext <<_ACEOF
41250 /* end confdefs.h. */
41252 /* Override any GCC internal prototype to avoid an error.
41253 Use char because int might match the return type of a GCC
41254 builtin and then its argument prototype would still apply. */
41262 return acltotext ();
41267 rm -f conftest.$ac_objext conftest$ac_exeext
41268 if { (ac_try="$ac_link"
41269 case "(($ac_try" in
41270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41271 *) ac_try_echo=$ac_try;;
41273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41274 (eval "$ac_link") 2>conftest.er1
41276 grep -v '^ *+' conftest.er1 >conftest.err
41278 cat conftest.err >&5
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); } && {
41281 test -z "$ac_c_werror_flag" ||
41282 test ! -s conftest.err
41283 } && test -s conftest$ac_exeext &&
41284 $as_test_x conftest$ac_exeext; then
41285 ac_cv_lib_sec_acltotext=yes
41287 echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41290 ac_cv_lib_sec_acltotext=no
41293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41294 conftest$ac_exeext conftest.$ac_ext
41295 LIBS=$ac_check_lib_save_LIBS
41297 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41298 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41299 if test $ac_cv_lib_sec_acltotext = yes; then
41302 FDLIBS="-lsec $FDLIBS"
41304 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41305 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41306 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41307 echo $ECHO_N "(cached) $ECHO_C" >&6
41309 ac_check_lib_save_LIBS=$LIBS
41311 cat >conftest.$ac_ext <<_ACEOF
41314 cat confdefs.h >>conftest.$ac_ext
41315 cat >>conftest.$ac_ext <<_ACEOF
41316 /* end confdefs.h. */
41318 /* Override any GCC internal prototype to avoid an error.
41319 Use char because int might match the return type of a GCC
41320 builtin and then its argument prototype would still apply. */
41324 char acl_totext ();
41328 return acl_totext ();
41333 rm -f conftest.$ac_objext conftest$ac_exeext
41334 if { (ac_try="$ac_link"
41335 case "(($ac_try" in
41336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41337 *) ac_try_echo=$ac_try;;
41339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41340 (eval "$ac_link") 2>conftest.er1
41342 grep -v '^ *+' conftest.er1 >conftest.err
41344 cat conftest.err >&5
41345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346 (exit $ac_status); } && {
41347 test -z "$ac_c_werror_flag" ||
41348 test ! -s conftest.err
41349 } && test -s conftest$ac_exeext &&
41350 $as_test_x conftest$ac_exeext; then
41351 ac_cv_lib_sec_acl_totext=yes
41353 echo "$as_me: failed program was:" >&5
41354 sed 's/^/| /' conftest.$ac_ext >&5
41356 ac_cv_lib_sec_acl_totext=no
41359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41360 conftest$ac_exeext conftest.$ac_ext
41361 LIBS=$ac_check_lib_save_LIBS
41363 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41364 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41365 if test $ac_cv_lib_sec_acl_totext = yes; then
41367 have_extended_acl=yes
41389 if test x$support_acl = xyes -a $have_acl != yes; then
41390 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41391 please either load the acl libraries or rerun configure without --enable-acl" >&5
41392 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41393 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41394 { (exit 1); exit 1; }; }
41396 if test $have_acl = yes; then
41398 cat >>confdefs.h <<\_ACEOF
41404 if test $have_extended_acl = yes; then
41406 cat >>confdefs.h <<\_ACEOF
41407 #define HAVE_EXTENDED_ACL 1
41415 # Check whether --enable-xattr was given.
41416 if test "${enable_xattr+set}" = set; then
41417 enableval=$enable_xattr;
41418 if test x$enableval = xyes; then
41420 elif test x$enableval = xno; then
41429 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41430 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41431 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41432 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41433 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41436 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41437 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41439 # Is the header compilable?
41440 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41441 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41442 cat >conftest.$ac_ext <<_ACEOF
41445 cat confdefs.h >>conftest.$ac_ext
41446 cat >>conftest.$ac_ext <<_ACEOF
41447 /* end confdefs.h. */
41448 $ac_includes_default
41449 #include <sys/extattr.h>
41451 rm -f conftest.$ac_objext
41452 if { (ac_try="$ac_compile"
41453 case "(($ac_try" in
41454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41455 *) ac_try_echo=$ac_try;;
41457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41458 (eval "$ac_compile") 2>conftest.er1
41460 grep -v '^ *+' conftest.er1 >conftest.err
41462 cat conftest.err >&5
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); } && {
41465 test -z "$ac_c_werror_flag" ||
41466 test ! -s conftest.err
41467 } && test -s conftest.$ac_objext; then
41468 ac_header_compiler=yes
41470 echo "$as_me: failed program was:" >&5
41471 sed 's/^/| /' conftest.$ac_ext >&5
41473 ac_header_compiler=no
41476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41478 echo "${ECHO_T}$ac_header_compiler" >&6; }
41480 # Is the header present?
41481 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41482 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41483 cat >conftest.$ac_ext <<_ACEOF
41486 cat confdefs.h >>conftest.$ac_ext
41487 cat >>conftest.$ac_ext <<_ACEOF
41488 /* end confdefs.h. */
41489 #include <sys/extattr.h>
41491 if { (ac_try="$ac_cpp conftest.$ac_ext"
41492 case "(($ac_try" in
41493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41494 *) ac_try_echo=$ac_try;;
41496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41499 grep -v '^ *+' conftest.er1 >conftest.err
41501 cat conftest.err >&5
41502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503 (exit $ac_status); } >/dev/null && {
41504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41505 test ! -s conftest.err
41507 ac_header_preproc=yes
41509 echo "$as_me: failed program was:" >&5
41510 sed 's/^/| /' conftest.$ac_ext >&5
41512 ac_header_preproc=no
41515 rm -f conftest.err conftest.$ac_ext
41516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41517 echo "${ECHO_T}$ac_header_preproc" >&6; }
41519 # So? What about this header?
41520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41522 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41523 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41524 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41525 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41526 ac_header_preproc=yes
41529 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41530 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41531 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41532 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41533 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41534 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41535 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41536 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41537 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41538 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41539 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41540 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41544 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41545 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41546 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41547 echo $ECHO_N "(cached) $ECHO_C" >&6
41549 ac_cv_header_sys_extattr_h=$ac_header_preproc
41551 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41552 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41555 if test $ac_cv_header_sys_extattr_h = yes; then
41557 cat >>confdefs.h <<\_ACEOF
41558 #define HAVE_SYS_EXTATTR_H 1
41564 if test "${ac_cv_header_libutil_h+set}" = set; then
41565 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41566 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41567 if test "${ac_cv_header_libutil_h+set}" = set; then
41568 echo $ECHO_N "(cached) $ECHO_C" >&6
41570 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41571 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41573 # Is the header compilable?
41574 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41575 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41576 cat >conftest.$ac_ext <<_ACEOF
41579 cat confdefs.h >>conftest.$ac_ext
41580 cat >>conftest.$ac_ext <<_ACEOF
41581 /* end confdefs.h. */
41582 $ac_includes_default
41583 #include <libutil.h>
41585 rm -f conftest.$ac_objext
41586 if { (ac_try="$ac_compile"
41587 case "(($ac_try" in
41588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41589 *) ac_try_echo=$ac_try;;
41591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41592 (eval "$ac_compile") 2>conftest.er1
41594 grep -v '^ *+' conftest.er1 >conftest.err
41596 cat conftest.err >&5
41597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598 (exit $ac_status); } && {
41599 test -z "$ac_c_werror_flag" ||
41600 test ! -s conftest.err
41601 } && test -s conftest.$ac_objext; then
41602 ac_header_compiler=yes
41604 echo "$as_me: failed program was:" >&5
41605 sed 's/^/| /' conftest.$ac_ext >&5
41607 ac_header_compiler=no
41610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41612 echo "${ECHO_T}$ac_header_compiler" >&6; }
41614 # Is the header present?
41615 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41616 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41617 cat >conftest.$ac_ext <<_ACEOF
41620 cat confdefs.h >>conftest.$ac_ext
41621 cat >>conftest.$ac_ext <<_ACEOF
41622 /* end confdefs.h. */
41623 #include <libutil.h>
41625 if { (ac_try="$ac_cpp conftest.$ac_ext"
41626 case "(($ac_try" in
41627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41628 *) ac_try_echo=$ac_try;;
41630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41633 grep -v '^ *+' conftest.er1 >conftest.err
41635 cat conftest.err >&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } >/dev/null && {
41638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41639 test ! -s conftest.err
41641 ac_header_preproc=yes
41643 echo "$as_me: failed program was:" >&5
41644 sed 's/^/| /' conftest.$ac_ext >&5
41646 ac_header_preproc=no
41649 rm -f conftest.err conftest.$ac_ext
41650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41651 echo "${ECHO_T}$ac_header_preproc" >&6; }
41653 # So? What about this header?
41654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41656 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41657 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41658 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41659 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41660 ac_header_preproc=yes
41663 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41664 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41665 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41666 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41667 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41668 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41669 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41670 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41671 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41672 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41673 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41674 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41678 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41679 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41680 if test "${ac_cv_header_libutil_h+set}" = set; then
41681 echo $ECHO_N "(cached) $ECHO_C" >&6
41683 ac_cv_header_libutil_h=$ac_header_preproc
41685 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41686 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41689 if test $ac_cv_header_libutil_h = yes; then
41691 cat >>confdefs.h <<\_ACEOF
41692 #define HAVE_LIBUTIL_H 1
41701 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41707 echo $ECHO_N "(cached) $ECHO_C" >&6
41709 cat >conftest.$ac_ext <<_ACEOF
41712 cat confdefs.h >>conftest.$ac_ext
41713 cat >>conftest.$ac_ext <<_ACEOF
41714 /* end confdefs.h. */
41715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41717 #define $ac_func innocuous_$ac_func
41719 /* System header to define __stub macros and hopefully few prototypes,
41720 which can conflict with char $ac_func (); below.
41721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41722 <limits.h> exists even on freestanding compilers. */
41725 # include <limits.h>
41727 # include <assert.h>
41732 /* Override any GCC internal prototype to avoid an error.
41733 Use char because int might match the return type of a GCC
41734 builtin and then its argument prototype would still apply. */
41739 /* The GNU C library defines this for functions which it implements
41740 to always fail with ENOSYS. Some functions are actually named
41741 something starting with __ and the normal name is an alias. */
41742 #if defined __stub_$ac_func || defined __stub___$ac_func
41749 return $ac_func ();
41754 rm -f conftest.$ac_objext conftest$ac_exeext
41755 if { (ac_try="$ac_link"
41756 case "(($ac_try" in
41757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41758 *) ac_try_echo=$ac_try;;
41760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41761 (eval "$ac_link") 2>conftest.er1
41763 grep -v '^ *+' conftest.er1 >conftest.err
41765 cat conftest.err >&5
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); } && {
41768 test -z "$ac_c_werror_flag" ||
41769 test ! -s conftest.err
41770 } && test -s conftest$ac_exeext &&
41771 $as_test_x conftest$ac_exeext; then
41772 eval "$as_ac_var=yes"
41774 echo "$as_me: failed program was:" >&5
41775 sed 's/^/| /' conftest.$ac_ext >&5
41777 eval "$as_ac_var=no"
41780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41781 conftest$ac_exeext conftest.$ac_ext
41783 ac_res=`eval echo '${'$as_ac_var'}'`
41784 { echo "$as_me:$LINENO: result: $ac_res" >&5
41785 echo "${ECHO_T}$ac_res" >&6; }
41786 if test `eval echo '${'$as_ac_var'}'` = yes; then
41787 cat >>confdefs.h <<_ACEOF
41788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41793 cat >>confdefs.h <<\_ACEOF
41794 #define HAVE_EXTATTR_GET_LINK 1
41798 cat >>confdefs.h <<\_ACEOF
41799 #define HAVE_EXTATTR_SET_LINK 1
41803 cat >>confdefs.h <<\_ACEOF
41804 #define HAVE_EXTATTR_LIST_LINK 1
41813 if test $have_xattr = no; then
41817 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41823 echo $ECHO_N "(cached) $ECHO_C" >&6
41825 cat >conftest.$ac_ext <<_ACEOF
41828 cat confdefs.h >>conftest.$ac_ext
41829 cat >>conftest.$ac_ext <<_ACEOF
41830 /* end confdefs.h. */
41831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41833 #define $ac_func innocuous_$ac_func
41835 /* System header to define __stub macros and hopefully few prototypes,
41836 which can conflict with char $ac_func (); below.
41837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41838 <limits.h> exists even on freestanding compilers. */
41841 # include <limits.h>
41843 # include <assert.h>
41848 /* Override any GCC internal prototype to avoid an error.
41849 Use char because int might match the return type of a GCC
41850 builtin and then its argument prototype would still apply. */
41855 /* The GNU C library defines this for functions which it implements
41856 to always fail with ENOSYS. Some functions are actually named
41857 something starting with __ and the normal name is an alias. */
41858 #if defined __stub_$ac_func || defined __stub___$ac_func
41865 return $ac_func ();
41870 rm -f conftest.$ac_objext conftest$ac_exeext
41871 if { (ac_try="$ac_link"
41872 case "(($ac_try" in
41873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41874 *) ac_try_echo=$ac_try;;
41876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41877 (eval "$ac_link") 2>conftest.er1
41879 grep -v '^ *+' conftest.er1 >conftest.err
41881 cat conftest.err >&5
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); } && {
41884 test -z "$ac_c_werror_flag" ||
41885 test ! -s conftest.err
41886 } && test -s conftest$ac_exeext &&
41887 $as_test_x conftest$ac_exeext; then
41888 eval "$as_ac_var=yes"
41890 echo "$as_me: failed program was:" >&5
41891 sed 's/^/| /' conftest.$ac_ext >&5
41893 eval "$as_ac_var=no"
41896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41897 conftest$ac_exeext conftest.$ac_ext
41899 ac_res=`eval echo '${'$as_ac_var'}'`
41900 { echo "$as_me:$LINENO: result: $ac_res" >&5
41901 echo "${ECHO_T}$ac_res" >&6; }
41902 if test `eval echo '${'$as_ac_var'}'` = yes; then
41903 cat >>confdefs.h <<_ACEOF
41904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41909 cat >>confdefs.h <<\_ACEOF
41910 #define HAVE_EXTATTR_GET_FILE 1
41914 cat >>confdefs.h <<\_ACEOF
41915 #define HAVE_EXTATTR_SET_FILE 1
41919 cat >>confdefs.h <<\_ACEOF
41920 #define HAVE_EXTATTR_LIST_FILE 1
41930 if test $have_xattr = yes; then
41931 have_extattr_string_in_libc=no
41934 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41940 echo $ECHO_N "(cached) $ECHO_C" >&6
41942 cat >conftest.$ac_ext <<_ACEOF
41945 cat confdefs.h >>conftest.$ac_ext
41946 cat >>conftest.$ac_ext <<_ACEOF
41947 /* end confdefs.h. */
41948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41950 #define $ac_func innocuous_$ac_func
41952 /* System header to define __stub macros and hopefully few prototypes,
41953 which can conflict with char $ac_func (); below.
41954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41955 <limits.h> exists even on freestanding compilers. */
41958 # include <limits.h>
41960 # include <assert.h>
41965 /* Override any GCC internal prototype to avoid an error.
41966 Use char because int might match the return type of a GCC
41967 builtin and then its argument prototype would still apply. */
41972 /* The GNU C library defines this for functions which it implements
41973 to always fail with ENOSYS. Some functions are actually named
41974 something starting with __ and the normal name is an alias. */
41975 #if defined __stub_$ac_func || defined __stub___$ac_func
41982 return $ac_func ();
41987 rm -f conftest.$ac_objext conftest$ac_exeext
41988 if { (ac_try="$ac_link"
41989 case "(($ac_try" in
41990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41991 *) ac_try_echo=$ac_try;;
41993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41994 (eval "$ac_link") 2>conftest.er1
41996 grep -v '^ *+' conftest.er1 >conftest.err
41998 cat conftest.err >&5
41999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42000 (exit $ac_status); } && {
42001 test -z "$ac_c_werror_flag" ||
42002 test ! -s conftest.err
42003 } && test -s conftest$ac_exeext &&
42004 $as_test_x conftest$ac_exeext; then
42005 eval "$as_ac_var=yes"
42007 echo "$as_me: failed program was:" >&5
42008 sed 's/^/| /' conftest.$ac_ext >&5
42010 eval "$as_ac_var=no"
42013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42014 conftest$ac_exeext conftest.$ac_ext
42016 ac_res=`eval echo '${'$as_ac_var'}'`
42017 { echo "$as_me:$LINENO: result: $ac_res" >&5
42018 echo "${ECHO_T}$ac_res" >&6; }
42019 if test `eval echo '${'$as_ac_var'}'` = yes; then
42020 cat >>confdefs.h <<_ACEOF
42021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42024 have_extattr_string_in_libc=yes
42026 cat >>confdefs.h <<\_ACEOF
42027 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42031 cat >>confdefs.h <<\_ACEOF
42032 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42041 if test $have_extattr_string_in_libc = no; then
42042 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42043 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42044 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42045 echo $ECHO_N "(cached) $ECHO_C" >&6
42047 ac_check_lib_save_LIBS=$LIBS
42048 LIBS="-lutil $LIBS"
42049 cat >conftest.$ac_ext <<_ACEOF
42052 cat confdefs.h >>conftest.$ac_ext
42053 cat >>conftest.$ac_ext <<_ACEOF
42054 /* end confdefs.h. */
42056 /* Override any GCC internal prototype to avoid an error.
42057 Use char because int might match the return type of a GCC
42058 builtin and then its argument prototype would still apply. */
42062 char extattr_namespace_to_string extattr_string_to_namespace ();
42066 return extattr_namespace_to_string extattr_string_to_namespace ();
42071 rm -f conftest.$ac_objext conftest$ac_exeext
42072 if { (ac_try="$ac_link"
42073 case "(($ac_try" in
42074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42075 *) ac_try_echo=$ac_try;;
42077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42078 (eval "$ac_link") 2>conftest.er1
42080 grep -v '^ *+' conftest.er1 >conftest.err
42082 cat conftest.err >&5
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); } && {
42085 test -z "$ac_c_werror_flag" ||
42086 test ! -s conftest.err
42087 } && test -s conftest$ac_exeext &&
42088 $as_test_x conftest$ac_exeext; then
42089 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42091 echo "$as_me: failed program was:" >&5
42092 sed 's/^/| /' conftest.$ac_ext >&5
42094 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42098 conftest$ac_exeext conftest.$ac_ext
42099 LIBS=$ac_check_lib_save_LIBS
42101 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42102 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42103 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42106 cat >>confdefs.h <<\_ACEOF
42107 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42111 cat >>confdefs.h <<\_ACEOF
42112 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42115 FDLIBS="-lutil $FDLIBS"
42123 if test $have_xattr = no; then
42124 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42125 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42126 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42127 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42128 echo $ECHO_N "(cached) $ECHO_C" >&6
42130 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42131 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42133 # Is the header compilable?
42134 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42135 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42136 cat >conftest.$ac_ext <<_ACEOF
42139 cat confdefs.h >>conftest.$ac_ext
42140 cat >>conftest.$ac_ext <<_ACEOF
42141 /* end confdefs.h. */
42142 $ac_includes_default
42143 #include <sys/xattr.h>
42145 rm -f conftest.$ac_objext
42146 if { (ac_try="$ac_compile"
42147 case "(($ac_try" in
42148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42149 *) ac_try_echo=$ac_try;;
42151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42152 (eval "$ac_compile") 2>conftest.er1
42154 grep -v '^ *+' conftest.er1 >conftest.err
42156 cat conftest.err >&5
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); } && {
42159 test -z "$ac_c_werror_flag" ||
42160 test ! -s conftest.err
42161 } && test -s conftest.$ac_objext; then
42162 ac_header_compiler=yes
42164 echo "$as_me: failed program was:" >&5
42165 sed 's/^/| /' conftest.$ac_ext >&5
42167 ac_header_compiler=no
42170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42172 echo "${ECHO_T}$ac_header_compiler" >&6; }
42174 # Is the header present?
42175 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42176 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42177 cat >conftest.$ac_ext <<_ACEOF
42180 cat confdefs.h >>conftest.$ac_ext
42181 cat >>conftest.$ac_ext <<_ACEOF
42182 /* end confdefs.h. */
42183 #include <sys/xattr.h>
42185 if { (ac_try="$ac_cpp conftest.$ac_ext"
42186 case "(($ac_try" in
42187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42188 *) ac_try_echo=$ac_try;;
42190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42193 grep -v '^ *+' conftest.er1 >conftest.err
42195 cat conftest.err >&5
42196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197 (exit $ac_status); } >/dev/null && {
42198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42199 test ! -s conftest.err
42201 ac_header_preproc=yes
42203 echo "$as_me: failed program was:" >&5
42204 sed 's/^/| /' conftest.$ac_ext >&5
42206 ac_header_preproc=no
42209 rm -f conftest.err conftest.$ac_ext
42210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42211 echo "${ECHO_T}$ac_header_preproc" >&6; }
42213 # So? What about this header?
42214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42216 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42217 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42218 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42219 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42220 ac_header_preproc=yes
42223 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42224 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42225 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42226 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42227 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42228 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42229 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42230 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42231 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42232 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42233 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42234 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42238 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42239 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42240 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42241 echo $ECHO_N "(cached) $ECHO_C" >&6
42243 ac_cv_header_sys_xattr_h=$ac_header_preproc
42245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42246 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42249 if test $ac_cv_header_sys_xattr_h = yes; then
42251 cat >>confdefs.h <<\_ACEOF
42252 #define HAVE_SYS_XATTR_H 1
42261 for ac_func in llistxattr lgetxattr lsetxattr
42263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42269 cat >conftest.$ac_ext <<_ACEOF
42272 cat confdefs.h >>conftest.$ac_ext
42273 cat >>conftest.$ac_ext <<_ACEOF
42274 /* end confdefs.h. */
42275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42277 #define $ac_func innocuous_$ac_func
42279 /* System header to define __stub macros and hopefully few prototypes,
42280 which can conflict with char $ac_func (); below.
42281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42282 <limits.h> exists even on freestanding compilers. */
42285 # include <limits.h>
42287 # include <assert.h>
42292 /* Override any GCC internal prototype to avoid an error.
42293 Use char because int might match the return type of a GCC
42294 builtin and then its argument prototype would still apply. */
42299 /* The GNU C library defines this for functions which it implements
42300 to always fail with ENOSYS. Some functions are actually named
42301 something starting with __ and the normal name is an alias. */
42302 #if defined __stub_$ac_func || defined __stub___$ac_func
42309 return $ac_func ();
42314 rm -f conftest.$ac_objext conftest$ac_exeext
42315 if { (ac_try="$ac_link"
42316 case "(($ac_try" in
42317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42318 *) ac_try_echo=$ac_try;;
42320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42321 (eval "$ac_link") 2>conftest.er1
42323 grep -v '^ *+' conftest.er1 >conftest.err
42325 cat conftest.err >&5
42326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); } && {
42328 test -z "$ac_c_werror_flag" ||
42329 test ! -s conftest.err
42330 } && test -s conftest$ac_exeext &&
42331 $as_test_x conftest$ac_exeext; then
42332 eval "$as_ac_var=yes"
42334 echo "$as_me: failed program was:" >&5
42335 sed 's/^/| /' conftest.$ac_ext >&5
42337 eval "$as_ac_var=no"
42340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42341 conftest$ac_exeext conftest.$ac_ext
42343 ac_res=`eval echo '${'$as_ac_var'}'`
42344 { echo "$as_me:$LINENO: result: $ac_res" >&5
42345 echo "${ECHO_T}$ac_res" >&6; }
42346 if test `eval echo '${'$as_ac_var'}'` = yes; then
42347 cat >>confdefs.h <<_ACEOF
42348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42353 cat >>confdefs.h <<\_ACEOF
42354 #define HAVE_LLISTXATTR 1
42358 cat >>confdefs.h <<\_ACEOF
42359 #define HAVE_LGETXATTR 1
42363 cat >>confdefs.h <<\_ACEOF
42364 #define HAVE_LSETXATTR 1
42373 if test $have_xattr = no; then
42377 for ac_func in listxattr getxattr setxattr
42379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42383 echo $ECHO_N "(cached) $ECHO_C" >&6
42385 cat >conftest.$ac_ext <<_ACEOF
42388 cat confdefs.h >>conftest.$ac_ext
42389 cat >>conftest.$ac_ext <<_ACEOF
42390 /* end confdefs.h. */
42391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42393 #define $ac_func innocuous_$ac_func
42395 /* System header to define __stub macros and hopefully few prototypes,
42396 which can conflict with char $ac_func (); below.
42397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42398 <limits.h> exists even on freestanding compilers. */
42401 # include <limits.h>
42403 # include <assert.h>
42408 /* Override any GCC internal prototype to avoid an error.
42409 Use char because int might match the return type of a GCC
42410 builtin and then its argument prototype would still apply. */
42415 /* The GNU C library defines this for functions which it implements
42416 to always fail with ENOSYS. Some functions are actually named
42417 something starting with __ and the normal name is an alias. */
42418 #if defined __stub_$ac_func || defined __stub___$ac_func
42425 return $ac_func ();
42430 rm -f conftest.$ac_objext conftest$ac_exeext
42431 if { (ac_try="$ac_link"
42432 case "(($ac_try" in
42433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42434 *) ac_try_echo=$ac_try;;
42436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42437 (eval "$ac_link") 2>conftest.er1
42439 grep -v '^ *+' conftest.er1 >conftest.err
42441 cat conftest.err >&5
42442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42443 (exit $ac_status); } && {
42444 test -z "$ac_c_werror_flag" ||
42445 test ! -s conftest.err
42446 } && test -s conftest$ac_exeext &&
42447 $as_test_x conftest$ac_exeext; then
42448 eval "$as_ac_var=yes"
42450 echo "$as_me: failed program was:" >&5
42451 sed 's/^/| /' conftest.$ac_ext >&5
42453 eval "$as_ac_var=no"
42456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42457 conftest$ac_exeext conftest.$ac_ext
42459 ac_res=`eval echo '${'$as_ac_var'}'`
42460 { echo "$as_me:$LINENO: result: $ac_res" >&5
42461 echo "${ECHO_T}$ac_res" >&6; }
42462 if test `eval echo '${'$as_ac_var'}'` = yes; then
42463 cat >>confdefs.h <<_ACEOF
42464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42469 cat >>confdefs.h <<\_ACEOF
42470 #define HAVE_LISTXATTR 1
42474 cat >>confdefs.h <<\_ACEOF
42475 #define HAVE_GETXATTR 1
42479 cat >>confdefs.h <<\_ACEOF
42480 #define HAVE_SETXATTR 1
42491 if test $have_xattr = no; then
42492 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42493 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42494 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42495 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42496 echo $ECHO_N "(cached) $ECHO_C" >&6
42498 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42499 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42501 # Is the header compilable?
42502 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42503 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42504 cat >conftest.$ac_ext <<_ACEOF
42507 cat confdefs.h >>conftest.$ac_ext
42508 cat >>conftest.$ac_ext <<_ACEOF
42509 /* end confdefs.h. */
42510 $ac_includes_default
42511 #include <sys/attr.h>
42513 rm -f conftest.$ac_objext
42514 if { (ac_try="$ac_compile"
42515 case "(($ac_try" in
42516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42517 *) ac_try_echo=$ac_try;;
42519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42520 (eval "$ac_compile") 2>conftest.er1
42522 grep -v '^ *+' conftest.er1 >conftest.err
42524 cat conftest.err >&5
42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526 (exit $ac_status); } && {
42527 test -z "$ac_c_werror_flag" ||
42528 test ! -s conftest.err
42529 } && test -s conftest.$ac_objext; then
42530 ac_header_compiler=yes
42532 echo "$as_me: failed program was:" >&5
42533 sed 's/^/| /' conftest.$ac_ext >&5
42535 ac_header_compiler=no
42538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42540 echo "${ECHO_T}$ac_header_compiler" >&6; }
42542 # Is the header present?
42543 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42544 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42545 cat >conftest.$ac_ext <<_ACEOF
42548 cat confdefs.h >>conftest.$ac_ext
42549 cat >>conftest.$ac_ext <<_ACEOF
42550 /* end confdefs.h. */
42551 #include <sys/attr.h>
42553 if { (ac_try="$ac_cpp conftest.$ac_ext"
42554 case "(($ac_try" in
42555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42556 *) ac_try_echo=$ac_try;;
42558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42561 grep -v '^ *+' conftest.er1 >conftest.err
42563 cat conftest.err >&5
42564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42565 (exit $ac_status); } >/dev/null && {
42566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42567 test ! -s conftest.err
42569 ac_header_preproc=yes
42571 echo "$as_me: failed program was:" >&5
42572 sed 's/^/| /' conftest.$ac_ext >&5
42574 ac_header_preproc=no
42577 rm -f conftest.err conftest.$ac_ext
42578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42579 echo "${ECHO_T}$ac_header_preproc" >&6; }
42581 # So? What about this header?
42582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42584 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42585 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42586 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42587 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42588 ac_header_preproc=yes
42591 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42592 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42593 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42594 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42595 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42596 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42597 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42598 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42599 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42600 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42601 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42602 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42606 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42607 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42608 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42609 echo $ECHO_N "(cached) $ECHO_C" >&6
42611 ac_cv_header_sys_attr_h=$ac_header_preproc
42613 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42614 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42617 if test $ac_cv_header_sys_attr_h = yes; then
42619 cat >>confdefs.h <<\_ACEOF
42620 #define HAVE_SYS_ATTR_H 1
42626 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42627 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42628 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42629 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42630 echo $ECHO_N "(cached) $ECHO_C" >&6
42632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42633 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42635 # Is the header compilable?
42636 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42637 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42638 cat >conftest.$ac_ext <<_ACEOF
42641 cat confdefs.h >>conftest.$ac_ext
42642 cat >>conftest.$ac_ext <<_ACEOF
42643 /* end confdefs.h. */
42644 $ac_includes_default
42645 #include <sys/nvpair.h>
42647 rm -f conftest.$ac_objext
42648 if { (ac_try="$ac_compile"
42649 case "(($ac_try" in
42650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42651 *) ac_try_echo=$ac_try;;
42653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42654 (eval "$ac_compile") 2>conftest.er1
42656 grep -v '^ *+' conftest.er1 >conftest.err
42658 cat conftest.err >&5
42659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660 (exit $ac_status); } && {
42661 test -z "$ac_c_werror_flag" ||
42662 test ! -s conftest.err
42663 } && test -s conftest.$ac_objext; then
42664 ac_header_compiler=yes
42666 echo "$as_me: failed program was:" >&5
42667 sed 's/^/| /' conftest.$ac_ext >&5
42669 ac_header_compiler=no
42672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42674 echo "${ECHO_T}$ac_header_compiler" >&6; }
42676 # Is the header present?
42677 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42678 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42679 cat >conftest.$ac_ext <<_ACEOF
42682 cat confdefs.h >>conftest.$ac_ext
42683 cat >>conftest.$ac_ext <<_ACEOF
42684 /* end confdefs.h. */
42685 #include <sys/nvpair.h>
42687 if { (ac_try="$ac_cpp conftest.$ac_ext"
42688 case "(($ac_try" in
42689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42690 *) ac_try_echo=$ac_try;;
42692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42695 grep -v '^ *+' conftest.er1 >conftest.err
42697 cat conftest.err >&5
42698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699 (exit $ac_status); } >/dev/null && {
42700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42701 test ! -s conftest.err
42703 ac_header_preproc=yes
42705 echo "$as_me: failed program was:" >&5
42706 sed 's/^/| /' conftest.$ac_ext >&5
42708 ac_header_preproc=no
42711 rm -f conftest.err conftest.$ac_ext
42712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42713 echo "${ECHO_T}$ac_header_preproc" >&6; }
42715 # So? What about this header?
42716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42718 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42719 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42720 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42721 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42722 ac_header_preproc=yes
42725 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42726 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42727 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42728 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42729 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42730 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42731 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42732 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42733 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42734 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42735 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42736 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42740 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42741 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42742 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42743 echo $ECHO_N "(cached) $ECHO_C" >&6
42745 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42748 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42751 if test $ac_cv_header_sys_nvpair_h = yes; then
42753 cat >>confdefs.h <<\_ACEOF
42754 #define HAVE_SYS_NVPAIR_H 1
42760 if test "${ac_cv_header_attr_h+set}" = set; then
42761 { echo "$as_me:$LINENO: checking for attr.h" >&5
42762 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42763 if test "${ac_cv_header_attr_h+set}" = set; then
42764 echo $ECHO_N "(cached) $ECHO_C" >&6
42766 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42767 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42769 # Is the header compilable?
42770 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42771 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42772 cat >conftest.$ac_ext <<_ACEOF
42775 cat confdefs.h >>conftest.$ac_ext
42776 cat >>conftest.$ac_ext <<_ACEOF
42777 /* end confdefs.h. */
42778 $ac_includes_default
42781 rm -f conftest.$ac_objext
42782 if { (ac_try="$ac_compile"
42783 case "(($ac_try" in
42784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42785 *) ac_try_echo=$ac_try;;
42787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42788 (eval "$ac_compile") 2>conftest.er1
42790 grep -v '^ *+' conftest.er1 >conftest.err
42792 cat conftest.err >&5
42793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794 (exit $ac_status); } && {
42795 test -z "$ac_c_werror_flag" ||
42796 test ! -s conftest.err
42797 } && test -s conftest.$ac_objext; then
42798 ac_header_compiler=yes
42800 echo "$as_me: failed program was:" >&5
42801 sed 's/^/| /' conftest.$ac_ext >&5
42803 ac_header_compiler=no
42806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42808 echo "${ECHO_T}$ac_header_compiler" >&6; }
42810 # Is the header present?
42811 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42812 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42813 cat >conftest.$ac_ext <<_ACEOF
42816 cat confdefs.h >>conftest.$ac_ext
42817 cat >>conftest.$ac_ext <<_ACEOF
42818 /* end confdefs.h. */
42821 if { (ac_try="$ac_cpp conftest.$ac_ext"
42822 case "(($ac_try" in
42823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42824 *) ac_try_echo=$ac_try;;
42826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42829 grep -v '^ *+' conftest.er1 >conftest.err
42831 cat conftest.err >&5
42832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833 (exit $ac_status); } >/dev/null && {
42834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42835 test ! -s conftest.err
42837 ac_header_preproc=yes
42839 echo "$as_me: failed program was:" >&5
42840 sed 's/^/| /' conftest.$ac_ext >&5
42842 ac_header_preproc=no
42845 rm -f conftest.err conftest.$ac_ext
42846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42847 echo "${ECHO_T}$ac_header_preproc" >&6; }
42849 # So? What about this header?
42850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42852 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42853 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42854 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42855 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42856 ac_header_preproc=yes
42859 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42860 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42861 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42862 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42863 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42864 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42865 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42866 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42867 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42868 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42869 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42870 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42874 { echo "$as_me:$LINENO: checking for attr.h" >&5
42875 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42876 if test "${ac_cv_header_attr_h+set}" = set; then
42877 echo $ECHO_N "(cached) $ECHO_C" >&6
42879 ac_cv_header_attr_h=$ac_header_preproc
42881 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42882 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42885 if test $ac_cv_header_attr_h = yes; then
42887 cat >>confdefs.h <<\_ACEOF
42888 #define HAVE_ATTR_H 1
42900 for ac_func in openat fstatat unlinkat fchownat futimesat
42902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42906 echo $ECHO_N "(cached) $ECHO_C" >&6
42908 cat >conftest.$ac_ext <<_ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h. */
42914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42916 #define $ac_func innocuous_$ac_func
42918 /* System header to define __stub macros and hopefully few prototypes,
42919 which can conflict with char $ac_func (); below.
42920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42921 <limits.h> exists even on freestanding compilers. */
42924 # include <limits.h>
42926 # include <assert.h>
42931 /* Override any GCC internal prototype to avoid an error.
42932 Use char because int might match the return type of a GCC
42933 builtin and then its argument prototype would still apply. */
42938 /* The GNU C library defines this for functions which it implements
42939 to always fail with ENOSYS. Some functions are actually named
42940 something starting with __ and the normal name is an alias. */
42941 #if defined __stub_$ac_func || defined __stub___$ac_func
42948 return $ac_func ();
42953 rm -f conftest.$ac_objext conftest$ac_exeext
42954 if { (ac_try="$ac_link"
42955 case "(($ac_try" in
42956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42957 *) ac_try_echo=$ac_try;;
42959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42960 (eval "$ac_link") 2>conftest.er1
42962 grep -v '^ *+' conftest.er1 >conftest.err
42964 cat conftest.err >&5
42965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966 (exit $ac_status); } && {
42967 test -z "$ac_c_werror_flag" ||
42968 test ! -s conftest.err
42969 } && test -s conftest$ac_exeext &&
42970 $as_test_x conftest$ac_exeext; then
42971 eval "$as_ac_var=yes"
42973 echo "$as_me: failed program was:" >&5
42974 sed 's/^/| /' conftest.$ac_ext >&5
42976 eval "$as_ac_var=no"
42979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42980 conftest$ac_exeext conftest.$ac_ext
42982 ac_res=`eval echo '${'$as_ac_var'}'`
42983 { echo "$as_me:$LINENO: result: $ac_res" >&5
42984 echo "${ECHO_T}$ac_res" >&6; }
42985 if test `eval echo '${'$as_ac_var'}'` = yes; then
42986 cat >>confdefs.h <<_ACEOF
42987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42992 cat >>confdefs.h <<\_ACEOF
42993 #define HAVE_OPENAT 1
42997 cat >>confdefs.h <<\_ACEOF
42998 #define HAVE_FSTATAT 1
43002 cat >>confdefs.h <<\_ACEOF
43003 #define HAVE_UNLINKAT 1
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_FCHOWNAT 1
43012 cat >>confdefs.h <<\_ACEOF
43013 #define HAVE_FUTIMESAT 1
43022 if test $have_xattr = yes; then
43023 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43024 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43025 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43026 echo $ECHO_N "(cached) $ECHO_C" >&6
43028 ac_check_lib_save_LIBS=$LIBS
43029 LIBS="-lnvpair $LIBS"
43030 cat >conftest.$ac_ext <<_ACEOF
43033 cat confdefs.h >>conftest.$ac_ext
43034 cat >>conftest.$ac_ext <<_ACEOF
43035 /* end confdefs.h. */
43037 /* Override any GCC internal prototype to avoid an error.
43038 Use char because int might match the return type of a GCC
43039 builtin and then its argument prototype would still apply. */
43043 char nvlist_next_nvpair ();
43047 return nvlist_next_nvpair ();
43052 rm -f conftest.$ac_objext conftest$ac_exeext
43053 if { (ac_try="$ac_link"
43054 case "(($ac_try" in
43055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43056 *) ac_try_echo=$ac_try;;
43058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43059 (eval "$ac_link") 2>conftest.er1
43061 grep -v '^ *+' conftest.er1 >conftest.err
43063 cat conftest.err >&5
43064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43065 (exit $ac_status); } && {
43066 test -z "$ac_c_werror_flag" ||
43067 test ! -s conftest.err
43068 } && test -s conftest$ac_exeext &&
43069 $as_test_x conftest$ac_exeext; then
43070 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43072 echo "$as_me: failed program was:" >&5
43073 sed 's/^/| /' conftest.$ac_ext >&5
43075 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43079 conftest$ac_exeext conftest.$ac_ext
43080 LIBS=$ac_check_lib_save_LIBS
43082 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43083 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43084 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43087 cat >>confdefs.h <<\_ACEOF
43088 #define HAVE_NVLIST_NEXT_NVPAIR 1
43091 FDLIBS="-lnvpair $FDLIBS"
43099 if test x$support_xattr = xyes -a $have_xattr != yes; then
43100 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43101 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43102 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43103 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43104 { (exit 1); exit 1; }; }
43106 if test $have_xattr = yes; then
43108 cat >>confdefs.h <<\_ACEOF
43109 #define HAVE_XATTR 1
43117 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43118 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43119 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43120 echo $ECHO_N "(cached) $ECHO_C" >&6
43122 ac_check_lib_save_LIBS=$LIBS
43123 LIBS="-lpthread $LIBS"
43124 cat >conftest.$ac_ext <<_ACEOF
43127 cat confdefs.h >>conftest.$ac_ext
43128 cat >>conftest.$ac_ext <<_ACEOF
43129 /* end confdefs.h. */
43131 /* Override any GCC internal prototype to avoid an error.
43132 Use char because int might match the return type of a GCC
43133 builtin and then its argument prototype would still apply. */
43137 char pthread_create ();
43141 return pthread_create ();
43146 rm -f conftest.$ac_objext conftest$ac_exeext
43147 if { (ac_try="$ac_link"
43148 case "(($ac_try" in
43149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43150 *) ac_try_echo=$ac_try;;
43152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43153 (eval "$ac_link") 2>conftest.er1
43155 grep -v '^ *+' conftest.er1 >conftest.err
43157 cat conftest.err >&5
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); } && {
43160 test -z "$ac_c_werror_flag" ||
43161 test ! -s conftest.err
43162 } && test -s conftest$ac_exeext &&
43163 $as_test_x conftest$ac_exeext; then
43164 ac_cv_lib_pthread_pthread_create=yes
43166 echo "$as_me: failed program was:" >&5
43167 sed 's/^/| /' conftest.$ac_ext >&5
43169 ac_cv_lib_pthread_pthread_create=no
43172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43173 conftest$ac_exeext conftest.$ac_ext
43174 LIBS=$ac_check_lib_save_LIBS
43176 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43177 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43178 if test $ac_cv_lib_pthread_pthread_create = yes; then
43179 PTHREAD_LIB="-lpthread"
43182 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43183 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43184 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43185 echo $ECHO_N "(cached) $ECHO_C" >&6
43187 ac_check_lib_save_LIBS=$LIBS
43188 LIBS="-lpthreads $LIBS"
43189 cat >conftest.$ac_ext <<_ACEOF
43192 cat confdefs.h >>conftest.$ac_ext
43193 cat >>conftest.$ac_ext <<_ACEOF
43194 /* end confdefs.h. */
43196 /* Override any GCC internal prototype to avoid an error.
43197 Use char because int might match the return type of a GCC
43198 builtin and then its argument prototype would still apply. */
43202 char pthread_create ();
43206 return pthread_create ();
43211 rm -f conftest.$ac_objext conftest$ac_exeext
43212 if { (ac_try="$ac_link"
43213 case "(($ac_try" in
43214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43215 *) ac_try_echo=$ac_try;;
43217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43218 (eval "$ac_link") 2>conftest.er1
43220 grep -v '^ *+' conftest.er1 >conftest.err
43222 cat conftest.err >&5
43223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43224 (exit $ac_status); } && {
43225 test -z "$ac_c_werror_flag" ||
43226 test ! -s conftest.err
43227 } && test -s conftest$ac_exeext &&
43228 $as_test_x conftest$ac_exeext; then
43229 ac_cv_lib_pthreads_pthread_create=yes
43231 echo "$as_me: failed program was:" >&5
43232 sed 's/^/| /' conftest.$ac_ext >&5
43234 ac_cv_lib_pthreads_pthread_create=no
43237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43238 conftest$ac_exeext conftest.$ac_ext
43239 LIBS=$ac_check_lib_save_LIBS
43241 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43242 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43243 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43244 PTHREAD_LIB="-lpthreads"
43247 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43248 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43249 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43250 echo $ECHO_N "(cached) $ECHO_C" >&6
43252 ac_check_lib_save_LIBS=$LIBS
43254 cat >conftest.$ac_ext <<_ACEOF
43257 cat confdefs.h >>conftest.$ac_ext
43258 cat >>conftest.$ac_ext <<_ACEOF
43259 /* end confdefs.h. */
43261 /* Override any GCC internal prototype to avoid an error.
43262 Use char because int might match the return type of a GCC
43263 builtin and then its argument prototype would still apply. */
43267 char pthread_create ();
43271 return pthread_create ();
43276 rm -f conftest.$ac_objext conftest$ac_exeext
43277 if { (ac_try="$ac_link"
43278 case "(($ac_try" in
43279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43280 *) ac_try_echo=$ac_try;;
43282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43283 (eval "$ac_link") 2>conftest.er1
43285 grep -v '^ *+' conftest.er1 >conftest.err
43287 cat conftest.err >&5
43288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289 (exit $ac_status); } && {
43290 test -z "$ac_c_werror_flag" ||
43291 test ! -s conftest.err
43292 } && test -s conftest$ac_exeext &&
43293 $as_test_x conftest$ac_exeext; then
43294 ac_cv_lib_c_r_pthread_create=yes
43296 echo "$as_me: failed program was:" >&5
43297 sed 's/^/| /' conftest.$ac_ext >&5
43299 ac_cv_lib_c_r_pthread_create=no
43302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43303 conftest$ac_exeext conftest.$ac_ext
43304 LIBS=$ac_check_lib_save_LIBS
43306 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43307 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43308 if test $ac_cv_lib_c_r_pthread_create = yes; then
43309 PTHREAD_LIB="-lc_r"
43312 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43313 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43314 if test "${ac_cv_func_pthread_create+set}" = set; then
43315 echo $ECHO_N "(cached) $ECHO_C" >&6
43317 cat >conftest.$ac_ext <<_ACEOF
43320 cat confdefs.h >>conftest.$ac_ext
43321 cat >>conftest.$ac_ext <<_ACEOF
43322 /* end confdefs.h. */
43323 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43325 #define pthread_create innocuous_pthread_create
43327 /* System header to define __stub macros and hopefully few prototypes,
43328 which can conflict with char pthread_create (); below.
43329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43330 <limits.h> exists even on freestanding compilers. */
43333 # include <limits.h>
43335 # include <assert.h>
43338 #undef pthread_create
43340 /* Override any GCC internal prototype to avoid an error.
43341 Use char because int might match the return type of a GCC
43342 builtin and then its argument prototype would still apply. */
43346 char pthread_create ();
43347 /* The GNU C library defines this for functions which it implements
43348 to always fail with ENOSYS. Some functions are actually named
43349 something starting with __ and the normal name is an alias. */
43350 #if defined __stub_pthread_create || defined __stub___pthread_create
43357 return pthread_create ();
43362 rm -f conftest.$ac_objext conftest$ac_exeext
43363 if { (ac_try="$ac_link"
43364 case "(($ac_try" in
43365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43366 *) ac_try_echo=$ac_try;;
43368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43369 (eval "$ac_link") 2>conftest.er1
43371 grep -v '^ *+' conftest.er1 >conftest.err
43373 cat conftest.err >&5
43374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43375 (exit $ac_status); } && {
43376 test -z "$ac_c_werror_flag" ||
43377 test ! -s conftest.err
43378 } && test -s conftest$ac_exeext &&
43379 $as_test_x conftest$ac_exeext; then
43380 ac_cv_func_pthread_create=yes
43382 echo "$as_me: failed program was:" >&5
43383 sed 's/^/| /' conftest.$ac_ext >&5
43385 ac_cv_func_pthread_create=no
43388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43389 conftest$ac_exeext conftest.$ac_ext
43391 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43392 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43409 for ac_header in sys/prctl.h sys/capability.h
43411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43416 echo $ECHO_N "(cached) $ECHO_C" >&6
43418 ac_res=`eval echo '${'$as_ac_Header'}'`
43419 { echo "$as_me:$LINENO: result: $ac_res" >&5
43420 echo "${ECHO_T}$ac_res" >&6; }
43422 # Is the header compilable?
43423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43425 cat >conftest.$ac_ext <<_ACEOF
43428 cat confdefs.h >>conftest.$ac_ext
43429 cat >>conftest.$ac_ext <<_ACEOF
43430 /* end confdefs.h. */
43431 $ac_includes_default
43432 #include <$ac_header>
43434 rm -f conftest.$ac_objext
43435 if { (ac_try="$ac_compile"
43436 case "(($ac_try" in
43437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43438 *) ac_try_echo=$ac_try;;
43440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43441 (eval "$ac_compile") 2>conftest.er1
43443 grep -v '^ *+' conftest.er1 >conftest.err
43445 cat conftest.err >&5
43446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43447 (exit $ac_status); } && {
43448 test -z "$ac_c_werror_flag" ||
43449 test ! -s conftest.err
43450 } && test -s conftest.$ac_objext; then
43451 ac_header_compiler=yes
43453 echo "$as_me: failed program was:" >&5
43454 sed 's/^/| /' conftest.$ac_ext >&5
43456 ac_header_compiler=no
43459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43461 echo "${ECHO_T}$ac_header_compiler" >&6; }
43463 # Is the header present?
43464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43466 cat >conftest.$ac_ext <<_ACEOF
43469 cat confdefs.h >>conftest.$ac_ext
43470 cat >>conftest.$ac_ext <<_ACEOF
43471 /* end confdefs.h. */
43472 #include <$ac_header>
43474 if { (ac_try="$ac_cpp conftest.$ac_ext"
43475 case "(($ac_try" in
43476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43477 *) ac_try_echo=$ac_try;;
43479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43482 grep -v '^ *+' conftest.er1 >conftest.err
43484 cat conftest.err >&5
43485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); } >/dev/null && {
43487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43488 test ! -s conftest.err
43490 ac_header_preproc=yes
43492 echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43495 ac_header_preproc=no
43498 rm -f conftest.err conftest.$ac_ext
43499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43500 echo "${ECHO_T}$ac_header_preproc" >&6; }
43502 # So? What about this header?
43503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43509 ac_header_preproc=yes
43512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43530 echo $ECHO_N "(cached) $ECHO_C" >&6
43532 eval "$as_ac_Header=\$ac_header_preproc"
43534 ac_res=`eval echo '${'$as_ac_Header'}'`
43535 { echo "$as_me:$LINENO: result: $ac_res" >&5
43536 echo "${ECHO_T}$ac_res" >&6; }
43539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43540 cat >>confdefs.h <<_ACEOF
43541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43550 for ac_func in prctl setreuid
43552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43556 echo $ECHO_N "(cached) $ECHO_C" >&6
43558 cat >conftest.$ac_ext <<_ACEOF
43561 cat confdefs.h >>conftest.$ac_ext
43562 cat >>conftest.$ac_ext <<_ACEOF
43563 /* end confdefs.h. */
43564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43566 #define $ac_func innocuous_$ac_func
43568 /* System header to define __stub macros and hopefully few prototypes,
43569 which can conflict with char $ac_func (); below.
43570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43571 <limits.h> exists even on freestanding compilers. */
43574 # include <limits.h>
43576 # include <assert.h>
43581 /* Override any GCC internal prototype to avoid an error.
43582 Use char because int might match the return type of a GCC
43583 builtin and then its argument prototype would still apply. */
43588 /* The GNU C library defines this for functions which it implements
43589 to always fail with ENOSYS. Some functions are actually named
43590 something starting with __ and the normal name is an alias. */
43591 #if defined __stub_$ac_func || defined __stub___$ac_func
43598 return $ac_func ();
43603 rm -f conftest.$ac_objext conftest$ac_exeext
43604 if { (ac_try="$ac_link"
43605 case "(($ac_try" in
43606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43607 *) ac_try_echo=$ac_try;;
43609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43610 (eval "$ac_link") 2>conftest.er1
43612 grep -v '^ *+' conftest.er1 >conftest.err
43614 cat conftest.err >&5
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); } && {
43617 test -z "$ac_c_werror_flag" ||
43618 test ! -s conftest.err
43619 } && test -s conftest$ac_exeext &&
43620 $as_test_x conftest$ac_exeext; then
43621 eval "$as_ac_var=yes"
43623 echo "$as_me: failed program was:" >&5
43624 sed 's/^/| /' conftest.$ac_ext >&5
43626 eval "$as_ac_var=no"
43629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43630 conftest$ac_exeext conftest.$ac_ext
43632 ac_res=`eval echo '${'$as_ac_var'}'`
43633 { echo "$as_me:$LINENO: result: $ac_res" >&5
43634 echo "${ECHO_T}$ac_res" >&6; }
43635 if test `eval echo '${'$as_ac_var'}'` = yes; then
43636 cat >>confdefs.h <<_ACEOF
43637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43643 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43644 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43645 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43646 echo $ECHO_N "(cached) $ECHO_C" >&6
43648 ac_check_lib_save_LIBS=$LIBS
43650 cat >conftest.$ac_ext <<_ACEOF
43653 cat confdefs.h >>conftest.$ac_ext
43654 cat >>conftest.$ac_ext <<_ACEOF
43655 /* end confdefs.h. */
43657 /* Override any GCC internal prototype to avoid an error.
43658 Use char because int might match the return type of a GCC
43659 builtin and then its argument prototype would still apply. */
43663 char cap_set_proc ();
43667 return cap_set_proc ();
43672 rm -f conftest.$ac_objext conftest$ac_exeext
43673 if { (ac_try="$ac_link"
43674 case "(($ac_try" in
43675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43676 *) ac_try_echo=$ac_try;;
43678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43679 (eval "$ac_link") 2>conftest.er1
43681 grep -v '^ *+' conftest.er1 >conftest.err
43683 cat conftest.err >&5
43684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685 (exit $ac_status); } && {
43686 test -z "$ac_c_werror_flag" ||
43687 test ! -s conftest.err
43688 } && test -s conftest$ac_exeext &&
43689 $as_test_x conftest$ac_exeext; then
43690 ac_cv_lib_cap_cap_set_proc=yes
43692 echo "$as_me: failed program was:" >&5
43693 sed 's/^/| /' conftest.$ac_ext >&5
43695 ac_cv_lib_cap_cap_set_proc=no
43698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43699 conftest$ac_exeext conftest.$ac_ext
43700 LIBS=$ac_check_lib_save_LIBS
43702 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43703 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43704 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43710 if test x$CAP_LIBS = x-lcap; then
43712 cat >>confdefs.h <<\_ACEOF
43713 #define HAVE_LIBCAP 1
43720 cat >>confdefs.h <<\_ACEOF
43725 CFLAGS=${CFLAGS--O}
43727 if test x$have_gcc = xyes ; then
43728 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43729 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43731 LDFLAGS=${LDFLAGS--O}
43732 DB_LIBS="${SQL_LFLAGS}"
43733 CPPFLAGS="$CPPFLAGS"
43760 PFILES="platforms/Makefile"
43765 hostname=`uname -n | cut -d '.' -f 1`
43766 if test x${hostname} = x ; then
43767 hostname="localhost"
43769 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43770 if test ! $? = 0; then
43771 hostname="localhost"
43774 case "$DISTNAME" in
43777 PSCMD="ps -e -o pid,comm"
43778 PFILES="${PFILES} \
43779 platforms/aix/Makefile"
43780 TAPEDRIVE="/dev/rmt0.1"
43784 PTHREAD_LIB="-lpthread -lexc"
43785 if test "${CC}" = "gcc" ; then
43792 TAPEDRIVE="/dev/nrmt0"
43795 DISTVER=`uname -a |awk '{print $3}'`
43796 TAPEDRIVE="/dev/nrmt0"
43797 PTHREAD_LIB="-pthread"
43798 CFLAGS="${CFLAGS} -pthread"
43799 PSCMD="ps -ax -o pid,command"
43802 PFILES="${PFILES} \
43803 platforms/bsdi/Makefile \
43804 platforms/bsdi/bacula-fd \
43805 platforms/bsdi/bacula-sd \
43806 platforms/bsdi/bacula-dir"
43807 largefile_support="yes"
43810 DISTVER=`uname -a |awk '{print $3}'`
43811 TAPEDRIVE="/dev/nrst0"
43813 WCFLAGS="-mwindows"
43814 WLDFLAGS="-mwindows"
43818 TAPEDRIVE="/dev/nst0"
43819 PSCMD="ps -e -o pid,command"
43821 PFILES="${PFILES} \
43822 platforms/darwin/Makefile"
43826 TAPEDRIVE="/dev/nst0"
43827 PSCMD="ps -e -o pid,command"
43829 PFILES="${PFILES} \
43830 platforms/osx/Makefile"
43833 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43836 DISTVER=`cat /etc/debian_version`
43837 if test -f /etc/lsb-release ; then
43839 if test "x$DISTRIB_ID" != "x" ; then
43840 DISTNAME=$DISTRIB_ID
43842 if test "x$DISTRIB_RELEASE" != "x" ; then
43843 DISTVER=$DISTRIB_RELEASE
43846 if test "$DISTNAME" = "Ubuntu" ; then
43849 TAPEDRIVE="/dev/nst0"
43850 PSCMD="ps -e -o pid,command"
43851 if test "$DISTNAME" = "ubuntu" ; then
43852 PFILES="${PFILES} \
43853 platforms/ubuntu/Makefile \
43854 platforms/ubuntu/bacula-fd \
43855 platforms/ubuntu/bacula-sd \
43856 platforms/ubuntu/bacula-dir"
43858 PFILES="${PFILES} \
43859 platforms/debian/Makefile \
43860 platforms/debian/bacula-fd \
43861 platforms/debian/bacula-sd \
43862 platforms/debian/bacula-dir"
43866 DISTVER=`uname -a |awk '{print $3}'`
43867 VER=`echo $DISTVER | cut -c 1`
43868 if test x$VER = x4 ; then
43869 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43870 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43874 TAPEDRIVE="/dev/nrsa0"
43875 PSCMD="ps -ax -o pid,command"
43876 PFILES="${PFILES} \
43877 platforms/freebsd/Makefile \
43878 platforms/freebsd/bacula-fd \
43879 platforms/freebsd/bacula-sd \
43880 platforms/freebsd/bacula-dir"
43881 largefile_support="yes"
43884 PSCMD="UNIX95=1; ps -e -o pid,comm"
43885 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43887 TAPEDRIVE="/dev/rmt/0hnb"
43888 PTHREAD_LIB="-lpthread"
43889 cat >>confdefs.h <<\_ACEOF
43890 #define _INCLUDE_LONGLONG 1
43896 TAPEDRIVE="/dev/rmt/0cbn"
43897 PSCMD="ps -e -o pid,comm"
43898 PFILES="${PFILES} \
43899 platforms/irix/Makefile \
43900 platforms/irix/bacula-fd \
43901 platforms/irix/bacula-sd \
43902 platforms/irix/bacula-dir"
43905 DISTVER=`uname -a |awk '{print $3}'`
43908 TAPEDRIVE="/dev/nrst0"
43909 PSCMD="ps -ax -o pid,command"
43910 PTHREAD_LIB="-pthread"
43911 CFLAGS="${CFLAGS} -pthread"
43914 DISTVER=`uname -a |awk '{print $3}'`
43917 TAPEDRIVE="/dev/nrst0"
43918 PSCMD="ps -ax -o pid,command"
43919 PTHREAD_LIB="-pthread"
43920 CFLAGS="${CFLAGS} -pthread"
43921 PFILES="${PFILES} \
43922 platforms/openbsd/Makefile \
43923 platforms/openbsd/bacula-fd \
43924 platforms/openbsd/bacula-sd \
43925 platforms/openbsd/bacula-dir"
43928 if test -f /etc/whitebox-release ; then
43929 f=/etc/whitebox-release
43931 f=/etc/redhat-release
43933 if test `cat $f | grep release |\
43934 cut -f 3 -d ' '`x = "Enterprise"x ; then
43935 DISTVER="Enterprise "`cat $f | grep release |\
43938 DISTVER=`cat /etc/redhat-release | grep release |\
43941 TAPEDRIVE="/dev/nst0"
43942 PSCMD="ps -e -o pid,command"
43943 PFILES="${PFILES} \
43944 platforms/redhat/Makefile \
43945 platforms/redhat/bacula-fd \
43946 platforms/redhat/bacula-sd \
43947 platforms/redhat/bacula-dir
43951 DISTVER=`cat /etc/mandrake-release | grep release |\
43953 TAPEDRIVE="/dev/nst0"
43954 PSCMD="ps -e -o pid,command"
43955 PFILES="${PFILES} \
43956 platforms/mandrake/Makefile \
43957 platforms/mandrake/bacula-fd \
43958 platforms/mandrake/bacula-sd \
43959 platforms/mandrake/bacula-dir \
43960 platforms/mandrake/bacula.spec \
43964 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43965 TAPEDRIVE="/dev/nst0"
43966 PSCMD="ps -e -o pid,command"
43967 PFILES="${PFILES} \
43968 platforms/gentoo/Makefile \
43969 platforms/gentoo/bacula-init \
43970 platforms/gentoo/bacula-fd \
43971 platforms/gentoo/bacula-sd \
43972 platforms/gentoo/bacula-dir"
43975 DISTVER=`cat /etc/slackware-version`
43976 TAPEDRIVE="/dev/nst0"
43977 PSCMD="ps -e -o pid,command"
43978 PFILES="${PFILES} \
43979 platforms/slackware/Makefile \
43980 platforms/slackware/rc.bacula-fd \
43981 platforms/slackware/rc.bacula-sd \
43982 platforms/slackware/rc.bacula-dir\
43983 platforms/slackware/functions.bacula"
43987 TAPEDRIVE="/dev/rmt/0cbn"
43988 PSCMD="ps -e -o pid,comm"
43989 PFILES="${PFILES} \
43990 platforms/solaris/Makefile \
43991 platforms/solaris/bacula-fd \
43992 platforms/solaris/bacula-sd \
43993 platforms/solaris/bacula-dir"
43994 if test x$DISTVER = x5.6 ; then
43995 cat >>confdefs.h <<\_ACEOF
43996 #define HAVE_OLD_SOCKOPT 1
44000 LIBS="$LIBS -lresolv"
44003 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44005 TAPEDRIVE="/dev/nst0"
44006 PSCMD="ps -e -o pid,command"
44007 PFILES="${PFILES} \
44008 platforms/suse/Makefile \
44009 platforms/suse/bacula-fd \
44010 platforms/suse/bacula-sd \
44011 platforms/suse/bacula-dir \
44012 platforms/suse/bacula \
44013 platforms/suse/bacula.spec"
44018 TAPEDRIVE="/dev/nst0"
44019 PSCMD="ps -e -o pid,command"
44020 PFILES="${PFILES} \
44021 platforms/suse/Makefile \
44022 platforms/suse/bacula-fd \
44023 platforms/suse/bacula-sd \
44024 platforms/suse/bacula-dir"
44028 TAPEDRIVE="/dev/nst0"
44031 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44037 LIBS="$PTHREAD_LIB $LIBS"
44039 cat >>confdefs.h <<_ACEOF
44043 cat >>confdefs.h <<_ACEOF
44054 MCOMMON=./autoconf/Make.common
44057 if test "x${subsysdir}" = "x${sbindir}" ; then
44060 echo "You have set both --sbindir and --with-subsys-dir"
44061 echo " equal to: ${subsysdir} "
44062 echo "This is not permitted. Please reconfigure."
44064 echo "Aborting configuration ..."
44070 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 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/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile 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"
44072 ac_config_commands="$ac_config_commands default"
44074 cat >confcache <<\_ACEOF
44075 # This file is a shell script that caches the results of configure
44076 # tests run on this system so they can be shared between configure
44077 # scripts and configure runs, see configure's option --config-cache.
44078 # It is not useful on other systems. If it contains results you don't
44079 # want to keep, you may remove or edit it.
44081 # config.status only pays attention to the cache file if you give it
44082 # the --recheck option to rerun configure.
44084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44086 # following values.
44090 # The following way of writing the cache mishandles newlines in values,
44091 # but we know of no workaround that is simple, portable, and efficient.
44092 # So, we kill variables containing newlines.
44093 # Ultrix sh set writes to stderr and can't be redirected directly,
44094 # and sets the high bit in the cache file unless we assign to the vars.
44096 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44097 eval ac_val=\$$ac_var
44101 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44102 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44105 _ | IFS | as_nl) ;; #(
44106 *) $as_unset $ac_var ;;
44112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44113 *${as_nl}ac_space=\ *)
44114 # `set' does not quote correctly, so add quotes (double-quote
44115 # substitution turns \\\\ into \\, and sed turns \\ into \).
44118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44121 # `set' quotes correctly as required by POSIX, so do not add quotes.
44122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44136 if test -w "$cache_file"; then
44137 test "x$cache_file" != "x/dev/null" &&
44138 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44139 echo "$as_me: updating cache $cache_file" >&6;}
44140 cat confcache >$cache_file
44142 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44143 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44148 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44149 # Let make expand exec_prefix.
44150 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44152 DEFS=-DHAVE_CONFIG_H
44156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44157 # 1. Remove the extension, and $U if already installed.
44158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44159 ac_i=`echo "$ac_i" | sed "$ac_script"`
44160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44161 # will be set to the directory where LIBOBJS objects are built.
44162 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44163 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44165 LIBOBJS=$ac_libobjs
44167 LTLIBOBJS=$ac_ltlibobjs
44171 : ${CONFIG_STATUS=./config.status}
44172 ac_clean_files_save=$ac_clean_files
44173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44174 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44175 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44176 cat >$CONFIG_STATUS <<_ACEOF
44178 # Generated by $as_me.
44179 # Run this file to recreate the current configuration.
44180 # Compiler output produced by configure, useful for debugging
44181 # configure, is in config.log if it exists.
44184 ac_cs_recheck=false
44186 SHELL=\${CONFIG_SHELL-$SHELL}
44189 cat >>$CONFIG_STATUS <<\_ACEOF
44190 ## --------------------- ##
44191 ## M4sh Initialization. ##
44192 ## --------------------- ##
44194 # Be more Bourne compatible
44195 DUALCASE=1; export DUALCASE # for MKS sh
44196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44200 # is contrary to our usage. Disable this feature.
44201 alias -g '${1+"$@"}'='"$@"'
44202 setopt NO_GLOB_SUBST
44204 case `(set -o) 2>/dev/null` in
44205 *posix*) set -o posix ;;
44214 # Avoid depending upon Character Ranges.
44215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44218 as_cr_digits='0123456789'
44219 as_cr_alnum=$as_cr_Letters$as_cr_digits
44221 # The user is always right.
44222 if test "${PATH_SEPARATOR+set}" != set; then
44223 echo "#! /bin/sh" >conf$$.sh
44224 echo "exit 0" >>conf$$.sh
44226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44234 # Support unset when possible.
44235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44243 # We need space, tab and new line, in precisely that order. Quoting is
44244 # there to prevent editors from complaining about space-tab.
44245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44246 # splitting by setting IFS to empty value.)
44251 # Find who we are. Look in the path if we contain no directory separator.
44253 *[\\/]* ) as_myself=$0 ;;
44254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44255 for as_dir in $PATH
44258 test -z "$as_dir" && as_dir=.
44259 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44265 # We did not find ourselves, most probably we were run as `sh COMMAND'
44266 # in which case we are not to be found in the path.
44267 if test "x$as_myself" = x; then
44270 if test ! -f "$as_myself"; then
44271 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44272 { (exit 1); exit 1; }
44275 # Work around bugs in pre-3.0 UWIN ksh.
44276 for as_var in ENV MAIL MAILPATH
44277 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44285 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44286 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44287 LC_TELEPHONE LC_TIME
44289 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44290 eval $as_var=C; export $as_var
44292 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44296 # Required to use basename.
44297 if expr a : '\(a\)' >/dev/null 2>&1 &&
44298 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44305 as_basename=basename
44311 # Name of the executable.
44312 as_me=`$as_basename -- "$0" ||
44313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44314 X"$0" : 'X\(//\)$' \| \
44315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44317 sed '/^.*\/\([^/][^/]*\)\/*$/{
44336 as_lineno_1=$LINENO
44337 as_lineno_2=$LINENO
44338 test "x$as_lineno_1" != "x$as_lineno_2" &&
44339 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44342 # uniformly replaced by the line number. The first 'sed' inserts a
44343 # line-number line after each line using $LINENO; the second 'sed'
44344 # does the real work. The second script uses 'N' to pair each
44345 # line-number line with the line containing $LINENO, and appends
44346 # trailing '-' during substitution so that $LINENO is not a special
44347 # case at line end.
44348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44349 # scripts with optimization help from Paolo Bonzini. Blame Lee
44350 # E. McMahon (1931-1989) for sed's syntax. :-)
44362 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44365 ' >$as_me.lineno &&
44366 chmod +x "$as_me.lineno" ||
44367 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44368 { (exit 1); exit 1; }; }
44370 # Don't try to exec as it changes $[0], causing all sort of problems
44371 # (the dirname of $[0] is not the place where we might find the
44372 # original and so on. Autoconf is especially sensitive to this).
44373 . "./$as_me.lineno"
44374 # Exit status is that of the last command.
44379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44385 ECHO_C= ECHO_N= ECHO_T=
44386 case `echo -n x` in
44388 case `echo 'x\c'` in
44389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44396 if expr a : '\(a\)' >/dev/null 2>&1 &&
44397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44403 rm -f conf$$ conf$$.exe conf$$.file
44404 if test -d conf$$.dir; then
44405 rm -f conf$$.dir/conf$$.file
44411 if ln -s conf$$.file conf$$ 2>/dev/null; then
44413 # ... but there are two gotchas:
44414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44416 # In both cases, we have to default to `cp -p'.
44417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44419 elif ln conf$$.file conf$$ 2>/dev/null; then
44424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44425 rmdir conf$$.dir 2>/dev/null
44427 if mkdir -p . 2>/dev/null; then
44430 test -d ./-p && rmdir ./-p
44434 if test -x / >/dev/null 2>&1; then
44435 as_test_x='test -x'
44437 if ls -dL / >/dev/null 2>&1; then
44444 if test -d "$1"; then
44450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44451 ???[sx]*):;;*)false;;esac;fi
44455 as_executable_p=$as_test_x
44457 # Sed expression to map a string onto a valid CPP name.
44458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44460 # Sed expression to map a string onto a valid variable name.
44461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44466 # Save the log message, to keep $[0] and so on meaningful, and to
44467 # report actual input values of CONFIG_FILES etc. instead of their
44468 # values after options handling.
44470 This file was extended by $as_me, which was
44471 generated by GNU Autoconf 2.61. Invocation command line was
44473 CONFIG_FILES = $CONFIG_FILES
44474 CONFIG_HEADERS = $CONFIG_HEADERS
44475 CONFIG_LINKS = $CONFIG_LINKS
44476 CONFIG_COMMANDS = $CONFIG_COMMANDS
44479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44484 cat >>$CONFIG_STATUS <<_ACEOF
44485 # Files that config.status was made for.
44486 config_files="$ac_config_files"
44487 config_headers="$ac_config_headers"
44488 config_commands="$ac_config_commands"
44492 cat >>$CONFIG_STATUS <<\_ACEOF
44494 \`$as_me' instantiates files from templates according to the
44495 current configuration.
44497 Usage: $0 [OPTIONS] [FILE]...
44499 -h, --help print this help, then exit
44500 -V, --version print version number and configuration settings, then exit
44501 -q, --quiet do not print progress messages
44502 -d, --debug don't remove temporary files
44503 --recheck update $as_me by reconfiguring in the same conditions
44504 --file=FILE[:TEMPLATE]
44505 instantiate the configuration file FILE
44506 --header=FILE[:TEMPLATE]
44507 instantiate the configuration header FILE
44509 Configuration files:
44512 Configuration headers:
44515 Configuration commands:
44518 Report bugs to <bug-autoconf@gnu.org>."
44521 cat >>$CONFIG_STATUS <<_ACEOF
44524 configured by $0, generated by GNU Autoconf 2.61,
44525 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44527 Copyright (C) 2006 Free Software Foundation, Inc.
44528 This config.status script is free software; the Free Software Foundation
44529 gives unlimited permission to copy, distribute and modify it."
44536 cat >>$CONFIG_STATUS <<\_ACEOF
44537 # If no file are specified by the user, then we need to provide default
44538 # value. By we need to know if files were specified by the user.
44544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44556 # Handling of the options.
44557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44560 echo "$ac_cs_version"; exit ;;
44561 --debug | --debu | --deb | --de | --d | -d )
44563 --file | --fil | --fi | --f )
44565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44566 ac_need_defaults=false;;
44567 --header | --heade | --head | --hea )
44569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44570 ac_need_defaults=false;;
44572 # Conflict between --help and --header
44573 { echo "$as_me: error: ambiguous option: $1
44574 Try \`$0 --help' for more information." >&2
44575 { (exit 1); exit 1; }; };;
44576 --help | --hel | -h )
44577 echo "$ac_cs_usage"; exit ;;
44578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44582 # This is an error.
44583 -*) { echo "$as_me: error: unrecognized option: $1
44584 Try \`$0 --help' for more information." >&2
44585 { (exit 1); exit 1; }; } ;;
44587 *) ac_config_targets="$ac_config_targets $1"
44588 ac_need_defaults=false ;;
44594 ac_configure_extra_args=
44596 if $ac_cs_silent; then
44598 ac_configure_extra_args="$ac_configure_extra_args --silent"
44602 cat >>$CONFIG_STATUS <<_ACEOF
44603 if \$ac_cs_recheck; then
44604 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44605 CONFIG_SHELL=$SHELL
44606 export CONFIG_SHELL
44607 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44611 cat >>$CONFIG_STATUS <<\_ACEOF
44615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44616 ## Running $as_me. ##
44622 cat >>$CONFIG_STATUS <<_ACEOF
44628 # The HP-UX ksh and POSIX shell print the target directory to stdout
44629 # if CDPATH is set.
44630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44632 sed_quote_subst='$sed_quote_subst'
44633 double_quote_subst='$double_quote_subst'
44634 delay_variable_subst='$delay_variable_subst'
44635 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44636 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44637 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44638 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44639 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44640 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44641 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44642 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44643 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44644 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44645 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44646 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44647 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44648 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44649 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44650 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44651 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44652 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44653 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44654 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44655 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44656 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44657 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44658 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44659 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44660 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44661 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44662 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44663 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44664 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44665 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44666 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44667 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44668 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44669 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44670 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44671 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44672 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44673 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44674 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44675 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44676 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44677 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44678 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44679 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"`'
44680 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"`'
44681 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44682 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44683 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44684 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44685 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44686 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44687 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44688 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44689 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44690 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44691 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44692 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44693 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44694 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44695 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44696 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44697 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44698 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44699 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44700 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44701 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44702 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44703 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44704 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44705 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44706 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44707 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44708 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44709 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44710 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44711 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44712 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44713 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44714 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44715 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44716 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44717 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44718 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44719 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44720 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44721 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44722 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44723 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44724 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44725 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44726 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44727 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44728 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44729 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44730 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44731 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44732 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44733 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44734 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44735 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44736 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44737 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44738 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44739 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44740 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44741 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44742 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44743 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44744 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44745 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44746 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44747 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44748 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44749 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44750 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44751 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44752 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44753 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44754 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44755 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44756 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44757 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44758 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44759 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44760 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44761 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44762 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44763 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44764 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44765 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44766 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44767 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44768 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44769 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44770 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44771 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44772 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44773 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44774 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44775 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 LTCFLAGS='$LTCFLAGS'
44809 compiler='$compiler_DEFAULT'
44811 # Quote evaled strings.
44823 deplibs_check_method \
44832 lt_cv_sys_global_symbol_pipe \
44833 lt_cv_sys_global_symbol_to_cdecl \
44834 lt_cv_sys_global_symbol_to_c_name_address \
44835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44838 lt_prog_compiler_no_builtin_flag \
44839 lt_prog_compiler_wl \
44840 lt_prog_compiler_pic \
44841 lt_prog_compiler_static \
44842 lt_cv_prog_compiler_c_o \
44850 export_dynamic_flag_spec \
44851 whole_archive_flag_spec \
44852 compiler_needs_object \
44854 allow_undefined_flag \
44855 no_undefined_flag \
44856 hardcode_libdir_flag_spec \
44857 hardcode_libdir_flag_spec_ld \
44858 hardcode_libdir_separator \
44863 variables_saved_for_relink \
44865 library_names_spec \
44870 compiler_lib_search_dirs \
44875 compiler_lib_search_path \
44878 lt_prog_compiler_no_builtin_flag_CXX \
44879 lt_prog_compiler_wl_CXX \
44880 lt_prog_compiler_pic_CXX \
44881 lt_prog_compiler_static_CXX \
44882 lt_cv_prog_compiler_c_o_CXX \
44883 export_dynamic_flag_spec_CXX \
44884 whole_archive_flag_spec_CXX \
44885 compiler_needs_object_CXX \
44887 allow_undefined_flag_CXX \
44888 no_undefined_flag_CXX \
44889 hardcode_libdir_flag_spec_CXX \
44890 hardcode_libdir_flag_spec_ld_CXX \
44891 hardcode_libdir_separator_CXX \
44892 fix_srcfile_path_CXX \
44893 exclude_expsyms_CXX \
44894 include_expsyms_CXX \
44895 file_list_spec_CXX \
44896 compiler_lib_search_dirs_CXX \
44897 predep_objects_CXX \
44898 postdep_objects_CXX \
44901 compiler_lib_search_path_CXX; do
44902 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44903 *[\\\\\\\`\\"\\\$]*)
44904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44912 # Double-quote double-evaled strings.
44913 for var in reload_cmds \
44914 old_postinstall_cmds \
44915 old_postuninstall_cmds \
44917 extract_expsyms_cmds \
44918 old_archive_from_new_cmds \
44919 old_archive_from_expsyms_cmds \
44921 archive_expsym_cmds \
44923 module_expsym_cmds \
44924 export_symbols_cmds \
44927 postuninstall_cmds \
44929 sys_lib_search_path_spec \
44930 sys_lib_dlsearch_path_spec \
44931 old_archive_cmds_CXX \
44932 old_archive_from_new_cmds_CXX \
44933 old_archive_from_expsyms_cmds_CXX \
44935 archive_expsym_cmds_CXX \
44937 module_expsym_cmds_CXX \
44938 export_symbols_cmds_CXX \
44939 prelink_cmds_CXX; do
44940 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44941 *[\\\\\\\`\\"\\\$]*)
44942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44950 # Fix-up fallback echo if it was mangled by the above quoting rules.
44952 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44956 ac_aux_dir='$ac_aux_dir'
44957 xsi_shell='$xsi_shell'
44958 lt_shell_append='$lt_shell_append'
44960 # See if we are running on zsh, and set the options which allow our
44961 # commands through without removal of \ escapes INIT.
44962 if test -n "\${ZSH_VERSION+set}" ; then
44963 setopt NO_GLOB_SUBST
44969 TIMESTAMP='$TIMESTAMP'
44977 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44978 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44980 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44981 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44982 LINGUAS="${LINGUAS-%UNSET%}"
44987 cat >>$CONFIG_STATUS <<\_ACEOF
44989 # Handling of arguments.
44990 for ac_config_target in $ac_config_targets
44992 case $ac_config_target in
44993 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44994 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44995 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44996 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44997 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44998 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44999 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45000 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45001 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45002 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45003 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45004 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45005 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45006 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45007 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45008 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45009 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45010 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45011 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45012 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45013 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45014 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45015 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45016 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45017 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45018 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45019 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45020 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45021 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45022 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45023 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45024 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45025 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45026 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45027 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45028 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45029 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45030 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45031 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45032 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45033 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45034 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45035 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45036 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45037 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45038 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45039 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45040 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45041 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45042 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45043 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45044 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45045 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45046 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45047 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45048 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45049 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45050 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45051 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45052 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45053 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45054 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45055 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45056 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45057 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45058 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45059 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45060 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45061 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45062 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45063 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45064 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45065 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45066 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45067 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45068 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45069 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45070 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45071 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45072 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45073 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45074 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45075 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45076 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45077 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45078 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45079 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45080 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45081 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45082 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45083 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45084 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45085 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45086 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45087 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45088 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45089 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45090 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45091 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45092 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45093 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45094 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45095 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45096 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45097 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45098 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45099 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45100 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45101 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45102 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45103 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45107 { (exit 1); exit 1; }; };;
45112 # If the user did not use the arguments to specify the items to instantiate,
45113 # then the envvar interface is used. Set only those that are not.
45114 # We use the long form for the default assignment because of an extremely
45115 # bizarre bug on SunOS 4.1.3.
45116 if $ac_need_defaults; then
45117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45122 # Have a temporary directory for convenience. Make it in the build tree
45123 # simply because there is no reason against having it here, and in addition,
45124 # creating and moving files from /tmp can sometimes cause problems.
45125 # Hook for its removal unless debugging.
45126 # Note that there is a small window in which the directory will not be cleaned:
45127 # after its creation but before its name has been assigned to `$tmp'.
45131 trap 'exit_status=$?
45132 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45134 trap '{ (exit 1); exit 1; }' 1 2 13 15
45136 # Create a (secure) tmp directory for tmp files.
45139 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45140 test -n "$tmp" && test -d "$tmp"
45143 tmp=./conf$$-$RANDOM
45144 (umask 077 && mkdir "$tmp")
45147 echo "$me: cannot create a temporary directory in ." >&2
45148 { (exit 1); exit 1; }
45152 # Set up the sed scripts for CONFIG_FILES section.
45155 # No need to generate the scripts if there are no CONFIG_FILES.
45156 # This happens for instance when ./config.status config.h
45157 if test -n "$CONFIG_FILES"; then
45161 # Create sed commands to just substitute file output variables.
45163 # Remaining file output variables are in a fragment that also has non-file
45169 for ac_last_try in false false false false false :; do
45170 cat >conf$$subs.sed <<_ACEOF
45171 SHELL!$SHELL$ac_delim
45172 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45173 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45174 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45175 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45176 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45177 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45178 exec_prefix!$exec_prefix$ac_delim
45179 prefix!$prefix$ac_delim
45180 program_transform_name!$program_transform_name$ac_delim
45181 bindir!$bindir$ac_delim
45182 sbindir!$sbindir$ac_delim
45183 libexecdir!$libexecdir$ac_delim
45184 datarootdir!$datarootdir$ac_delim
45185 datadir!$datadir$ac_delim
45186 sysconfdir!$sysconfdir$ac_delim
45187 sharedstatedir!$sharedstatedir$ac_delim
45188 localstatedir!$localstatedir$ac_delim
45189 includedir!$includedir$ac_delim
45190 oldincludedir!$oldincludedir$ac_delim
45191 docdir!$docdir$ac_delim
45192 infodir!$infodir$ac_delim
45193 htmldir!$htmldir$ac_delim
45194 dvidir!$dvidir$ac_delim
45195 pdfdir!$pdfdir$ac_delim
45196 psdir!$psdir$ac_delim
45197 libdir!$libdir$ac_delim
45198 localedir!$localedir$ac_delim
45199 mandir!$mandir$ac_delim
45200 DEFS!$DEFS$ac_delim
45201 ECHO_C!$ECHO_C$ac_delim
45202 ECHO_N!$ECHO_N$ac_delim
45203 ECHO_T!$ECHO_T$ac_delim
45204 LIBS!$LIBS$ac_delim
45205 build_alias!$build_alias$ac_delim
45206 host_alias!$host_alias$ac_delim
45207 target_alias!$target_alias$ac_delim
45208 BUILD_DIR!$BUILD_DIR$ac_delim
45209 TOP_DIR!$TOP_DIR$ac_delim
45210 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45211 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45212 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45213 TRUEPRG!$TRUEPRG$ac_delim
45214 FALSEPRG!$FALSEPRG$ac_delim
45215 VERSION!$VERSION$ac_delim
45216 DATE!$DATE$ac_delim
45217 LSMDATE!$LSMDATE$ac_delim
45218 BACULA!$BACULA$ac_delim
45219 post_host!$post_host$ac_delim
45221 CFLAGS!$CFLAGS$ac_delim
45222 LDFLAGS!$LDFLAGS$ac_delim
45223 CPPFLAGS!$CPPFLAGS$ac_delim
45224 ac_ct_CC!$ac_ct_CC$ac_delim
45225 EXEEXT!$EXEEXT$ac_delim
45226 OBJEXT!$OBJEXT$ac_delim
45228 CXXFLAGS!$CXXFLAGS$ac_delim
45229 ac_ct_CXX!$ac_ct_CXX$ac_delim
45231 GREP!$GREP$ac_delim
45232 EGREP!$EGREP$ac_delim
45233 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45234 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45235 INSTALL_DATA!$INSTALL_DATA$ac_delim
45237 REMOVE!$REMOVE$ac_delim
45240 ECHO!$ECHO$ac_delim
45244 OPENSSL!$OPENSSL$ac_delim
45247 MKISOFS!$MKISOFS$ac_delim
45248 PYTHON!$PYTHON$ac_delim
45249 GROWISOFS!$GROWISOFS$ac_delim
45250 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45251 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45252 PKGCONFIG!$PKGCONFIG$ac_delim
45253 QMAKE!$QMAKE$ac_delim
45254 QMAKEQT4!$QMAKEQT4$ac_delim
45255 GMAKE!$GMAKE$ac_delim
45256 WXCONFIG!$WXCONFIG$ac_delim
45257 WXFLAGS!$WXFLAGS$ac_delim
45258 CDRECORD!$CDRECORD$ac_delim
45259 PIDOF!$PIDOF$ac_delim
45261 ARFLAGS!$ARFLAGS$ac_delim
45262 MAKE_SHELL!$MAKE_SHELL$ac_delim
45263 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45264 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45267 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45269 elif $ac_last_try; then
45270 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45271 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45272 { (exit 1); exit 1; }; }
45274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45278 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45279 if test -n "$ac_eof"; then
45280 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45281 ac_eof=`expr $ac_eof + 1`
45284 cat >>$CONFIG_STATUS <<_ACEOF
45285 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45287 /^[ ]*@MCOMMON@[ ]*$/{
45293 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45294 s/^/s,@/; s/!/@,|#_!!_#|/
45297 s/'"$ac_delim"'$/,g/; t
45299 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45300 ' >>$CONFIG_STATUS <conf$$subs.sed
45301 rm -f conf$$subs.sed
45302 cat >>$CONFIG_STATUS <<_ACEOF
45308 for ac_last_try in false false false false false :; do
45309 cat >conf$$subs.sed <<_ACEOF
45310 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45311 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45312 LIBTOOL!$LIBTOOL$ac_delim
45313 build!$build$ac_delim
45314 build_cpu!$build_cpu$ac_delim
45315 build_vendor!$build_vendor$ac_delim
45316 build_os!$build_os$ac_delim
45317 host!$host$ac_delim
45318 host_cpu!$host_cpu$ac_delim
45319 host_vendor!$host_vendor$ac_delim
45320 host_os!$host_os$ac_delim
45321 FGREP!$FGREP$ac_delim
45323 DUMPBIN!$DUMPBIN$ac_delim
45324 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45326 LN_S!$LN_S$ac_delim
45327 OBJDUMP!$OBJDUMP$ac_delim
45328 STRIP!$STRIP$ac_delim
45329 RANLIB!$RANLIB$ac_delim
45330 lt_ECHO!$lt_ECHO$ac_delim
45331 DSYMUTIL!$DSYMUTIL$ac_delim
45332 NMEDIT!$NMEDIT$ac_delim
45333 LIPO!$LIPO$ac_delim
45334 OTOOL!$OTOOL$ac_delim
45335 OTOOL64!$OTOOL64$ac_delim
45336 CXXCPP!$CXXCPP$ac_delim
45337 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45338 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45339 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45340 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45341 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45342 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45343 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45344 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45345 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45346 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45347 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45348 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45349 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45350 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45351 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45352 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45353 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45354 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45355 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45356 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45357 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45358 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45359 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45360 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45361 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45362 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45363 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45364 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45365 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45366 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45367 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45368 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45369 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45370 SET_MAKE!$SET_MAKE$ac_delim
45371 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45372 USE_NLS!$USE_NLS$ac_delim
45373 MSGFMT!$MSGFMT$ac_delim
45374 GMSGFMT!$GMSGFMT$ac_delim
45375 XGETTEXT!$XGETTEXT$ac_delim
45376 MSGMERGE!$MSGMERGE$ac_delim
45377 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45378 LIBICONV!$LIBICONV$ac_delim
45379 LTLIBICONV!$LTLIBICONV$ac_delim
45380 INTLLIBS!$INTLLIBS$ac_delim
45381 LIBINTL!$LIBINTL$ac_delim
45382 LTLIBINTL!$LTLIBINTL$ac_delim
45383 POSUB!$POSUB$ac_delim
45384 GLIBC2!$GLIBC2$ac_delim
45385 ALLOCA!$ALLOCA$ac_delim
45386 GLIBC21!$GLIBC21$ac_delim
45387 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45388 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45389 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45390 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45391 INTLBISON!$INTLBISON$ac_delim
45392 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45393 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45394 CATOBJEXT!$CATOBJEXT$ac_delim
45395 DATADIRNAME!$DATADIRNAME$ac_delim
45396 INSTOBJEXT!$INSTOBJEXT$ac_delim
45397 GENCAT!$GENCAT$ac_delim
45398 INTLOBJS!$INTLOBJS$ac_delim
45399 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45400 BAT_DIR!$BAT_DIR$ac_delim
45401 QWT_INC!$QWT_INC$ac_delim
45402 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45403 QWT_LIB!$QWT_LIB$ac_delim
45405 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45406 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45409 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45411 elif $ac_last_try; then
45412 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45413 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45414 { (exit 1); exit 1; }; }
45416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45420 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45421 if test -n "$ac_eof"; then
45422 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45423 ac_eof=`expr $ac_eof + 1`
45426 cat >>$CONFIG_STATUS <<_ACEOF
45427 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45431 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45432 s/^/s,@/; s/!/@,|#_!!_#|/
45435 s/'"$ac_delim"'$/,g/; t
45437 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45438 ' >>$CONFIG_STATUS <conf$$subs.sed
45439 rm -f conf$$subs.sed
45440 cat >>$CONFIG_STATUS <<_ACEOF
45446 for ac_last_try in false false false false false :; do
45447 cat >conf$$subs.sed <<_ACEOF
45448 WX_DIR!$WX_DIR$ac_delim
45449 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45450 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45451 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45452 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45453 STATIC_FD!$STATIC_FD$ac_delim
45454 STATIC_SD!$STATIC_SD$ac_delim
45455 STATIC_DIR!$STATIC_DIR$ac_delim
45456 STATIC_CONS!$STATIC_CONS$ac_delim
45457 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45458 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45459 ALL_DIRS!$ALL_DIRS$ac_delim
45460 DIRD_DIR!$DIRD_DIR$ac_delim
45461 DIR_TOOLS!$DIR_TOOLS$ac_delim
45462 STORED_DIR!$STORED_DIR$ac_delim
45463 CONS_INC!$CONS_INC$ac_delim
45464 CONS_OBJ!$CONS_OBJ$ac_delim
45465 CONS_SRC!$CONS_SRC$ac_delim
45466 CONS_LIBS!$CONS_LIBS$ac_delim
45467 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45468 READLINE_SRC!$READLINE_SRC$ac_delim
45469 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45470 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45471 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45472 OPENSSL_INC!$OPENSSL_INC$ac_delim
45473 working_dir!$working_dir$ac_delim
45474 archivedir!$archivedir$ac_delim
45475 basename!$basename$ac_delim
45476 hostname!$hostname$ac_delim
45477 scriptdir!$scriptdir$ac_delim
45478 bsrdir!$bsrdir$ac_delim
45479 logdir!$logdir$ac_delim
45480 plugindir!$plugindir$ac_delim
45481 dump_email!$dump_email$ac_delim
45482 job_email!$job_email$ac_delim
45483 smtp_host!$smtp_host$ac_delim
45484 piddir!$piddir$ac_delim
45485 subsysdir!$subsysdir$ac_delim
45486 baseport!$baseport$ac_delim
45487 dir_port!$dir_port$ac_delim
45488 fd_port!$fd_port$ac_delim
45489 sd_port!$sd_port$ac_delim
45490 dir_password!$dir_password$ac_delim
45491 fd_password!$fd_password$ac_delim
45492 sd_password!$sd_password$ac_delim
45493 mon_dir_password!$mon_dir_password$ac_delim
45494 mon_fd_password!$mon_fd_password$ac_delim
45495 mon_sd_password!$mon_sd_password$ac_delim
45496 db_name!$db_name$ac_delim
45497 db_user!$db_user$ac_delim
45498 db_password!$db_password$ac_delim
45499 db_port!$db_port$ac_delim
45500 dir_user!$dir_user$ac_delim
45501 dir_group!$dir_group$ac_delim
45502 sd_user!$sd_user$ac_delim
45503 sd_group!$sd_group$ac_delim
45504 fd_user!$fd_user$ac_delim
45505 fd_group!$fd_group$ac_delim
45506 SBINPERM!$SBINPERM$ac_delim
45507 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45508 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45509 SQL_BINDIR!$SQL_BINDIR$ac_delim
45510 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45511 uncomment_dbi!$uncomment_dbi$ac_delim
45512 DB_PROG!$DB_PROG$ac_delim
45513 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45514 cats!$cats$ac_delim
45515 DB_TYPE!$DB_TYPE$ac_delim
45516 GETCONF!$GETCONF$ac_delim
45517 XMKMF!$XMKMF$ac_delim
45518 X_CFLAGS!$X_CFLAGS$ac_delim
45519 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45520 X_LIBS!$X_LIBS$ac_delim
45521 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45522 LIBOBJS!$LIBOBJS$ac_delim
45523 CAP_LIBS!$CAP_LIBS$ac_delim
45524 FDLIBS!$FDLIBS$ac_delim
45525 DEBUG!$DEBUG$ac_delim
45526 DINCLUDE!$DINCLUDE$ac_delim
45527 DLIB!$DLIB$ac_delim
45528 DB_LIBS!$DB_LIBS$ac_delim
45529 WCFLAGS!$WCFLAGS$ac_delim
45530 WLDFLAGS!$WLDFLAGS$ac_delim
45531 WRAPLIBS!$WRAPLIBS$ac_delim
45532 OBJLIST!$OBJLIST$ac_delim
45533 TAPEDRIVE!$TAPEDRIVE$ac_delim
45534 PSCMD!$PSCMD$ac_delim
45535 WIN32!$WIN32$ac_delim
45536 MACOSX!$MACOSX$ac_delim
45537 DISTNAME!$DISTNAME$ac_delim
45538 DISTVER!$DISTVER$ac_delim
45539 LTLIBOBJS!$LTLIBOBJS$ac_delim
45542 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45544 elif $ac_last_try; then
45545 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45546 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45547 { (exit 1); exit 1; }; }
45549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45553 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45554 if test -n "$ac_eof"; then
45555 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45556 ac_eof=`expr $ac_eof + 1`
45559 cat >>$CONFIG_STATUS <<_ACEOF
45560 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45564 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45565 s/^/s,@/; s/!/@,|#_!!_#|/
45568 s/'"$ac_delim"'$/,g/; t
45570 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45571 ' >>$CONFIG_STATUS <conf$$subs.sed
45572 rm -f conf$$subs.sed
45573 cat >>$CONFIG_STATUS <<_ACEOF
45580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45582 # trailing colons and then remove the whole line if VPATH becomes empty
45583 # (actually we leave an empty line to preserve line numbers).
45584 if test "x$srcdir" = x.; then
45585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45586 s/:*\$(srcdir):*/:/
45587 s/:*\${srcdir}:*/:/
45589 s/^\([^=]*=[ ]*\):*/\1/
45595 cat >>$CONFIG_STATUS <<\_ACEOF
45596 fi # test -n "$CONFIG_FILES"
45599 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45602 :[FHLC]) ac_mode=$ac_tag; continue;;
45604 case $ac_mode$ac_tag in
45606 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45607 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45608 { (exit 1); exit 1; }; };;
45609 :[FH]-) ac_tag=-:-;;
45610 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45627 -) ac_f="$tmp/stdin";;
45628 *) # Look for the file first in the build tree, then in the source tree
45629 # (if the path is not absolute). The absolute path cannot be DOS-style,
45630 # because $ac_f cannot contain `:'.
45634 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45636 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45637 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45638 { (exit 1); exit 1; }; };;
45640 ac_file_inputs="$ac_file_inputs $ac_f"
45643 # Let's still pretend it is `configure' which instantiates (i.e., don't
45644 # use $as_me), people would be surprised to read:
45645 # /* config.h. Generated by config.status. */
45646 configure_input="Generated from "`IFS=:
45647 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45648 if test x"$ac_file" != x-; then
45649 configure_input="$ac_file. $configure_input"
45650 { echo "$as_me:$LINENO: creating $ac_file" >&5
45651 echo "$as_me: creating $ac_file" >&6;}
45655 *:-:* | *:-) cat >"$tmp/stdin";;
45660 ac_dir=`$as_dirname -- "$ac_file" ||
45661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45662 X"$ac_file" : 'X\(//\)[^/]' \| \
45663 X"$ac_file" : 'X\(//\)$' \| \
45664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45670 /^X\(\/\/\)[^/].*/{
45685 -*) as_dir=./$as_dir;;
45687 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45691 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45692 *) as_qdir=$as_dir;;
45694 as_dirs="'$as_qdir' $as_dirs"
45695 as_dir=`$as_dirname -- "$as_dir" ||
45696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45697 X"$as_dir" : 'X\(//\)[^/]' \| \
45698 X"$as_dir" : 'X\(//\)$' \| \
45699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45705 /^X\(\/\/\)[^/].*/{
45718 test -d "$as_dir" && break
45720 test -z "$as_dirs" || eval "mkdir $as_dirs"
45721 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45722 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45723 { (exit 1); exit 1; }; }; }
45727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45730 # A ".." for each directory in $ac_dir_suffix.
45731 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45732 case $ac_top_builddir_sub in
45733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45737 ac_abs_top_builddir=$ac_pwd
45738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45739 # for backward compatibility:
45740 ac_top_builddir=$ac_top_build_prefix
45743 .) # We are building in place.
45745 ac_top_srcdir=$ac_top_builddir_sub
45746 ac_abs_top_srcdir=$ac_pwd ;;
45747 [\\/]* | ?:[\\/]* ) # Absolute name.
45748 ac_srcdir=$srcdir$ac_dir_suffix;
45749 ac_top_srcdir=$srcdir
45750 ac_abs_top_srcdir=$srcdir ;;
45751 *) # Relative name.
45752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45753 ac_top_srcdir=$ac_top_build_prefix$srcdir
45754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45771 cat >>$CONFIG_STATUS <<\_ACEOF
45772 # If the template does not know about datarootdir, expand it.
45773 # FIXME: This hack should be removed a few years after 2.60.
45774 ac_datarootdir_hack=; ac_datarootdir_seen=
45776 case `sed -n '/datarootdir/ {
45785 ' $ac_file_inputs` in
45786 *datarootdir*) ac_datarootdir_seen=yes;;
45787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45788 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45789 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45791 cat >>$CONFIG_STATUS <<_ACEOF
45792 ac_datarootdir_hack='
45793 s&@datadir@&$datadir&g
45794 s&@docdir@&$docdir&g
45795 s&@infodir@&$infodir&g
45796 s&@localedir@&$localedir&g
45797 s&@mandir@&$mandir&g
45798 s&\\\${datarootdir}&$datarootdir&g' ;;
45802 # Neutralize VPATH when `$srcdir' = `.'.
45803 # Shell code in configure.ac might set extrasub.
45804 # FIXME: do we really want to maintain this feature?
45805 cat >>$CONFIG_STATUS <<_ACEOF
45809 cat >>$CONFIG_STATUS <<\_ACEOF
45811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45812 s&@configure_input@&$configure_input&;t t
45813 s&@top_builddir@&$ac_top_builddir_sub&;t t
45814 s&@srcdir@&$ac_srcdir&;t t
45815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45816 s&@top_srcdir@&$ac_top_srcdir&;t t
45817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45818 s&@builddir@&$ac_builddir&;t t
45819 s&@abs_builddir@&$ac_abs_builddir&;t t
45820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45821 s&@INSTALL@&$ac_INSTALL&;t t
45822 $ac_datarootdir_hack
45823 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45826 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45828 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45829 which seems to be undefined. Please make sure it is defined." >&5
45830 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45831 which seems to be undefined. Please make sure it is defined." >&2;}
45835 -) cat "$tmp/out"; rm -f "$tmp/out";;
45836 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45845 # Transform confdefs.h into a sed script `conftest.defines', that
45846 # substitutes the proper values into config.h.in to produce config.h.
45847 rm -f conftest.defines conftest.tail
45848 # First, append a space to every undef/define line, to ease matching.
45849 echo 's/$/ /' >conftest.defines
45850 # Then, protect against being on the right side of a sed subst, or in
45851 # an unquoted here document, in config.status. If some macros were
45852 # called several times there might be several #defines for the same
45853 # symbol, which is useless. But do not sort them, since the last
45854 # AC_DEFINE must be honored.
45855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45856 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45857 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45858 # PARAMS is the parameter list in the macro definition--in most cases, it's
45859 # just an empty string.
45860 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45861 ac_dB='\\)[ (].*,\\1define\\2'
45869 s/^[ ]*#[ ]*define[ ][ ]*//
45874 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45875 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45876 ' >>conftest.defines
45878 # Remove the space that was appended to ease matching.
45879 # Then replace #undef with comments. This is necessary, for
45880 # example, in the case of _POSIX_SOURCE, which is predefined and required
45881 # on some systems where configure will not decide to define it.
45882 # (The regexp can be short, since the line contains either #define or #undef.)
45884 s,^[ #]*u.*,/* & */,' >>conftest.defines
45886 # Break up conftest.defines:
45887 ac_max_sed_lines=50
45889 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45890 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45891 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45893 ac_in='$ac_file_inputs'
45894 ac_out='"$tmp/out1"'
45895 ac_nxt='"$tmp/out2"'
45899 # Write a here document:
45900 cat >>$CONFIG_STATUS <<_ACEOF
45901 # First, check the format of the line:
45902 cat >"\$tmp/defines.sed" <<\\CEOF
45903 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45904 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45908 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45910 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45911 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45912 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45913 grep . conftest.tail >/dev/null || break
45914 rm -f conftest.defines
45915 mv conftest.tail conftest.defines
45917 rm -f conftest.defines conftest.tail
45919 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45920 cat >>$CONFIG_STATUS <<\_ACEOF
45921 if test x"$ac_file" != x-; then
45922 echo "/* $configure_input */" >"$tmp/config.h"
45923 cat "$ac_result" >>"$tmp/config.h"
45924 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45925 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45926 echo "$as_me: $ac_file is unchanged" >&6;}
45929 mv "$tmp/config.h" $ac_file
45932 echo "/* $configure_input */"
45938 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45939 echo "$as_me: executing $ac_file commands" >&6;}
45944 case $ac_file$ac_mode in
45947 # See if we are running on zsh, and set the options which allow our
45948 # commands through without removal of \ escapes.
45949 if test -n "${ZSH_VERSION+set}" ; then
45950 setopt NO_GLOB_SUBST
45953 cfgfile="${ofile}T"
45954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45957 cat <<_LT_EOF >> "$cfgfile"
45960 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45961 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45963 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45965 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45966 # 2006, 2007, 2008 Free Software Foundation, Inc.
45967 # Written by Gordon Matzigkeit, 1996
45969 # This file is part of GNU Libtool.
45971 # GNU Libtool is free software; you can redistribute it and/or
45972 # modify it under the terms of the GNU General Public License as
45973 # published by the Free Software Foundation; either version 2 of
45974 # the License, or (at your option) any later version.
45976 # As a special exception to the GNU General Public License,
45977 # if you distribute this file as part of a program or library that
45978 # is built using GNU Libtool, you may include this file under the
45979 # same distribution terms that you use for the rest of that program.
45981 # GNU Libtool is distributed in the hope that it will be useful,
45982 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45984 # GNU General Public License for more details.
45986 # You should have received a copy of the GNU General Public License
45987 # along with GNU Libtool; see the file COPYING. If not, a copy
45988 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45989 # obtained by writing to the Free Software Foundation, Inc.,
45990 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45993 # The names of the tagged configurations supported by this script.
45994 available_tags="CXX "
45996 # ### BEGIN LIBTOOL CONFIG
45998 # Which release of libtool.m4 was used?
45999 macro_version=$macro_version
46000 macro_revision=$macro_revision
46002 # Whether or not to build shared libraries.
46003 build_libtool_libs=$enable_shared
46005 # Whether or not to build static libraries.
46006 build_old_libs=$enable_static
46008 # What type of objects to build.
46011 # Whether or not to optimize for fast installation.
46012 fast_install=$enable_fast_install
46015 host_alias=$host_alias
46019 # The build system.
46020 build_alias=$build_alias
46024 # A sed program that does not truncate output.
46027 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46028 Xsed="\$SED -e 1s/^X//"
46030 # A grep program that handles long lines.
46036 # A literal string matcher.
46039 # A BSD- or MS-compatible name lister.
46042 # Whether we need soft or hard links.
46045 # What is the maximum length of a command?
46046 max_cmd_len=$max_cmd_len
46048 # Object file suffix (normally "o").
46051 # Executable file suffix (normally "").
46054 # whether the shell understands "unset".
46057 # turn spaces into newlines.
46060 # turn newlines into spaces.
46063 # How to create reloadable object files.
46064 reload_flag=$lt_reload_flag
46065 reload_cmds=$lt_reload_cmds
46067 # An object symbol dumper.
46068 OBJDUMP=$lt_OBJDUMP
46070 # Method to check whether dependent libraries are shared objects.
46071 deplibs_check_method=$lt_deplibs_check_method
46073 # Command to use when deplibs_check_method == "file_magic".
46074 file_magic_cmd=$lt_file_magic_cmd
46078 AR_FLAGS=$lt_AR_FLAGS
46080 # A symbol stripping program.
46083 # Commands used to install an old-style archive.
46085 old_postinstall_cmds=$lt_old_postinstall_cmds
46086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46091 # LTCC compiler flags.
46092 LTCFLAGS=$lt_CFLAGS
46094 # Take the output of nm and produce a listing of raw symbols and C names.
46095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46097 # Transform the output of nm in a proper C declaration.
46098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46100 # Transform the output of nm in a C name address pair.
46101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46103 # Transform the output of nm in a C name address pair when lib prefix is needed.
46104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46106 # The name of the directory that contains temporary libtool files.
46109 # Shell to use when invoking shell scripts.
46112 # An echo program that does not interpret backslashes.
46115 # Used to examine libraries when file_magic_cmd begins with "file".
46116 MAGIC_CMD=$MAGIC_CMD
46118 # Must we lock files when doing compilation?
46119 need_locks=$lt_need_locks
46121 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46122 DSYMUTIL=$lt_DSYMUTIL
46124 # Tool to change global to local symbols on Mac OS X.
46127 # Tool to manipulate fat objects and archives on Mac OS X.
46130 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46133 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46134 OTOOL64=$lt_OTOOL64
46136 # Old archive suffix (normally "a").
46139 # Shared library suffix (normally ".so").
46140 shrext_cmds=$lt_shrext_cmds
46142 # The commands to extract the exported symbol list from a shared archive.
46143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46145 # Variables whose values should be saved in libtool wrapper scripts and
46146 # restored at link time.
46147 variables_saved_for_relink=$lt_variables_saved_for_relink
46149 # Do we need the "lib" prefix for modules?
46150 need_lib_prefix=$need_lib_prefix
46152 # Do we need a version for libraries?
46153 need_version=$need_version
46155 # Library versioning type.
46156 version_type=$version_type
46158 # Shared library runtime path variable.
46159 runpath_var=$runpath_var
46161 # Shared library path variable.
46162 shlibpath_var=$shlibpath_var
46164 # Is shlibpath searched before the hard-coded library search path?
46165 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46167 # Format of library name prefix.
46168 libname_spec=$lt_libname_spec
46170 # List of archive names. First name is the real one, the rest are links.
46171 # The last name is the one that the linker finds with -lNAME
46172 library_names_spec=$lt_library_names_spec
46174 # The coded name of the library, if different from the real name.
46175 soname_spec=$lt_soname_spec
46177 # Command to use after installation of a shared archive.
46178 postinstall_cmds=$lt_postinstall_cmds
46180 # Command to use after uninstallation of a shared archive.
46181 postuninstall_cmds=$lt_postuninstall_cmds
46183 # Commands used to finish a libtool library installation in a directory.
46184 finish_cmds=$lt_finish_cmds
46186 # As "finish_cmds", except a single script fragment to be evaled but
46188 finish_eval=$lt_finish_eval
46190 # Whether we should hardcode library paths into libraries.
46191 hardcode_into_libs=$hardcode_into_libs
46193 # Compile-time system search path for libraries.
46194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46196 # Run-time system search path for libraries.
46197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46199 # Whether dlopen is supported.
46200 dlopen_support=$enable_dlopen
46202 # Whether dlopen of programs is supported.
46203 dlopen_self=$enable_dlopen_self
46205 # Whether dlopen of statically linked programs is supported.
46206 dlopen_self_static=$enable_dlopen_self_static
46208 # Commands to strip libraries.
46209 old_striplib=$lt_old_striplib
46210 striplib=$lt_striplib
46213 # The linker used to build libraries.
46216 # Commands used to build an old-style archive.
46217 old_archive_cmds=$lt_old_archive_cmds
46219 # A language specific compiler.
46222 # Is the compiler the GNU compiler?
46225 # Compiler flag to turn off builtin functions.
46226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46228 # How to pass a linker flag through the compiler.
46229 wl=$lt_lt_prog_compiler_wl
46231 # Additional compiler flags for building library objects.
46232 pic_flag=$lt_lt_prog_compiler_pic
46234 # Compiler flag to prevent dynamic linking.
46235 link_static_flag=$lt_lt_prog_compiler_static
46237 # Does compiler simultaneously support -c and -o options?
46238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46240 # Whether or not to add -lc for building shared libraries.
46241 build_libtool_need_lc=$archive_cmds_need_lc
46243 # Whether or not to disallow shared libs when runtime libs are static.
46244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46246 # Compiler flag to allow reflexive dlopens.
46247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46249 # Compiler flag to generate shared objects directly from archives.
46250 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46252 # Whether the compiler copes with passing no objects directly.
46253 compiler_needs_object=$lt_compiler_needs_object
46255 # Create an old-style archive from a shared archive.
46256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46258 # Create a temporary old-style archive to link instead of a shared archive.
46259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46261 # Commands used to build a shared archive.
46262 archive_cmds=$lt_archive_cmds
46263 archive_expsym_cmds=$lt_archive_expsym_cmds
46265 # Commands used to build a loadable module if different from building
46266 # a shared archive.
46267 module_cmds=$lt_module_cmds
46268 module_expsym_cmds=$lt_module_expsym_cmds
46270 # Whether we are building with GNU ld or not.
46271 with_gnu_ld=$lt_with_gnu_ld
46273 # Flag that allows shared libraries with undefined symbols to be built.
46274 allow_undefined_flag=$lt_allow_undefined_flag
46276 # Flag that enforces no undefined symbols.
46277 no_undefined_flag=$lt_no_undefined_flag
46279 # Flag to hardcode \$libdir into a binary during linking.
46280 # This must work even if \$libdir does not exist
46281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46283 # If ld is used when linking, flag to hardcode \$libdir into a binary
46284 # during linking. This must work even if \$libdir does not exist.
46285 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46287 # Whether we need a single "-rpath" flag with a separated argument.
46288 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46290 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46291 # DIR into the resulting binary.
46292 hardcode_direct=$hardcode_direct
46294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46295 # DIR into the resulting binary and the resulting library dependency is
46296 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46297 # library is relocated.
46298 hardcode_direct_absolute=$hardcode_direct_absolute
46300 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46301 # into the resulting binary.
46302 hardcode_minus_L=$hardcode_minus_L
46304 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46305 # into the resulting binary.
46306 hardcode_shlibpath_var=$hardcode_shlibpath_var
46308 # Set to "yes" if building a shared library automatically hardcodes DIR
46309 # into the library and all subsequent libraries and executables linked
46311 hardcode_automatic=$hardcode_automatic
46313 # Set to yes if linker adds runtime paths of dependent libraries
46314 # to runtime path list.
46315 inherit_rpath=$inherit_rpath
46317 # Whether libtool must link a program against all its dependency libraries.
46318 link_all_deplibs=$link_all_deplibs
46320 # Fix the shell variable \$srcfile for the compiler.
46321 fix_srcfile_path=$lt_fix_srcfile_path
46323 # Set to "yes" if exported symbols are required.
46324 always_export_symbols=$always_export_symbols
46326 # The commands to list exported symbols.
46327 export_symbols_cmds=$lt_export_symbols_cmds
46329 # Symbols that should not be listed in the preloaded symbols.
46330 exclude_expsyms=$lt_exclude_expsyms
46332 # Symbols that must always be exported.
46333 include_expsyms=$lt_include_expsyms
46335 # Commands necessary for linking programs (against libraries) with templates.
46336 prelink_cmds=$lt_prelink_cmds
46338 # Specify filename containing input files.
46339 file_list_spec=$lt_file_list_spec
46341 # How to hardcode a shared library path into an executable.
46342 hardcode_action=$hardcode_action
46344 # The directories searched by this compiler when creating a shared library.
46345 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46347 # Dependencies to place before and after the objects being linked to
46348 # create a shared library.
46349 predep_objects=$lt_predep_objects
46350 postdep_objects=$lt_postdep_objects
46351 predeps=$lt_predeps
46352 postdeps=$lt_postdeps
46354 # The library search path used internally by the compiler when linking
46355 # a shared library.
46356 compiler_lib_search_path=$lt_compiler_lib_search_path
46358 # ### END LIBTOOL CONFIG
46364 cat <<\_LT_EOF >> "$cfgfile"
46365 # AIX sometimes has problems with the GCC collect2 program. For some
46366 # reason, if we set the COLLECT_NAMES environment variable, the problems
46367 # vanish in a puff of smoke.
46368 if test "X${COLLECT_NAMES+set}" != Xset; then
46370 export COLLECT_NAMES
46377 ltmain="$ac_aux_dir/ltmain.sh"
46380 # We use sed instead of cat because bash on DJGPP gets confused if
46381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46382 # text mode, it properly converts lines to CR/LF. This bash problem
46383 # is reportedly fixed, but why not run on old versions too?
46384 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46385 || (rm -f "$cfgfile"; exit 1)
46389 cat << \_LT_EOF >> "$cfgfile"
46391 # func_dirname file append nondir_replacement
46392 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46393 # otherwise set result to NONDIR_REPLACEMENT.
46397 */*) func_dirname_result="${1%/*}${2}" ;;
46398 * ) func_dirname_result="${3}" ;;
46402 # func_basename file
46405 func_basename_result="${1##*/}"
46408 # func_dirname_and_basename file append nondir_replacement
46409 # perform func_basename and func_dirname in a single function
46411 # dirname: Compute the dirname of FILE. If nonempty,
46412 # add APPEND to the result, otherwise set result
46413 # to NONDIR_REPLACEMENT.
46414 # value returned in "$func_dirname_result"
46415 # basename: Compute filename of FILE.
46416 # value retuned in "$func_basename_result"
46417 # Implementation must be kept synchronized with func_dirname
46418 # and func_basename. For efficiency, we do not delegate to
46419 # those functions but instead duplicate the functionality here.
46420 func_dirname_and_basename ()
46423 */*) func_dirname_result="${1%/*}${2}" ;;
46424 * ) func_dirname_result="${3}" ;;
46426 func_basename_result="${1##*/}"
46429 # func_stripname prefix suffix name
46430 # strip PREFIX and SUFFIX off of NAME.
46431 # PREFIX and SUFFIX must not contain globbing or regex special
46432 # characters, hashes, percent signs, but SUFFIX may contain a leading
46433 # dot (in which case that matches only a dot).
46436 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46437 # positional parameters, so assign one to ordinary parameter first.
46438 func_stripname_result=${3}
46439 func_stripname_result=${func_stripname_result#"${1}"}
46440 func_stripname_result=${func_stripname_result%"${2}"}
46446 func_opt_split_opt=${1%%=*}
46447 func_opt_split_arg=${1#*=}
46454 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46455 *) func_lo2o_result=${1} ;;
46459 # func_xform libobj-or-source
46462 func_xform_result=${1%.*}.lo
46465 # func_arith arithmetic-term...
46468 func_arith_result=$(( $* ))
46472 # STRING may not start with a hyphen.
46475 func_len_result=${#1}
46480 *) # Bourne compatible functions.
46481 cat << \_LT_EOF >> "$cfgfile"
46483 # func_dirname file append nondir_replacement
46484 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46485 # otherwise set result to NONDIR_REPLACEMENT.
46488 # Extract subdirectory from the argument.
46489 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46490 if test "X$func_dirname_result" = "X${1}"; then
46491 func_dirname_result="${3}"
46493 func_dirname_result="$func_dirname_result${2}"
46497 # func_basename file
46500 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46504 # func_stripname prefix suffix name
46505 # strip PREFIX and SUFFIX off of NAME.
46506 # PREFIX and SUFFIX must not contain globbing or regex special
46507 # characters, hashes, percent signs, but SUFFIX may contain a leading
46508 # dot (in which case that matches only a dot).
46509 # func_strip_suffix prefix name
46513 .*) func_stripname_result=`$ECHO "X${3}" \
46514 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46515 *) func_stripname_result=`$ECHO "X${3}" \
46516 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46521 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46522 my_sed_long_arg='1s/^-[^=]*=//'
46527 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46528 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46534 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46537 # func_xform libobj-or-source
46540 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46543 # func_arith arithmetic-term...
46546 func_arith_result=`expr "$@"`
46550 # STRING may not start with a hyphen.
46553 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46559 case $lt_shell_append in
46561 cat << \_LT_EOF >> "$cfgfile"
46563 # func_append var value
46564 # Append VALUE to the end of shell variable VAR.
46572 cat << \_LT_EOF >> "$cfgfile"
46574 # func_append var value
46575 # Append VALUE to the end of shell variable VAR.
46586 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46587 || (rm -f "$cfgfile"; exit 1)
46589 mv -f "$cfgfile" "$ofile" ||
46590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46594 cat <<_LT_EOF >> "$ofile"
46596 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46598 # The linker used to build libraries.
46601 # Commands used to build an old-style archive.
46602 old_archive_cmds=$lt_old_archive_cmds_CXX
46604 # A language specific compiler.
46605 CC=$lt_compiler_CXX
46607 # Is the compiler the GNU compiler?
46610 # Compiler flag to turn off builtin functions.
46611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46613 # How to pass a linker flag through the compiler.
46614 wl=$lt_lt_prog_compiler_wl_CXX
46616 # Additional compiler flags for building library objects.
46617 pic_flag=$lt_lt_prog_compiler_pic_CXX
46619 # Compiler flag to prevent dynamic linking.
46620 link_static_flag=$lt_lt_prog_compiler_static_CXX
46622 # Does compiler simultaneously support -c and -o options?
46623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46625 # Whether or not to add -lc for building shared libraries.
46626 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46628 # Whether or not to disallow shared libs when runtime libs are static.
46629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46631 # Compiler flag to allow reflexive dlopens.
46632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46634 # Compiler flag to generate shared objects directly from archives.
46635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46637 # Whether the compiler copes with passing no objects directly.
46638 compiler_needs_object=$lt_compiler_needs_object_CXX
46640 # Create an old-style archive from a shared archive.
46641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46643 # Create a temporary old-style archive to link instead of a shared archive.
46644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46646 # Commands used to build a shared archive.
46647 archive_cmds=$lt_archive_cmds_CXX
46648 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46650 # Commands used to build a loadable module if different from building
46651 # a shared archive.
46652 module_cmds=$lt_module_cmds_CXX
46653 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46655 # Whether we are building with GNU ld or not.
46656 with_gnu_ld=$lt_with_gnu_ld_CXX
46658 # Flag that allows shared libraries with undefined symbols to be built.
46659 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46661 # Flag that enforces no undefined symbols.
46662 no_undefined_flag=$lt_no_undefined_flag_CXX
46664 # Flag to hardcode \$libdir into a binary during linking.
46665 # This must work even if \$libdir does not exist
46666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46668 # If ld is used when linking, flag to hardcode \$libdir into a binary
46669 # during linking. This must work even if \$libdir does not exist.
46670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46672 # Whether we need a single "-rpath" flag with a separated argument.
46673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46676 # DIR into the resulting binary.
46677 hardcode_direct=$hardcode_direct_CXX
46679 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46680 # DIR into the resulting binary and the resulting library dependency is
46681 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46682 # library is relocated.
46683 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46686 # into the resulting binary.
46687 hardcode_minus_L=$hardcode_minus_L_CXX
46689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46690 # into the resulting binary.
46691 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46693 # Set to "yes" if building a shared library automatically hardcodes DIR
46694 # into the library and all subsequent libraries and executables linked
46696 hardcode_automatic=$hardcode_automatic_CXX
46698 # Set to yes if linker adds runtime paths of dependent libraries
46699 # to runtime path list.
46700 inherit_rpath=$inherit_rpath_CXX
46702 # Whether libtool must link a program against all its dependency libraries.
46703 link_all_deplibs=$link_all_deplibs_CXX
46705 # Fix the shell variable \$srcfile for the compiler.
46706 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46708 # Set to "yes" if exported symbols are required.
46709 always_export_symbols=$always_export_symbols_CXX
46711 # The commands to list exported symbols.
46712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46714 # Symbols that should not be listed in the preloaded symbols.
46715 exclude_expsyms=$lt_exclude_expsyms_CXX
46717 # Symbols that must always be exported.
46718 include_expsyms=$lt_include_expsyms_CXX
46720 # Commands necessary for linking programs (against libraries) with templates.
46721 prelink_cmds=$lt_prelink_cmds_CXX
46723 # Specify filename containing input files.
46724 file_list_spec=$lt_file_list_spec_CXX
46726 # How to hardcode a shared library path into an executable.
46727 hardcode_action=$hardcode_action_CXX
46729 # The directories searched by this compiler when creating a shared library.
46730 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46732 # Dependencies to place before and after the objects being linked to
46733 # create a shared library.
46734 predep_objects=$lt_predep_objects_CXX
46735 postdep_objects=$lt_postdep_objects_CXX
46736 predeps=$lt_predeps_CXX
46737 postdeps=$lt_postdeps_CXX
46739 # The library search path used internally by the compiler when linking
46740 # a shared library.
46741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46743 # ### END LIBTOOL TAG CONFIG: CXX
46748 for ac_file in $CONFIG_FILES; do
46749 # Support "outfile[:infile[:infile...]]"
46751 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46753 # PO directories have a Makefile.in generated from Makefile.in.in.
46754 case "$ac_file" in */Makefile.in)
46755 # Adjust a relative srcdir.
46756 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46757 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46758 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46759 # In autoconf-2.13 it is called $ac_given_srcdir.
46760 # In autoconf-2.50 it is called $srcdir.
46761 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46762 case "$ac_given_srcdir" in
46763 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46764 /*) top_srcdir="$ac_given_srcdir" ;;
46765 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46767 # Treat a directory as a PO directory if and only if it has a
46768 # POTFILES.in file. This allows packages to have multiple PO
46769 # directories under different names or in different locations.
46770 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46771 rm -f "$ac_dir/POTFILES"
46772 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46773 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46774 POMAKEFILEDEPS="POTFILES.in"
46775 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46776 # on $ac_dir but don't depend on user-specified configuration
46778 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46779 # The LINGUAS file contains the set of available languages.
46780 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46781 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46783 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46784 # Hide the ALL_LINGUAS assigment from automake.
46785 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46786 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46788 # The set of available languages was given in configure.in.
46789 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46792 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46793 # Compute UPDATEPOFILES
46794 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46795 # Compute DUMMYPOFILES
46796 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46798 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46799 case "$ac_given_srcdir" in
46801 *) srcdirpre='$(srcdir)/' ;;
46807 for lang in $ALL_LINGUAS; do
46808 POFILES="$POFILES $srcdirpre$lang.po"
46809 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46810 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46811 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46813 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46814 # environment variable.
46816 if test -n "$ALL_LINGUAS"; then
46817 for presentlang in $ALL_LINGUAS; do
46819 if test "%UNSET%" != "$LINGUAS"; then
46820 desiredlanguages="$LINGUAS"
46822 desiredlanguages="$ALL_LINGUAS"
46824 for desiredlang in $desiredlanguages; do
46825 # Use the presentlang catalog if desiredlang is
46826 # a. equal to presentlang, or
46827 # b. a variant of presentlang (because in this case,
46828 # presentlang can be used as a fallback for messages
46829 # which are not translated in the desiredlang catalog).
46830 case "$desiredlang" in
46831 "$presentlang"*) useit=yes;;
46834 if test $useit = yes; then
46835 INST_LINGUAS="$INST_LINGUAS $presentlang"
46840 if test -n "$INST_LINGUAS"; then
46841 for lang in $INST_LINGUAS; do
46842 CATALOGS="$CATALOGS $lang.gmo"
46845 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46846 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"
46847 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46848 if test -f "$f"; then
46850 *.orig | *.bak | *~) ;;
46851 *) cat "$f" >> "$ac_dir/Makefile" ;;
46866 { (exit 0); exit 0; }
46868 chmod +x $CONFIG_STATUS
46869 ac_clean_files=$ac_clean_files_save
46872 # configure is writing to config.log, and then calls config.status.
46873 # config.status does its own redirection, appending to config.log.
46874 # Unfortunately, on DOS this fails, as config.log is still kept open
46875 # by configure, so config.status won't be able to write to it; its
46876 # output is simply discarded. So we exec the FD to /dev/null,
46877 # effectively closing config.log, so it can be properly (re)opened and
46878 # appended to by config.status. When coming back to configure, we
46879 # need to make the FD available again.
46880 if test "$no_create" != yes; then
46882 ac_config_status_args=
46883 test "$silent" = yes &&
46884 ac_config_status_args="$ac_config_status_args --quiet"
46886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46889 # would make configure fail if this is the last instruction.
46890 $ac_cs_success || { (exit 1); exit 1; }
46894 if test "${support_bat}" = "yes" ; then
46895 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46896 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46897 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46898 { (exit 1); exit 1; }; }
46903 if test "x$QMAKEQT4" != "xnone"; then
46908 echo "Creating bat Makefile"
46912 ${MAKE:-make} clean
46916 if test X"$GCC" = "Xyes" ; then
46917 echo "Doing make of dependencies"
46918 ${MAKE:-make} depend
46922 chmod 755 install_conf_file build-depkgs-qt-console
46926 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46927 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
46928 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46932 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46933 chmod 755 $c/update_postgresql_tables_10_to_11
46937 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46938 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46940 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46941 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46943 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46944 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46946 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46947 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46949 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46950 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46952 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46953 chmod 755 $c/sqlite
46956 chmod 755 src/win32/build-depkgs-mingw32
46958 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46959 largefile_support="yes"
46962 if test X"$GCC" = "Xyes" ; then
46963 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46964 if test "x${CCVERSION}" = "x" ; then
46965 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46967 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46968 if test x"${CXXVERSION}" = x ; then
46969 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46973 # clean up any old junk
46977 ${MAKE:-make} clean
46979 if test "x${db_type}" = "xInternal" ; then
46982 echo "You have not specified either --enable-client-only or one of the"
46983 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46984 echo " This is not permitted. Please reconfigure."
46986 echo "Aborting the configuration ..."
46993 Configuration on `date`:
46995 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46996 Bacula version: ${BACULA} ${VERSION} (${DATE})
46997 Source code location: ${srcdir}
46998 Install binaries: ${sbindir}
46999 Install libraries: ${libdir}
47000 Install config files: ${sysconfdir}
47001 Scripts directory: ${scriptdir}
47002 Archive directory: ${archivedir}
47003 Working directory: ${working_dir}
47004 PID directory: ${piddir}
47005 Subsys directory: ${subsysdir}
47006 Man directory: ${mandir}
47007 Data directory: ${datarootdir}
47008 Plugin directory: ${plugindir}
47009 C Compiler: ${CC} ${CCVERSION}
47010 C++ Compiler: ${CXX} ${CXXVERSION}
47011 Compiler flags: ${WCFLAGS} ${CFLAGS}
47012 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47014 Statically Linked Tools: ${support_static_tools}
47015 Statically Linked FD: ${support_static_fd}
47016 Statically Linked SD: ${support_static_sd}
47017 Statically Linked DIR: ${support_static_dir}
47018 Statically Linked CONS: ${support_static_cons}
47019 Database type: ${db_type}
47020 Database port: ${db_port}
47021 Database lib: ${DB_LIBS}
47022 Database name: ${db_name}
47023 Database user: ${db_user}
47025 Job Output Email: ${job_email}
47026 Traceback Email: ${dump_email}
47027 SMTP Host Address: ${smtp_host}
47029 Director Port: ${dir_port}
47030 File daemon Port: ${fd_port}
47031 Storage daemon Port: ${sd_port}
47033 Director User: ${dir_user}
47034 Director Group: ${dir_group}
47035 Storage Daemon User: ${sd_user}
47036 Storage DaemonGroup: ${sd_group}
47037 File Daemon User: ${fd_user}
47038 File Daemon Group: ${fd_group}
47040 SQL binaries Directory ${SQL_BINDIR}
47042 Large file support: $largefile_support
47043 Bacula conio support: ${got_conio} ${CONS_LIBS}
47044 readline support: ${got_readline} ${PRTREADLINE_SRC}
47045 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47046 TLS support: ${support_tls}
47047 Encryption support: ${support_crypto}
47048 ZLIB support: ${have_zlib}
47049 enable-smartalloc: ${support_smartalloc}
47050 enable-lockmgr: ${support_lockmgr}
47051 bat support: ${support_bat} ${QWT_LDFLAGS}
47052 enable-gnome: ${support_gnome} ${gnome_version}
47053 enable-bwx-console: ${support_wx_console} ${wx_version}
47054 enable-tray-monitor: ${support_tray_monitor}
47055 client-only: ${build_client_only}
47056 build-dird: ${build_dird}
47057 build-stored: ${build_stored}
47058 ACL support: ${have_acl}
47059 XATTR support: ${have_xattr}
47060 Python support: ${support_python} ${PYTHON_LIBS}
47061 Batch insert enabled: ${support_batch_insert}
47065 # create a small shell script useful for support with
47066 # configure options and config.out info
47067 cat > scripts/bacula_config << EOF
47070 $ $0 $ac_configure_args
47072 cat config.out >> scripts/bacula_config
47073 echo __EOC__ >> scripts/bacula_config
47074 chmod 755 scripts/bacula_config
47078 # Display a warning message if postgresql client lib is <= 8.1
47079 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47080 -a x$support_batch_insert = xyes
47082 echo "WARNING: Your PostgreSQL client library is too old to detect "
47083 echo " if it was compiled with --enable-thread-safety, consider to"
47084 echo " upgrade it in order to avoid problems with Batch insert mode"