2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 ac_unique_file="src/version.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='LTLIBOBJS
878 TRAY_MONITOR_CPPFLAGS
887 INTL_LIBTOOL_SUFFIX_PREFIX
894 BUILD_INCLUDED_LIBINTL
925 HAVE_OPENBSD_OS_FALSE
929 HAVE_FREEBSD_OS_FALSE
941 INCLUDE_UNINSTALL_TARGET
942 INCLUDE_INSTALL_TARGET
946 LIBTOOL_UNINSTALL_TARGET
947 LIBTOOL_INSTALL_TARGET
948 DEFAULT_SHARED_OBJECT_TYPE
1022 LIBBACFIND_LT_RELEASE
1023 LIBBACSQL_LT_RELEASE
1025 LIBBACCFG_LT_RELEASE
1067 program_transform_name
1077 ac_subst_files='MCOMMON'
1079 enable_option_checking
1090 with_libiconv_prefix
1092 with_included_gettext
1131 with_mon_dir_password
1132 with_mon_fd_password
1133 with_mon_sd_password
1158 ac_precious_vars='build_alias
1176 # Initialize some variables set by options.
1178 ac_init_version=false
1179 ac_unrecognized_opts=
1180 ac_unrecognized_sep=
1181 # The variables have the same names as the options, with
1182 # dashes changed to underlines.
1183 cache_file=/dev/null
1190 program_transform_name=s,x,x,
1198 # Installation directory options.
1199 # These are left unexpanded so users can "make install exec_prefix=/foo"
1200 # and all the variables that are supposed to be based on exec_prefix
1201 # by default will actually change.
1202 # Use braces instead of parens because sh, perl, etc. also accept them.
1203 # (The list follows the same order as the GNU Coding Standards.)
1204 bindir='${exec_prefix}/bin'
1205 sbindir='${exec_prefix}/sbin'
1206 libexecdir='${exec_prefix}/libexec'
1207 datarootdir='${prefix}/share'
1208 datadir='${datarootdir}'
1209 sysconfdir='${prefix}/etc'
1210 sharedstatedir='${prefix}/com'
1211 localstatedir='${prefix}/var'
1212 includedir='${prefix}/include'
1213 oldincludedir='/usr/include'
1214 docdir='${datarootdir}/doc/${PACKAGE}'
1215 infodir='${datarootdir}/info'
1220 libdir='${exec_prefix}/lib'
1221 localedir='${datarootdir}/locale'
1222 mandir='${datarootdir}/man'
1228 # If the previous option needs an argument, assign it.
1229 if test -n "$ac_prev"; then
1230 eval $ac_prev=\$ac_option
1236 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240 # Accept the important Cygnus configure options, so we can diagnose typos.
1242 case $ac_dashdash$ac_option in
1246 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1248 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1249 bindir=$ac_optarg ;;
1251 -build | --build | --buil | --bui | --bu)
1252 ac_prev=build_alias ;;
1253 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1254 build_alias=$ac_optarg ;;
1256 -cache-file | --cache-file | --cache-fil | --cache-fi \
1257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1258 ac_prev=cache_file ;;
1259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1261 cache_file=$ac_optarg ;;
1263 --config-cache | -C)
1264 cache_file=config.cache ;;
1266 -datadir | --datadir | --datadi | --datad)
1268 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1269 datadir=$ac_optarg ;;
1271 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1272 | --dataroo | --dataro | --datar)
1273 ac_prev=datarootdir ;;
1274 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1275 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1276 datarootdir=$ac_optarg ;;
1278 -disable-* | --disable-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "enable_$ac_useropt"
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval enable_$ac_useropt=no ;;
1295 -docdir | --docdir | --docdi | --doc | --do)
1297 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1298 docdir=$ac_optarg ;;
1300 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1302 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1303 dvidir=$ac_optarg ;;
1305 -enable-* | --enable-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1310 { (exit 1); exit 1; }; }
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "enable_$ac_useropt"
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1320 eval enable_$ac_useropt=\$ac_optarg ;;
1322 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1323 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1324 | --exec | --exe | --ex)
1325 ac_prev=exec_prefix ;;
1326 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1327 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1328 | --exec=* | --exe=* | --ex=*)
1329 exec_prefix=$ac_optarg ;;
1331 -gas | --gas | --ga | --g)
1332 # Obsolete; use --with-gas.
1335 -help | --help | --hel | --he | -h)
1336 ac_init_help=long ;;
1337 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1338 ac_init_help=recursive ;;
1339 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1340 ac_init_help=short ;;
1342 -host | --host | --hos | --ho)
1343 ac_prev=host_alias ;;
1344 -host=* | --host=* | --hos=* | --ho=*)
1345 host_alias=$ac_optarg ;;
1347 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351 htmldir=$ac_optarg ;;
1353 -includedir | --includedir | --includedi | --included | --include \
1354 | --includ | --inclu | --incl | --inc)
1355 ac_prev=includedir ;;
1356 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1357 | --includ=* | --inclu=* | --incl=* | --inc=*)
1358 includedir=$ac_optarg ;;
1360 -infodir | --infodir | --infodi | --infod | --info | --inf)
1362 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1363 infodir=$ac_optarg ;;
1365 -libdir | --libdir | --libdi | --libd)
1367 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1368 libdir=$ac_optarg ;;
1370 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1371 | --libexe | --libex | --libe)
1372 ac_prev=libexecdir ;;
1373 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1374 | --libexe=* | --libex=* | --libe=*)
1375 libexecdir=$ac_optarg ;;
1377 -localedir | --localedir | --localedi | --localed | --locale)
1378 ac_prev=localedir ;;
1379 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1380 localedir=$ac_optarg ;;
1382 -localstatedir | --localstatedir | --localstatedi | --localstated \
1383 | --localstate | --localstat | --localsta | --localst | --locals)
1384 ac_prev=localstatedir ;;
1385 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1386 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1387 localstatedir=$ac_optarg ;;
1389 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1392 mandir=$ac_optarg ;;
1394 -nfp | --nfp | --nf)
1395 # Obsolete; use --without-fp.
1398 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1399 | --no-cr | --no-c | -n)
1402 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1403 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1407 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1408 | --oldin | --oldi | --old | --ol | --o)
1409 ac_prev=oldincludedir ;;
1410 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1411 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1412 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1413 oldincludedir=$ac_optarg ;;
1415 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1418 prefix=$ac_optarg ;;
1420 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1421 | --program-pre | --program-pr | --program-p)
1422 ac_prev=program_prefix ;;
1423 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1424 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1425 program_prefix=$ac_optarg ;;
1427 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1428 | --program-suf | --program-su | --program-s)
1429 ac_prev=program_suffix ;;
1430 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1431 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1432 program_suffix=$ac_optarg ;;
1434 -program-transform-name | --program-transform-name \
1435 | --program-transform-nam | --program-transform-na \
1436 | --program-transform-n | --program-transform- \
1437 | --program-transform | --program-transfor \
1438 | --program-transfo | --program-transf \
1439 | --program-trans | --program-tran \
1440 | --progr-tra | --program-tr | --program-t)
1441 ac_prev=program_transform_name ;;
1442 -program-transform-name=* | --program-transform-name=* \
1443 | --program-transform-nam=* | --program-transform-na=* \
1444 | --program-transform-n=* | --program-transform-=* \
1445 | --program-transform=* | --program-transfor=* \
1446 | --program-transfo=* | --program-transf=* \
1447 | --program-trans=* | --program-tran=* \
1448 | --progr-tra=* | --program-tr=* | --program-t=*)
1449 program_transform_name=$ac_optarg ;;
1451 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1454 pdfdir=$ac_optarg ;;
1456 -psdir | --psdir | --psdi | --psd | --ps)
1458 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1462 | -silent | --silent | --silen | --sile | --sil)
1465 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469 sbindir=$ac_optarg ;;
1471 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1472 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1473 | --sharedst | --shareds | --shared | --share | --shar \
1475 ac_prev=sharedstatedir ;;
1476 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1477 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1478 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480 sharedstatedir=$ac_optarg ;;
1482 -site | --site | --sit)
1484 -site=* | --site=* | --sit=*)
1487 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1490 srcdir=$ac_optarg ;;
1492 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1493 | --syscon | --sysco | --sysc | --sys | --sy)
1494 ac_prev=sysconfdir ;;
1495 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1496 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1497 sysconfdir=$ac_optarg ;;
1499 -target | --target | --targe | --targ | --tar | --ta | --t)
1500 ac_prev=target_alias ;;
1501 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1502 target_alias=$ac_optarg ;;
1504 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507 -version | --version | --versio | --versi | --vers | -V)
1508 ac_init_version=: ;;
1511 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1512 # Reject names that are not valid shell variable names.
1513 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1514 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1515 { (exit 1); exit 1; }; }
1516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1525 eval with_$ac_useropt=\$ac_optarg ;;
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1532 { (exit 1); exit 1; }; }
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1542 eval with_$ac_useropt=no ;;
1545 # Obsolete; use --with-x.
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1562 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1563 Try \`$0 --help' for more information." >&2
1564 { (exit 1); exit 1; }; }
1568 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1571 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1572 { (exit 1); exit 1; }; }
1573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1581 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1587 if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1589 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1590 { (exit 1); exit 1; }; }
1593 if test -n "$ac_unrecognized_opts"; then
1594 case $enable_option_checking in
1596 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1597 { (exit 1); exit 1; }; } ;;
1598 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602 # Check all directory arguments for consistency.
1603 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1604 datadir sysconfdir sharedstatedir localstatedir includedir \
1605 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1606 libdir localedir mandir
1608 eval ac_val=\$$ac_var
1609 # Remove trailing slashes.
1612 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1613 eval $ac_var=\$ac_val;;
1615 # Be sure to have absolute directory names.
1617 [\\/$]* | ?:[\\/]* ) continue;;
1618 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1620 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1621 { (exit 1); exit 1; }; }
1624 # There might be people who depend on the old broken behavior: `$host'
1625 # used to hold the argument of --host etc.
1626 # FIXME: To remove some day.
1629 target=$target_alias
1631 # FIXME: To remove some day.
1632 if test "x$host_alias" != x; then
1633 if test "x$build_alias" = x; then
1634 cross_compiling=maybe
1635 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1636 If a cross compiler is detected then cross compile mode will be used." >&2
1637 elif test "x$build_alias" != "x$host_alias"; then
1643 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1645 test "$silent" = yes && exec 6>/dev/null
1648 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649 ac_ls_di=`ls -di .` &&
1650 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1652 { (exit 1); exit 1; }; }
1653 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1654 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1655 { (exit 1); exit 1; }; }
1658 # Find the source files, if location was not specified.
1659 if test -z "$srcdir"; then
1660 ac_srcdir_defaulted=yes
1661 # Try the directory containing this script, then the parent directory.
1662 ac_confdir=`$as_dirname -- "$as_myself" ||
1663 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1664 X"$as_myself" : 'X\(//\)[^/]' \| \
1665 X"$as_myself" : 'X\(//\)$' \| \
1666 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1667 $as_echo X"$as_myself" |
1668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1686 if test ! -r "$srcdir/$ac_unique_file"; then
1690 ac_srcdir_defaulted=no
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1694 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1695 { (exit 1); exit 1; }; }
1697 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1699 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1700 { (exit 1); exit 1; }; }
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1710 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1712 for ac_var in $ac_precious_vars; do
1713 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1714 eval ac_env_${ac_var}_value=\$${ac_var}
1715 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1716 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1720 # Report the --help message.
1722 if test "$ac_init_help" = "long"; then
1723 # Omit some internal or obsolete options to make the list less imposing.
1724 # This message is too long to be a string in the A/UX 3.1 sh.
1726 \`configure' configures this package to adapt to many kinds of systems.
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE. See below for descriptions of some of the useful variables.
1733 Defaults for the options are specified in brackets.
1736 -h, --help display this help and exit
1737 --help=short display options specific to this package
1738 --help=recursive display the short help of all the included packages
1739 -V, --version display version information and exit
1740 -q, --quiet, --silent do not print \`checking...' messages
1741 --cache-file=FILE cache test results in FILE [disabled]
1742 -C, --config-cache alias for \`--cache-file=config.cache'
1743 -n, --no-create do not create output files
1744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1746 Installation directories:
1747 --prefix=PREFIX install architecture-independent files in PREFIX
1748 [$ac_default_prefix]
1749 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1757 For better control, use the options below.
1759 Fine tuning of the installation directories:
1760 --bindir=DIR user executables [EPREFIX/bin]
1761 --sbindir=DIR system admin executables [EPREFIX/sbin]
1762 --libexecdir=DIR program executables [EPREFIX/libexec]
1763 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1764 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1765 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1766 --libdir=DIR object code libraries [EPREFIX/lib]
1767 --includedir=DIR C header files [PREFIX/include]
1768 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1769 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1770 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1771 --infodir=DIR info documentation [DATAROOTDIR/info]
1772 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1773 --mandir=DIR man documentation [DATAROOTDIR/man]
1774 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1775 --htmldir=DIR html documentation [DOCDIR]
1776 --dvidir=DIR dvi documentation [DOCDIR]
1777 --pdfdir=DIR pdf documentation [DOCDIR]
1778 --psdir=DIR ps documentation [DOCDIR]
1784 --x-includes=DIR X include files are in DIR
1785 --x-libraries=DIR X library files are in DIR
1788 --build=BUILD configure for building on BUILD [guessed]
1789 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1793 if test -n "$ac_init_help"; then
1798 --disable-option-checking ignore unrecognized --enable/--with options
1799 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1800 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1801 --enable-libtool enable building using GNU libtool [default=yes]
1802 --enable-shared[=PKGS] build shared libraries [default=yes]
1803 --enable-static[=PKGS] build static libraries [default=no]
1804 --enable-fast-install[=PKGS]
1805 optimize for fast installation [default=yes]
1806 --disable-libtool-lock avoid locking (might break parallel builds)
1807 --enable-includes enable installing of include files [default=no]
1808 --disable-nls do not use Native Language Support
1809 --disable-rpath do not hardcode runtime library paths
1810 --enable-gnome enable build of bgnome-console GUI [default=no]
1811 --enable-bat enable build of bat Qt4 GUI [default=no]
1812 --enable-bwx-console enable build of wxWidgets console [default=no]
1813 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1815 --enable-smartalloc enable smartalloc debugging support [default=no]
1816 --enable-lockmgr enable lock manager support [default=no]
1817 --enable-static-tools enable static tape tools [default=no]
1818 --enable-static-fd enable static File daemon [default=no]
1819 --enable-static-sd enable static Storage daemon [default=no]
1820 --enable-static-dir enable static Director [default=no]
1821 --enable-static-cons enable static Console [default=no]
1822 --enable-client-only build client (File daemon) only [default=no]
1823 --enable-build-dird enable building of dird (Director) [default=yes]
1824 --enable-build-stored enable building of stored (Storage daemon)
1826 --disable-conio disable conio support [default=no]
1827 --enable-ipv6 enable ipv6 support [default=yes]
1828 --disable-readline disable readline support [default=yes]
1829 --enable-batch-insert enable the DB batch insert code [default=no]
1830 --disable-largefile omit support for large files
1831 --disable-acl disable acl support [default=auto]
1832 --disable-xattr disable xattr support [default=auto]
1835 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1836 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1837 --with-pic try to use only PIC/non-PIC objects [default=use
1839 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1840 --with-gnu-ld assume the C compiler uses GNU ld default=no
1841 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1842 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1843 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1844 --without-libintl-prefix don't search for libintl in includedir and libdir
1845 --with-included-gettext use the GNU gettext library included here
1846 --with-readline[=DIR] specify readline library directory
1847 --with-python[=DIR] Include Python support. DIR is the Python base
1848 install directory, default is to search through a
1849 number of common places for the Python files.
1850 --with-tcp-wrappers[=DIR]
1851 enable tcpwrappers support
1852 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1853 --with-working-dir=PATH specify path of Bacula working directory
1854 --with-archivedir=PATH specify path of SD archive directory
1855 --with-basename=RESNAME specify base resource name for daemons
1856 --with-hostname=RESNAME specify host name for daemons
1857 --with-scriptdir=PATH specify path of Bacula scripts directory
1858 --with-bsrdir=PATH specify path of Bacula bsrs directory
1859 --with-logdir=PATH specify path of Bacula logs directory
1860 --with-plugindir=PATH specify path of Bacula plugins directory
1861 --with-dump-email=EMAIL dump email address
1862 --with-job-email=EMAIL job output email address
1863 --with-smtp-host=HOST SMTP mail host address
1864 --with-pid-dir=PATH specify location of Bacula pid files
1865 --with-subsys-dir=PATH specify location of Bacula subsys file
1866 --with-baseport=PORT specify base port address for daemons
1867 --with-dir-password=PASSWORD
1868 specify Director's password
1869 --with-fd-password=PASSWORD
1870 specify Client's password
1871 --with-sd-password=PASSWORD
1872 specify Storage daemon's password
1873 --with-mon-dir-password=PASSWORD
1874 specify Director's password used by the monitor
1875 --with-mon-fd-password=PASSWORD
1876 specify Client's password used by the monitor
1877 --with-mon-sd-password=PASSWORD
1878 specify Storage daemon's password used by the
1880 --with-db-name=DBNAME specify database name [default=bacula]
1881 --with-db-user=UNAME specify database user [default=bacula]
1882 --with-db-password=PWD specify database password [default=*none*]
1883 --with-db-port=DBPORT specify a database port [default=null]
1884 --with-dir-user=USER specify user for Director daemon
1885 --with-dir-group=GROUP specify group for Director daemon
1886 --with-sd-user=USER specify user for Storage daemon
1887 --with-sd-group=GROUP specify group for Storage daemon
1888 --with-fd-user=USER specify user for File daemon
1889 --with-fd-group=GROUP specify group for File daemon
1890 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1891 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1892 base install directory, [default=/usr/local/pgsql]
1893 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1894 directory, default is to search through a number of
1895 common places for the MySQL files.
1896 --with-embedded-mysql[=DIR]
1897 Include MySQL support. DIR is the MySQL base install
1898 directory, default is to search through a number of
1899 common places for the MySQL files.
1900 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1901 install directory, default is to search through a
1902 number of common places for the Ingres files.
1903 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1904 install directory, default is to search through a
1905 number of common places for the SQLite3 files.
1906 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1907 directory, default is to search through a number of
1908 common places for the DBI files.
1909 --with-dbi-driver[=DRIVER]
1910 Suport for DBI driver. DRIVER is the one DBI driver
1911 like Mysql, Postgresql, others. Default is to not
1912 configure any driver.
1913 --with-x use the X Window System
1915 Some influential environment variables:
1916 CC C compiler command
1917 CFLAGS C compiler flags
1918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1919 nonstandard directory <lib dir>
1920 LIBS libraries to pass to the linker, e.g. -l<library>
1921 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1922 you have headers in a nonstandard directory <include dir>
1923 CXX C++ compiler command
1924 CXXFLAGS C++ compiler flags
1926 WXCONFIG wx-config command. On some systems, you must set it to
1927 wx-config-2.6 to use wxWidgets 2.6.
1928 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1929 CXXCPP C++ preprocessor
1930 XMKMF Path to xmkmf, Makefile generator for X Window System
1932 Use these variables to override the choices made by `configure' or to help
1933 it to find libraries and programs with nonstandard names/locations.
1939 if test "$ac_init_help" = "recursive"; then
1940 # If there are subdirs, report their specific --help.
1941 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1942 test -d "$ac_dir" ||
1943 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1951 # A ".." for each directory in $ac_dir_suffix.
1952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1953 case $ac_top_builddir_sub in
1954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1958 ac_abs_top_builddir=$ac_pwd
1959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1960 # for backward compatibility:
1961 ac_top_builddir=$ac_top_build_prefix
1964 .) # We are building in place.
1966 ac_top_srcdir=$ac_top_builddir_sub
1967 ac_abs_top_srcdir=$ac_pwd ;;
1968 [\\/]* | ?:[\\/]* ) # Absolute name.
1969 ac_srcdir=$srcdir$ac_dir_suffix;
1970 ac_top_srcdir=$srcdir
1971 ac_abs_top_srcdir=$srcdir ;;
1973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1974 ac_top_srcdir=$ac_top_build_prefix$srcdir
1975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1979 cd "$ac_dir" || { ac_status=$?; continue; }
1980 # Check for guested configure.
1981 if test -f "$ac_srcdir/configure.gnu"; then
1983 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1984 elif test -f "$ac_srcdir/configure"; then
1986 $SHELL "$ac_srcdir/configure" --help=recursive
1988 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1990 cd "$ac_pwd" || { ac_status=$?; break; }
1994 test -n "$ac_init_help" && exit $ac_status
1995 if $ac_init_version; then
1998 generated by GNU Autoconf 2.63
2000 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2001 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2002 This configure script is free software; the Free Software Foundation
2003 gives unlimited permission to copy, distribute and modify it.
2007 cat >config.log <<_ACEOF
2008 This file contains any messages produced by compilers while
2009 running configure, to aid debugging if configure makes a mistake.
2011 It was created by $as_me, which was
2012 generated by GNU Autoconf 2.63. Invocation command line was
2024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2036 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 $as_echo "PATH: $as_dir"
2064 # Keep a trace of the command line.
2065 # Strip out --no-create and --no-recursion so they do not pile up.
2066 # Strip out --silent because we don't want to record it for future runs.
2067 # Also quote any args containing shell meta-characters.
2068 # Make two passes to allow for proper duplicate-argument suppression.
2072 ac_must_keep_next=false
2078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080 | -silent | --silent | --silen | --sile | --sil)
2083 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2089 if test $ac_must_keep_next = true; then
2090 ac_must_keep_next=false # Got value, back to normal.
2093 *=* | --config-cache | -C | -disable-* | --disable-* \
2094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096 | -with-* | --with-* | -without-* | --without-* | --x)
2097 case "$ac_configure_args0 " in
2098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2101 -* ) ac_must_keep_next=true ;;
2104 ac_configure_args="$ac_configure_args '$ac_arg'"
2109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2112 # When interrupted or exit'd, cleanup temporary files, and complete
2113 # config.log. We remove comments because anyway the quotes in there
2114 # would cause problems or look ugly.
2115 # WARNING: Use '\'' to represent an apostrophe within the trap.
2116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117 trap 'exit_status=$?
2118 # Save into config.log some information that might help in debugging.
2123 ## ---------------- ##
2124 ## Cache variables. ##
2125 ## ---------------- ##
2128 # The following way of writing the cache mishandles newlines in values,
2130 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2131 eval ac_val=\$$ac_var
2135 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2136 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 _ | IFS | as_nl) ;; #(
2140 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2141 *) $as_unset $ac_var ;;
2146 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2147 *${as_nl}ac_space=\ *)
2149 "s/'\''/'\''\\\\'\'''\''/g;
2150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 ## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##
2166 for ac_var in $ac_subst_vars
2168 eval ac_val=\$$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2176 if test -n "$ac_subst_files"; then
2178 ## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##
2183 for ac_var in $ac_subst_files
2185 eval ac_val=\$$ac_var
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 $as_echo "$ac_var='\''$ac_val'\''"
2194 if test -s confdefs.h; then
2204 test "$ac_signal" != 0 &&
2205 $as_echo "$as_me: caught signal $ac_signal"
2206 $as_echo "$as_me: exit $exit_status"
2208 rm -f core *.core core.conftest.* &&
2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 for ac_signal in 1 2 13 15; do
2213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2218 rm -f -r conftest* confdefs.h
2220 # Predefined preprocessor variables.
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2251 if test -n "$CONFIG_SITE"; then
2252 ac_site_file1=$CONFIG_SITE
2253 elif test "x$prefix" != xNONE; then
2254 ac_site_file1=$prefix/share/config.site
2255 ac_site_file2=$prefix/etc/config.site
2257 ac_site_file1=$ac_default_prefix/share/config.site
2258 ac_site_file2=$ac_default_prefix/etc/config.site
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262 test "x$ac_site_file" = xNONE && continue
2263 if test -r "$ac_site_file"; then
2264 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266 sed 's/^/| /' "$ac_site_file" >&5
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special
2273 # files actually), so we avoid doing that.
2274 if test -f "$cache_file"; then
2275 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2283 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2288 # Check that the precious variables saved in the cache have kept the same
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2298 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2302 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2316 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2320 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2344 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2345 { (exit 1); exit 1; }; }
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2379 if test -f "$ac_dir/install-sh"; then
2381 ac_install_sh="$ac_aux_dir/install-sh -c"
2383 elif test -f "$ac_dir/install.sh"; then
2385 ac_install_sh="$ac_aux_dir/install.sh -c"
2387 elif test -f "$ac_dir/shtool"; then
2389 ac_install_sh="$ac_aux_dir/shtool install -c"
2393 if test -z "$ac_aux_dir"; then
2394 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2395 $as_echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2396 { (exit 1); exit 1; }; }
2399 # These three variables are undocumented and unsupported,
2400 # and are intended to be withdrawn in a future Autoconf release.
2401 # They can cause serious problems if a builder's source tree is in a directory
2402 # whose full name contains unusual characters.
2403 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2404 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2405 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2408 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2411 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2412 WIN32MAINDIR=${BUILD_DIR}
2413 WIN32TOPDIR=${TOP_DIR}
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2425 $as_echo_n "(cached) " >&6
2429 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 TRUEPRG=$ac_cv_path_TRUEPRG
2451 if test -n "$TRUEPRG"; then
2452 { $as_echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2453 $as_echo "$TRUEPRG" >&6; }
2455 { $as_echo "$as_me:$LINENO: result: no" >&5
2456 $as_echo "no" >&6; }
2460 test -n "$TRUEPRG" && break
2462 test -n "$TRUEPRG" || TRUEPRG=":"
2464 for ac_prog in false
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2475 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 FALSEPRG=$ac_cv_path_FALSEPRG
2497 if test -n "$FALSEPRG"; then
2498 { $as_echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2499 $as_echo "$FALSEPRG" >&6; }
2501 { $as_echo "$as_me:$LINENO: result: no" >&5
2502 $as_echo "no" >&6; }
2506 test -n "$FALSEPRG" && break
2508 test -n "$FALSEPRG" || FALSEPRG=":"
2513 if test "x$BACULA" != x; then
2514 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2516 BACULA=${BACULA:-Bacula}
2517 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2518 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2519 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2520 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
2522 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2523 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2524 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2526 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
2527 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
2528 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
2531 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2533 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
2536 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2538 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
2541 echo "configuring for ${BACULA} $VERSION ($DATE)"
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2589 if test -z "$ac_cv_prog_CC"; then
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634 ac_tool_warned=yes ;;
2642 if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}cc; ac_word=$2
2646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}cc"
2662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2676 { $as_echo "$as_me:$LINENO: result: no" >&5
2677 $as_echo "no" >&6; }
2683 if test -z "$CC"; then
2684 # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc; ac_word=$2
2686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 $as_echo_n "(cached) " >&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2703 ac_prog_rejected=yes
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 if test $ac_prog_rejected = yes; then
2715 # We found a bogon in the path, so make sure we never use it.
2716 set dummy $ac_cv_prog_CC
2718 if test $# != 0; then
2719 # We chose a different compiler from the bogus one.
2720 # However, it has the same basename, so the bogon will be chosen
2721 # first if we set CC to just the basename; use the full file name.
2723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in cl.exe
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2775 { $as_echo "$as_me:$LINENO: result: no" >&5
2776 $as_echo "no" >&6; }
2780 test -n "$CC" && break
2783 if test -z "$CC"; then
2785 for ac_prog in cl.exe
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_ac_ct_CC="$ac_prog"
2805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$ac_ct_CC" && break
2827 if test "x$ac_ct_CC" = x; then
2830 case $cross_compiling:$ac_tool_warned in
2832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&5
2847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }; }
2851 # Provide some information about the compiler.
2852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2855 { (ac_try="$ac_compiler --version >&5"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compiler --version >&5") 2>&5
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866 { (ac_try="$ac_compiler -v >&5"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler -v >&5") 2>&5
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -V >&5"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -V >&5") 2>&5
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 ac_clean_files_save=$ac_clean_files
2905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906 # Try to create an executable without -o first, disregard a.out.
2907 # It will help us diagnose broken compilers, and finding out an intuition
2909 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910 $as_echo_n "checking for C compiler default output file name... " >&6; }
2911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913 # The possible output files:
2914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2917 for ac_file in $ac_files
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926 if { (ac_try="$ac_link_default"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_link_default") 2>&5
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2940 # so that the user can short-circuit this test for compilers unknown to
2942 for ac_file in $ac_files ''
2944 test -f "$ac_file" || continue
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2949 # We found the default executable, but exeext='' is most
2953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 # We set ac_cv_exeext here because the later test for it is not
2958 # safe: cross compilers may not add the suffix if given an `-o'
2959 # argument, so we may need to know it at that point already.
2960 # Even if this section looks crufty: it has the advantage of
2967 test "$ac_cv_exeext" = no && ac_cv_exeext=
2973 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974 $as_echo "$ac_file" >&6; }
2975 if test -z "$ac_file"; then
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&5
2983 $as_echo "$as_me: error: C compiler cannot create executables
2984 See \`config.log' for more details." >&2;}
2985 { (exit 77); exit 77; }; }; }
2988 ac_exeext=$ac_cv_exeext
2990 # Check that the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 $as_echo_n "checking whether the C compiler works... " >&6; }
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003 $as_echo "$ac_try_echo") >&5
3004 (eval "$ac_try") 2>&5
3006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 if test "$cross_compiling" = maybe; then
3013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016 If you meant to cross compile, use \`--host'.
3017 See \`config.log' for more details." >&5
3018 $as_echo "$as_me: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3025 { $as_echo "$as_me:$LINENO: result: yes" >&5
3026 $as_echo "yes" >&6; }
3028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 $as_echo_n "checking whether we are cross compiling... " >&6; }
3034 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3037 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { (ac_try="$ac_link"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_link") 2>&5
3048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 for ac_file in conftest.exe conftest conftest.*; do
3055 test -f "$ac_file" || continue
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }; }
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3350 if test "$GCC" = yes; then
3356 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3361 ac_cv_prog_cc_c89=no
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3387 s = g (p, va_arg (v,int));
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3453 rm -f conftest.$ac_ext
3458 case "x$ac_cv_prog_cc_c89" in
3460 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3463 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 ac_cpp='$CXXCPP $CPPFLAGS'
3480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3483 if test -z "$CXX"; then
3484 if test -n "$CCC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CXX+set}" = set; then
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CXX"; then
3498 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CXX"; then
3519 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3520 $as_echo "$CXX" >&6; }
3522 { $as_echo "$as_me:$LINENO: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$CXX" && break
3530 if test -z "$CXX"; then
3532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$ac_ct_CXX"; then
3542 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CXX="$ac_prog"
3552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3562 if test -n "$ac_ct_CXX"; then
3563 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3564 $as_echo "$ac_ct_CXX" >&6; }
3566 { $as_echo "$as_me:$LINENO: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$ac_ct_CXX" && break
3574 if test "x$ac_ct_CXX" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3589 # Provide some information about the compiler.
3590 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3593 { (ac_try="$ac_compiler --version >&5"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3599 $as_echo "$ac_try_echo") >&5
3600 (eval "$ac_compiler --version >&5") 2>&5
3602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
3604 { (ac_try="$ac_compiler -v >&5"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3610 $as_echo "$ac_try_echo") >&5
3611 (eval "$ac_compiler -v >&5") 2>&5
3613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }
3615 { (ac_try="$ac_compiler -V >&5"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compiler -V >&5") 2>&5
3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }
3627 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3630 $as_echo_n "(cached) " >&6
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && {
3665 test -z "$ac_cxx_werror_flag" ||
3666 test ! -s conftest.err
3667 } && test -s conftest.$ac_objext; then
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3681 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3687 ac_test_CXXFLAGS=${CXXFLAGS+set}
3688 ac_save_CXXFLAGS=$CXXFLAGS
3689 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3690 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3691 if test "${ac_cv_prog_cxx_g+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3694 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3695 ac_cxx_werror_flag=yes
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721 (eval "$ac_compile") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && {
3728 test -z "$ac_cxx_werror_flag" ||
3729 test ! -s conftest.err
3730 } && test -s conftest.$ac_objext; then
3731 ac_cv_prog_cxx_g=yes
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759 $as_echo "$ac_try_echo") >&5
3760 (eval "$ac_compile") 2>conftest.er1
3762 grep -v '^ *+' conftest.er1 >conftest.err
3764 cat conftest.err >&5
3765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_cxx_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest.$ac_objext; then
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_cxx_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3810 ac_cv_prog_cxx_g=yes
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3828 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3829 if test "$ac_test_CXXFLAGS" = set; then
3830 CXXFLAGS=$ac_save_CXXFLAGS
3831 elif test $ac_cv_prog_cxx_g = yes; then
3832 if test "$GXX" = yes; then
3838 if test "$GXX" = yes; then
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 if test "x$CC" != xcc; then
3851 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3852 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3854 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3855 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3857 set dummy $CC; ac_cc=`$as_echo "$2" |
3858 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3859 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3860 $as_echo_n "(cached) " >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3877 # Make sure it works both with $CC and with simple cc.
3878 # We do the test twice because some compilers refuse to overwrite an
3879 # existing .o file with -o, though they will create one.
3880 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3882 if { (case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3887 $as_echo "$ac_try_echo") >&5
3888 (eval "$ac_try") 2>&5
3890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_try") 2>&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); };
3903 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3904 if test "x$CC" != xcc; then
3905 # Test first that cc exists at all.
3906 if { ac_try='cc -c conftest.$ac_ext >&5'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913 (eval "$ac_try") 2>&5
3915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3919 if { (case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925 (eval "$ac_try") 2>&5
3927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3934 $as_echo "$ac_try_echo") >&5
3935 (eval "$ac_try") 2>&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); };
3943 # cc exists but doesn't like -o.
3944 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3949 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3951 rm -f core conftest*
3954 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3955 { $as_echo "$as_me:$LINENO: result: yes" >&5
3956 $as_echo "yes" >&6; }
3958 { $as_echo "$as_me:$LINENO: result: no" >&5
3959 $as_echo "no" >&6; }
3961 cat >>confdefs.h <<\_ACEOF
3962 #define NO_MINUS_C_MINUS_O 1
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3974 # On Suns, sometimes $CPP names a directory.
3975 if test -n "$CPP" && test -d "$CPP"; then
3978 if test -z "$CPP"; then
3979 if test "${ac_cv_prog_CPP+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3982 # Double quotes because CPP needs to be expanded
3983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3986 for ac_c_preproc_warn_flag in '' yes
3988 # Use a header file that comes with gcc, so configuring glibc
3989 # with a fresh cross-compiler works.
3990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 # <limits.h> exists even on freestanding compilers.
3992 # On the NeXT, cc -E runs the code through the compiler's parser,
3993 # not just through cpp. "Syntax error" is here to catch this case.
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4001 # include <limits.h>
4003 # include <assert.h>
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4013 $as_echo "$ac_try_echo") >&5
4014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Broken: fails on valid input.
4033 rm -f conftest.err conftest.$ac_ext
4035 # OK, works on sane cases. Now check whether nonexistent headers
4036 # can be detected and how.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <ac_nonexistent.h>
4045 if { (ac_try="$ac_cpp conftest.$ac_ext"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } >/dev/null && {
4059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4062 # Broken: success on invalid input.
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 # Passes both tests.
4073 rm -f conftest.err conftest.$ac_ext
4076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4077 rm -f conftest.err conftest.$ac_ext
4078 if $ac_preproc_ok; then
4090 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4091 $as_echo "$CPP" >&6; }
4093 for ac_c_preproc_warn_flag in '' yes
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if { (ac_try="$ac_cpp conftest.$ac_ext"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4120 $as_echo "$ac_try_echo") >&5
4121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } >/dev/null && {
4128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4129 test ! -s conftest.err
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 # Broken: fails on valid input.
4140 rm -f conftest.err conftest.$ac_ext
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4152 if { (ac_try="$ac_cpp conftest.$ac_ext"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } >/dev/null && {
4166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4169 # Broken: success on invalid input.
4172 $as_echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 # Passes both tests.
4180 rm -f conftest.err conftest.$ac_ext
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.err conftest.$ac_ext
4185 if $ac_preproc_ok; then
4188 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4191 See \`config.log' for more details." >&5
4192 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details." >&2;}
4194 { (exit 1); exit 1; }; }; }
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if test "${ac_cv_path_GREP+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 $as_echo_n 0123456789 >"conftest.in"
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 ac_count=`expr $ac_count + 1`
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 $ac_path_GREP_found && break 3
4254 if test -z "$ac_cv_path_GREP"; then
4255 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4256 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4257 { (exit 1); exit 1; }; }
4260 ac_cv_path_GREP=$GREP
4264 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266 GREP="$ac_cv_path_GREP"
4269 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if test "${ac_cv_path_EGREP+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275 then ac_cv_path_EGREP="$GREP -E"
4277 if test -z "$EGREP"; then
4278 ac_path_EGREP_found=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in egrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290 # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296 $as_echo_n 0123456789 >"conftest.in"
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo 'EGREP' >> "conftest.nl"
4303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 ac_count=`expr $ac_count + 1`
4306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP="$ac_path_EGREP"
4309 ac_path_EGREP_max=$ac_count
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317 $ac_path_EGREP_found && break 3
4322 if test -z "$ac_cv_path_EGREP"; then
4323 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4324 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4325 { (exit 1); exit 1; }; }
4328 ac_cv_path_EGREP=$EGREP
4333 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4334 $as_echo "$ac_cv_path_EGREP" >&6; }
4335 EGREP="$ac_cv_path_EGREP"
4338 if test $ac_cv_c_compiler_gnu = yes; then
4339 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4340 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4341 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4342 $as_echo_n "(cached) " >&6
4344 ac_pattern="Autoconf.*'x'"
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4355 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4356 ac_cv_prog_gcc_traditional=yes
4358 ac_cv_prog_gcc_traditional=no
4363 if test $ac_cv_prog_gcc_traditional = no; then
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4374 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4375 ac_cv_prog_gcc_traditional=yes
4381 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4382 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4383 if test $ac_cv_prog_gcc_traditional = yes; then
4384 CC="$CC -traditional"
4388 BASECC=`basename $CC`
4390 if test "x$BASECC" = xgcc; then
4391 cat >>confdefs.h <<\_ACEOF
4397 # Extract the first word of "$CXX", so it can be a program name with args.
4398 set dummy $CXX; ac_word=$2
4399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_path_CXX+set}" = set; then
4402 $as_echo_n "(cached) " >&6
4406 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4429 if test -n "$CXX"; then
4430 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4433 { $as_echo "$as_me:$LINENO: result: no" >&5
4434 $as_echo "no" >&6; }
4438 if test ! -e $CXX; then
4439 { { $as_echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4440 $as_echo "$as_me: error: Unable to find C++ compiler" >&2;}
4441 { (exit 1); exit 1; }; }
4444 # Find a good install program. We prefer a C program (faster),
4445 # so one script is as good as another. But avoid the broken or
4446 # incompatible versions:
4447 # SysV /etc/install, /usr/sbin/install
4448 # SunOS /usr/etc/install
4449 # IRIX /sbin/install
4451 # AmigaOS /C/install, which installs bootblocks on floppy discs
4452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4455 # OS/2's system install, which has a completely different semantic
4456 # ./install, which can be erroneously created by make from ./install.sh.
4457 # Reject install programs that cannot install multiple files.
4458 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4460 if test -z "$INSTALL"; then
4461 if test "${ac_cv_path_install+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 # Account for people who put trailing slashes in PATH elements.
4471 ./ | .// | /cC/* | \
4472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4473 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4476 # OSF1 and SCO ODT 3.0 have their own names for install.
4477 # Don't use installbsd from OSF since it installs stuff as root
4479 for ac_prog in ginstall scoinst install; do
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4482 if test $ac_prog = install &&
4483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4484 # AIX install. It has an incompatible calling convention.
4486 elif test $ac_prog = install &&
4487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4488 # program-specific install script used by HP pwplus--don't use.
4491 rm -rf conftest.one conftest.two conftest.dir
4492 echo one > conftest.one
4493 echo two > conftest.two
4495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4496 test -s conftest.one && test -s conftest.two &&
4497 test -s conftest.dir/conftest.one &&
4498 test -s conftest.dir/conftest.two
4500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4513 rm -rf conftest.one conftest.two conftest.dir
4516 if test "${ac_cv_path_install+set}" = set; then
4517 INSTALL=$ac_cv_path_install
4519 # As a last resort, use the slow shell script. Don't cache a
4520 # value for INSTALL within a source directory, because that will
4521 # break other packages using the cache if that directory is
4522 # removed, or if the value is a relative name.
4523 INSTALL=$ac_install_sh
4526 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4527 $as_echo "$INSTALL" >&6; }
4529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4530 # It thinks the first close brace ends the variable substitution.
4531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4537 # Extract the first word of "mv", so it can be a program name with args.
4538 set dummy mv; ac_word=$2
4539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_path_MV+set}" = set; then
4542 $as_echo_n "(cached) " >&6
4546 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4569 if test -n "$MV"; then
4570 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4571 $as_echo "$MV" >&6; }
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4578 # Extract the first word of "rm", so it can be a program name with args.
4579 set dummy rm; ac_word=$2
4580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_path_REMOVE+set}" = set; then
4583 $as_echo_n "(cached) " >&6
4587 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4609 REMOVE=$ac_cv_path_REMOVE
4610 if test -n "$REMOVE"; then
4611 { $as_echo "$as_me:$LINENO: result: $REMOVE" >&5
4612 $as_echo "$REMOVE" >&6; }
4614 { $as_echo "$as_me:$LINENO: result: no" >&5
4615 $as_echo "no" >&6; }
4619 # Extract the first word of "cp", so it can be a program name with args.
4620 set dummy cp; ac_word=$2
4621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_path_CP+set}" = set; then
4624 $as_echo_n "(cached) " >&6
4628 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4651 if test -n "$CP"; then
4652 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4653 $as_echo "$CP" >&6; }
4655 { $as_echo "$as_me:$LINENO: result: no" >&5
4656 $as_echo "no" >&6; }
4660 # Extract the first word of "sed", so it can be a program name with args.
4661 set dummy sed; ac_word=$2
4662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_path_SED+set}" = set; then
4665 $as_echo_n "(cached) " >&6
4669 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4692 if test -n "$SED"; then
4693 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4694 $as_echo "$SED" >&6; }
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4701 # Extract the first word of "echo", so it can be a program name with args.
4702 set dummy echo; ac_word=$2
4703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_path_ECHO+set}" = set; then
4706 $as_echo_n "(cached) " >&6
4710 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4732 ECHO=$ac_cv_path_ECHO
4733 if test -n "$ECHO"; then
4734 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4735 $as_echo "$ECHO" >&6; }
4737 { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4742 # Extract the first word of "cmp", so it can be a program name with args.
4743 set dummy cmp; ac_word=$2
4744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_path_CMP+set}" = set; then
4747 $as_echo_n "(cached) " >&6
4751 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4774 if test -n "$CMP"; then
4775 { $as_echo "$as_me:$LINENO: result: $CMP" >&5
4776 $as_echo "$CMP" >&6; }
4778 { $as_echo "$as_me:$LINENO: result: no" >&5
4779 $as_echo "no" >&6; }
4783 # Extract the first word of "tbl", so it can be a program name with args.
4784 set dummy tbl; ac_word=$2
4785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_path_TBL+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4792 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4815 if test -n "$TBL"; then
4816 { $as_echo "$as_me:$LINENO: result: $TBL" >&5
4817 $as_echo "$TBL" >&6; }
4819 { $as_echo "$as_me:$LINENO: result: no" >&5
4820 $as_echo "no" >&6; }
4824 # Extract the first word of "ar", so it can be a program name with args.
4825 set dummy ar; ac_word=$2
4826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_path_AR+set}" = set; then
4829 $as_echo_n "(cached) " >&6
4833 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4856 if test -n "$AR"; then
4857 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4858 $as_echo "$AR" >&6; }
4860 { $as_echo "$as_me:$LINENO: result: no" >&5
4861 $as_echo "no" >&6; }
4865 # Extract the first word of "openssl", so it can be a program name with args.
4866 set dummy openssl; ac_word=$2
4867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_path_OPENSSL+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4874 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4896 OPENSSL=$ac_cv_path_OPENSSL
4897 if test -n "$OPENSSL"; then
4898 { $as_echo "$as_me:$LINENO: result: $OPENSSL" >&5
4899 $as_echo "$OPENSSL" >&6; }
4901 { $as_echo "$as_me:$LINENO: result: no" >&5
4902 $as_echo "no" >&6; }
4906 # Extract the first word of "mtx", so it can be a program name with args.
4907 set dummy mtx; ac_word=$2
4908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_path_MTX+set}" = set; then
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4938 if test -n "$MTX"; then
4939 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
4940 $as_echo "$MTX" >&6; }
4942 { $as_echo "$as_me:$LINENO: result: no" >&5
4943 $as_echo "no" >&6; }
4947 # Extract the first word of "dd", so it can be a program name with args.
4948 set dummy dd; ac_word=$2
4949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_path_DD+set}" = set; then
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4979 if test -n "$DD"; then
4980 { $as_echo "$as_me:$LINENO: result: $DD" >&5
4981 $as_echo "$DD" >&6; }
4983 { $as_echo "$as_me:$LINENO: result: no" >&5
4984 $as_echo "no" >&6; }
4988 # Extract the first word of "mkisofs", so it can be a program name with args.
4989 set dummy mkisofs; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_path_MKISOFS+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5019 MKISOFS=$ac_cv_path_MKISOFS
5020 if test -n "$MKISOFS"; then
5021 { $as_echo "$as_me:$LINENO: result: $MKISOFS" >&5
5022 $as_echo "$MKISOFS" >&6; }
5024 { $as_echo "$as_me:$LINENO: result: no" >&5
5025 $as_echo "no" >&6; }
5029 # Extract the first word of "python", so it can be a program name with args.
5030 set dummy python; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_path_PYTHON+set}" = set; then
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5060 PYTHON=$ac_cv_path_PYTHON
5061 if test -n "$PYTHON"; then
5062 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5063 $as_echo "$PYTHON" >&6; }
5065 { $as_echo "$as_me:$LINENO: result: no" >&5
5066 $as_echo "no" >&6; }
5070 # Extract the first word of "growisofs", so it can be a program name with args.
5071 set dummy growisofs; ac_word=$2
5072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_GROWISOFS+set}" = set; then
5075 $as_echo_n "(cached) " >&6
5079 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5101 GROWISOFS=$ac_cv_path_GROWISOFS
5102 if test -n "$GROWISOFS"; then
5103 { $as_echo "$as_me:$LINENO: result: $GROWISOFS" >&5
5104 $as_echo "$GROWISOFS" >&6; }
5106 { $as_echo "$as_me:$LINENO: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5112 set dummy dvd+rw-mediainfo; ac_word=$2
5113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
5116 $as_echo_n "(cached) " >&6
5118 case $DVDRWMEDIAINFO in
5120 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5142 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5143 if test -n "$DVDRWMEDIAINFO"; then
5144 { $as_echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
5145 $as_echo "$DVDRWMEDIAINFO" >&6; }
5147 { $as_echo "$as_me:$LINENO: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5153 set dummy dvd+rw-format; ac_word=$2
5154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
5157 $as_echo_n "(cached) " >&6
5159 case $DVDRWFORMAT in
5161 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5183 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5184 if test -n "$DVDRWFORMAT"; then
5185 { $as_echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5186 $as_echo "$DVDRWFORMAT" >&6; }
5188 { $as_echo "$as_me:$LINENO: result: no" >&5
5189 $as_echo "no" >&6; }
5193 # Extract the first word of "pkg-config", so it can be a program name with args.
5194 set dummy pkg-config; ac_word=$2
5195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5198 $as_echo_n "(cached) " >&6
5202 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5224 PKGCONFIG=$ac_cv_path_PKGCONFIG
5225 if test -n "$PKGCONFIG"; then
5226 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5227 $as_echo "$PKGCONFIG" >&6; }
5229 { $as_echo "$as_me:$LINENO: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "qmake", so it can be a program name with args.
5235 set dummy qmake; ac_word=$2
5236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_QMAKE+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5265 QMAKE=$ac_cv_path_QMAKE
5266 if test -n "$QMAKE"; then
5267 { $as_echo "$as_me:$LINENO: result: $QMAKE" >&5
5268 $as_echo "$QMAKE" >&6; }
5270 { $as_echo "$as_me:$LINENO: result: no" >&5
5271 $as_echo "no" >&6; }
5275 # Extract the first word of "gmake", so it can be a program name with args.
5276 set dummy gmake; ac_word=$2
5277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_path_GMAKE+set}" = set; then
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5306 GMAKE=$ac_cv_path_GMAKE
5307 if test -n "$GMAKE"; then
5308 { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5
5309 $as_echo "$GMAKE" >&6; }
5311 { $as_echo "$as_me:$LINENO: result: no" >&5
5312 $as_echo "no" >&6; }
5317 if test "x$WXCONFIG" = x; then
5320 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5321 set dummy ${WXCONFIG}; ac_word=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5329 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5351 WXCONFIG=$ac_cv_path_WXCONFIG
5352 if test -n "$WXCONFIG"; then
5353 { $as_echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5354 $as_echo "$WXCONFIG" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5362 # Extract the first word of "cdrecord", so it can be a program name with args.
5363 set dummy cdrecord; ac_word=$2
5364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_CDRECORD+set}" = set; then
5367 $as_echo_n "(cached) " >&6
5371 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5393 CDRECORD=$ac_cv_path_CDRECORD
5394 if test -n "$CDRECORD"; then
5395 { $as_echo "$as_me:$LINENO: result: $CDRECORD" >&5
5396 $as_echo "$CDRECORD" >&6; }
5398 { $as_echo "$as_me:$LINENO: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "pidof", so it can be a program name with args.
5404 set dummy pidof; ac_word=$2
5405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_PIDOF+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5412 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5434 PIDOF=$ac_cv_path_PIDOF
5435 if test -n "$PIDOF"; then
5436 { $as_echo "$as_me:$LINENO: result: $PIDOF" >&5
5437 $as_echo "$PIDOF" >&6; }
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5444 for ac_prog in gawk mawk nawk awk
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_AWK+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$AWK"; then
5454 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_AWK="$ac_prog"
5464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 if test -n "$AWK"; then
5475 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5476 $as_echo "$AWK" >&6; }
5478 { $as_echo "$as_me:$LINENO: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$AWK" && break
5486 # Some AWK programs fail, so test it and warn the user
5487 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5488 { if ((prog == $2) || (("(" prog ")") == $2) ||
5489 (("" prog "") == $2) ||
5490 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5492 { { $as_echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5493 The regex engine of $AWK is too broken to be used you
5494 might want to install GNU AWK.
5495 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5496 $as_echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5497 The regex engine of $AWK is too broken to be used you
5498 might want to install GNU AWK.
5499 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5500 { (exit 1); exit 1; }; }
5503 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5504 set dummy $THE_AWK; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_path_AWK+set}" = set; then
5508 $as_echo_n "(cached) " >&6
5512 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5535 if test -n "$AWK"; then
5536 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5537 $as_echo "$AWK" >&6; }
5539 { $as_echo "$as_me:$LINENO: result: no" >&5
5540 $as_echo "no" >&6; }
5546 test -n "$ARFLAG" || ARFLAGS="cr"
5558 # Check whether --enable-libtool was given.
5559 if test "${enable_libtool+set}" = set; then
5560 enableval=$enable_libtool;
5561 if test x$enableval = xno; then
5570 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5571 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5576 macro_version='2.2.6'
5577 macro_revision='1.3012'
5591 ltmain="$ac_aux_dir/ltmain.sh"
5593 # Make sure we can run config.sub.
5594 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5595 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5596 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5597 { (exit 1); exit 1; }; }
5599 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5600 $as_echo_n "checking build system type... " >&6; }
5601 if test "${ac_cv_build+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5604 ac_build_alias=$build_alias
5605 test "x$ac_build_alias" = x &&
5606 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5607 test "x$ac_build_alias" = x &&
5608 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5609 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5610 { (exit 1); exit 1; }; }
5611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5612 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5613 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5614 { (exit 1); exit 1; }; }
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5618 $as_echo "$ac_cv_build" >&6; }
5619 case $ac_cv_build in
5621 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5622 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5623 { (exit 1); exit 1; }; };;
5626 ac_save_IFS=$IFS; IFS='-'
5632 # Remember, the first character of IFS is used to create $*,
5633 # except with old shells:
5636 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5639 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5640 $as_echo_n "checking host system type... " >&6; }
5641 if test "${ac_cv_host+set}" = set; then
5642 $as_echo_n "(cached) " >&6
5644 if test "x$host_alias" = x; then
5645 ac_cv_host=$ac_cv_build
5647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5648 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5649 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5650 { (exit 1); exit 1; }; }
5654 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5655 $as_echo "$ac_cv_host" >&6; }
5658 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5659 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5660 { (exit 1); exit 1; }; };;
5663 ac_save_IFS=$IFS; IFS='-'
5669 # Remember, the first character of IFS is used to create $*,
5670 # except with old shells:
5673 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5676 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5677 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5678 if test "${ac_cv_path_SED+set}" = set; then
5679 $as_echo_n "(cached) " >&6
5681 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5682 for ac_i in 1 2 3 4 5 6 7; do
5683 ac_script="$ac_script$as_nl$ac_script"
5685 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5686 $as_unset ac_script || ac_script=
5687 if test -z "$SED"; then
5688 ac_path_SED_found=false
5689 # Loop through the user's path and test for each of PROGNAME-LIST
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_prog in sed gsed; do
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5698 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5699 # Check for GNU ac_path_SED and select it if it is found.
5700 # Check for GNU $ac_path_SED
5701 case `"$ac_path_SED" --version 2>&1` in
5703 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5706 $as_echo_n 0123456789 >"conftest.in"
5709 cat "conftest.in" "conftest.in" >"conftest.tmp"
5710 mv "conftest.tmp" "conftest.in"
5711 cp "conftest.in" "conftest.nl"
5712 $as_echo '' >> "conftest.nl"
5713 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715 ac_count=`expr $ac_count + 1`
5716 if test $ac_count -gt ${ac_path_SED_max-0}; then
5717 # Best one so far, save it but keep looking for a better one
5718 ac_cv_path_SED="$ac_path_SED"
5719 ac_path_SED_max=$ac_count
5721 # 10*(2^10) chars as input seems more than enough
5722 test $ac_count -gt 10 && break
5724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5727 $ac_path_SED_found && break 3
5732 if test -z "$ac_cv_path_SED"; then
5733 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5734 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5735 { (exit 1); exit 1; }; }
5742 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5743 $as_echo "$ac_cv_path_SED" >&6; }
5744 SED="$ac_cv_path_SED"
5747 test -z "$SED" && SED=sed
5748 Xsed="$SED -e 1s/^X//"
5760 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5761 $as_echo_n "checking for fgrep... " >&6; }
5762 if test "${ac_cv_path_FGREP+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5765 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5766 then ac_cv_path_FGREP="$GREP -F"
5768 if test -z "$FGREP"; then
5769 ac_path_FGREP_found=false
5770 # Loop through the user's path and test for each of PROGNAME-LIST
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775 test -z "$as_dir" && as_dir=.
5776 for ac_prog in fgrep; do
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5779 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5780 # Check for GNU ac_path_FGREP and select it if it is found.
5781 # Check for GNU $ac_path_FGREP
5782 case `"$ac_path_FGREP" --version 2>&1` in
5784 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5787 $as_echo_n 0123456789 >"conftest.in"
5790 cat "conftest.in" "conftest.in" >"conftest.tmp"
5791 mv "conftest.tmp" "conftest.in"
5792 cp "conftest.in" "conftest.nl"
5793 $as_echo 'FGREP' >> "conftest.nl"
5794 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5796 ac_count=`expr $ac_count + 1`
5797 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5798 # Best one so far, save it but keep looking for a better one
5799 ac_cv_path_FGREP="$ac_path_FGREP"
5800 ac_path_FGREP_max=$ac_count
5802 # 10*(2^10) chars as input seems more than enough
5803 test $ac_count -gt 10 && break
5805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808 $ac_path_FGREP_found && break 3
5813 if test -z "$ac_cv_path_FGREP"; then
5814 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5815 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5816 { (exit 1); exit 1; }; }
5819 ac_cv_path_FGREP=$FGREP
5824 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5825 $as_echo "$ac_cv_path_FGREP" >&6; }
5826 FGREP="$ac_cv_path_FGREP"
5829 test -z "$GREP" && GREP=grep
5849 # Check whether --with-gnu-ld was given.
5850 if test "${with_gnu_ld+set}" = set; then
5851 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5857 if test "$GCC" = yes; then
5858 # Check if gcc -print-prog-name=ld gives a path.
5859 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5860 $as_echo_n "checking for ld used by $CC... " >&6; }
5863 # gcc leaves a trailing carriage return which upsets mingw
5864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5869 # Accept absolute paths.
5871 re_direlt='/[^/][^/]*/\.\./'
5872 # Canonicalize the pathname of ld
5873 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5874 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5875 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5877 test -z "$LD" && LD="$ac_prog"
5880 # If it fails, then pretend we aren't using GCC.
5884 # If it is relative, then search for the first ld in PATH.
5888 elif test "$with_gnu_ld" = yes; then
5889 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5890 $as_echo_n "checking for GNU ld... " >&6; }
5892 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5893 $as_echo_n "checking for non-GNU ld... " >&6; }
5895 if test "${lt_cv_path_LD+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5898 if test -z "$LD"; then
5899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5900 for ac_dir in $PATH; do
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5904 lt_cv_path_LD="$ac_dir/$ac_prog"
5905 # Check to see if the program is GNU ld. I'd rather use --version,
5906 # but apparently some variants of GNU ld only accept -v.
5907 # Break only if it was the GNU/non-GNU ld that we prefer.
5908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5909 *GNU* | *'with BFD'*)
5910 test "$with_gnu_ld" != no && break
5913 test "$with_gnu_ld" != yes && break
5920 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5925 if test -n "$LD"; then
5926 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5927 $as_echo "$LD" >&6; }
5929 { $as_echo "$as_me:$LINENO: result: no" >&5
5930 $as_echo "no" >&6; }
5932 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5933 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5934 { (exit 1); exit 1; }; }
5935 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5936 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5937 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5938 $as_echo_n "(cached) " >&6
5940 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5941 case `$LD -v 2>&1 </dev/null` in
5942 *GNU* | *'with BFD'*)
5943 lt_cv_prog_gnu_ld=yes
5946 lt_cv_prog_gnu_ld=no
5950 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5951 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5952 with_gnu_ld=$lt_cv_prog_gnu_ld
5962 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5963 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5964 if test "${lt_cv_path_NM+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$NM"; then
5968 # Let the user override the test.
5971 lt_nm_to_check="${ac_tool_prefix}nm"
5972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973 lt_nm_to_check="$lt_nm_to_check nm"
5975 for lt_tmp_nm in $lt_nm_to_check; do
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5979 test -z "$ac_dir" && ac_dir=.
5980 tmp_nm="$ac_dir/$lt_tmp_nm"
5981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982 # Check to see if the nm accepts a BSD-compat flag.
5983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984 # nm: unknown option "B" ignored
5985 # Tru64's nm complains that /dev/null is an invalid object file
5986 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987 */dev/null* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5994 lt_cv_path_NM="$tmp_nm -p"
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6008 : ${lt_cv_path_NM=no}
6011 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6012 $as_echo "$lt_cv_path_NM" >&6; }
6013 if test "$lt_cv_path_NM" != "no"; then
6016 # Didn't find any BSD compatible name lister, look for dumpbin.
6017 if test -n "$ac_tool_prefix"; then
6018 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6025 $as_echo_n "(cached) " >&6
6027 if test -n "$DUMPBIN"; then
6028 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 DUMPBIN=$ac_cv_prog_DUMPBIN
6048 if test -n "$DUMPBIN"; then
6049 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6050 $as_echo "$DUMPBIN" >&6; }
6052 { $as_echo "$as_me:$LINENO: result: no" >&5
6053 $as_echo "no" >&6; }
6057 test -n "$DUMPBIN" && break
6060 if test -z "$DUMPBIN"; then
6061 ac_ct_DUMPBIN=$DUMPBIN
6062 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6071 if test -n "$ac_ct_DUMPBIN"; then
6072 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6092 if test -n "$ac_ct_DUMPBIN"; then
6093 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6094 $as_echo "$ac_ct_DUMPBIN" >&6; }
6096 { $as_echo "$as_me:$LINENO: result: no" >&5
6097 $as_echo "no" >&6; }
6101 test -n "$ac_ct_DUMPBIN" && break
6104 if test "x$ac_ct_DUMPBIN" = x; then
6107 case $cross_compiling:$ac_tool_warned in
6109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6113 DUMPBIN=$ac_ct_DUMPBIN
6118 if test "$DUMPBIN" != ":"; then
6122 test -z "$NM" && NM=nm
6129 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6130 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6131 if test "${lt_cv_nm_interface+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6134 lt_cv_nm_interface="BSD nm"
6135 echo "int some_variable = 0;" > conftest.$ac_ext
6136 (eval echo "\"\$as_me:6136: $ac_compile\"" >&5)
6137 (eval "$ac_compile" 2>conftest.err)
6138 cat conftest.err >&5
6139 (eval echo "\"\$as_me:6139: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6140 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6141 cat conftest.err >&5
6142 (eval echo "\"\$as_me:6142: output\"" >&5)
6143 cat conftest.out >&5
6144 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6145 lt_cv_nm_interface="MS dumpbin"
6149 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6150 $as_echo "$lt_cv_nm_interface" >&6; }
6152 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6153 $as_echo_n "checking whether ln -s works... " >&6; }
6155 if test "$LN_S" = "ln -s"; then
6156 { $as_echo "$as_me:$LINENO: result: yes" >&5
6157 $as_echo "yes" >&6; }
6159 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6160 $as_echo "no, using $LN_S" >&6; }
6163 # find the maximum length of command line arguments
6164 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6166 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6174 # On DJGPP, this test can blow up pretty badly due to problems in libc
6175 # (any single argument exceeding 2000 bytes causes a buffer overrun
6176 # during glob expansion). Even if it were fixed, the result of this
6177 # check would be larger than it should be.
6178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6182 # Under GNU Hurd, this test is not required because there is
6183 # no limit to the length of command line arguments.
6184 # Libtool will interpret -1 as no limit whatsoever
6185 lt_cv_sys_max_cmd_len=-1;
6188 cygwin* | mingw* | cegcc*)
6189 # On Win9x/ME, this test blows up -- it succeeds, but takes
6190 # about 5 minutes as the teststring grows exponentially.
6191 # Worse, since 9x/ME are not pre-emptively multitasking,
6192 # you end up with a "frozen" computer, even though with patience
6193 # the test eventually succeeds (with a max line length of 256k).
6194 # Instead, let's just punt: use the minimum linelength reported by
6195 # all of the supported platforms: 8192 (on NT/2K/XP).
6196 lt_cv_sys_max_cmd_len=8192;
6200 # On AmigaOS with pdksh, this test takes hours, literally.
6201 # So we just punt and use a minimum line length of 8192.
6202 lt_cv_sys_max_cmd_len=8192;
6205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206 # This has been around since 386BSD, at least. Likely further.
6207 if test -x /sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209 elif test -x /usr/sbin/sysctl; then
6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6214 # And add a safety zone
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221 lt_cv_sys_max_cmd_len=196608
6225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227 # nice to cause kernel panics so lets avoid the loop below.
6228 # First set a reasonable default.
6229 lt_cv_sys_max_cmd_len=16384
6231 if test -x /sbin/sysconfig; then
6232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6238 lt_cv_sys_max_cmd_len=102400
6240 sysv5* | sco5v6* | sysv4.2uw2*)
6241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242 if test -n "$kargmax"; then
6243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6245 lt_cv_sys_max_cmd_len=32768
6249 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6250 if test -n "$lt_cv_sys_max_cmd_len"; then
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254 # Make teststring a little bigger before we do anything with it.
6255 # a 1K string should be a reasonable start.
6256 for i in 1 2 3 4 5 6 7 8 ; do
6257 teststring=$teststring$teststring
6259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6260 # If test is not a shell built-in, we'll probably end up computing a
6261 # maximum length that is only half of the actual maximum length, but
6263 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6264 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6265 test $i != 17 # 1/2 MB should be enough
6268 teststring=$teststring$teststring
6270 # Only check the string length outside the loop.
6271 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6273 # Add a significant safety factor because C++ compilers can tack on
6274 # massive amounts of additional arguments before passing them to the
6275 # linker. It appears as though 1/2 is a usable value.
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6283 if test -n $lt_cv_sys_max_cmd_len ; then
6284 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6285 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6287 { $as_echo "$as_me:$LINENO: result: none" >&5
6288 $as_echo "none" >&6; }
6290 max_cmd_len=$lt_cv_sys_max_cmd_len
6301 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6302 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6303 # Try some XSI features
6306 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6308 && eval 'test $(( 1 + 1 )) -eq 2 \
6309 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6311 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6312 $as_echo "$xsi_shell" >&6; }
6315 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6316 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6318 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6320 && lt_shell_append=yes
6321 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6322 $as_echo "$lt_shell_append" >&6; }
6325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6335 # test EBCDIC or ASCII
6336 case `echo X|tr X '\101'` in
6337 A) # ASCII based system
6338 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6339 lt_SP2NL='tr \040 \012'
6340 lt_NL2SP='tr \015\012 \040\040'
6342 *) # EBCDIC based system
6343 lt_SP2NL='tr \100 \n'
6344 lt_NL2SP='tr \r\n \100\100'
6356 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6357 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6358 if test "${lt_cv_ld_reload_flag+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6361 lt_cv_ld_reload_flag='-r'
6363 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6364 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6365 reload_flag=$lt_cv_ld_reload_flag
6366 case $reload_flag in
6368 *) reload_flag=" $reload_flag" ;;
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6373 if test "$GCC" = yes; then
6374 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6389 if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$OBJDUMP"; then
6398 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 OBJDUMP=$ac_cv_prog_OBJDUMP
6418 if test -n "$OBJDUMP"; then
6419 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6420 $as_echo "$OBJDUMP" >&6; }
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6428 if test -z "$ac_cv_prog_OBJDUMP"; then
6429 ac_ct_OBJDUMP=$OBJDUMP
6430 # Extract the first word of "objdump", so it can be a program name with args.
6431 set dummy objdump; ac_word=$2
6432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$ac_ct_OBJDUMP"; then
6438 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6458 if test -n "$ac_ct_OBJDUMP"; then
6459 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6460 $as_echo "$ac_ct_OBJDUMP" >&6; }
6462 { $as_echo "$as_me:$LINENO: result: no" >&5
6463 $as_echo "no" >&6; }
6466 if test "x$ac_ct_OBJDUMP" = x; then
6469 case $cross_compiling:$ac_tool_warned in
6471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6475 OBJDUMP=$ac_ct_OBJDUMP
6478 OBJDUMP="$ac_cv_prog_OBJDUMP"
6481 test -z "$OBJDUMP" && OBJDUMP=objdump
6491 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6492 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6493 if test "${lt_cv_deplibs_check_method+set}" = set; then
6494 $as_echo_n "(cached) " >&6
6496 lt_cv_file_magic_cmd='$MAGIC_CMD'
6497 lt_cv_file_magic_test_file=
6498 lt_cv_deplibs_check_method='unknown'
6499 # Need to set the preceding variable on all platforms that support
6500 # interlibrary dependencies.
6501 # 'none' -- dependencies not supported.
6502 # `unknown' -- same as none, but documents that we really don't know.
6503 # 'pass_all' -- all dependencies passed with no checks.
6504 # 'test_compile' -- check by making test program.
6505 # 'file_magic [[regex]]' -- check by looking for files in library path
6506 # which responds to the $file_magic_cmd with a given extended regex.
6507 # If you have `file' or equivalent on your system and you're not sure
6508 # whether `pass_all' will *always* work, you probably want this one.
6512 lt_cv_deplibs_check_method=pass_all
6516 lt_cv_deplibs_check_method=pass_all
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6521 lt_cv_file_magic_cmd='/usr/bin/file -L'
6522 lt_cv_file_magic_test_file=/shlib/libc.so
6526 # func_win32_libid is a shell function defined in ltmain.sh
6527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528 lt_cv_file_magic_cmd='func_win32_libid'
6532 # Base MSYS/MinGW do not provide the 'file' command needed by
6533 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6534 # unless we find 'file', for example because we are cross-compiling.
6535 if ( file / ) >/dev/null 2>&1; then
6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537 lt_cv_file_magic_cmd='func_win32_libid'
6539 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 # use the weaker test based on 'objdump'. See mingw*.
6546 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547 lt_cv_file_magic_cmd='$OBJDUMP -f'
6550 darwin* | rhapsody*)
6551 lt_cv_deplibs_check_method=pass_all
6554 freebsd* | dragonfly*)
6555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6558 # Not sure whether the presence of OpenBSD here was a mistake.
6559 # Let's accept both of them until this is cleared up.
6560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561 lt_cv_file_magic_cmd=/usr/bin/file
6562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6566 lt_cv_deplibs_check_method=pass_all
6571 lt_cv_deplibs_check_method=pass_all
6574 hpux10.20* | hpux11*)
6575 lt_cv_file_magic_cmd=/usr/bin/file
6578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6582 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]'
6583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6597 irix5* | irix6* | nonstopux*)
6599 *-32|*"-32 ") libmagic=32-bit;;
6600 *-n32|*"-n32 ") libmagic=N32;;
6601 *-64|*"-64 ") libmagic=64-bit;;
6602 *) libmagic=never-match;;
6604 lt_cv_deplibs_check_method=pass_all
6607 # This must be Linux ELF.
6608 linux* | k*bsd*-gnu)
6609 lt_cv_deplibs_check_method=pass_all
6613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6622 lt_cv_file_magic_cmd=/usr/bin/file
6623 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627 lt_cv_deplibs_check_method=pass_all
6631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 osf3* | osf4* | osf5*)
6639 lt_cv_deplibs_check_method=pass_all
6643 lt_cv_deplibs_check_method=pass_all
6647 lt_cv_deplibs_check_method=pass_all
6650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6651 lt_cv_deplibs_check_method=pass_all
6655 case $host_vendor in
6657 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]'
6658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6661 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_file_magic_cmd='/bin/file'
6665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6668 lt_cv_file_magic_cmd='/bin/file'
6669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6670 lt_cv_file_magic_test_file=/lib/libc.so
6673 lt_cv_deplibs_check_method=pass_all
6676 lt_cv_deplibs_check_method=pass_all
6682 lt_cv_deplibs_check_method=pass_all
6687 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6689 file_magic_cmd=$lt_cv_file_magic_cmd
6690 deplibs_check_method=$lt_cv_deplibs_check_method
6691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}ar; ac_word=$2
6707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if test "${ac_cv_prog_AR+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$AR"; then
6713 ac_cv_prog_AR="$AR" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_prog_AR="${ac_tool_prefix}ar"
6723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 if test -n "$AR"; then
6734 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6735 $as_echo "$AR" >&6; }
6737 { $as_echo "$as_me:$LINENO: result: no" >&5
6738 $as_echo "no" >&6; }
6743 if test -z "$ac_cv_prog_AR"; then
6745 # Extract the first word of "ar", so it can be a program name with args.
6746 set dummy ar; ac_word=$2
6747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$ac_ct_AR"; then
6753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_ac_ct_AR="ar"
6763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6773 if test -n "$ac_ct_AR"; then
6774 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6775 $as_echo "$ac_ct_AR" >&6; }
6777 { $as_echo "$as_me:$LINENO: result: no" >&5
6778 $as_echo "no" >&6; }
6781 if test "x$ac_ct_AR" = x; then
6784 case $cross_compiling:$ac_tool_warned in
6786 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6796 test -z "$AR" && AR=ar
6797 test -z "$AR_FLAGS" && AR_FLAGS=cru
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}strip; ac_word=$2
6812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_STRIP+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6817 if test -n "$STRIP"; then
6818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 STRIP=$ac_cv_prog_STRIP
6838 if test -n "$STRIP"; then
6839 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6840 $as_echo "$STRIP" >&6; }
6842 { $as_echo "$as_me:$LINENO: result: no" >&5
6843 $as_echo "no" >&6; }
6848 if test -z "$ac_cv_prog_STRIP"; then
6850 # Extract the first word of "strip", so it can be a program name with args.
6851 set dummy strip; ac_word=$2
6852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6855 $as_echo_n "(cached) " >&6
6857 if test -n "$ac_ct_STRIP"; then
6858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_STRIP="strip"
6868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6878 if test -n "$ac_ct_STRIP"; then
6879 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6880 $as_echo "$ac_ct_STRIP" >&6; }
6882 { $as_echo "$as_me:$LINENO: result: no" >&5
6883 $as_echo "no" >&6; }
6886 if test "x$ac_ct_STRIP" = x; then
6889 case $cross_compiling:$ac_tool_warned in
6891 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6898 STRIP="$ac_cv_prog_STRIP"
6901 test -z "$STRIP" && STRIP=:
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_RANLIB+set}" = set; then
6914 $as_echo_n "(cached) " >&6
6916 if test -n "$RANLIB"; then
6917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 RANLIB=$ac_cv_prog_RANLIB
6937 if test -n "$RANLIB"; then
6938 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6939 $as_echo "$RANLIB" >&6; }
6941 { $as_echo "$as_me:$LINENO: result: no" >&5
6942 $as_echo "no" >&6; }
6947 if test -z "$ac_cv_prog_RANLIB"; then
6948 ac_ct_RANLIB=$RANLIB
6949 # Extract the first word of "ranlib", so it can be a program name with args.
6950 set dummy ranlib; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$ac_ct_RANLIB"; then
6957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_ac_ct_RANLIB="ranlib"
6967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6977 if test -n "$ac_ct_RANLIB"; then
6978 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6979 $as_echo "$ac_ct_RANLIB" >&6; }
6981 { $as_echo "$as_me:$LINENO: result: no" >&5
6982 $as_echo "no" >&6; }
6985 if test "x$ac_ct_RANLIB" = x; then
6988 case $cross_compiling:$ac_tool_warned in
6990 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6994 RANLIB=$ac_ct_RANLIB
6997 RANLIB="$ac_cv_prog_RANLIB"
7000 test -z "$RANLIB" && RANLIB=:
7007 # Determine commands to create old-style static archives.
7008 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7009 old_postinstall_cmds='chmod 644 $oldlib'
7010 old_postuninstall_cmds=
7012 if test -n "$RANLIB"; then
7015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7021 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7057 # If no C compiler was specified, use CC.
7060 # If no C compiler flags were specified, use CFLAGS.
7061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063 # Allow CC to be a program name with arguments.
7067 # Check for command to grab the raw symbol name followed by C symbol from nm.
7068 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7069 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7070 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7071 $as_echo_n "(cached) " >&6
7074 # These are sane defaults that work on at least a few old systems.
7075 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7077 # Character class describing NM global symbol codes.
7078 symcode='[BCDEGRST]'
7080 # Regexp to match symbols that can be accessed directly from C.
7081 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7083 # Define system-specific variables.
7088 cygwin* | mingw* | pw32* | cegcc*)
7089 symcode='[ABCDGISTW]'
7092 if test "$host_cpu" = ia64; then
7093 symcode='[ABCDEGRST]'
7097 symcode='[BCDEGRST]'
7100 symcode='[BCDEGQRST]'
7111 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7119 # If we're using GNU nm, then use its standard symbol codes.
7120 case `$NM -V 2>&1` in
7121 *GNU* | *'with BFD'*)
7122 symcode='[ABCDGIRSTW]' ;;
7125 # Transform an extracted symbol line into a proper C declaration.
7126 # Some systems (esp. on ia64) link data and code symbols differently,
7127 # so use this general approach.
7128 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7130 # Transform an extracted symbol line into symbol name and symbol address
7131 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7132 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'"
7134 # Handle CRLF in mingw tool chain
7138 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7142 # Try without a prefix underscore, then with it.
7143 for ac_symprfx in "" "_"; do
7145 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7146 symxfrm="\\1 $ac_symprfx\\2 \\2"
7148 # Write the raw and C identifiers.
7149 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7150 # Fake it for dumpbin and say T for any non-static function
7151 # and D for any global variable.
7152 # Also find C++ and __fastcall symbols from MSVC++,
7153 # which start with @ or ?.
7154 lt_cv_sys_global_symbol_pipe="$AWK '"\
7155 " {last_section=section; section=\$ 3};"\
7156 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7157 " \$ 0!~/External *\|/{next};"\
7158 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7159 " {if(hide[section]) next};"\
7160 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7161 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7162 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7163 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7164 " ' prfx=^$ac_symprfx"
7166 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7169 # Check to see that the pipe works correctly.
7173 cat > conftest.$ac_ext <<_LT_EOF
7178 void nm_test_func(void);
7179 void nm_test_func(void){}
7183 int main(){nm_test_var='a';nm_test_func();return(0);}
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>&5
7189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; then
7191 # Now try to grab the symbols.
7193 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7194 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && test -s "$nlist"; then
7198 # Try sorting and uniquifying the output.
7199 if sort "$nlist" | uniq > "$nlist"T; then
7200 mv -f "$nlist"T "$nlist"
7205 # Make sure that we snagged all the symbols we need.
7206 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7207 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7208 cat <<_LT_EOF > conftest.$ac_ext
7214 # Now generate the symbol file.
7215 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7217 cat <<_LT_EOF >> conftest.$ac_ext
7219 /* The mapping between symbol names and symbols. */
7224 lt__PROGRAM__LTX_preloaded_symbols[] =
7226 { "@PROGRAM@", (void *) 0 },
7228 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7229 cat <<\_LT_EOF >> conftest.$ac_ext
7233 /* This works around a problem in FreeBSD linker */
7234 #ifdef FREEBSD_WORKAROUND
7235 static const void *lt_preloaded_setup() {
7236 return lt__PROGRAM__LTX_preloaded_symbols;
7244 # Now try linking the two files.
7245 mv conftest.$ac_objext conftstm.$ac_objext
7246 lt_save_LIBS="$LIBS"
7247 lt_save_CFLAGS="$CFLAGS"
7248 LIBS="conftstm.$ac_objext"
7249 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>&5
7253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7257 LIBS="$lt_save_LIBS"
7258 CFLAGS="$lt_save_CFLAGS"
7260 echo "cannot find nm_test_func in $nlist" >&5
7263 echo "cannot find nm_test_var in $nlist" >&5
7266 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7269 echo "$progname: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7272 rm -rf conftest* conftst*
7274 # Do not use the global_symbol_pipe unless it works.
7275 if test "$pipe_works" = yes; then
7278 lt_cv_sys_global_symbol_pipe=
7284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7285 lt_cv_sys_global_symbol_to_cdecl=
7287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7288 { $as_echo "$as_me:$LINENO: result: failed" >&5
7289 $as_echo "failed" >&6; }
7291 { $as_echo "$as_me:$LINENO: result: ok" >&5
7292 $as_echo "ok" >&6; }
7316 # Check whether --enable-libtool-lock was given.
7317 if test "${enable_libtool_lock+set}" = set; then
7318 enableval=$enable_libtool_lock;
7321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7323 # Some flags need to be propagated to the compiler or linker for good
7327 # Find out which ABI we are using.
7328 echo 'int i;' > conftest.$ac_ext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; then
7334 case `/usr/bin/file conftest.$ac_objext` in
7346 # Find out which ABI we are using.
7347 echo '#line 7347 "configure"' > conftest.$ac_ext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7349 (eval $ac_compile) 2>&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; then
7353 if test "$lt_cv_prog_gnu_ld" = yes; then
7354 case `/usr/bin/file conftest.$ac_objext` in
7356 LD="${LD-ld} -melf32bsmip"
7359 LD="${LD-ld} -melf32bmipn32"
7362 LD="${LD-ld} -melf64bmip"
7366 case `/usr/bin/file conftest.$ac_objext` in
7382 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7383 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7384 # Find out which ABI we are using.
7385 echo 'int i;' > conftest.$ac_ext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>&5
7389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; then
7391 case `/usr/bin/file conftest.o` in
7394 x86_64-*kfreebsd*-gnu)
7395 LD="${LD-ld} -m elf_i386_fbsd"
7398 LD="${LD-ld} -m elf_i386"
7400 ppc64-*linux*|powerpc64-*linux*)
7401 LD="${LD-ld} -m elf32ppclinux"
7404 LD="${LD-ld} -m elf_s390"
7407 LD="${LD-ld} -m elf32_sparc"
7413 x86_64-*kfreebsd*-gnu)
7414 LD="${LD-ld} -m elf_x86_64_fbsd"
7417 LD="${LD-ld} -m elf_x86_64"
7419 ppc*-*linux*|powerpc*-*linux*)
7420 LD="${LD-ld} -m elf64ppc"
7422 s390*-*linux*|s390*-*tpf*)
7423 LD="${LD-ld} -m elf64_s390"
7426 LD="${LD-ld} -m elf64_sparc"
7436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7437 SAVE_CFLAGS="$CFLAGS"
7438 CFLAGS="$CFLAGS -belf"
7439 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7440 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7441 if test "${lt_cv_cc_needs_belf+set}" = set; then
7442 $as_echo_n "(cached) " >&6
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7472 $as_echo "$ac_try_echo") >&5
7473 (eval "$ac_link") 2>conftest.er1
7475 grep -v '^ *+' conftest.er1 >conftest.err
7477 cat conftest.err >&5
7478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest$ac_exeext && {
7483 test "$cross_compiling" = yes ||
7484 $as_test_x conftest$ac_exeext
7486 lt_cv_cc_needs_belf=yes
7488 $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7491 lt_cv_cc_needs_belf=no
7494 rm -rf conftest.dSYM
7495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7496 conftest$ac_exeext conftest.$ac_ext
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7505 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7508 CFLAGS="$SAVE_CFLAGS"
7512 # Find out which ABI we are using.
7513 echo 'int i;' > conftest.$ac_ext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>&5
7517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; then
7519 case `/usr/bin/file conftest.o` in
7521 case $lt_cv_prog_gnu_ld in
7522 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7536 need_locks="$enable_libtool_lock"
7540 rhapsody* | darwin*)
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$DSYMUTIL"; then
7550 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7570 if test -n "$DSYMUTIL"; then
7571 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7572 $as_echo "$DSYMUTIL" >&6; }
7574 { $as_echo "$as_me:$LINENO: result: no" >&5
7575 $as_echo "no" >&6; }
7580 if test -z "$ac_cv_prog_DSYMUTIL"; then
7581 ac_ct_DSYMUTIL=$DSYMUTIL
7582 # Extract the first word of "dsymutil", so it can be a program name with args.
7583 set dummy dsymutil; ac_word=$2
7584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$ac_ct_DSYMUTIL"; then
7590 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7610 if test -n "$ac_ct_DSYMUTIL"; then
7611 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7612 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7614 { $as_echo "$as_me:$LINENO: result: no" >&5
7615 $as_echo "no" >&6; }
7618 if test "x$ac_ct_DSYMUTIL" = x; then
7621 case $cross_compiling:$ac_tool_warned in
7623 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7627 DSYMUTIL=$ac_ct_DSYMUTIL
7630 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$NMEDIT"; then
7642 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 NMEDIT=$ac_cv_prog_NMEDIT
7662 if test -n "$NMEDIT"; then
7663 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7664 $as_echo "$NMEDIT" >&6; }
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_NMEDIT"; then
7673 ac_ct_NMEDIT=$NMEDIT
7674 # Extract the first word of "nmedit", so it can be a program name with args.
7675 set dummy nmedit; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_NMEDIT"; then
7682 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7702 if test -n "$ac_ct_NMEDIT"; then
7703 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7704 $as_echo "$ac_ct_NMEDIT" >&6; }
7706 { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_NMEDIT" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7719 NMEDIT=$ac_ct_NMEDIT
7722 NMEDIT="$ac_cv_prog_NMEDIT"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_prog_LIPO+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$LIPO"; then
7734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 LIPO=$ac_cv_prog_LIPO
7754 if test -n "$LIPO"; then
7755 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7756 $as_echo "$LIPO" >&6; }
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_LIPO"; then
7766 # Extract the first word of "lipo", so it can be a program name with args.
7767 set dummy lipo; ac_word=$2
7768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_LIPO"; then
7774 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_ac_ct_LIPO="lipo"
7784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7794 if test -n "$ac_ct_LIPO"; then
7795 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7796 $as_echo "$ac_ct_LIPO" >&6; }
7798 { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_LIPO" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7814 LIPO="$ac_cv_prog_LIPO"
7817 if test -n "$ac_tool_prefix"; then
7818 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}otool; ac_word=$2
7820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if test "${ac_cv_prog_OTOOL+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 if test -n "$OTOOL"; then
7826 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 OTOOL=$ac_cv_prog_OTOOL
7846 if test -n "$OTOOL"; then
7847 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7848 $as_echo "$OTOOL" >&6; }
7850 { $as_echo "$as_me:$LINENO: result: no" >&5
7851 $as_echo "no" >&6; }
7856 if test -z "$ac_cv_prog_OTOOL"; then
7858 # Extract the first word of "otool", so it can be a program name with args.
7859 set dummy otool; ac_word=$2
7860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7863 $as_echo_n "(cached) " >&6
7865 if test -n "$ac_ct_OTOOL"; then
7866 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_ac_ct_OTOOL="otool"
7876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7886 if test -n "$ac_ct_OTOOL"; then
7887 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7888 $as_echo "$ac_ct_OTOOL" >&6; }
7890 { $as_echo "$as_me:$LINENO: result: no" >&5
7891 $as_echo "no" >&6; }
7894 if test "x$ac_ct_OTOOL" = x; then
7897 case $cross_compiling:$ac_tool_warned in
7899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7906 OTOOL="$ac_cv_prog_OTOOL"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7915 $as_echo_n "(cached) " >&6
7917 if test -n "$OTOOL64"; then
7918 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 OTOOL64=$ac_cv_prog_OTOOL64
7938 if test -n "$OTOOL64"; then
7939 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7940 $as_echo "$OTOOL64" >&6; }
7942 { $as_echo "$as_me:$LINENO: result: no" >&5
7943 $as_echo "no" >&6; }
7948 if test -z "$ac_cv_prog_OTOOL64"; then
7949 ac_ct_OTOOL64=$OTOOL64
7950 # Extract the first word of "otool64", so it can be a program name with args.
7951 set dummy otool64; ac_word=$2
7952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7957 if test -n "$ac_ct_OTOOL64"; then
7958 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_ac_ct_OTOOL64="otool64"
7968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7978 if test -n "$ac_ct_OTOOL64"; then
7979 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7980 $as_echo "$ac_ct_OTOOL64" >&6; }
7982 { $as_echo "$as_me:$LINENO: result: no" >&5
7983 $as_echo "no" >&6; }
7986 if test "x$ac_ct_OTOOL64" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7995 OTOOL64=$ac_ct_OTOOL64
7998 OTOOL64="$ac_cv_prog_OTOOL64"
8027 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8028 $as_echo_n "checking for -single_module linker flag... " >&6; }
8029 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8030 $as_echo_n "(cached) " >&6
8032 lt_cv_apple_cc_single_mod=no
8033 if test -z "${LT_MULTI_MODULE}"; then
8034 # By default we will add the -single_module flag. You can override
8035 # by either setting the environment variable LT_MULTI_MODULE
8036 # non-empty at configure time, or by adding -multi_module to the
8038 rm -rf libconftest.dylib*
8039 echo "int foo(void){return 1;}" > conftest.c
8040 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8041 -dynamiclib -Wl,-single_module conftest.c" >&5
8042 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8045 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8046 lt_cv_apple_cc_single_mod=yes
8048 cat conftest.err >&5
8050 rm -rf libconftest.dylib*
8054 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8055 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8056 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8058 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8061 lt_cv_ld_exported_symbols_list=no
8062 save_LDFLAGS=$LDFLAGS
8063 echo "_main" > conftest.sym
8064 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (ac_try="$ac_link"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8087 $as_echo "$ac_try_echo") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext && {
8098 test "$cross_compiling" = yes ||
8099 $as_test_x conftest$ac_exeext
8101 lt_cv_ld_exported_symbols_list=yes
8103 $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 lt_cv_ld_exported_symbols_list=no
8109 rm -rf conftest.dSYM
8110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LDFLAGS="$save_LDFLAGS"
8115 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8116 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8118 rhapsody* | darwin1.[012])
8119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122 darwin*) # darwin 5.x on
8123 # if running on 10.5 or later, the deployment target defaults
8124 # to the OS version, if on x86, and 10.4, the deployment
8125 # target defaults to 10.4. Don't you love it?
8126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137 _lt_dar_single_mod='$single_module'
8139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144 if test "$DSYMUTIL" != ":"; then
8145 _lt_dsymutil='~$DSYMUTIL $lib || :'
8152 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8153 $as_echo_n "checking for ANSI C header files... " >&6; }
8154 if test "${ac_cv_header_stdc+set}" = set; then
8155 $as_echo_n "(cached) " >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183 $as_echo "$ac_try_echo") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8186 grep -v '^ *+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_cv_header_stdc=yes
8196 $as_echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_header_stdc=no
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 if test $ac_cv_header_stdc = yes; then
8205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8216 $EGREP "memchr" >/dev/null 2>&1; then
8219 ac_cv_header_stdc=no
8225 if test $ac_cv_header_stdc = yes; then
8226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237 $EGREP "free" >/dev/null 2>&1; then
8240 ac_cv_header_stdc=no
8246 if test $ac_cv_header_stdc = yes; then
8247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248 if test "$cross_compiling" = yes; then
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8259 #if ((' ' & 0x0FF) == 0x020)
8260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8263 # define ISLOWER(c) \
8264 (('a' <= (c) && (c) <= 'i') \
8265 || ('j' <= (c) && (c) <= 'r') \
8266 || ('s' <= (c) && (c) <= 'z'))
8267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8275 for (i = 0; i < 256; i++)
8276 if (XOR (islower (i), ISLOWER (i))
8277 || toupper (i) != TOUPPER (i))
8282 rm -f conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290 (eval "$ac_link") 2>&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_try") 2>&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8306 $as_echo "$as_me: program exited with status $ac_status" >&5
8307 $as_echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_header_stdc=no
8313 rm -rf conftest.dSYM
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8320 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8321 $as_echo "$ac_cv_header_stdc" >&6; }
8322 if test $ac_cv_header_stdc = yes; then
8324 cat >>confdefs.h <<\_ACEOF
8325 #define STDC_HEADERS 1
8330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8341 inttypes.h stdint.h unistd.h
8343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8345 $as_echo_n "checking for $ac_header... " >&6; }
8346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8347 $as_echo_n "(cached) " >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8357 #include <$ac_header>
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8366 $as_echo "$ac_try_echo") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 eval "$as_ac_Header=yes"
8379 $as_echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 eval "$as_ac_Header=no"
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 ac_res=`eval 'as_val=${'$as_ac_Header'}
8388 $as_echo "$as_val"'`
8389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8390 $as_echo "$ac_res" >&6; }
8391 as_val=`eval 'as_val=${'$as_ac_Header'}
8392 $as_echo "$as_val"'`
8393 if test "x$as_val" = x""yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 for ac_header in dlfcn.h
8406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 $as_echo_n "checking for $ac_header... " >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 $as_echo_n "(cached) " >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8420 #include <$ac_header>
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8429 $as_echo "$ac_try_echo") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.$ac_objext; then
8440 eval "$as_ac_Header=yes"
8442 $as_echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 eval "$as_ac_Header=no"
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 ac_res=`eval 'as_val=${'$as_ac_Header'}
8451 $as_echo "$as_val"'`
8452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8453 $as_echo "$ac_res" >&6; }
8454 as_val=`eval 'as_val=${'$as_ac_Header'}
8455 $as_echo "$as_val"'`
8456 if test "x$as_val" = x""yes; then
8457 cat >>confdefs.h <<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8468 ac_cpp='$CXXCPP $CPPFLAGS'
8469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8472 if test -z "$CXX"; then
8473 if test -n "$CCC"; then
8476 if test -n "$ac_tool_prefix"; then
8477 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if test "${ac_cv_prog_CXX+set}" = set; then
8484 $as_echo_n "(cached) " >&6
8486 if test -n "$CXX"; then
8487 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 if test -n "$CXX"; then
8508 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8509 $as_echo "$CXX" >&6; }
8511 { $as_echo "$as_me:$LINENO: result: no" >&5
8512 $as_echo "no" >&6; }
8516 test -n "$CXX" && break
8519 if test -z "$CXX"; then
8521 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8523 # Extract the first word of "$ac_prog", so it can be a program name with args.
8524 set dummy $ac_prog; ac_word=$2
8525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$ac_ct_CXX"; then
8531 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_ac_ct_CXX="$ac_prog"
8541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8551 if test -n "$ac_ct_CXX"; then
8552 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8553 $as_echo "$ac_ct_CXX" >&6; }
8555 { $as_echo "$as_me:$LINENO: result: no" >&5
8556 $as_echo "no" >&6; }
8560 test -n "$ac_ct_CXX" && break
8563 if test "x$ac_ct_CXX" = x; then
8566 case $cross_compiling:$ac_tool_warned in
8568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8578 # Provide some information about the compiler.
8579 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8582 { (ac_try="$ac_compiler --version >&5"
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8588 $as_echo "$ac_try_echo") >&5
8589 (eval "$ac_compiler --version >&5") 2>&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }
8593 { (ac_try="$ac_compiler -v >&5"
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8599 $as_echo "$ac_try_echo") >&5
8600 (eval "$ac_compiler -v >&5") 2>&5
8602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }
8604 { (ac_try="$ac_compiler -V >&5"
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8610 $as_echo "$ac_try_echo") >&5
8611 (eval "$ac_compiler -V >&5") 2>&5
8613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }
8616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8617 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8618 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8619 $as_echo_n "(cached) " >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8646 $as_echo "$ac_try_echo") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_cxx_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8669 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8670 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8671 if test $ac_compiler_gnu = yes; then
8676 ac_test_CXXFLAGS=${CXXFLAGS+set}
8677 ac_save_CXXFLAGS=$CXXFLAGS
8678 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8679 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8680 if test "${ac_cv_prog_cxx_g+set}" = set; then
8681 $as_echo_n "(cached) " >&6
8683 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8684 ac_cxx_werror_flag=yes
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_cxx_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_prog_cxx_g=yes
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8741 rm -f conftest.$ac_objext
8742 if { (ac_try="$ac_compile"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8748 $as_echo "$ac_try_echo") >&5
8749 (eval "$ac_compile") 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && {
8756 test -z "$ac_cxx_werror_flag" ||
8757 test ! -s conftest.err
8758 } && test -s conftest.$ac_objext; then
8761 $as_echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8781 rm -f conftest.$ac_objext
8782 if { (ac_try="$ac_compile"
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8788 $as_echo "$ac_try_echo") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_cxx_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8799 ac_cv_prog_cxx_g=yes
8801 $as_echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8818 if test "$ac_test_CXXFLAGS" = set; then
8819 CXXFLAGS=$ac_save_CXXFLAGS
8820 elif test $ac_cv_prog_cxx_g = yes; then
8821 if test "$GXX" = yes; then
8827 if test "$GXX" = yes; then
8834 ac_cpp='$CPP $CPPFLAGS'
8835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8840 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8841 (test "X$CXX" != "Xg++"))) ; then
8843 ac_cpp='$CXXCPP $CPPFLAGS'
8844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8847 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8848 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8849 if test -z "$CXXCPP"; then
8850 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8853 # Double quotes because CXXCPP needs to be expanded
8854 for CXXCPP in "$CXX -E" "/lib/cpp"
8857 for ac_cxx_preproc_warn_flag in '' yes
8859 # Use a header file that comes with gcc, so configuring glibc
8860 # with a fresh cross-compiler works.
8861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8862 # <limits.h> exists even on freestanding compilers.
8863 # On the NeXT, cc -E runs the code through the compiler's parser,
8864 # not just through cpp. "Syntax error" is here to catch this case.
8865 cat >conftest.$ac_ext <<_ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 # include <limits.h>
8874 # include <assert.h>
8878 if { (ac_try="$ac_cpp conftest.$ac_ext"
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } >/dev/null && {
8892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8893 test ! -s conftest.err
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 # Broken: fails on valid input.
8904 rm -f conftest.err conftest.$ac_ext
8906 # OK, works on sane cases. Now check whether nonexistent headers
8907 # can be detected and how.
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 #include <ac_nonexistent.h>
8916 if { (ac_try="$ac_cpp conftest.$ac_ext"
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } >/dev/null && {
8930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8931 test ! -s conftest.err
8933 # Broken: success on invalid input.
8936 $as_echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 # Passes both tests.
8944 rm -f conftest.err conftest.$ac_ext
8947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8948 rm -f conftest.err conftest.$ac_ext
8949 if $ac_preproc_ok; then
8954 ac_cv_prog_CXXCPP=$CXXCPP
8957 CXXCPP=$ac_cv_prog_CXXCPP
8959 ac_cv_prog_CXXCPP=$CXXCPP
8961 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8962 $as_echo "$CXXCPP" >&6; }
8964 for ac_cxx_preproc_warn_flag in '' yes
8966 # Use a header file that comes with gcc, so configuring glibc
8967 # with a fresh cross-compiler works.
8968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8969 # <limits.h> exists even on freestanding compilers.
8970 # On the NeXT, cc -E runs the code through the compiler's parser,
8971 # not just through cpp. "Syntax error" is here to catch this case.
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 # include <limits.h>
8981 # include <assert.h>
8985 if { (ac_try="$ac_cpp conftest.$ac_ext"
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8994 grep -v '^ *+' conftest.er1 >conftest.err
8996 cat conftest.err >&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null && {
8999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9000 test ! -s conftest.err
9004 $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 # Broken: fails on valid input.
9011 rm -f conftest.err conftest.$ac_ext
9013 # OK, works on sane cases. Now check whether nonexistent headers
9014 # can be detected and how.
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 #include <ac_nonexistent.h>
9023 if { (ac_try="$ac_cpp conftest.$ac_ext"
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9029 $as_echo "$ac_try_echo") >&5
9030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } >/dev/null && {
9037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9038 test ! -s conftest.err
9040 # Broken: success on invalid input.
9043 $as_echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 # Passes both tests.
9051 rm -f conftest.err conftest.$ac_ext
9054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9055 rm -f conftest.err conftest.$ac_ext
9056 if $ac_preproc_ok; then
9059 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9061 _lt_caught_CXX_error=yes; }
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071 _lt_caught_CXX_error=yes
9079 # Check whether --enable-shared was given.
9080 if test "${enable_shared+set}" = set; then
9081 enableval=$enable_shared; p=${PACKAGE-default}
9083 yes) enable_shared=yes ;;
9084 no) enable_shared=no ;;
9087 # Look at the argument we got. We use all the common list separators.
9088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089 for pkg in $enableval; do
9091 if test "X$pkg" = "X$p"; then
9108 # Check whether --enable-static was given.
9109 if test "${enable_static+set}" = set; then
9110 enableval=$enable_static; p=${PACKAGE-default}
9112 yes) enable_static=yes ;;
9113 no) enable_static=no ;;
9116 # Look at the argument we got. We use all the common list separators.
9117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9118 for pkg in $enableval; do
9120 if test "X$pkg" = "X$p"; then
9149 # Check whether --with-pic was given.
9150 if test "${with_pic+set}" = set; then
9151 withval=$with_pic; pic_mode="$withval"
9157 test -z "$pic_mode" && pic_mode=default
9165 # Check whether --enable-fast-install was given.
9166 if test "${enable_fast_install+set}" = set; then
9167 enableval=$enable_fast_install; p=${PACKAGE-default}
9169 yes) enable_fast_install=yes ;;
9170 no) enable_fast_install=no ;;
9172 enable_fast_install=no
9173 # Look at the argument we got. We use all the common list separators.
9174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9175 for pkg in $enableval; do
9177 if test "X$pkg" = "X$p"; then
9178 enable_fast_install=yes
9185 enable_fast_install=yes
9198 # This can be used to rebuild libtool when needed
9199 LIBTOOL_DEPS="$ltmain"
9201 # Always use our own libtool.
9202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9228 test -z "$LN_S" && LN_S="ln -s"
9243 if test -n "${ZSH_VERSION+set}" ; then
9244 setopt NO_GLOB_SUBST
9247 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9248 $as_echo_n "checking for objdir... " >&6; }
9249 if test "${lt_cv_objdir+set}" = set; then
9250 $as_echo_n "(cached) " >&6
9252 rm -f .libs 2>/dev/null
9253 mkdir .libs 2>/dev/null
9254 if test -d .libs; then
9257 # MS-DOS does not allow filenames that begin with a dot.
9260 rmdir .libs 2>/dev/null
9262 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9263 $as_echo "$lt_cv_objdir" >&6; }
9264 objdir=$lt_cv_objdir
9270 cat >>confdefs.h <<_ACEOF
9271 #define LT_OBJDIR "$lt_cv_objdir/"
9292 # AIX sometimes has problems with the GCC collect2 program. For some
9293 # reason, if we set the COLLECT_NAMES environment variable, the problems
9294 # vanish in a puff of smoke.
9295 if test "X${COLLECT_NAMES+set}" != Xset; then
9297 export COLLECT_NAMES
9302 # Sed substitution that helps us do robust quoting. It backslashifies
9303 # metacharacters that are still active within double-quoted strings.
9304 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9306 # Same as above, but do not quote variable references.
9307 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9309 # Sed substitution to delay expansion of an escaped shell variable in a
9310 # double_quote_subst'ed string.
9311 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9313 # Sed substitution to delay expansion of an escaped single quote.
9314 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9316 # Sed substitution to avoid accidental globbing in evaled expressions
9317 no_glob_subst='s/\*/\\\*/g'
9321 can_build_shared=yes
9323 # All known linkers require a `.a' archive for static linking (except MSVC,
9324 # which needs '.lib').
9327 with_gnu_ld="$lt_cv_prog_gnu_ld"
9330 old_CFLAGS="$CFLAGS"
9332 # Set sane defaults for various variables
9333 test -z "$CC" && CC=cc
9334 test -z "$LTCC" && LTCC=$CC
9335 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9336 test -z "$LD" && LD=ld
9337 test -z "$ac_objext" && ac_objext=o
9339 for cc_temp in $compiler""; do
9341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9347 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9350 # Only perform the check for file, if the check method requires it
9351 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9352 case $deplibs_check_method in
9354 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9355 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9356 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9358 $as_echo_n "(cached) " >&6
9362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9365 lt_save_MAGIC_CMD="$MAGIC_CMD"
9366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9368 for ac_dir in $ac_dummy; do
9370 test -z "$ac_dir" && ac_dir=.
9371 if test -f $ac_dir/${ac_tool_prefix}file; then
9372 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9373 if test -n "$file_magic_test_file"; then
9374 case $deplibs_check_method in
9376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9379 $EGREP "$file_magic_regex" > /dev/null; then
9384 *** Warning: the command libtool uses to detect shared libraries,
9385 *** $file_magic_cmd, produces output that libtool cannot recognize.
9386 *** The result is that libtool may fail to recognize shared libraries
9387 *** as such. This will affect the creation of libtool libraries that
9388 *** depend on shared libraries, but programs linked with such libtool
9389 *** libraries will work regardless of this problem. Nevertheless, you
9390 *** may want to report the problem to your system manager and/or to
9391 *** bug-libtool@gnu.org
9401 MAGIC_CMD="$lt_save_MAGIC_CMD"
9406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9407 if test -n "$MAGIC_CMD"; then
9408 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9409 $as_echo "$MAGIC_CMD" >&6; }
9411 { $as_echo "$as_me:$LINENO: result: no" >&5
9412 $as_echo "no" >&6; }
9419 if test -z "$lt_cv_path_MAGIC_CMD"; then
9420 if test -n "$ac_tool_prefix"; then
9421 { $as_echo "$as_me:$LINENO: checking for file" >&5
9422 $as_echo_n "checking for file... " >&6; }
9423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9424 $as_echo_n "(cached) " >&6
9428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9431 lt_save_MAGIC_CMD="$MAGIC_CMD"
9432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434 for ac_dir in $ac_dummy; do
9436 test -z "$ac_dir" && ac_dir=.
9437 if test -f $ac_dir/file; then
9438 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9439 if test -n "$file_magic_test_file"; then
9440 case $deplibs_check_method in
9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445 $EGREP "$file_magic_regex" > /dev/null; then
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such. This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem. Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9467 MAGIC_CMD="$lt_save_MAGIC_CMD"
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9477 { $as_echo "$as_me:$LINENO: result: no" >&5
9478 $as_echo "no" >&6; }
9491 # Use C for the default configuration in the libtool script
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9501 # Source file extension for C test sources.
9504 # Object file extension for compiled C test sources.
9508 # Code to be used in simple compile tests
9509 lt_simple_compile_test_code="int some_variable = 0;"
9511 # Code to be used in simple link tests
9512 lt_simple_link_test_code='int main(){return(0);}'
9520 # If no C compiler was specified, use CC.
9523 # If no C compiler flags were specified, use CFLAGS.
9524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9526 # Allow CC to be a program name with arguments.
9529 # Save the default compiler, since it gets overwritten when the other
9530 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9531 compiler_DEFAULT=$CC
9533 # save warnings/boilerplate of simple test code
9534 ac_outfile=conftest.$ac_objext
9535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9537 _lt_compiler_boilerplate=`cat conftest.err`
9540 ac_outfile=conftest.$ac_objext
9541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9543 _lt_linker_boilerplate=`cat conftest.err`
9548 ## There is no encapsulation within the following macros, do not change
9549 ## the running order or otherwise move them around unless you know exactly
9550 ## what you are doing...
9551 if test -n "$compiler"; then
9553 lt_prog_compiler_no_builtin_flag=
9555 if test "$GCC" = yes; then
9556 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9558 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9559 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9561 $as_echo_n "(cached) " >&6
9563 lt_cv_prog_compiler_rtti_exceptions=no
9564 ac_outfile=conftest.$ac_objext
9565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9566 lt_compiler_flag="-fno-rtti -fno-exceptions"
9567 # Insert the option either (1) after the last *FLAGS variable, or
9568 # (2) before a word containing "conftest.", or (3) at the end.
9569 # Note that $ac_compile itself does not contain backslashes and begins
9570 # with a dollar sign (not a hyphen), so the echo should work correctly.
9571 # The option is referenced via a variable to avoid confusing sed.
9572 lt_compile=`echo "$ac_compile" | $SED \
9573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9575 -e 's:$: $lt_compiler_flag:'`
9576 (eval echo "\"\$as_me:9576: $lt_compile\"" >&5)
9577 (eval "$lt_compile" 2>conftest.err)
9579 cat conftest.err >&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 if (exit $ac_status) && test -s "$ac_outfile"; then
9582 # The compiler can only warn and ignore the option if not recognized
9583 # So say no if there are warnings other than the usual output.
9584 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9587 lt_cv_prog_compiler_rtti_exceptions=yes
9593 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9594 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9596 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9597 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9609 lt_prog_compiler_wl=
9610 lt_prog_compiler_pic=
9611 lt_prog_compiler_static=
9613 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9614 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9616 if test "$GCC" = yes; then
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_static='-static'
9622 # All AIX code is PIC.
9623 if test "$host_cpu" = ia64; then
9624 # AIX 5 now supports IA64 processor
9625 lt_prog_compiler_static='-Bstatic'
9632 # see comment about AmigaOS4 .so support
9633 lt_prog_compiler_pic='-fPIC'
9636 # FIXME: we need at least 68020 code to build shared libraries, but
9637 # adding the `-m68020' flag to GCC prevents building anything better,
9639 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9645 # PIC is the default for these OSes.
9648 mingw* | cygwin* | pw32* | os2* | cegcc*)
9649 # This hack is so that the source file can tell whether it is being
9650 # built for inclusion in a dll (and should export symbols for example).
9651 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9652 # (--disable-auto-import) libraries
9653 lt_prog_compiler_pic='-DDLL_EXPORT'
9656 darwin* | rhapsody*)
9657 # PIC is the default on this platform
9658 # Common symbols not allowed in MH_DYLIB files
9659 lt_prog_compiler_pic='-fno-common'
9663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9665 # sets the default TLS model and affects inlining.
9671 lt_prog_compiler_pic='-fPIC'
9677 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9678 # Instead, we relocate shared libraries at runtime.
9682 # Just because we use GCC doesn't mean we suddenly get shared libraries
9683 # on systems that don't support them.
9684 lt_prog_compiler_can_build_shared=no
9689 # QNX uses GNU C++, but need to define -shared option too, otherwise
9691 lt_prog_compiler_pic='-fPIC -shared'
9695 if test -d /usr/nec; then
9696 lt_prog_compiler_pic=-Kconform_pic
9701 lt_prog_compiler_pic='-fPIC'
9705 # PORTME Check for flag to pass linker flags through the system compiler.
9708 lt_prog_compiler_wl='-Wl,'
9709 if test "$host_cpu" = ia64; then
9710 # AIX 5 now supports IA64 processor
9711 lt_prog_compiler_static='-Bstatic'
9713 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9717 mingw* | cygwin* | pw32* | os2* | cegcc*)
9718 # This hack is so that the source file can tell whether it is being
9719 # built for inclusion in a dll (and should export symbols for example).
9720 lt_prog_compiler_pic='-DDLL_EXPORT'
9723 hpux9* | hpux10* | hpux11*)
9724 lt_prog_compiler_wl='-Wl,'
9725 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9732 lt_prog_compiler_pic='+Z'
9735 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9736 lt_prog_compiler_static='${wl}-a ${wl}archive'
9739 irix5* | irix6* | nonstopux*)
9740 lt_prog_compiler_wl='-Wl,'
9741 # PIC (with -KPIC) is the default.
9742 lt_prog_compiler_static='-non_shared'
9745 linux* | k*bsd*-gnu)
9746 case $cc_basename in
9747 # old Intel for x86_64 which still supported -KPIC.
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='-KPIC'
9751 lt_prog_compiler_static='-static'
9753 # icc used to be incompatible with GCC.
9754 # ICC 10 doesn't accept -KPIC any more.
9756 lt_prog_compiler_wl='-Wl,'
9757 lt_prog_compiler_pic='-fPIC'
9758 lt_prog_compiler_static='-static'
9760 # Lahey Fortran 8.1.
9762 lt_prog_compiler_wl='-Wl,'
9763 lt_prog_compiler_pic='--shared'
9764 lt_prog_compiler_static='--static'
9766 pgcc* | pgf77* | pgf90* | pgf95*)
9767 # Portland Group compilers (*not* the Pentium gcc compiler,
9768 # which looks to be a dead project)
9769 lt_prog_compiler_wl='-Wl,'
9770 lt_prog_compiler_pic='-fpic'
9771 lt_prog_compiler_static='-Bstatic'
9774 lt_prog_compiler_wl='-Wl,'
9775 # All Alpha code is PIC.
9776 lt_prog_compiler_static='-non_shared'
9779 # IBM XL C 8.0/Fortran 10.1 on PPC
9780 lt_prog_compiler_wl='-Wl,'
9781 lt_prog_compiler_pic='-qpic'
9782 lt_prog_compiler_static='-qstaticlink'
9785 case `$CC -V 2>&1 | sed 5q` in
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-Bstatic'
9790 lt_prog_compiler_wl='-Wl,'
9793 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9794 lt_prog_compiler_pic='-KPIC'
9795 lt_prog_compiler_static='-Bstatic'
9796 lt_prog_compiler_wl=''
9804 lt_prog_compiler_pic='-KPIC'
9805 lt_prog_compiler_static='-Bstatic'
9809 # QNX uses GNU C++, but need to define -shared option too, otherwise
9811 lt_prog_compiler_pic='-fPIC -shared'
9814 osf3* | osf4* | osf5*)
9815 lt_prog_compiler_wl='-Wl,'
9816 # All OSF/1 code is PIC.
9817 lt_prog_compiler_static='-non_shared'
9821 lt_prog_compiler_static='-non_shared'
9825 lt_prog_compiler_pic='-KPIC'
9826 lt_prog_compiler_static='-Bstatic'
9827 case $cc_basename in
9829 lt_prog_compiler_wl='-Qoption ld ';;
9831 lt_prog_compiler_wl='-Wl,';;
9836 lt_prog_compiler_wl='-Qoption ld '
9837 lt_prog_compiler_pic='-PIC'
9838 lt_prog_compiler_static='-Bstatic'
9841 sysv4 | sysv4.2uw2* | sysv4.3*)
9842 lt_prog_compiler_wl='-Wl,'
9843 lt_prog_compiler_pic='-KPIC'
9844 lt_prog_compiler_static='-Bstatic'
9848 if test -d /usr/nec ;then
9849 lt_prog_compiler_pic='-Kconform_pic'
9850 lt_prog_compiler_static='-Bstatic'
9854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl='-Wl,'
9862 lt_prog_compiler_can_build_shared=no
9866 lt_prog_compiler_pic='-pic'
9867 lt_prog_compiler_static='-Bstatic'
9871 lt_prog_compiler_can_build_shared=no
9877 # For platforms which do not support PIC, -DPIC is meaningless:
9879 lt_prog_compiler_pic=
9882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9885 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9886 $as_echo "$lt_prog_compiler_pic" >&6; }
9894 # Check to make sure the PIC flag actually works.
9896 if test -n "$lt_prog_compiler_pic"; then
9897 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9899 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9900 $as_echo_n "(cached) " >&6
9902 lt_cv_prog_compiler_pic_works=no
9903 ac_outfile=conftest.$ac_objext
9904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9905 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9906 # Insert the option either (1) after the last *FLAGS variable, or
9907 # (2) before a word containing "conftest.", or (3) at the end.
9908 # Note that $ac_compile itself does not contain backslashes and begins
9909 # with a dollar sign (not a hyphen), so the echo should work correctly.
9910 # The option is referenced via a variable to avoid confusing sed.
9911 lt_compile=`echo "$ac_compile" | $SED \
9912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9914 -e 's:$: $lt_compiler_flag:'`
9915 (eval echo "\"\$as_me:9915: $lt_compile\"" >&5)
9916 (eval "$lt_compile" 2>conftest.err)
9918 cat conftest.err >&5
9919 echo "$as_me:9919: \$? = $ac_status" >&5
9920 if (exit $ac_status) && test -s "$ac_outfile"; then
9921 # The compiler can only warn and ignore the option if not recognized
9922 # So say no if there are warnings other than the usual output.
9923 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9926 lt_cv_prog_compiler_pic_works=yes
9932 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9935 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9936 case $lt_prog_compiler_pic in
9938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_can_build_shared=no
9953 # Check to make sure the static flag actually works.
9955 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9956 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9957 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9958 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9959 $as_echo_n "(cached) " >&6
9961 lt_cv_prog_compiler_static_works=no
9962 save_LDFLAGS="$LDFLAGS"
9963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9966 # The linker can only warn and ignore the option if not recognized
9967 # So say no if there are warnings
9968 if test -s conftest.err; then
9969 # Append any errors to the config.log.
9970 cat conftest.err 1>&5
9971 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973 if diff conftest.exp conftest.er2 >/dev/null; then
9974 lt_cv_prog_compiler_static_works=yes
9977 lt_cv_prog_compiler_static_works=yes
9981 LDFLAGS="$save_LDFLAGS"
9984 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9985 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9987 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9990 lt_prog_compiler_static=
9999 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10002 $as_echo_n "(cached) " >&6
10004 lt_cv_prog_compiler_c_o=no
10005 $RM -r conftest 2>/dev/null
10009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10011 lt_compiler_flag="-o out/conftest2.$ac_objext"
10012 # Insert the option either (1) after the last *FLAGS variable, or
10013 # (2) before a word containing "conftest.", or (3) at the end.
10014 # Note that $ac_compile itself does not contain backslashes and begins
10015 # with a dollar sign (not a hyphen), so the echo should work correctly.
10016 lt_compile=`echo "$ac_compile" | $SED \
10017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019 -e 's:$: $lt_compiler_flag:'`
10020 (eval echo "\"\$as_me:10020: $lt_compile\"" >&5)
10021 (eval "$lt_compile" 2>out/conftest.err)
10023 cat out/conftest.err >&5
10024 echo "$as_me:10024: \$? = $ac_status" >&5
10025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10027 # The compiler can only warn and ignore the option if not recognized
10028 # So say no if there are warnings
10029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10032 lt_cv_prog_compiler_c_o=yes
10037 # SGI C++ compiler will create directory out/ii_files/ for
10038 # template instantiation
10039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10040 $RM out/* && rmdir out
10046 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10054 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10057 $as_echo_n "(cached) " >&6
10059 lt_cv_prog_compiler_c_o=no
10060 $RM -r conftest 2>/dev/null
10064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10066 lt_compiler_flag="-o out/conftest2.$ac_objext"
10067 # Insert the option either (1) after the last *FLAGS variable, or
10068 # (2) before a word containing "conftest.", or (3) at the end.
10069 # Note that $ac_compile itself does not contain backslashes and begins
10070 # with a dollar sign (not a hyphen), so the echo should work correctly.
10071 lt_compile=`echo "$ac_compile" | $SED \
10072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10074 -e 's:$: $lt_compiler_flag:'`
10075 (eval echo "\"\$as_me:10075: $lt_compile\"" >&5)
10076 (eval "$lt_compile" 2>out/conftest.err)
10078 cat out/conftest.err >&5
10079 echo "$as_me:10079: \$? = $ac_status" >&5
10080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10082 # The compiler can only warn and ignore the option if not recognized
10083 # So say no if there are warnings
10084 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10087 lt_cv_prog_compiler_c_o=yes
10092 # SGI C++ compiler will create directory out/ii_files/ for
10093 # template instantiation
10094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10095 $RM out/* && rmdir out
10101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10102 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10107 hard_links="nottested"
10108 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10109 # do not overwrite the value of need_locks provided by the user
10110 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10111 $as_echo_n "checking if we can lock with hard links... " >&6; }
10114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10116 ln conftest.a conftest.b 2>&5 || hard_links=no
10117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10118 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10119 $as_echo "$hard_links" >&6; }
10120 if test "$hard_links" = no; then
10121 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10134 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10138 allow_undefined_flag=
10139 always_export_symbols=no
10141 archive_expsym_cmds=
10142 compiler_needs_object=no
10143 enable_shared_with_static_runtimes=no
10144 export_dynamic_flag_spec=
10145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10146 hardcode_automatic=no
10148 hardcode_direct_absolute=no
10149 hardcode_libdir_flag_spec=
10150 hardcode_libdir_flag_spec_ld=
10151 hardcode_libdir_separator=
10152 hardcode_minus_L=no
10153 hardcode_shlibpath_var=unsupported
10155 link_all_deplibs=unknown
10157 module_expsym_cmds=
10158 old_archive_from_new_cmds=
10159 old_archive_from_expsyms_cmds=
10160 thread_safe_flag_spec=
10161 whole_archive_flag_spec=
10162 # include_expsyms should be a list of space-separated symbols to be *always*
10163 # included in the symbol list
10165 # exclude_expsyms can be an extended regexp of symbols to exclude
10166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10168 # as well as any symbol that contains `d'.
10169 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10171 # platforms (ab)use it in PIC code, but their linkers get confused if
10172 # the symbol is explicitly referenced. Since portable code cannot
10173 # rely on this symbol name, it's probably fine to never include it in
10174 # preloaded symbol tables.
10175 # Exclude shared library initialization/finalization symbols.
10176 extract_expsyms_cmds=
10179 cygwin* | mingw* | pw32* | cegcc*)
10180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10181 # When not using gcc, we currently assume that we are using
10182 # Microsoft Visual C++.
10183 if test "$GCC" != yes; then
10188 # we just hope/assume this is gcc and not c89 (= MSVC++)
10197 if test "$with_gnu_ld" = yes; then
10198 # If archive_cmds runs LD, not CC, wlarc should be empty
10201 # Set some defaults for GNU ld with shared library support. These
10202 # are reset later if shared libraries are not supported. Putting them
10203 # here allows them to be overridden if necessary.
10204 runpath_var=LD_RUN_PATH
10205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206 export_dynamic_flag_spec='${wl}--export-dynamic'
10207 # ancient GNU ld didn't support --whole-archive et. al.
10208 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10209 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10211 whole_archive_flag_spec=
10213 supports_anon_versioning=no
10214 case `$LD -v 2>&1` in
10215 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10216 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10217 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10218 *\ 2.11.*) ;; # other 2.11 versions
10219 *) supports_anon_versioning=yes ;;
10222 # See if GNU ld supports shared libraries.
10225 # On AIX/PPC, the GNU linker is very broken
10226 if test "$host_cpu" != ia64; then
10230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10231 *** to be unable to reliably create shared libraries on AIX.
10232 *** Therefore, libtool is disabling shared libraries support. If you
10233 *** really care for shared libraries, you may want to modify your PATH
10234 *** so that a non-GNU linker is found, and then restart.
10243 # see comment about AmigaOS4 .so support
10244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245 archive_expsym_cmds=''
10248 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)'
10249 hardcode_libdir_flag_spec='-L$libdir'
10250 hardcode_minus_L=yes
10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 allow_undefined_flag=unsupported
10258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10259 # support --undefined. This deserves some investigation. FIXME
10260 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10266 cygwin* | mingw* | pw32* | cegcc*)
10267 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10268 # as there is no search path for DLLs.
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 allow_undefined_flag=unsupported
10271 always_export_symbols=no
10272 enable_shared_with_static_runtimes=yes
10273 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10275 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10277 # If the export-symbols file already is a .def file (1st line
10278 # is EXPORTS), use it as is; otherwise, prepend...
10279 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10280 cp $export_symbols $output_objdir/$soname.def;
10282 echo EXPORTS > $output_objdir/$soname.def;
10283 cat $export_symbols >> $output_objdir/$soname.def;
10285 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10293 hardcode_shlibpath_var=no
10294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10295 export_dynamic_flag_spec='${wl}-E'
10296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10297 # Instead, shared libraries are loaded at an image base (0x10000000 by
10298 # default) and relocated if they conflict, which is a slow very memory
10299 # consuming and fragmenting process. To avoid this, we pick a random,
10300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10303 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'
10306 gnu* | linux* | tpf* | k*bsd*-gnu)
10308 if test "$host_os" = linux-dietlibc; then
10309 case $cc_basename in
10310 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10313 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10314 && test "$tmp_diet" = no
10317 tmp_sharedflag='-shared'
10318 case $cc_basename,$host_cpu in
10319 pgcc*) # Portland Group C compiler
10320 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'
10321 tmp_addflag=' $pic_flag'
10323 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10324 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'
10325 tmp_addflag=' $pic_flag -Mnomain' ;;
10326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10327 tmp_addflag=' -i_dynamic' ;;
10328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10329 tmp_addflag=' -i_dynamic -nofor_main' ;;
10330 ifc* | ifort*) # Intel Fortran compiler
10331 tmp_addflag=' -nofor_main' ;;
10332 lf95*) # Lahey Fortran 8.1
10333 whole_archive_flag_spec=
10334 tmp_sharedflag='--shared' ;;
10335 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10336 tmp_sharedflag='-qmkshrobj'
10339 case `$CC -V 2>&1 | sed 5q` in
10340 *Sun\ C*) # Sun C 5.9
10341 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'
10342 compiler_needs_object=yes
10343 tmp_sharedflag='-G' ;;
10344 *Sun\ F*) # Sun Fortran 8.3
10345 tmp_sharedflag='-G' ;;
10347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349 if test "x$supports_anon_versioning" = xyes; then
10350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10352 echo "local: *; };" >> $output_objdir/$libname.ver~
10353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10356 case $cc_basename in
10358 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10359 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10360 hardcode_libdir_flag_spec=
10361 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10362 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10363 if test "x$supports_anon_versioning" = xyes; then
10364 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10366 echo "local: *; };" >> $output_objdir/$libname.ver~
10367 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10387 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10392 *** create shared libraries on Solaris systems. Therefore, libtool
10393 *** is disabling shared libraries support. We urge you to upgrade GNU
10394 *** binutils to release 2.9.1 or newer. Another option is to modify
10395 *** your PATH or compiler configuration so that the native linker is
10396 *** used, and then restart.
10399 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10408 case `$LD -v 2>&1` in
10409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10414 *** reliably create shared libraries on SCO systems. Therefore, libtool
10415 *** is disabling shared libraries support. We urge you to upgrade GNU
10416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10417 *** your PATH or compiler configuration so that the native linker is
10418 *** used, and then restart.
10423 # For security reasons, it is highly recommended that you always
10424 # use absolute paths for naming shared libraries, and exclude the
10425 # DT_RUNPATH tag from executables and libraries. But doing so
10426 # requires that you compile everything twice, which is a pain.
10427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10439 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_direct=yes
10442 hardcode_shlibpath_var=no
10446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10455 if test "$ld_shlibs" = no; then
10457 hardcode_libdir_flag_spec=
10458 export_dynamic_flag_spec=
10459 whole_archive_flag_spec=
10462 # PORTME fill in a description of your system's linker (not GNU ld)
10465 allow_undefined_flag=unsupported
10466 always_export_symbols=yes
10467 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'
10468 # Note: this linker hardcodes the directories in LIBPATH if there
10469 # are no directories specified by -L.
10470 hardcode_minus_L=yes
10471 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10472 # Neither direct hardcoding nor static linking is supported with a
10474 hardcode_direct=unsupported
10479 if test "$host_cpu" = ia64; then
10480 # On IA64, the linker does run time linking by default, so we don't
10481 # have to do anything special.
10482 aix_use_runtimelinking=no
10483 exp_sym_flag='-Bexport'
10486 # If we're using GNU nm, then we don't want the "-C" option.
10487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10489 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'
10491 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'
10493 aix_use_runtimelinking=no
10495 # Test if we are trying to use run time linking or normal
10496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10497 # need to do runtime linking.
10498 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10499 for ld_flag in $LDFLAGS; do
10500 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10501 aix_use_runtimelinking=yes
10508 exp_sym_flag='-bexport'
10509 no_entry_flag='-bnoentry'
10512 # When large executables or shared objects are built, AIX ld can
10513 # have problems creating the table of contents. If linking a library
10514 # or program results in "error TOC overflow" add -mminimal-toc to
10515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10519 hardcode_direct=yes
10520 hardcode_direct_absolute=yes
10521 hardcode_libdir_separator=':'
10522 link_all_deplibs=yes
10523 file_list_spec='${wl}-f,'
10525 if test "$GCC" = yes; then
10526 case $host_os in aix4.[012]|aix4.[012].*)
10527 # We only want to do this on AIX 4.2 and lower, the check
10528 # below for broken collect2 doesn't work under 4.3+
10529 collect2name=`${CC} -print-prog-name=collect2`
10530 if test -f "$collect2name" &&
10531 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10533 # We have reworked collect2
10536 # We have old collect2
10537 hardcode_direct=unsupported
10538 # It fails to find uninstalled libraries when the uninstalled
10539 # path is not listed in the libpath. Setting hardcode_minus_L
10540 # to unsupported forces relinking
10541 hardcode_minus_L=yes
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 hardcode_libdir_separator=
10547 shared_flag='-shared'
10548 if test "$aix_use_runtimelinking" = yes; then
10549 shared_flag="$shared_flag "'${wl}-G'
10553 if test "$host_cpu" = ia64; then
10554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10555 # chokes on -Wl,-G. The following line is correct:
10558 if test "$aix_use_runtimelinking" = yes; then
10559 shared_flag='${wl}-G'
10561 shared_flag='${wl}-bM:SRE'
10566 export_dynamic_flag_spec='${wl}-bexpall'
10567 # It seems that -bexpall does not export symbols beginning with
10568 # underscore (_), so it is better to generate a list of symbols to export.
10569 always_export_symbols=yes
10570 if test "$aix_use_runtimelinking" = yes; then
10571 # Warning - without using the other runtime loading flags (-brtl),
10572 # -berok will link without error, but may produce a broken library.
10573 allow_undefined_flag='-berok'
10574 # Determine the default libpath from the value encoded in an
10575 # empty executable.
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598 $as_echo "$ac_try_echo") >&5
10599 (eval "$ac_link") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && {
10606 test -z "$ac_c_werror_flag" ||
10607 test ! -s conftest.err
10608 } && test -s conftest$ac_exeext && {
10609 test "$cross_compiling" = yes ||
10610 $as_test_x conftest$ac_exeext
10613 lt_aix_libpath_sed='
10614 /Import File Strings/,/^$/ {
10620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10621 # Check for a 64-bit object if we didn't find anything.
10622 if test -z "$aix_libpath"; then
10623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10632 rm -rf conftest.dSYM
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10637 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10638 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"
10640 if test "$host_cpu" = ia64; then
10641 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10642 allow_undefined_flag="-z nodefs"
10643 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"
10645 # Determine the default libpath from the value encoded in an
10646 # empty executable.
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670 (eval "$ac_link") 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && {
10677 test -z "$ac_c_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest$ac_exeext && {
10680 test "$cross_compiling" = yes ||
10681 $as_test_x conftest$ac_exeext
10684 lt_aix_libpath_sed='
10685 /Import File Strings/,/^$/ {
10691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10692 # Check for a 64-bit object if we didn't find anything.
10693 if test -z "$aix_libpath"; then
10694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10703 rm -rf conftest.dSYM
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10709 # Warning - without using the other run time loading flags,
10710 # -berok will link without error, but may produce a broken library.
10711 no_undefined_flag=' ${wl}-bernotok'
10712 allow_undefined_flag=' ${wl}-berok'
10713 # Exported symbols can be pulled into shared objects from archives
10714 whole_archive_flag_spec='$convenience'
10715 archive_cmds_need_lc=yes
10716 # This is similar to how AIX traditionally builds its shared libraries.
10717 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'
10725 # see comment about AmigaOS4 .so support
10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727 archive_expsym_cmds=''
10730 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)'
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_minus_L=yes
10738 export_dynamic_flag_spec=-rdynamic
10741 cygwin* | mingw* | pw32* | cegcc*)
10742 # When not using gcc, we currently assume that we are using
10743 # Microsoft Visual C++.
10744 # hardcode_libdir_flag_spec is actually meaningless, as there is
10745 # no search path for DLLs.
10746 hardcode_libdir_flag_spec=' '
10747 allow_undefined_flag=unsupported
10748 # Tell ltmain to make .lib files, not .a files.
10750 # Tell ltmain to make .dll files, not .so files.
10752 # FIXME: Setting linknames here is a bad hack.
10753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10754 # The linker will automatically build a .lib file if we build a DLL.
10755 old_archive_from_new_cmds='true'
10756 # FIXME: Should let the user specify the lib program.
10757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10758 fix_srcfile_path='`cygpath -w "$srcfile"`'
10759 enable_shared_with_static_runtimes=yes
10762 darwin* | rhapsody*)
10765 archive_cmds_need_lc=no
10767 hardcode_automatic=yes
10768 hardcode_shlibpath_var=unsupported
10769 whole_archive_flag_spec=''
10770 link_all_deplibs=yes
10771 allow_undefined_flag="$_lt_dar_allow_undefined"
10772 case $cc_basename in
10773 ifort*) _lt_dar_can_shared=yes ;;
10774 *) _lt_dar_can_shared=$GCC ;;
10776 if test "$_lt_dar_can_shared" = "yes"; then
10777 output_verbose_link_cmd=echo
10778 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10779 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10780 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}"
10781 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}"
10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_libdir_flag_spec='-L$libdir'
10792 hardcode_shlibpath_var=no
10799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10800 # support. Future versions do this automatically, but an explicit c++rt0.o
10801 # does not break anything, and helps significantly (at the cost of a little
10804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10805 hardcode_libdir_flag_spec='-R$libdir'
10806 hardcode_direct=yes
10807 hardcode_shlibpath_var=no
10810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_direct=yes
10814 hardcode_minus_L=yes
10815 hardcode_shlibpath_var=no
10818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10819 freebsd* | dragonfly*)
10820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10821 hardcode_libdir_flag_spec='-R$libdir'
10822 hardcode_direct=yes
10823 hardcode_shlibpath_var=no
10827 if test "$GCC" = yes; then
10828 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'
10830 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'
10832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10833 hardcode_libdir_separator=:
10834 hardcode_direct=yes
10836 # hardcode_minus_L: Not really in the search PATH,
10837 # but as the default location of the library.
10838 hardcode_minus_L=yes
10839 export_dynamic_flag_spec='${wl}-E'
10843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10848 if test "$with_gnu_ld" = no; then
10849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10850 hardcode_libdir_flag_spec_ld='+b $libdir'
10851 hardcode_libdir_separator=:
10852 hardcode_direct=yes
10853 hardcode_direct_absolute=yes
10854 export_dynamic_flag_spec='${wl}-E'
10855 # hardcode_minus_L: Not really in the search PATH,
10856 # but as the default location of the library.
10857 hardcode_minus_L=yes
10862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10887 if test "$with_gnu_ld" = no; then
10888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10889 hardcode_libdir_separator=:
10894 hardcode_shlibpath_var=no
10897 hardcode_direct=yes
10898 hardcode_direct_absolute=yes
10899 export_dynamic_flag_spec='${wl}-E'
10901 # hardcode_minus_L: Not really in the search PATH,
10902 # but as the default location of the library.
10903 hardcode_minus_L=yes
10909 irix5* | irix6* | nonstopux*)
10910 if test "$GCC" = yes; then
10911 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'
10912 # Try to use the -exported_symbol ld option, if it does not
10913 # work, assume that -exports_file does not work either and
10914 # implicitly export all symbols.
10915 save_LDFLAGS="$LDFLAGS"
10916 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10917 cat >conftest.$ac_ext <<_ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927 $as_echo "$ac_try_echo") >&5
10928 (eval "$ac_link") 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext && {
10938 test "$cross_compiling" = yes ||
10939 $as_test_x conftest$ac_exeext
10941 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'
10944 $as_echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10950 rm -rf conftest.dSYM
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LDFLAGS="$save_LDFLAGS"
10955 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'
10956 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'
10958 archive_cmds_need_lc='no'
10959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10960 hardcode_libdir_separator=:
10962 link_all_deplibs=yes
10966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10969 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10971 hardcode_libdir_flag_spec='-R$libdir'
10972 hardcode_direct=yes
10973 hardcode_shlibpath_var=no
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_direct=yes
10979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10980 hardcode_libdir_separator=:
10981 hardcode_shlibpath_var=no
10988 if test -f /usr/libexec/ld.so; then
10989 hardcode_direct=yes
10990 hardcode_shlibpath_var=no
10991 hardcode_direct_absolute=yes
10992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10996 export_dynamic_flag_spec='${wl}-E'
10999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11001 hardcode_libdir_flag_spec='-R$libdir'
11004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11015 hardcode_libdir_flag_spec='-L$libdir'
11016 hardcode_minus_L=yes
11017 allow_undefined_flag=unsupported
11018 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'
11019 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11023 if test "$GCC" = yes; then
11024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11025 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'
11027 allow_undefined_flag=' -expect_unresolved \*'
11028 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'
11030 archive_cmds_need_lc='no'
11031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11032 hardcode_libdir_separator=:
11035 osf4* | osf5*) # as osf3* with the addition of -msym flag
11036 if test "$GCC" = yes; then
11037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11038 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'
11039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041 allow_undefined_flag=' -expect_unresolved \*'
11042 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'
11043 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~
11044 $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'
11046 # Both c and cxx compiler support -rpath directly
11047 hardcode_libdir_flag_spec='-rpath $libdir'
11049 archive_cmds_need_lc='no'
11050 hardcode_libdir_separator=:
11054 no_undefined_flag=' -z defs'
11055 if test "$GCC" = yes; then
11057 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11059 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11061 case `$CC -V 2>&1` in
11064 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11070 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11072 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11076 hardcode_libdir_flag_spec='-R$libdir'
11077 hardcode_shlibpath_var=no
11079 solaris2.[0-5] | solaris2.[0-5].*) ;;
11081 # The compiler driver will combine and reorder linker options,
11082 # but understands `-z linker_flag'. GCC discards it without `$wl',
11083 # but is careful enough not to reorder.
11084 # Supported since Solaris 2.6 (maybe 2.5.1?)
11085 if test "$GCC" = yes; then
11086 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11088 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11092 link_all_deplibs=yes
11096 if test "x$host_vendor" = xsequent; then
11097 # Use $CC to link under sequent, because it throws in some extra .o
11098 # files that make .init and .fini sections work.
11099 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11103 hardcode_libdir_flag_spec='-L$libdir'
11104 hardcode_direct=yes
11105 hardcode_minus_L=yes
11106 hardcode_shlibpath_var=no
11110 case $host_vendor in
11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113 hardcode_direct=yes # is this really true???
11116 ## LD is ld it makes a PLAMLIB
11117 ## CC just makes a GrossModule.
11118 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11119 reload_cmds='$CC -r -o $output$reload_objs'
11123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11127 runpath_var='LD_RUN_PATH'
11128 hardcode_shlibpath_var=no
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_shlibpath_var=no
11134 export_dynamic_flag_spec='-Bexport'
11138 if test -d /usr/nec; then
11139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_shlibpath_var=no
11141 runpath_var=LD_RUN_PATH
11142 hardcode_runpath_var=yes
11147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11148 no_undefined_flag='${wl}-z,text'
11149 archive_cmds_need_lc=no
11150 hardcode_shlibpath_var=no
11151 runpath_var='LD_RUN_PATH'
11153 if test "$GCC" = yes; then
11154 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 sysv5* | sco3.2v5* | sco5v6*)
11163 # Note: We can NOT use -z defs as we might desire, because we do not
11164 # link with -lc, and that would cause any symbols used from libc to
11165 # always be unresolved, which means just about no library would
11166 # ever link correctly. If we're not using GNU ld we use -z text
11167 # though, which does catch some bad symbols but isn't as heavy-handed
11169 no_undefined_flag='${wl}-z,text'
11170 allow_undefined_flag='${wl}-z,nodefs'
11171 archive_cmds_need_lc=no
11172 hardcode_shlibpath_var=no
11173 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11174 hardcode_libdir_separator=':'
11175 link_all_deplibs=yes
11176 export_dynamic_flag_spec='${wl}-Bexport'
11177 runpath_var='LD_RUN_PATH'
11179 if test "$GCC" = yes; then
11180 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11181 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190 hardcode_libdir_flag_spec='-L$libdir'
11191 hardcode_shlibpath_var=no
11199 if test x$host_vendor = xsni; then
11201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11202 export_dynamic_flag_spec='${wl}-Blargedynsym'
11208 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11209 $as_echo "$ld_shlibs" >&6; }
11210 test "$ld_shlibs" = no && can_build_shared=no
11212 with_gnu_ld=$with_gnu_ld
11229 # Do we need to explicitly link libc?
11231 case "x$archive_cmds_need_lc" in
11233 # Assume -lc should be added
11234 archive_cmds_need_lc=yes
11236 if test "$enable_shared" = yes && test "$GCC" = yes; then
11237 case $archive_cmds in
11239 # FIXME: we may have to deal with multi-command sequences.
11242 # Test whether the compiler implicitly links with -lc since on some
11243 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11244 # to ld, don't add -lc before -lgcc.
11245 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } 2>conftest.err; then
11257 libobjs=conftest.$ac_objext
11259 wl=$lt_prog_compiler_wl
11260 pic_flag=$lt_prog_compiler_pic
11266 lt_save_allow_undefined_flag=$allow_undefined_flag
11267 allow_undefined_flag=
11268 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11269 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }
11274 archive_cmds_need_lc=no
11276 archive_cmds_need_lc=yes
11278 allow_undefined_flag=$lt_save_allow_undefined_flag
11280 cat conftest.err 1>&5
11283 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11284 $as_echo "$archive_cmds_need_lc" >&6; }
11447 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11450 if test "$GCC" = yes; then
11452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11453 *) lt_awk_arg="/^libraries:/" ;;
11455 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11456 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11457 # if the path contains ";" then we assume it to be the separator
11458 # otherwise default to the standard path separator (i.e. ":") - it is
11459 # assumed that no part of a normal pathname contains ";" but that should
11460 # okay in the real world where ";" in dirpaths is itself problematic.
11461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11463 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11465 # Ok, now we have the path, separated by spaces, we can step through it
11466 # and add multilib dir if necessary.
11467 lt_tmp_lt_search_path_spec=
11468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11469 for lt_sys_path in $lt_search_path_spec; do
11470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11473 test -d "$lt_sys_path" && \
11474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11477 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11478 BEGIN {RS=" "; FS="/|\n";} {
11481 for (lt_i = NF; lt_i > 0; lt_i--) {
11482 if ($lt_i != "" && $lt_i != ".") {
11483 if ($lt_i == "..") {
11486 if (lt_count == 0) {
11487 lt_foo="/" $lt_i lt_foo;
11494 if (lt_foo != "") { lt_freq[lt_foo]++; }
11495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11497 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11501 library_names_spec=
11502 libname_spec='lib$name'
11506 postuninstall_cmds=
11510 shlibpath_overrides_runpath=unknown
11512 dynamic_linker="$host_os ld.so"
11513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11514 need_lib_prefix=unknown
11515 hardcode_into_libs=no
11517 # when you set need_version to no, make sure it does not cause -set_version
11518 # flags to be left without arguments
11519 need_version=unknown
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11525 shlibpath_var=LIBPATH
11527 # AIX 3 has no versioning support, so we append a major version to the name.
11528 soname_spec='${libname}${release}${shared_ext}$major'
11535 hardcode_into_libs=yes
11536 if test "$host_cpu" = ia64; then
11537 # AIX 5 supports IA64
11538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11539 shlibpath_var=LD_LIBRARY_PATH
11541 # With GCC up to 2.95.x, collect2 would create an import file
11542 # for dependence libraries. The import file would start with
11543 # the line `#! .'. This would cause the generated library to
11544 # depend on `.', always an invalid library. This was fixed in
11545 # development snapshots of GCC prior to 3.0.
11547 aix4 | aix4.[01] | aix4.[01].*)
11548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11553 can_build_shared=no
11557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11558 # soname into executable. Probably we can add versioning support to
11559 # collect2, so additional links can be useful in future.
11560 if test "$aix_use_runtimelinking" = yes; then
11561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11562 # instead of lib<name>.a to let people know that these are not
11563 # typical AIX shared libraries.
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 # We preserve .a as extension for shared libraries through AIX4.2
11567 # and later when we are not doing run time linking.
11568 library_names_spec='${libname}${release}.a $libname.a'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LIBPATH
11578 # Since July 2007 AmigaOS4 officially supports .so libraries.
11579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 library_names_spec='$libname.ixlibrary $libname.a'
11584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11585 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'
11591 library_names_spec='${libname}${shared_ext}'
11592 dynamic_linker="$host_os ld.so"
11593 shlibpath_var=LIBRARY_PATH
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11605 # the default ld.so.conf also contains /usr/contrib/lib and
11606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11607 # libtool to hard-code these into programs
11610 cygwin* | mingw* | pw32* | cegcc*)
11611 version_type=windows
11616 case $GCC,$host_os in
11617 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11618 library_names_spec='$libname.dll.a'
11619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11620 postinstall_cmds='base_file=`basename \${file}`~
11621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11622 dldir=$destdir/`dirname \$dlpath`~
11623 test -d \$dldir || mkdir -p \$dldir~
11624 $install_prog $dir/$dlname \$dldir/$dlname~
11625 chmod a+x \$dldir/$dlname~
11626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11630 dlpath=$dir/\$dldll~
11632 shlibpath_overrides_runpath=yes
11636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11641 # MinGW DLLs use traditional 'lib' prefix
11642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11643 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11645 # It is most probably a Windows format PATH printed by
11646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11647 # path with ; separators, and with drive letters. We can handle the
11648 # drive letters (cygwin fileutils understands them), so leave them,
11649 # especially as we might pass files found there to a mingw objdump,
11650 # which wouldn't understand a cygwinified path. Ahh.
11651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11657 # pw32 DLLs use 'pw' prefix rather than 'lib'
11658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11667 dynamic_linker='Win32 ld.exe'
11668 # FIXME: first we should search . and the directory the executable is in
11672 darwin* | rhapsody*)
11673 dynamic_linker="$host_os dyld"
11674 version_type=darwin
11677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11678 soname_spec='${libname}${release}${major}$shared_ext'
11679 shlibpath_overrides_runpath=yes
11680 shlibpath_var=DYLD_LIBRARY_PATH
11681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11700 freebsd* | dragonfly*)
11701 # DragonFly does not have aout. When/if they implement a new
11702 # versioning mechanism, adjust this.
11703 if test -x /usr/bin/objformat; then
11704 objformat=`/usr/bin/objformat`
11707 freebsd[123]*) objformat=aout ;;
11708 *) objformat=elf ;;
11711 version_type=freebsd-$objformat
11712 case $version_type in
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11723 shlibpath_var=LD_LIBRARY_PATH
11726 shlibpath_overrides_runpath=yes
11728 freebsd3.[01]* | freebsdelf3.[01]*)
11729 shlibpath_overrides_runpath=yes
11730 hardcode_into_libs=yes
11732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11734 shlibpath_overrides_runpath=no
11735 hardcode_into_libs=yes
11737 *) # from 4.6 on, and DragonFly
11738 shlibpath_overrides_runpath=yes
11739 hardcode_into_libs=yes
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 hardcode_into_libs=yes
11754 hpux9* | hpux10* | hpux11*)
11755 # Give a soname corresponding to the major version so that dld.sl refuses to
11756 # link against other versions.
11763 hardcode_into_libs=yes
11764 dynamic_linker="$host_os dld.so"
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 if test "X$HPUX_IA64_MODE" = X32; then
11770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11778 hardcode_into_libs=yes
11779 dynamic_linker="$host_os dld.sl"
11780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11789 dynamic_linker="$host_os dld.sl"
11790 shlibpath_var=SHLIB_PATH
11791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11797 postinstall_cmds='chmod 555 $lib'
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11805 soname_spec='${libname}${release}${shared_ext}$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11812 irix5* | irix6* | nonstopux*)
11814 nonstopux*) version_type=nonstopux ;;
11816 if test "$lt_cv_prog_gnu_ld" = yes; then
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11846 hardcode_into_libs=yes
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11854 # This must be Linux ELF.
11855 linux* | k*bsd*-gnu)
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 soname_spec='${libname}${release}${shared_ext}$major'
11861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=no
11864 # Some binutils ld are patched to set DT_RUNPATH
11865 save_LDFLAGS=$LDFLAGS
11866 save_libdir=$libdir
11867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (ac_try="$ac_link"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11891 $as_echo "$ac_try_echo") >&5
11892 (eval "$ac_link") 2>conftest.er1
11894 grep -v '^ *+' conftest.er1 >conftest.err
11896 cat conftest.err >&5
11897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest$ac_exeext && {
11902 test "$cross_compiling" = yes ||
11903 $as_test_x conftest$ac_exeext
11905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11906 shlibpath_overrides_runpath=yes
11910 $as_echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11916 rm -rf conftest.dSYM
11917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LDFLAGS=$save_LDFLAGS
11920 libdir=$save_libdir
11922 # This implies no fast_install, which is unacceptable.
11923 # Some rework will be needed to allow for fast_install
11924 # before this can be enabled.
11925 hardcode_into_libs=yes
11927 # Append ld.so.conf contents to the search path
11928 if test -f /etc/ld.so.conf; then
11929 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' ' '`
11930 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11933 # We used to test for /lib/ld.so.1 and disable shared libraries on
11934 # powerpc, because MkLinux only supported shared libraries with the
11935 # GNU dynamic linker. Since this was broken with cross compilers,
11936 # most powerpc-linux boxes support dynamic linking these days and
11937 # people can always --disable-shared, the test was removed, and we
11938 # assume the GNU/Linux dynamic linker is in use.
11939 dynamic_linker='GNU/Linux ld.so'
11946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11949 dynamic_linker='NetBSD (a.out) ld.so'
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 dynamic_linker='NetBSD ld.elf_so'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=yes
11957 hardcode_into_libs=yes
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath=yes
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 shlibpath_overrides_runpath=no
11975 hardcode_into_libs=yes
11976 dynamic_linker='ldqnx.so'
11981 sys_lib_dlsearch_path_spec="/usr/lib"
11983 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11985 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11986 *) need_version=no ;;
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11993 openbsd2.[89] | openbsd2.[89].*)
11994 shlibpath_overrides_runpath=no
11997 shlibpath_overrides_runpath=yes
12001 shlibpath_overrides_runpath=yes
12006 libname_spec='$name'
12009 library_names_spec='$libname${shared_ext} $libname.a'
12010 dynamic_linker='OS/2 ld.exe'
12011 shlibpath_var=LIBPATH
12014 osf3* | osf4* | osf5*)
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=yes
12037 hardcode_into_libs=yes
12038 # ldd complains unless libraries are executable
12039 postinstall_cmds='chmod +x $lib'
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=yes
12048 if test "$with_gnu_ld" = yes; then
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 case $host_vendor in
12061 shlibpath_overrides_runpath=no
12063 runpath_var=LD_RUN_PATH
12071 shlibpath_overrides_runpath=no
12072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12078 if test -d /usr/nec ;then
12080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12081 soname_spec='$libname${shared_ext}.$major'
12082 shlibpath_var=LD_LIBRARY_PATH
12086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12087 version_type=freebsd-elf
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12091 soname_spec='${libname}${release}${shared_ext}$major'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=yes
12094 hardcode_into_libs=yes
12095 if test "$with_gnu_ld" = yes; then
12096 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12105 sys_lib_dlsearch_path_spec='/usr/lib'
12109 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=no
12116 hardcode_into_libs=yes
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12122 soname_spec='${libname}${release}${shared_ext}$major'
12123 shlibpath_var=LD_LIBRARY_PATH
12130 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12131 $as_echo "$dynamic_linker" >&6; }
12132 test "$dynamic_linker" = no && can_build_shared=no
12134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12135 if test "$GCC" = yes; then
12136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12139 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12140 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12142 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12143 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12232 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12233 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12235 if test -n "$hardcode_libdir_flag_spec" ||
12236 test -n "$runpath_var" ||
12237 test "X$hardcode_automatic" = "Xyes" ; then
12239 # We can hardcode non-existent directories.
12240 if test "$hardcode_direct" != no &&
12241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12242 # have to relink, otherwise we might link with an installed library
12243 # when we should be linking with a yet-to-be-installed one
12244 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12245 test "$hardcode_minus_L" != no; then
12246 # Linking always hardcodes the temporary library directory.
12247 hardcode_action=relink
12249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12250 hardcode_action=immediate
12253 # We cannot hardcode anything, or else we can only hardcode existing
12255 hardcode_action=unsupported
12257 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12258 $as_echo "$hardcode_action" >&6; }
12260 if test "$hardcode_action" = relink ||
12261 test "$inherit_rpath" = yes; then
12262 # Fast installation is not supported
12263 enable_fast_install=no
12264 elif test "$shlibpath_overrides_runpath" = yes ||
12265 test "$enable_shared" = no; then
12266 # Fast installation is not necessary
12267 enable_fast_install=needless
12275 if test "x$enable_dlopen" != xyes; then
12276 enable_dlopen=unknown
12277 enable_dlopen_self=unknown
12278 enable_dlopen_self_static=unknown
12285 lt_cv_dlopen="load_add_on"
12287 lt_cv_dlopen_self=yes
12290 mingw* | pw32* | cegcc*)
12291 lt_cv_dlopen="LoadLibrary"
12296 lt_cv_dlopen="dlopen"
12301 # if libdl is installed we need to link against it
12302 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12303 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12305 $as_echo_n "(cached) " >&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. */
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12338 $as_echo "$ac_try_echo") >&5
12339 (eval "$ac_link") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest$ac_exeext && {
12349 test "$cross_compiling" = yes ||
12350 $as_test_x conftest$ac_exeext
12352 ac_cv_lib_dl_dlopen=yes
12354 $as_echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_dl_dlopen=no
12360 rm -rf conftest.dSYM
12361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12367 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12371 lt_cv_dlopen="dyld"
12373 lt_cv_dlopen_self=yes
12380 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12381 $as_echo_n "checking for shl_load... " >&6; }
12382 if test "${ac_cv_func_shl_load+set}" = set; then
12383 $as_echo_n "(cached) " >&6
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12393 #define shl_load innocuous_shl_load
12395 /* System header to define __stub macros and hopefully few prototypes,
12396 which can conflict with char shl_load (); below.
12397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12398 <limits.h> exists even on freestanding compilers. */
12401 # include <limits.h>
12403 # include <assert.h>
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12415 /* The GNU C library defines this for functions which it implements
12416 to always fail with ENOSYS. Some functions are actually named
12417 something starting with __ and the normal name is an alias. */
12418 #if defined __stub_shl_load || defined __stub___shl_load
12425 return shl_load ();
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12437 $as_echo "$ac_try_echo") >&5
12438 (eval "$ac_link") 2>conftest.er1
12440 grep -v '^ *+' conftest.er1 >conftest.err
12442 cat conftest.err >&5
12443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest$ac_exeext && {
12448 test "$cross_compiling" = yes ||
12449 $as_test_x conftest$ac_exeext
12451 ac_cv_func_shl_load=yes
12453 $as_echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_cv_func_shl_load=no
12459 rm -rf conftest.dSYM
12460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461 conftest$ac_exeext conftest.$ac_ext
12463 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12464 $as_echo "$ac_cv_func_shl_load" >&6; }
12465 if test "x$ac_cv_func_shl_load" = x""yes; then
12466 lt_cv_dlopen="shl_load"
12468 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12469 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12470 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12473 ac_check_lib_save_LIBS=$LIBS
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12492 return shl_load ();
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12504 $as_echo "$ac_try_echo") >&5
12505 (eval "$ac_link") 2>conftest.er1
12507 grep -v '^ *+' conftest.er1 >conftest.err
12509 cat conftest.err >&5
12510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } && {
12512 test -z "$ac_c_werror_flag" ||
12513 test ! -s conftest.err
12514 } && test -s conftest$ac_exeext && {
12515 test "$cross_compiling" = yes ||
12516 $as_test_x conftest$ac_exeext
12518 ac_cv_lib_dld_shl_load=yes
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_cv_lib_dld_shl_load=no
12526 rm -rf conftest.dSYM
12527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12528 conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12532 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12533 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12536 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12537 $as_echo_n "checking for dlopen... " >&6; }
12538 if test "${ac_cv_func_dlopen+set}" = set; then
12539 $as_echo_n "(cached) " >&6
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12547 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12549 #define dlopen innocuous_dlopen
12551 /* System header to define __stub macros and hopefully few prototypes,
12552 which can conflict with char dlopen (); below.
12553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554 <limits.h> exists even on freestanding compilers. */
12557 # include <limits.h>
12559 # include <assert.h>
12564 /* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
12571 /* The GNU C library defines this for functions which it implements
12572 to always fail with ENOSYS. Some functions are actually named
12573 something starting with __ and the normal name is an alias. */
12574 #if defined __stub_dlopen || defined __stub___dlopen
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (ac_try="$ac_link"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593 $as_echo "$ac_try_echo") >&5
12594 (eval "$ac_link") 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } && {
12601 test -z "$ac_c_werror_flag" ||
12602 test ! -s conftest.err
12603 } && test -s conftest$ac_exeext && {
12604 test "$cross_compiling" = yes ||
12605 $as_test_x conftest$ac_exeext
12607 ac_cv_func_dlopen=yes
12609 $as_echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_cv_func_dlopen=no
12615 rm -rf conftest.dSYM
12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617 conftest$ac_exeext conftest.$ac_ext
12619 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12620 $as_echo "$ac_cv_func_dlopen" >&6; }
12621 if test "x$ac_cv_func_dlopen" = x""yes; then
12622 lt_cv_dlopen="dlopen"
12624 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12627 $as_echo_n "(cached) " >&6
12629 ac_check_lib_save_LIBS=$LIBS
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (ac_try="$ac_link"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12660 $as_echo "$ac_try_echo") >&5
12661 (eval "$ac_link") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest$ac_exeext && {
12671 test "$cross_compiling" = yes ||
12672 $as_test_x conftest$ac_exeext
12674 ac_cv_lib_dl_dlopen=yes
12676 $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_cv_lib_dl_dlopen=no
12682 rm -rf conftest.dSYM
12683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12684 conftest$ac_exeext conftest.$ac_ext
12685 LIBS=$ac_check_lib_save_LIBS
12687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12689 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12692 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12695 $as_echo_n "(cached) " >&6
12697 ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-lsvld $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 /* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12728 $as_echo "$ac_try_echo") >&5
12729 (eval "$ac_link") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && {
12736 test -z "$ac_c_werror_flag" ||
12737 test ! -s conftest.err
12738 } && test -s conftest$ac_exeext && {
12739 test "$cross_compiling" = yes ||
12740 $as_test_x conftest$ac_exeext
12742 ac_cv_lib_svld_dlopen=yes
12744 $as_echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_lib_svld_dlopen=no
12750 rm -rf conftest.dSYM
12751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12756 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12757 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12760 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12761 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12763 $as_echo_n "(cached) " >&6
12765 ac_check_lib_save_LIBS=$LIBS
12767 cat >conftest.$ac_ext <<_ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12784 return dld_link ();
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12796 $as_echo "$ac_try_echo") >&5
12797 (eval "$ac_link") 2>conftest.er1
12799 grep -v '^ *+' conftest.er1 >conftest.err
12801 cat conftest.err >&5
12802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } && {
12804 test -z "$ac_c_werror_flag" ||
12805 test ! -s conftest.err
12806 } && test -s conftest$ac_exeext && {
12807 test "$cross_compiling" = yes ||
12808 $as_test_x conftest$ac_exeext
12810 ac_cv_lib_dld_dld_link=yes
12812 $as_echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_lib_dld_dld_link=no
12818 rm -rf conftest.dSYM
12819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12820 conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12824 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12825 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12847 if test "x$lt_cv_dlopen" != xno; then
12853 case $lt_cv_dlopen in
12855 save_CPPFLAGS="$CPPFLAGS"
12856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12858 save_LDFLAGS="$LDFLAGS"
12859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12862 LIBS="$lt_cv_dlopen_libs $LIBS"
12864 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12865 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12866 if test "${lt_cv_dlopen_self+set}" = set; then
12867 $as_echo_n "(cached) " >&6
12869 if test "$cross_compiling" = yes; then :
12870 lt_cv_dlopen_self=cross
12872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873 lt_status=$lt_dlunknown
12874 cat > conftest.$ac_ext <<_LT_EOF
12875 #line 12875 "configure"
12876 #include "confdefs.h"
12885 # define LT_DLGLOBAL RTLD_GLOBAL
12888 # define LT_DLGLOBAL DL_GLOBAL
12890 # define LT_DLGLOBAL 0
12894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895 find out it does not work in some platform. */
12896 #ifndef LT_DLLAZY_OR_NOW
12898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12901 # define LT_DLLAZY_OR_NOW DL_LAZY
12904 # define LT_DLLAZY_OR_NOW RTLD_NOW
12907 # define LT_DLLAZY_OR_NOW DL_NOW
12909 # define LT_DLLAZY_OR_NOW 0
12916 void fnord() { int i=42;}
12919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12920 int status = $lt_dlunknown;
12924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12926 /* dlclose (self); */
12934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12935 (eval $ac_link) 2>&5
12937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12939 (./conftest; exit; ) >&5 2>/dev/null
12941 case x$lt_status in
12942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12944 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12947 # compilation failed
12948 lt_cv_dlopen_self=no
12955 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12956 $as_echo "$lt_cv_dlopen_self" >&6; }
12958 if test "x$lt_cv_dlopen_self" = xyes; then
12959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12960 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12961 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12962 if test "${lt_cv_dlopen_self_static+set}" = set; then
12963 $as_echo_n "(cached) " >&6
12965 if test "$cross_compiling" = yes; then :
12966 lt_cv_dlopen_self_static=cross
12968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12969 lt_status=$lt_dlunknown
12970 cat > conftest.$ac_ext <<_LT_EOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12981 # define LT_DLGLOBAL RTLD_GLOBAL
12984 # define LT_DLGLOBAL DL_GLOBAL
12986 # define LT_DLGLOBAL 0
12990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12991 find out it does not work in some platform. */
12992 #ifndef LT_DLLAZY_OR_NOW
12994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12997 # define LT_DLLAZY_OR_NOW DL_LAZY
13000 # define LT_DLLAZY_OR_NOW RTLD_NOW
13003 # define LT_DLLAZY_OR_NOW DL_NOW
13005 # define LT_DLLAZY_OR_NOW 0
13012 void fnord() { int i=42;}
13015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016 int status = $lt_dlunknown;
13020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13021 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022 /* dlclose (self); */
13030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13031 (eval $ac_link) 2>&5
13033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13035 (./conftest; exit; ) >&5 2>/dev/null
13037 case x$lt_status in
13038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13043 # compilation failed
13044 lt_cv_dlopen_self_static=no
13051 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13055 CPPFLAGS="$save_CPPFLAGS"
13056 LDFLAGS="$save_LDFLAGS"
13061 case $lt_cv_dlopen_self in
13062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13063 *) enable_dlopen_self=unknown ;;
13066 case $lt_cv_dlopen_self_static in
13067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13068 *) enable_dlopen_self_static=unknown ;;
13090 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13095 { $as_echo "$as_me:$LINENO: result: yes" >&5
13096 $as_echo "yes" >&6; }
13098 # FIXME - insert some real tests, host_os isn't really good enough
13101 if test -n "$STRIP" ; then
13102 striplib="$STRIP -x"
13103 old_striplib="$STRIP -S"
13104 { $as_echo "$as_me:$LINENO: result: yes" >&5
13105 $as_echo "yes" >&6; }
13107 { $as_echo "$as_me:$LINENO: result: no" >&5
13108 $as_echo "no" >&6; }
13112 { $as_echo "$as_me:$LINENO: result: no" >&5
13113 $as_echo "no" >&6; }
13129 # Report which library types will actually be built
13130 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13132 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13133 $as_echo "$can_build_shared" >&6; }
13135 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13136 $as_echo_n "checking whether to build shared libraries... " >&6; }
13137 test "$can_build_shared" = "no" && enable_shared=no
13139 # On AIX, shared libraries and static libraries use the same namespace, and
13140 # are all built from PIC.
13143 test "$enable_shared" = yes && enable_static=no
13144 if test -n "$RANLIB"; then
13145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13146 postinstall_cmds='$RANLIB $lib'
13151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13152 test "$enable_shared" = yes && enable_static=no
13156 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13157 $as_echo "$enable_shared" >&6; }
13159 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13160 $as_echo_n "checking whether to build static libraries... " >&6; }
13161 # Make sure either enable_shared or enable_static is yes.
13162 test "$enable_shared" = yes || enable_static=yes
13163 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13164 $as_echo "$enable_static" >&6; }
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13185 archive_cmds_need_lc_CXX=no
13186 allow_undefined_flag_CXX=
13187 always_export_symbols_CXX=no
13188 archive_expsym_cmds_CXX=
13189 compiler_needs_object_CXX=no
13190 export_dynamic_flag_spec_CXX=
13191 hardcode_direct_CXX=no
13192 hardcode_direct_absolute_CXX=no
13193 hardcode_libdir_flag_spec_CXX=
13194 hardcode_libdir_flag_spec_ld_CXX=
13195 hardcode_libdir_separator_CXX=
13196 hardcode_minus_L_CXX=no
13197 hardcode_shlibpath_var_CXX=unsupported
13198 hardcode_automatic_CXX=no
13199 inherit_rpath_CXX=no
13201 module_expsym_cmds_CXX=
13202 link_all_deplibs_CXX=unknown
13203 old_archive_cmds_CXX=$old_archive_cmds
13204 no_undefined_flag_CXX=
13205 whole_archive_flag_spec_CXX=
13206 enable_shared_with_static_runtimes_CXX=no
13208 # Source file extension for C++ test sources.
13211 # Object file extension for compiled C++ test sources.
13215 # No sense in running all these tests if we already determined that
13216 # the CXX compiler isn't working. Some variables (like enable_shared)
13217 # are currently assumed to apply to all compilers on this platform,
13218 # and will be corrupted by setting them based on a non-working compiler.
13219 if test "$_lt_caught_CXX_error" != yes; then
13220 # Code to be used in simple compile tests
13221 lt_simple_compile_test_code="int some_variable = 0;"
13223 # Code to be used in simple link tests
13224 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13233 # If no C compiler was specified, use CC.
13236 # If no C compiler flags were specified, use CFLAGS.
13237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13239 # Allow CC to be a program name with arguments.
13243 # save warnings/boilerplate of simple test code
13244 ac_outfile=conftest.$ac_objext
13245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13247 _lt_compiler_boilerplate=`cat conftest.err`
13250 ac_outfile=conftest.$ac_objext
13251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13253 _lt_linker_boilerplate=`cat conftest.err`
13257 # Allow CC to be a program name with arguments.
13262 lt_save_with_gnu_ld=$with_gnu_ld
13263 lt_save_path_LD=$lt_cv_path_LD
13264 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13265 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13267 $as_unset lt_cv_prog_gnu_ld
13269 if test -n "${lt_cv_path_LDCXX+set}"; then
13270 lt_cv_path_LD=$lt_cv_path_LDCXX
13272 $as_unset lt_cv_path_LD
13274 test -z "${LDCXX+set}" || LD=$LDCXX
13278 for cc_temp in $compiler""; do
13280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13286 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13289 if test -n "$compiler"; then
13290 # We don't want -fno-exception when compiling C++ code, so set the
13291 # no_builtin_flag separately
13292 if test "$GXX" = yes; then
13293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13295 lt_prog_compiler_no_builtin_flag_CXX=
13298 if test "$GXX" = yes; then
13299 # Set up default GNU C++ configuration
13303 # Check whether --with-gnu-ld was given.
13304 if test "${with_gnu_ld+set}" = set; then
13305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13311 if test "$GCC" = yes; then
13312 # Check if gcc -print-prog-name=ld gives a path.
13313 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13314 $as_echo_n "checking for ld used by $CC... " >&6; }
13317 # gcc leaves a trailing carriage return which upsets mingw
13318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13323 # Accept absolute paths.
13325 re_direlt='/[^/][^/]*/\.\./'
13326 # Canonicalize the pathname of ld
13327 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13328 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13329 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13331 test -z "$LD" && LD="$ac_prog"
13334 # If it fails, then pretend we aren't using GCC.
13338 # If it is relative, then search for the first ld in PATH.
13339 with_gnu_ld=unknown
13342 elif test "$with_gnu_ld" = yes; then
13343 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13344 $as_echo_n "checking for GNU ld... " >&6; }
13346 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13347 $as_echo_n "checking for non-GNU ld... " >&6; }
13349 if test "${lt_cv_path_LD+set}" = set; then
13350 $as_echo_n "(cached) " >&6
13352 if test -z "$LD"; then
13353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13354 for ac_dir in $PATH; do
13356 test -z "$ac_dir" && ac_dir=.
13357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13358 lt_cv_path_LD="$ac_dir/$ac_prog"
13359 # Check to see if the program is GNU ld. I'd rather use --version,
13360 # but apparently some variants of GNU ld only accept -v.
13361 # Break only if it was the GNU/non-GNU ld that we prefer.
13362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13363 *GNU* | *'with BFD'*)
13364 test "$with_gnu_ld" != no && break
13367 test "$with_gnu_ld" != yes && break
13374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13378 LD="$lt_cv_path_LD"
13379 if test -n "$LD"; then
13380 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13381 $as_echo "$LD" >&6; }
13383 { $as_echo "$as_me:$LINENO: result: no" >&5
13384 $as_echo "no" >&6; }
13386 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13387 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13388 { (exit 1); exit 1; }; }
13389 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13392 $as_echo_n "(cached) " >&6
13394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13395 case `$LD -v 2>&1 </dev/null` in
13396 *GNU* | *'with BFD'*)
13397 lt_cv_prog_gnu_ld=yes
13400 lt_cv_prog_gnu_ld=no
13404 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13406 with_gnu_ld=$lt_cv_prog_gnu_ld
13414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13415 # archiving commands below assume that GNU ld is being used.
13416 if test "$with_gnu_ld" = yes; then
13417 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418 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'
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13423 # If archive_cmds runs LD, not CC, wlarc should be empty
13424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13425 # investigate it a little bit more. (MM)
13428 # ancient GNU ld didn't support --whole-archive et. al.
13429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13430 $GREP 'no-whole-archive' > /dev/null; then
13431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13433 whole_archive_flag_spec_CXX=
13439 # A generic and very simple default shared library creation
13440 # command for GNU C++ for the case where it uses the native
13441 # linker, instead of GNU ld. If possible, this setting should
13442 # overridden to take advantage of the native linker features on
13443 # the platform it is being used on.
13444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13447 # Commands to make compiler produce verbose output that lists
13448 # what "hidden" libraries, object files and flags are used when
13449 # linking a shared library.
13450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13458 # PORTME: fill in a description of your system's C++ link characteristics
13459 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13464 # FIXME: insert proper C++ library support
13468 if test "$host_cpu" = ia64; then
13469 # On IA64, the linker does run time linking by default, so we don't
13470 # have to do anything special.
13471 aix_use_runtimelinking=no
13472 exp_sym_flag='-Bexport'
13475 aix_use_runtimelinking=no
13477 # Test if we are trying to use run time linking or normal
13478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13479 # need to do runtime linking.
13480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13481 for ld_flag in $LDFLAGS; do
13484 aix_use_runtimelinking=yes
13492 exp_sym_flag='-bexport'
13493 no_entry_flag='-bnoentry'
13496 # When large executables or shared objects are built, AIX ld can
13497 # have problems creating the table of contents. If linking a library
13498 # or program results in "error TOC overflow" add -mminimal-toc to
13499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13502 archive_cmds_CXX=''
13503 hardcode_direct_CXX=yes
13504 hardcode_direct_absolute_CXX=yes
13505 hardcode_libdir_separator_CXX=':'
13506 link_all_deplibs_CXX=yes
13507 file_list_spec_CXX='${wl}-f,'
13509 if test "$GXX" = yes; then
13510 case $host_os in aix4.[012]|aix4.[012].*)
13511 # We only want to do this on AIX 4.2 and lower, the check
13512 # below for broken collect2 doesn't work under 4.3+
13513 collect2name=`${CC} -print-prog-name=collect2`
13514 if test -f "$collect2name" &&
13515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13517 # We have reworked collect2
13520 # We have old collect2
13521 hardcode_direct_CXX=unsupported
13522 # It fails to find uninstalled libraries when the uninstalled
13523 # path is not listed in the libpath. Setting hardcode_minus_L
13524 # to unsupported forces relinking
13525 hardcode_minus_L_CXX=yes
13526 hardcode_libdir_flag_spec_CXX='-L$libdir'
13527 hardcode_libdir_separator_CXX=
13530 shared_flag='-shared'
13531 if test "$aix_use_runtimelinking" = yes; then
13532 shared_flag="$shared_flag "'${wl}-G'
13536 if test "$host_cpu" = ia64; then
13537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13538 # chokes on -Wl,-G. The following line is correct:
13541 if test "$aix_use_runtimelinking" = yes; then
13542 shared_flag='${wl}-G'
13544 shared_flag='${wl}-bM:SRE'
13549 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13550 # It seems that -bexpall does not export symbols beginning with
13551 # underscore (_), so it is better to generate a list of symbols to
13553 always_export_symbols_CXX=yes
13554 if test "$aix_use_runtimelinking" = yes; then
13555 # Warning - without using the other runtime loading flags (-brtl),
13556 # -berok will link without error, but may produce a broken library.
13557 allow_undefined_flag_CXX='-berok'
13558 # Determine the default libpath from the value encoded in an empty
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (ac_try="$ac_link"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13582 $as_echo "$ac_try_echo") >&5
13583 (eval "$ac_link") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_cxx_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext && {
13593 test "$cross_compiling" = yes ||
13594 $as_test_x conftest$ac_exeext
13597 lt_aix_libpath_sed='
13598 /Import File Strings/,/^$/ {
13604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13605 # Check for a 64-bit object if we didn't find anything.
13606 if test -z "$aix_libpath"; then
13607 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13610 $as_echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13616 rm -rf conftest.dSYM
13617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13618 conftest$ac_exeext conftest.$ac_ext
13619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13621 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13623 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"
13625 if test "$host_cpu" = ia64; then
13626 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13627 allow_undefined_flag_CXX="-z nodefs"
13628 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"
13630 # Determine the default libpath from the value encoded in an
13631 # empty executable.
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13654 $as_echo "$ac_try_echo") >&5
13655 (eval "$ac_link") 2>conftest.er1
13657 grep -v '^ *+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && {
13662 test -z "$ac_cxx_werror_flag" ||
13663 test ! -s conftest.err
13664 } && test -s conftest$ac_exeext && {
13665 test "$cross_compiling" = yes ||
13666 $as_test_x conftest$ac_exeext
13669 lt_aix_libpath_sed='
13670 /Import File Strings/,/^$/ {
13676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13677 # Check for a 64-bit object if we didn't find anything.
13678 if test -z "$aix_libpath"; then
13679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13682 $as_echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13688 rm -rf conftest.dSYM
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 conftest$ac_exeext conftest.$ac_ext
13691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13693 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13694 # Warning - without using the other run time loading flags,
13695 # -berok will link without error, but may produce a broken library.
13696 no_undefined_flag_CXX=' ${wl}-bernotok'
13697 allow_undefined_flag_CXX=' ${wl}-berok'
13698 # Exported symbols can be pulled into shared objects from archives
13699 whole_archive_flag_spec_CXX='$convenience'
13700 archive_cmds_need_lc_CXX=yes
13701 # This is similar to how AIX traditionally builds its shared
13703 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'
13709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13710 allow_undefined_flag_CXX=unsupported
13711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13712 # support --undefined. This deserves some investigation. FIXME
13713 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720 case $cc_basename in
13722 # FIXME: insert proper C++ library support
13728 cygwin* | mingw* | pw32* | cegcc*)
13729 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13730 # as there is no search path for DLLs.
13731 hardcode_libdir_flag_spec_CXX='-L$libdir'
13732 allow_undefined_flag_CXX=unsupported
13733 always_export_symbols_CXX=no
13734 enable_shared_with_static_runtimes_CXX=yes
13736 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13737 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'
13738 # If the export-symbols file already is a .def file (1st line
13739 # is EXPORTS), use it as is; otherwise, prepend...
13740 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13741 cp $export_symbols $output_objdir/$soname.def;
13743 echo EXPORTS > $output_objdir/$soname.def;
13744 cat $export_symbols >> $output_objdir/$soname.def;
13746 $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'
13751 darwin* | rhapsody*)
13754 archive_cmds_need_lc_CXX=no
13755 hardcode_direct_CXX=no
13756 hardcode_automatic_CXX=yes
13757 hardcode_shlibpath_var_CXX=unsupported
13758 whole_archive_flag_spec_CXX=''
13759 link_all_deplibs_CXX=yes
13760 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13761 case $cc_basename in
13762 ifort*) _lt_dar_can_shared=yes ;;
13763 *) _lt_dar_can_shared=$GCC ;;
13765 if test "$_lt_dar_can_shared" = "yes"; then
13766 output_verbose_link_cmd=echo
13767 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}"
13768 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13769 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}"
13770 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}"
13771 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13772 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}"
13773 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}"
13783 case $cc_basename in
13785 # FIXME: insert proper C++ library support
13789 # Green Hills C++ Compiler
13790 # FIXME: insert proper C++ library support
13794 # FIXME: insert proper C++ library support
13801 # C++ shared libraries reported to be fairly broken before
13807 archive_cmds_need_lc_CXX=no
13810 freebsd* | dragonfly*)
13811 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13820 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13821 hardcode_libdir_separator_CXX=:
13822 export_dynamic_flag_spec_CXX='${wl}-E'
13823 hardcode_direct_CXX=yes
13824 hardcode_minus_L_CXX=yes # Not in the search PATH,
13825 # but as the default
13826 # location of the library.
13828 case $cc_basename in
13830 # FIXME: insert proper C++ library support
13834 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'
13835 # Commands to make compiler produce verbose output that lists
13836 # what "hidden" libraries, object files and flags are used when
13837 # linking a shared library.
13839 # There doesn't appear to be a way to prevent this compiler from
13840 # explicitly linking system object files so we need to strip them
13841 # from the output so that they don't get included in the library
13843 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'
13846 if test "$GXX" = yes; then
13847 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'
13849 # FIXME: insert proper C++ library support
13857 if test $with_gnu_ld = no; then
13858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13859 hardcode_libdir_separator_CXX=:
13865 export_dynamic_flag_spec_CXX='${wl}-E'
13871 hardcode_direct_CXX=no
13872 hardcode_shlibpath_var_CXX=no
13875 hardcode_direct_CXX=yes
13876 hardcode_direct_absolute_CXX=yes
13877 hardcode_minus_L_CXX=yes # Not in the search PATH,
13878 # but as the default
13879 # location of the library.
13883 case $cc_basename in
13885 # FIXME: insert proper C++ library support
13891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13900 # Commands to make compiler produce verbose output that lists
13901 # what "hidden" libraries, object files and flags are used when
13902 # linking a shared library.
13904 # There doesn't appear to be a way to prevent this compiler from
13905 # explicitly linking system object files so we need to strip them
13906 # from the output so that they don't get included in the library
13908 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'
13911 if test "$GXX" = yes; then
13912 if test $with_gnu_ld = no; then
13915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13918 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13921 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'
13926 # FIXME: insert proper C++ library support
13934 hardcode_direct_CXX=no
13935 hardcode_shlibpath_var_CXX=no
13936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13937 export_dynamic_flag_spec_CXX='${wl}-E'
13938 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13939 # Instead, shared libraries are loaded at an image base (0x10000000 by
13940 # default) and relocated if they conflict, which is a slow very memory
13941 # consuming and fragmenting process. To avoid this, we pick a random,
13942 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13943 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13944 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'
13945 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'
13948 case $cc_basename in
13951 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'
13953 # Archives containing C++ object files must be created using
13954 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13955 # necessary to make sure instantiated templates are included
13957 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13960 if test "$GXX" = yes; then
13961 if test "$with_gnu_ld" = no; then
13962 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'
13964 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'
13967 link_all_deplibs_CXX=yes
13970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13971 hardcode_libdir_separator_CXX=:
13972 inherit_rpath_CXX=yes
13975 linux* | k*bsd*-gnu)
13976 case $cc_basename in
13978 # Kuck and Associates, Inc. (KAI) C++ Compiler
13980 # KCC will only create a shared library if the output file
13981 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13982 # to its proper name (with version) after linking.
13983 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'
13984 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'
13985 # Commands to make compiler produce verbose output that lists
13986 # what "hidden" libraries, object files and flags are used when
13987 # linking a shared library.
13989 # There doesn't appear to be a way to prevent this compiler from
13990 # explicitly linking system object files so we need to strip them
13991 # from the output so that they don't get included in the library
13993 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'
13995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13996 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13998 # Archives containing C++ object files must be created using
13999 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14000 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14005 # version 8.0 and above of icpc choke on multiply defined symbols
14006 # if we add $predep_objects and $postdep_objects, however 7.1 and
14007 # earlier do not add the objects themselves.
14008 case `$CC -V 2>&1` in
14010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011 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'
14013 *) # Version 8.0 or newer
14016 ia64*) tmp_idyn=' -i_dynamic';;
14018 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 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'
14022 archive_cmds_need_lc_CXX=no
14023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14024 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14025 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14028 # Portland Group C++ compiler
14030 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14031 prelink_cmds_CXX='tpldir=Template.dir~
14033 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14034 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14035 old_archive_cmds_CXX='tpldir=Template.dir~
14037 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14038 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14040 archive_cmds_CXX='tpldir=Template.dir~
14042 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14043 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14044 archive_expsym_cmds_CXX='tpldir=Template.dir~
14046 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14047 $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'
14049 *) # Version 6 will use weak symbols
14050 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14051 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'
14055 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14057 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'
14061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14062 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'
14064 runpath_var=LD_RUN_PATH
14065 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14066 hardcode_libdir_separator_CXX=:
14068 # Commands to make compiler produce verbose output that lists
14069 # what "hidden" libraries, object files and flags are used when
14070 # linking a shared library.
14072 # There doesn't appear to be a way to prevent this compiler from
14073 # explicitly linking system object files so we need to strip them
14074 # from the output so that they don't get included in the library
14076 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'
14079 # IBM XL 8.0 on PPC, with GNU ld
14080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14082 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 if test "x$supports_anon_versioning" = xyes; then
14084 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14086 echo "local: *; };" >> $output_objdir/$libname.ver~
14087 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14091 case `$CC -V 2>&1 | sed 5q` in
14094 no_undefined_flag_CXX=' -zdefs'
14095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096 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'
14097 hardcode_libdir_flag_spec_CXX='-R$libdir'
14098 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'
14099 compiler_needs_object_CXX=yes
14101 # Not sure whether something based on
14102 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14104 output_verbose_link_cmd='echo'
14106 # Archives containing C++ object files must be created using
14107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14108 # necessary to make sure instantiated templates are included
14110 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14118 # FIXME: insert proper C++ library support
14123 # FIXME: insert proper C++ library support
14128 case $cc_basename in
14130 # FIXME: insert proper C++ library support
14134 # FIXME: insert proper C++ library support
14141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14142 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14144 hardcode_libdir_flag_spec_CXX='-R$libdir'
14145 hardcode_direct_CXX=yes
14146 hardcode_shlibpath_var_CXX=no
14148 # Workaround some broken pre-1.5 toolchains
14149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14157 # C++ shared libraries are fairly broken
14162 if test -f /usr/libexec/ld.so; then
14163 hardcode_direct_CXX=yes
14164 hardcode_shlibpath_var_CXX=no
14165 hardcode_direct_absolute_CXX=yes
14166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14170 export_dynamic_flag_spec_CXX='${wl}-E'
14171 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14173 output_verbose_link_cmd=echo
14179 osf3* | osf4* | osf5*)
14180 case $cc_basename in
14182 # Kuck and Associates, Inc. (KAI) C++ Compiler
14184 # KCC will only create a shared library if the output file
14185 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14186 # to its proper name (with version) after linking.
14187 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'
14189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14190 hardcode_libdir_separator_CXX=:
14192 # Archives containing C++ object files must be created using
14193 # the KAI C++ compiler.
14195 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14196 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14200 # Rational C++ 2.4.1
14201 # FIXME: insert proper C++ library support
14207 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14208 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'
14209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14212 allow_undefined_flag_CXX=' -expect_unresolved \*'
14213 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'
14214 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14215 echo "-hidden">> $lib.exp~
14216 $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~
14218 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14222 hardcode_libdir_separator_CXX=:
14224 # Commands to make compiler produce verbose output that lists
14225 # what "hidden" libraries, object files and flags are used when
14226 # linking a shared library.
14228 # There doesn't appear to be a way to prevent this compiler from
14229 # explicitly linking system object files so we need to strip them
14230 # from the output so that they don't get included in the library
14232 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'
14235 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14236 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14239 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'
14242 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'
14246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14247 hardcode_libdir_separator_CXX=:
14249 # Commands to make compiler produce verbose output that lists
14250 # what "hidden" libraries, object files and flags are used when
14251 # linking a shared library.
14252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14255 # FIXME: insert proper C++ library support
14263 # FIXME: insert proper C++ library support
14268 case $cc_basename in
14271 # FIXME: insert proper C++ library support
14276 # FIXME: insert proper C++ library support
14280 # FIXME: insert proper C++ library support
14287 case $cc_basename in
14289 # Sun C++ 4.2, 5.x and Centerline C++
14290 archive_cmds_need_lc_CXX=yes
14291 no_undefined_flag_CXX=' -zdefs'
14292 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14294 $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'
14296 hardcode_libdir_flag_spec_CXX='-R$libdir'
14297 hardcode_shlibpath_var_CXX=no
14299 solaris2.[0-5] | solaris2.[0-5].*) ;;
14301 # The compiler driver will combine and reorder linker options,
14302 # but understands `-z linker_flag'.
14303 # Supported since Solaris 2.6 (maybe 2.5.1?)
14304 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14307 link_all_deplibs_CXX=yes
14309 output_verbose_link_cmd='echo'
14311 # Archives containing C++ object files must be created using
14312 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14313 # necessary to make sure instantiated templates are included
14315 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14318 # Green Hills C++ Compiler
14319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14321 # The C++ compiler must be used to create the archive.
14322 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14325 # GNU C++ compiler with Solaris linker
14326 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14327 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14328 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14329 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14330 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14331 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14333 # Commands to make compiler produce verbose output that lists
14334 # what "hidden" libraries, object files and flags are used when
14335 # linking a shared library.
14336 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14338 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14340 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14342 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14344 # Commands to make compiler produce verbose output that lists
14345 # what "hidden" libraries, object files and flags are used when
14346 # linking a shared library.
14347 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14350 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14352 solaris2.[0-5] | solaris2.[0-5].*) ;;
14354 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14363 no_undefined_flag_CXX='${wl}-z,text'
14364 archive_cmds_need_lc_CXX=no
14365 hardcode_shlibpath_var_CXX=no
14366 runpath_var='LD_RUN_PATH'
14368 case $cc_basename in
14370 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14371 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14374 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14375 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14380 sysv5* | sco3.2v5* | sco5v6*)
14381 # Note: We can NOT use -z defs as we might desire, because we do not
14382 # link with -lc, and that would cause any symbols used from libc to
14383 # always be unresolved, which means just about no library would
14384 # ever link correctly. If we're not using GNU ld we use -z text
14385 # though, which does catch some bad symbols but isn't as heavy-handed
14387 no_undefined_flag_CXX='${wl}-z,text'
14388 allow_undefined_flag_CXX='${wl}-z,nodefs'
14389 archive_cmds_need_lc_CXX=no
14390 hardcode_shlibpath_var_CXX=no
14391 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14392 hardcode_libdir_separator_CXX=':'
14393 link_all_deplibs_CXX=yes
14394 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14395 runpath_var='LD_RUN_PATH'
14397 case $cc_basename in
14399 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14410 case $cc_basename in
14412 # NonStop-UX NCC 3.20
14413 # FIXME: insert proper C++ library support
14417 # FIXME: insert proper C++ library support
14424 # FIXME: insert proper C++ library support
14429 # FIXME: insert proper C++ library support
14434 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14435 $as_echo "$ld_shlibs_CXX" >&6; }
14436 test "$ld_shlibs_CXX" = no && can_build_shared=no
14442 ## There is no encapsulation within the following macros, do not change
14443 ## the running order or otherwise move them around unless you know exactly
14444 ## what you are doing...
14445 # Dependencies to place before and after the object being linked:
14446 predep_objects_CXX=
14447 postdep_objects_CXX=
14450 compiler_lib_search_path_CXX=
14452 cat > conftest.$ac_ext <<_LT_EOF
14456 Foo (void) { a = 0; }
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; then
14467 # Parse the compiler output and extract the necessary
14468 # objects, libraries and library flags.
14470 # Sentinel used to keep track of whether or not we are before
14471 # the conftest object file.
14472 pre_test_object_deps_done=no
14474 for p in `eval "$output_verbose_link_cmd"`; do
14478 # Some compilers place space between "-{L,R}" and the path.
14479 # Remove the space.
14480 if test $p = "-L" ||
14481 test $p = "-R"; then
14488 if test "$pre_test_object_deps_done" = no; then
14491 # Internal compiler library paths should come after those
14492 # provided the user. The postdeps already come after the
14493 # user supplied libs so there is no need to process them.
14494 if test -z "$compiler_lib_search_path_CXX"; then
14495 compiler_lib_search_path_CXX="${prev}${p}"
14497 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14500 # The "-l" case would never come before the object being
14501 # linked, so don't bother handling this case.
14504 if test -z "$postdeps_CXX"; then
14505 postdeps_CXX="${prev}${p}"
14507 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14513 # This assumes that the test object file only shows up
14514 # once in the compiler output.
14515 if test "$p" = "conftest.$objext"; then
14516 pre_test_object_deps_done=yes
14520 if test "$pre_test_object_deps_done" = no; then
14521 if test -z "$predep_objects_CXX"; then
14522 predep_objects_CXX="$p"
14524 predep_objects_CXX="$predep_objects_CXX $p"
14527 if test -z "$postdep_objects_CXX"; then
14528 postdep_objects_CXX="$p"
14530 postdep_objects_CXX="$postdep_objects_CXX $p"
14535 *) ;; # Ignore the rest.
14543 echo "libtool.m4: error: problem compiling CXX test program"
14546 $RM -f confest.$objext
14548 # PORTME: override above test on systems where it is broken
14551 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14552 # hack all around it, let's just trust "g++" to DTRT.
14553 predep_objects_CXX=
14554 postdep_objects_CXX=
14559 case `$CC -V 2>&1 | sed 5q` in
14563 # The more standards-conforming stlport4 library is
14564 # incompatible with the Cstd library. Avoid specifying
14565 # it if it's in CXXFLAGS. Ignore libCrun as
14566 # -library=stlport4 depends on it.
14567 case " $CXX $CXXFLAGS " in
14568 *" -library=stlport4 "*)
14569 solaris_use_stlport4=yes
14573 if test "$solaris_use_stlport4" != yes; then
14574 postdeps_CXX='-library=Cstd -library=Crun'
14581 case $cc_basename in
14583 # The more standards-conforming stlport4 library is
14584 # incompatible with the Cstd library. Avoid specifying
14585 # it if it's in CXXFLAGS. Ignore libCrun as
14586 # -library=stlport4 depends on it.
14587 case " $CXX $CXXFLAGS " in
14588 *" -library=stlport4 "*)
14589 solaris_use_stlport4=yes
14593 # Adding this requires a known-good setup of shared libraries for
14594 # Sun compiler versions before 5.6, else PIC objects from an old
14595 # archive will be linked into the output, leading to subtle bugs.
14596 if test "$solaris_use_stlport4" != yes; then
14597 postdeps_CXX='-library=Cstd -library=Crun'
14605 case " $postdeps_CXX " in
14606 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14608 compiler_lib_search_dirs_CXX=
14609 if test -n "${compiler_lib_search_path_CXX}"; then
14610 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14643 lt_prog_compiler_wl_CXX=
14644 lt_prog_compiler_pic_CXX=
14645 lt_prog_compiler_static_CXX=
14647 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14648 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14650 # C++ specific cases for pic, static, wl, etc.
14651 if test "$GXX" = yes; then
14652 lt_prog_compiler_wl_CXX='-Wl,'
14653 lt_prog_compiler_static_CXX='-static'
14657 # All AIX code is PIC.
14658 if test "$host_cpu" = ia64; then
14659 # AIX 5 now supports IA64 processor
14660 lt_prog_compiler_static_CXX='-Bstatic'
14667 # see comment about AmigaOS4 .so support
14668 lt_prog_compiler_pic_CXX='-fPIC'
14671 # FIXME: we need at least 68020 code to build shared libraries, but
14672 # adding the `-m68020' flag to GCC prevents building anything better,
14674 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14680 # PIC is the default for these OSes.
14682 mingw* | cygwin* | os2* | pw32* | cegcc*)
14683 # This hack is so that the source file can tell whether it is being
14684 # built for inclusion in a dll (and should export symbols for example).
14685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14686 # (--disable-auto-import) libraries
14687 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14689 darwin* | rhapsody*)
14690 # PIC is the default on this platform
14691 # Common symbols not allowed in MH_DYLIB files
14692 lt_prog_compiler_pic_CXX='-fno-common'
14695 # DJGPP does not support shared libraries at all
14696 lt_prog_compiler_pic_CXX=
14699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14700 # Instead, we relocate shared libraries at runtime.
14703 if test -d /usr/nec; then
14704 lt_prog_compiler_pic_CXX=-Kconform_pic
14708 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14709 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14710 # sets the default TLS model and affects inlining.
14715 lt_prog_compiler_pic_CXX='-fPIC'
14720 # QNX uses GNU C++, but need to define -shared option too, otherwise
14721 # it will coredump.
14722 lt_prog_compiler_pic_CXX='-fPIC -shared'
14725 lt_prog_compiler_pic_CXX='-fPIC'
14731 # All AIX code is PIC.
14732 if test "$host_cpu" = ia64; then
14733 # AIX 5 now supports IA64 processor
14734 lt_prog_compiler_static_CXX='-Bstatic'
14736 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14740 case $cc_basename in
14742 # Green Hills C++ Compiler
14743 # _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"
14748 case $cc_basename in
14750 lt_prog_compiler_pic_CXX='-KPIC'
14753 # Green Hills C++ Compiler
14754 lt_prog_compiler_pic_CXX='-pic'
14760 freebsd* | dragonfly*)
14761 # FreeBSD uses GNU C++
14763 hpux9* | hpux10* | hpux11*)
14764 case $cc_basename in
14766 lt_prog_compiler_wl_CXX='-Wl,'
14767 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14768 if test "$host_cpu" != ia64; then
14769 lt_prog_compiler_pic_CXX='+Z'
14773 lt_prog_compiler_wl_CXX='-Wl,'
14774 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14780 lt_prog_compiler_pic_CXX='+Z'
14789 # This is c89, which is MS Visual C++ (no shared libs)
14790 # Anyone wants to do a port?
14792 irix5* | irix6* | nonstopux*)
14793 case $cc_basename in
14795 lt_prog_compiler_wl_CXX='-Wl,'
14796 lt_prog_compiler_static_CXX='-non_shared'
14797 # CC pic flag -KPIC is the default.
14803 linux* | k*bsd*-gnu)
14804 case $cc_basename in
14807 lt_prog_compiler_wl_CXX='--backend -Wl,'
14808 lt_prog_compiler_pic_CXX='-fPIC'
14811 # old Intel C++ for x86_64 which still supported -KPIC.
14812 lt_prog_compiler_wl_CXX='-Wl,'
14813 lt_prog_compiler_pic_CXX='-KPIC'
14814 lt_prog_compiler_static_CXX='-static'
14817 # Intel C++, used to be incompatible with GCC.
14818 # ICC 10 doesn't accept -KPIC any more.
14819 lt_prog_compiler_wl_CXX='-Wl,'
14820 lt_prog_compiler_pic_CXX='-fPIC'
14821 lt_prog_compiler_static_CXX='-static'
14824 # Portland Group C++ compiler
14825 lt_prog_compiler_wl_CXX='-Wl,'
14826 lt_prog_compiler_pic_CXX='-fpic'
14827 lt_prog_compiler_static_CXX='-Bstatic'
14831 # Make sure the PIC flag is empty. It appears that all Alpha
14832 # Linux and Compaq Tru64 Unix objects are PIC.
14833 lt_prog_compiler_pic_CXX=
14834 lt_prog_compiler_static_CXX='-non_shared'
14837 # IBM XL 8.0 on PPC
14838 lt_prog_compiler_wl_CXX='-Wl,'
14839 lt_prog_compiler_pic_CXX='-qpic'
14840 lt_prog_compiler_static_CXX='-qstaticlink'
14843 case `$CC -V 2>&1 | sed 5q` in
14846 lt_prog_compiler_pic_CXX='-KPIC'
14847 lt_prog_compiler_static_CXX='-Bstatic'
14848 lt_prog_compiler_wl_CXX='-Qoption ld '
14859 case $cc_basename in
14861 lt_prog_compiler_pic_CXX='-W c,exportall'
14870 # QNX uses GNU C++, but need to define -shared option too, otherwise
14871 # it will coredump.
14872 lt_prog_compiler_pic_CXX='-fPIC -shared'
14874 osf3* | osf4* | osf5*)
14875 case $cc_basename in
14877 lt_prog_compiler_wl_CXX='--backend -Wl,'
14880 # Rational C++ 2.4.1
14881 lt_prog_compiler_pic_CXX='-pic'
14884 # Digital/Compaq C++
14885 lt_prog_compiler_wl_CXX='-Wl,'
14886 # Make sure the PIC flag is empty. It appears that all Alpha
14887 # Linux and Compaq Tru64 Unix objects are PIC.
14888 lt_prog_compiler_pic_CXX=
14889 lt_prog_compiler_static_CXX='-non_shared'
14898 case $cc_basename in
14900 # Sun C++ 4.2, 5.x and Centerline C++
14901 lt_prog_compiler_pic_CXX='-KPIC'
14902 lt_prog_compiler_static_CXX='-Bstatic'
14903 lt_prog_compiler_wl_CXX='-Qoption ld '
14906 # Green Hills C++ Compiler
14907 lt_prog_compiler_pic_CXX='-PIC'
14914 case $cc_basename in
14917 lt_prog_compiler_pic_CXX='-pic'
14918 lt_prog_compiler_static_CXX='-Bstatic'
14922 lt_prog_compiler_pic_CXX='-pic'
14928 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14929 case $cc_basename in
14931 lt_prog_compiler_wl_CXX='-Wl,'
14932 lt_prog_compiler_pic_CXX='-KPIC'
14933 lt_prog_compiler_static_CXX='-Bstatic'
14938 case $cc_basename in
14940 # NonStop-UX NCC 3.20
14941 lt_prog_compiler_pic_CXX='-KPIC'
14950 lt_prog_compiler_can_build_shared_CXX=no
14956 # For platforms which do not support PIC, -DPIC is meaningless:
14958 lt_prog_compiler_pic_CXX=
14961 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14964 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14965 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14970 # Check to make sure the PIC flag actually works.
14972 if test -n "$lt_prog_compiler_pic_CXX"; then
14973 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14974 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14975 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14976 $as_echo_n "(cached) " >&6
14978 lt_cv_prog_compiler_pic_works_CXX=no
14979 ac_outfile=conftest.$ac_objext
14980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14981 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14982 # Insert the option either (1) after the last *FLAGS variable, or
14983 # (2) before a word containing "conftest.", or (3) at the end.
14984 # Note that $ac_compile itself does not contain backslashes and begins
14985 # with a dollar sign (not a hyphen), so the echo should work correctly.
14986 # The option is referenced via a variable to avoid confusing sed.
14987 lt_compile=`echo "$ac_compile" | $SED \
14988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14990 -e 's:$: $lt_compiler_flag:'`
14991 (eval echo "\"\$as_me:14991: $lt_compile\"" >&5)
14992 (eval "$lt_compile" 2>conftest.err)
14994 cat conftest.err >&5
14995 echo "$as_me:14995: \$? = $ac_status" >&5
14996 if (exit $ac_status) && test -s "$ac_outfile"; then
14997 # The compiler can only warn and ignore the option if not recognized
14998 # So say no if there are warnings other than the usual output.
14999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15002 lt_cv_prog_compiler_pic_works_CXX=yes
15008 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15009 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15011 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15012 case $lt_prog_compiler_pic_CXX in
15014 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15017 lt_prog_compiler_pic_CXX=
15018 lt_prog_compiler_can_build_shared_CXX=no
15026 # Check to make sure the static flag actually works.
15028 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15029 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15030 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15031 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15032 $as_echo_n "(cached) " >&6
15034 lt_cv_prog_compiler_static_works_CXX=no
15035 save_LDFLAGS="$LDFLAGS"
15036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15039 # The linker can only warn and ignore the option if not recognized
15040 # So say no if there are warnings
15041 if test -s conftest.err; then
15042 # Append any errors to the config.log.
15043 cat conftest.err 1>&5
15044 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15046 if diff conftest.exp conftest.er2 >/dev/null; then
15047 lt_cv_prog_compiler_static_works_CXX=yes
15050 lt_cv_prog_compiler_static_works_CXX=yes
15054 LDFLAGS="$save_LDFLAGS"
15057 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15058 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15060 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15063 lt_prog_compiler_static_CXX=
15069 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15071 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15072 $as_echo_n "(cached) " >&6
15074 lt_cv_prog_compiler_c_o_CXX=no
15075 $RM -r conftest 2>/dev/null
15079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15081 lt_compiler_flag="-o out/conftest2.$ac_objext"
15082 # Insert the option either (1) after the last *FLAGS variable, or
15083 # (2) before a word containing "conftest.", or (3) at the end.
15084 # Note that $ac_compile itself does not contain backslashes and begins
15085 # with a dollar sign (not a hyphen), so the echo should work correctly.
15086 lt_compile=`echo "$ac_compile" | $SED \
15087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15089 -e 's:$: $lt_compiler_flag:'`
15090 (eval echo "\"\$as_me:15090: $lt_compile\"" >&5)
15091 (eval "$lt_compile" 2>out/conftest.err)
15093 cat out/conftest.err >&5
15094 echo "$as_me:15094: \$? = $ac_status" >&5
15095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15097 # The compiler can only warn and ignore the option if not recognized
15098 # So say no if there are warnings
15099 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15102 lt_cv_prog_compiler_c_o_CXX=yes
15107 # SGI C++ compiler will create directory out/ii_files/ for
15108 # template instantiation
15109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15110 $RM out/* && rmdir out
15116 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15117 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15121 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15123 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15124 $as_echo_n "(cached) " >&6
15126 lt_cv_prog_compiler_c_o_CXX=no
15127 $RM -r conftest 2>/dev/null
15131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 lt_compiler_flag="-o out/conftest2.$ac_objext"
15134 # Insert the option either (1) after the last *FLAGS variable, or
15135 # (2) before a word containing "conftest.", or (3) at the end.
15136 # Note that $ac_compile itself does not contain backslashes and begins
15137 # with a dollar sign (not a hyphen), so the echo should work correctly.
15138 lt_compile=`echo "$ac_compile" | $SED \
15139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15141 -e 's:$: $lt_compiler_flag:'`
15142 (eval echo "\"\$as_me:15142: $lt_compile\"" >&5)
15143 (eval "$lt_compile" 2>out/conftest.err)
15145 cat out/conftest.err >&5
15146 echo "$as_me:15146: \$? = $ac_status" >&5
15147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15149 # The compiler can only warn and ignore the option if not recognized
15150 # So say no if there are warnings
15151 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15154 lt_cv_prog_compiler_c_o_CXX=yes
15159 # SGI C++ compiler will create directory out/ii_files/ for
15160 # template instantiation
15161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15162 $RM out/* && rmdir out
15168 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15169 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15174 hard_links="nottested"
15175 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15176 # do not overwrite the value of need_locks provided by the user
15177 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15178 $as_echo_n "checking if we can lock with hard links... " >&6; }
15181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183 ln conftest.a conftest.b 2>&5 || hard_links=no
15184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15185 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15186 $as_echo "$hard_links" >&6; }
15187 if test "$hard_links" = no; then
15188 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15189 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15198 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15201 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15204 # If we're using GNU nm, then we don't want the "-C" option.
15205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15207 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'
15209 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'
15213 export_symbols_cmds_CXX="$ltdll_cmds"
15215 cygwin* | mingw* | cegcc*)
15216 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'
15219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15224 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15225 $as_echo "$ld_shlibs_CXX" >&6; }
15226 test "$ld_shlibs_CXX" = no && can_build_shared=no
15228 with_gnu_ld_CXX=$with_gnu_ld
15236 # Do we need to explicitly link libc?
15238 case "x$archive_cmds_need_lc_CXX" in
15240 # Assume -lc should be added
15241 archive_cmds_need_lc_CXX=yes
15243 if test "$enable_shared" = yes && test "$GCC" = yes; then
15244 case $archive_cmds_CXX in
15246 # FIXME: we may have to deal with multi-command sequences.
15249 # Test whether the compiler implicitly links with -lc since on some
15250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15251 # to ld, don't add -lc before -lgcc.
15252 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>&5
15260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } 2>conftest.err; then
15264 libobjs=conftest.$ac_objext
15266 wl=$lt_prog_compiler_wl_CXX
15267 pic_flag=$lt_prog_compiler_pic_CXX
15273 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15274 allow_undefined_flag_CXX=
15275 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15276 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }
15281 archive_cmds_need_lc_CXX=no
15283 archive_cmds_need_lc_CXX=yes
15285 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15287 cat conftest.err 1>&5
15290 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15291 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15361 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15362 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15364 library_names_spec=
15365 libname_spec='lib$name'
15369 postuninstall_cmds=
15373 shlibpath_overrides_runpath=unknown
15375 dynamic_linker="$host_os ld.so"
15376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15377 need_lib_prefix=unknown
15378 hardcode_into_libs=no
15380 # when you set need_version to no, make sure it does not cause -set_version
15381 # flags to be left without arguments
15382 need_version=unknown
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15388 shlibpath_var=LIBPATH
15390 # AIX 3 has no versioning support, so we append a major version to the name.
15391 soname_spec='${libname}${release}${shared_ext}$major'
15398 hardcode_into_libs=yes
15399 if test "$host_cpu" = ia64; then
15400 # AIX 5 supports IA64
15401 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15402 shlibpath_var=LD_LIBRARY_PATH
15404 # With GCC up to 2.95.x, collect2 would create an import file
15405 # for dependence libraries. The import file would start with
15406 # the line `#! .'. This would cause the generated library to
15407 # depend on `.', always an invalid library. This was fixed in
15408 # development snapshots of GCC prior to 3.0.
15410 aix4 | aix4.[01] | aix4.[01].*)
15411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15413 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15416 can_build_shared=no
15420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15421 # soname into executable. Probably we can add versioning support to
15422 # collect2, so additional links can be useful in future.
15423 if test "$aix_use_runtimelinking" = yes; then
15424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15425 # instead of lib<name>.a to let people know that these are not
15426 # typical AIX shared libraries.
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 # We preserve .a as extension for shared libraries through AIX4.2
15430 # and later when we are not doing run time linking.
15431 library_names_spec='${libname}${release}.a $libname.a'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15434 shlibpath_var=LIBPATH
15441 # Since July 2007 AmigaOS4 officially supports .so libraries.
15442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 library_names_spec='$libname.ixlibrary $libname.a'
15447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15448 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'
15454 library_names_spec='${libname}${shared_ext}'
15455 dynamic_linker="$host_os ld.so"
15456 shlibpath_var=LIBRARY_PATH
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15464 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15467 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15468 # the default ld.so.conf also contains /usr/contrib/lib and
15469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15470 # libtool to hard-code these into programs
15473 cygwin* | mingw* | pw32* | cegcc*)
15474 version_type=windows
15479 case $GCC,$host_os in
15480 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15481 library_names_spec='$libname.dll.a'
15482 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15483 postinstall_cmds='base_file=`basename \${file}`~
15484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15485 dldir=$destdir/`dirname \$dlpath`~
15486 test -d \$dldir || mkdir -p \$dldir~
15487 $install_prog $dir/$dlname \$dldir/$dlname~
15488 chmod a+x \$dldir/$dlname~
15489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15493 dlpath=$dir/\$dldll~
15495 shlibpath_overrides_runpath=yes
15499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15504 # MinGW DLLs use traditional 'lib' prefix
15505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15507 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15508 # It is most probably a Windows format PATH printed by
15509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15510 # path with ; separators, and with drive letters. We can handle the
15511 # drive letters (cygwin fileutils understands them), so leave them,
15512 # especially as we might pass files found there to a mingw objdump,
15513 # which wouldn't understand a cygwinified path. Ahh.
15514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15520 # pw32 DLLs use 'pw' prefix rather than 'lib'
15521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15530 dynamic_linker='Win32 ld.exe'
15531 # FIXME: first we should search . and the directory the executable is in
15535 darwin* | rhapsody*)
15536 dynamic_linker="$host_os dyld"
15537 version_type=darwin
15540 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15541 soname_spec='${libname}${release}${major}$shared_ext'
15542 shlibpath_overrides_runpath=yes
15543 shlibpath_var=DYLD_LIBRARY_PATH
15544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15562 freebsd* | dragonfly*)
15563 # DragonFly does not have aout. When/if they implement a new
15564 # versioning mechanism, adjust this.
15565 if test -x /usr/bin/objformat; then
15566 objformat=`/usr/bin/objformat`
15569 freebsd[123]*) objformat=aout ;;
15570 *) objformat=elf ;;
15573 version_type=freebsd-$objformat
15574 case $version_type in
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15585 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15590 freebsd3.[01]* | freebsdelf3.[01]*)
15591 shlibpath_overrides_runpath=yes
15592 hardcode_into_libs=yes
15594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15596 shlibpath_overrides_runpath=no
15597 hardcode_into_libs=yes
15599 *) # from 4.6 on, and DragonFly
15600 shlibpath_overrides_runpath=yes
15601 hardcode_into_libs=yes
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 hardcode_into_libs=yes
15616 hpux9* | hpux10* | hpux11*)
15617 # Give a soname corresponding to the major version so that dld.sl refuses to
15618 # link against other versions.
15625 hardcode_into_libs=yes
15626 dynamic_linker="$host_os dld.so"
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 if test "X$HPUX_IA64_MODE" = X32; then
15632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15640 hardcode_into_libs=yes
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15651 dynamic_linker="$host_os dld.sl"
15652 shlibpath_var=SHLIB_PATH
15653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15659 postinstall_cmds='chmod 555 $lib'
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15669 shlibpath_var=LD_LIBRARY_PATH
15670 shlibpath_overrides_runpath=no
15671 hardcode_into_libs=yes
15674 irix5* | irix6* | nonstopux*)
15676 nonstopux*) version_type=nonstopux ;;
15678 if test "$lt_cv_prog_gnu_ld" = yes; then
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15689 irix5* | nonstopux*)
15690 libsuff= shlibsuff=
15693 case $LD in # libtool.m4 will add one of these switches to LD
15694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15695 libsuff= shlibsuff= libmagic=32-bit;;
15696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15697 libsuff=32 shlibsuff=N32 libmagic=N32;;
15698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15700 *) libsuff= shlibsuff= libmagic=never-match;;
15704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15705 shlibpath_overrides_runpath=no
15706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15708 hardcode_into_libs=yes
15711 # No shared lib support for Linux oldld, aout, or coff.
15712 linux*oldld* | linux*aout* | linux*coff*)
15716 # This must be Linux ELF.
15717 linux* | k*bsd*-gnu)
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 # Some binutils ld are patched to set DT_RUNPATH
15727 save_LDFLAGS=$LDFLAGS
15728 save_libdir=$libdir
15729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15753 $as_echo "$ac_try_echo") >&5
15754 (eval "$ac_link") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_cxx_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest$ac_exeext && {
15764 test "$cross_compiling" = yes ||
15765 $as_test_x conftest$ac_exeext
15767 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15768 shlibpath_overrides_runpath=yes
15772 $as_echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15778 rm -rf conftest.dSYM
15779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15780 conftest$ac_exeext conftest.$ac_ext
15781 LDFLAGS=$save_LDFLAGS
15782 libdir=$save_libdir
15784 # This implies no fast_install, which is unacceptable.
15785 # Some rework will be needed to allow for fast_install
15786 # before this can be enabled.
15787 hardcode_into_libs=yes
15789 # Append ld.so.conf contents to the search path
15790 if test -f /etc/ld.so.conf; then
15791 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' ' '`
15792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15795 # We used to test for /lib/ld.so.1 and disable shared libraries on
15796 # powerpc, because MkLinux only supported shared libraries with the
15797 # GNU dynamic linker. Since this was broken with cross compilers,
15798 # most powerpc-linux boxes support dynamic linking these days and
15799 # people can always --disable-shared, the test was removed, and we
15800 # assume the GNU/Linux dynamic linker is in use.
15801 dynamic_linker='GNU/Linux ld.so'
15808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811 dynamic_linker='NetBSD (a.out) ld.so'
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 dynamic_linker='NetBSD ld.elf_so'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=no
15837 hardcode_into_libs=yes
15838 dynamic_linker='ldqnx.so'
15843 sys_lib_dlsearch_path_spec="/usr/lib"
15845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15848 *) need_version=no ;;
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15855 openbsd2.[89] | openbsd2.[89].*)
15856 shlibpath_overrides_runpath=no
15859 shlibpath_overrides_runpath=yes
15863 shlibpath_overrides_runpath=yes
15868 libname_spec='$name'
15871 library_names_spec='$libname${shared_ext} $libname.a'
15872 dynamic_linker='OS/2 ld.exe'
15873 shlibpath_var=LIBPATH
15876 osf3* | osf4* | osf5*)
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882 shlibpath_var=LD_LIBRARY_PATH
15883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15900 # ldd complains unless libraries are executable
15901 postinstall_cmds='chmod +x $lib'
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 shlibpath_overrides_runpath=yes
15910 if test "$with_gnu_ld" = yes; then
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 soname_spec='${libname}${release}${shared_ext}$major'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 case $host_vendor in
15923 shlibpath_overrides_runpath=no
15925 runpath_var=LD_RUN_PATH
15933 shlibpath_overrides_runpath=no
15934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15940 if test -d /usr/nec ;then
15942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15943 soname_spec='$libname${shared_ext}.$major'
15944 shlibpath_var=LD_LIBRARY_PATH
15948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15949 version_type=freebsd-elf
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 shlibpath_overrides_runpath=yes
15956 hardcode_into_libs=yes
15957 if test "$with_gnu_ld" = yes; then
15958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15967 sys_lib_dlsearch_path_spec='/usr/lib'
15971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 shlibpath_var=LD_LIBRARY_PATH
15992 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15993 $as_echo "$dynamic_linker" >&6; }
15994 test "$dynamic_linker" = no && can_build_shared=no
15996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15997 if test "$GCC" = yes; then
15998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16001 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16002 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16004 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16005 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16043 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16045 hardcode_action_CXX=
16046 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16047 test -n "$runpath_var_CXX" ||
16048 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16050 # We can hardcode non-existent directories.
16051 if test "$hardcode_direct_CXX" != no &&
16052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16053 # have to relink, otherwise we might link with an installed library
16054 # when we should be linking with a yet-to-be-installed one
16055 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16056 test "$hardcode_minus_L_CXX" != no; then
16057 # Linking always hardcodes the temporary library directory.
16058 hardcode_action_CXX=relink
16060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16061 hardcode_action_CXX=immediate
16064 # We cannot hardcode anything, or else we can only hardcode existing
16066 hardcode_action_CXX=unsupported
16068 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16069 $as_echo "$hardcode_action_CXX" >&6; }
16071 if test "$hardcode_action_CXX" = relink ||
16072 test "$inherit_rpath_CXX" = yes; then
16073 # Fast installation is not supported
16074 enable_fast_install=no
16075 elif test "$shlibpath_overrides_runpath" = yes ||
16076 test "$enable_shared" = no; then
16077 # Fast installation is not necessary
16078 enable_fast_install=needless
16087 fi # test -n "$compiler"
16093 with_gnu_ld=$lt_save_with_gnu_ld
16094 lt_cv_path_LDCXX=$lt_cv_path_LD
16095 lt_cv_path_LD=$lt_save_path_LD
16096 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16097 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16098 fi # test "$_lt_caught_CXX_error" != yes
16101 ac_cpp='$CPP $CPPFLAGS'
16102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16118 ac_config_commands="$ac_config_commands libtool"
16123 # Only expand once:
16128 if test x$use_libtool != xno; then
16129 DEFAULT_OBJECT_TYPE=".lo"
16130 DEFAULT_ARCHIVE_TYPE=".la"
16131 DEFAULT_SHARED_OBJECT_TYPE=".la"
16132 LIBTOOL="\$(LIBTOOL)"
16133 LIBTOOL_INSTALL_TARGET="libtool-install"
16134 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16135 LIBTOOL_CLEAN_TARGET="libtool-clean"
16136 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16137 FD_PLUGIN_DIR="src/plugins/fd"
16140 DEFAULT_OBJECT_TYPE=".o"
16141 DEFAULT_ARCHIVE_TYPE=".a"
16142 DEFAULT_SHARED_OBJECT_TYPE=".so"
16143 LIBTOOL="# \$(LIBTOOL)"
16144 LIBTOOL_INSTALL_TARGET=""
16145 LIBTOOL_UNINSTALL_TARGET=""
16146 LIBTOOL_CLEAN_TARGET=""
16147 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16162 # Check whether --enable-includes was given.
16163 if test "${enable_includes+set}" = set; then
16164 enableval=$enable_includes;
16165 if test x$enableval = xyes; then
16166 install_includes=yes
16174 if test x$use_libtool != xno -a x$install_includes = xyes; then
16175 INCLUDE_INSTALL_TARGET="install-includes"
16176 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16178 INCLUDE_INSTALL_TARGET=""
16179 INCLUDE_UNINSTALL_TARGET=""
16185 { $as_echo "$as_me:$LINENO: checking host system type" >&5
16186 $as_echo_n "checking host system type... " >&6; }
16187 if test "${ac_cv_host+set}" = set; then
16188 $as_echo_n "(cached) " >&6
16190 if test "x$host_alias" = x; then
16191 ac_cv_host=$ac_cv_build
16193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16194 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16195 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16196 { (exit 1); exit 1; }; }
16200 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16201 $as_echo "$ac_cv_host" >&6; }
16202 case $ac_cv_host in
16204 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16205 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
16206 { (exit 1); exit 1; }; };;
16209 ac_save_IFS=$IFS; IFS='-'
16215 # Remember, the first character of IFS is used to create $*,
16216 # except with old shells:
16219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16223 *cygwin* ) CYGWIN=yes;;
16227 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16233 HAVE_SUN_OS_FALSE='#'
16235 HAVE_SUN_OS_TRUE='#'
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_SUN_OS 1
16247 HAVE_SUN_OS_FALSE='#'
16249 HAVE_SUN_OS_TRUE='#'
16254 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16260 HAVE_OSF1_OS_FALSE='#'
16262 HAVE_OSF1_OS_TRUE='#'
16263 HAVE_OSF1_OS_FALSE=
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_OSF1_OS 1
16274 HAVE_OSF1_OS_FALSE='#'
16276 HAVE_OSF1_OS_TRUE='#'
16277 HAVE_OSF1_OS_FALSE=
16281 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16287 HAVE_AIX_OS_FALSE='#'
16289 HAVE_AIX_OS_TRUE='#'
16292 cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_AIX_OS 1
16301 HAVE_AIX_OS_FALSE='#'
16303 HAVE_AIX_OS_TRUE='#'
16308 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16314 HAVE_HPUX_OS_FALSE='#'
16316 HAVE_HPUX_OS_TRUE='#'
16317 HAVE_HPUX_OS_FALSE=
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_HPUX_OS 1
16328 HAVE_HPUX_OS_FALSE='#'
16330 HAVE_HPUX_OS_TRUE='#'
16331 HAVE_HPUX_OS_FALSE=
16335 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16340 HAVE_LINUX_OS_TRUE=
16341 HAVE_LINUX_OS_FALSE='#'
16343 HAVE_LINUX_OS_TRUE='#'
16344 HAVE_LINUX_OS_FALSE=
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_LINUX_OS 1
16354 HAVE_LINUX_OS_TRUE=
16355 HAVE_LINUX_OS_FALSE='#'
16357 HAVE_LINUX_OS_TRUE='#'
16358 HAVE_LINUX_OS_FALSE=
16362 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16367 HAVE_FREEBSD_OS_TRUE=
16368 HAVE_FREEBSD_OS_FALSE='#'
16370 HAVE_FREEBSD_OS_TRUE='#'
16371 HAVE_FREEBSD_OS_FALSE=
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_FREEBSD_OS 1
16381 HAVE_FREEBSD_OS_TRUE=
16382 HAVE_FREEBSD_OS_FALSE='#'
16384 HAVE_FREEBSD_OS_TRUE='#'
16385 HAVE_FREEBSD_OS_FALSE=
16389 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16394 HAVE_NETBSD_OS_TRUE=
16395 HAVE_NETBSD_OS_FALSE='#'
16397 HAVE_NETBSD_OS_TRUE='#'
16398 HAVE_NETBSD_OS_FALSE=
16400 cat >>confdefs.h <<\_ACEOF
16401 #define HAVE_NETBSD_OS 1
16408 HAVE_NETBSD_OS_TRUE=
16409 HAVE_NETBSD_OS_FALSE='#'
16411 HAVE_NETBSD_OS_TRUE='#'
16412 HAVE_NETBSD_OS_FALSE=
16416 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16421 HAVE_OPENBSD_OS_TRUE=
16422 HAVE_OPENBSD_OS_FALSE='#'
16424 HAVE_OPENBSD_OS_TRUE='#'
16425 HAVE_OPENBSD_OS_FALSE=
16427 cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_OPENBSD_OS 1
16435 HAVE_OPENBSD_OS_TRUE=
16436 HAVE_OPENBSD_OS_FALSE='#'
16438 HAVE_OPENBSD_OS_TRUE='#'
16439 HAVE_OPENBSD_OS_FALSE=
16443 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16449 HAVE_BSDI_OS_FALSE='#'
16451 HAVE_BSDI_OS_TRUE='#'
16452 HAVE_BSDI_OS_FALSE=
16454 cat >>confdefs.h <<\_ACEOF
16455 #define HAVE_BSDI_OS 1
16463 HAVE_BSDI_OS_FALSE='#'
16465 HAVE_BSDI_OS_TRUE='#'
16466 HAVE_BSDI_OS_FALSE=
16470 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16476 HAVE_SGI_OS_FALSE='#'
16478 HAVE_SGI_OS_TRUE='#'
16481 cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_SGI_OS 1
16490 HAVE_SGI_OS_FALSE='#'
16492 HAVE_SGI_OS_TRUE='#'
16497 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16503 HAVE_IRIX_OS_FALSE='#'
16505 HAVE_IRIX_OS_TRUE='#'
16506 HAVE_IRIX_OS_FALSE=
16508 cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_IRIX_OS 1
16517 HAVE_IRIX_OS_FALSE='#'
16519 HAVE_IRIX_OS_TRUE='#'
16520 HAVE_IRIX_OS_FALSE=
16524 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16529 HAVE_DARWIN_OS_TRUE=
16530 HAVE_DARWIN_OS_FALSE='#'
16532 HAVE_DARWIN_OS_TRUE='#'
16533 HAVE_DARWIN_OS_FALSE=
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_DARWIN_OS 1
16543 HAVE_DARWIN_OS_TRUE=
16544 HAVE_DARWIN_OS_FALSE='#'
16546 HAVE_DARWIN_OS_TRUE='#'
16547 HAVE_DARWIN_OS_FALSE=
16552 { $as_echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16553 $as_echo_n "checking for Operating System Distribution... " >&6; }
16554 if test "x$DISTNAME" != "x"
16556 echo "distname set to $DISTNAME"
16557 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16560 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16563 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16566 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16569 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16572 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16575 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16578 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16581 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16584 elif test -f /etc/SuSE-release
16587 elif test -d /etc/SuSEconfig
16590 elif test -f /etc/mandrake-release
16593 elif test -f /etc/whitebox-release
16596 elif test -f /etc/redhat-release
16599 elif test -f /etc/gentoo-release
16602 elif test -f /etc/debian_version
16605 elif test -f /etc/slackware-version
16608 elif test x$host_vendor = xapple
16611 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16614 elif test -f /etc/engarde-version
16617 elif test -f /etc/arch-release
16620 elif test "$CYGWIN" = yes
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_CYGWIN 1
16630 { $as_echo "$as_me:$LINENO: result: done" >&5
16631 $as_echo "done" >&6; }
16634 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16638 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16639 $as_echo_n "(cached) " >&6
16641 cat >conftest.make <<\_ACEOF
16644 @echo '@@@%%%=$(MAKE)=@@@%%%'
16646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16648 *@@@%%%=?*=@@@%%%*)
16649 eval ac_cv_prog_make_${ac_make}_set=yes;;
16651 eval ac_cv_prog_make_${ac_make}_set=no;;
16653 rm -f conftest.make
16655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16656 { $as_echo "$as_me:$LINENO: result: yes" >&5
16657 $as_echo "yes" >&6; }
16660 { $as_echo "$as_me:$LINENO: result: no" >&5
16661 $as_echo "no" >&6; }
16662 SET_MAKE="MAKE=${MAKE-make}"
16668 if test -n "$ac_aux_dir"; then
16669 case "$ac_aux_dir" in
16670 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16671 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16674 if test -z "$MKINSTALLDIRS"; then
16675 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16680 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16681 $as_echo_n "checking whether NLS is requested... " >&6; }
16682 # Check whether --enable-nls was given.
16683 if test "${enable_nls+set}" = set; then
16684 enableval=$enable_nls; USE_NLS=$enableval
16689 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16690 $as_echo "$USE_NLS" >&6; }
16697 # Prepare PATH_SEPARATOR.
16698 # The user is always right.
16699 if test "${PATH_SEPARATOR+set}" != set; then
16700 echo "#! /bin/sh" >conf$$.sh
16701 echo "exit 0" >>conf$$.sh
16703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16711 # Find out how to test for executable files. Don't use a zero-byte file,
16712 # as systems may use methods other than mode bits to determine executability.
16713 cat >conf$$.file <<_ASEOF
16717 chmod +x conf$$.file
16718 if test -x conf$$.file >/dev/null 2>&1; then
16719 ac_executable_p="test -x"
16721 ac_executable_p="test -f"
16725 # Extract the first word of "msgfmt", so it can be a program name with args.
16726 set dummy msgfmt; ac_word=$2
16727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16728 $as_echo_n "checking for $ac_word... " >&6; }
16729 if test "${ac_cv_path_MSGFMT+set}" = set; then
16730 $as_echo_n "(cached) " >&6
16734 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16737 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16738 for ac_dir in $PATH; do
16740 test -z "$ac_dir" && ac_dir=.
16741 for ac_exec_ext in '' $ac_executable_extensions; do
16742 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16743 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16744 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16745 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16746 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16757 MSGFMT="$ac_cv_path_MSGFMT"
16758 if test "$MSGFMT" != ":"; then
16759 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16760 $as_echo "$MSGFMT" >&6; }
16762 { $as_echo "$as_me:$LINENO: result: no" >&5
16763 $as_echo "no" >&6; }
16766 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16767 set dummy gmsgfmt; ac_word=$2
16768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16769 $as_echo_n "checking for $ac_word... " >&6; }
16770 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16771 $as_echo_n "(cached) " >&6
16775 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in $PATH
16782 test -z "$as_dir" && as_dir=.
16783 for ac_exec_ext in '' $ac_executable_extensions; do
16784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16785 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16793 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16797 GMSGFMT=$ac_cv_path_GMSGFMT
16798 if test -n "$GMSGFMT"; then
16799 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16800 $as_echo "$GMSGFMT" >&6; }
16802 { $as_echo "$as_me:$LINENO: result: no" >&5
16803 $as_echo "no" >&6; }
16809 # Prepare PATH_SEPARATOR.
16810 # The user is always right.
16811 if test "${PATH_SEPARATOR+set}" != set; then
16812 echo "#! /bin/sh" >conf$$.sh
16813 echo "exit 0" >>conf$$.sh
16815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16823 # Find out how to test for executable files. Don't use a zero-byte file,
16824 # as systems may use methods other than mode bits to determine executability.
16825 cat >conf$$.file <<_ASEOF
16829 chmod +x conf$$.file
16830 if test -x conf$$.file >/dev/null 2>&1; then
16831 ac_executable_p="test -x"
16833 ac_executable_p="test -f"
16837 # Extract the first word of "xgettext", so it can be a program name with args.
16838 set dummy xgettext; ac_word=$2
16839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16840 $as_echo_n "checking for $ac_word... " >&6; }
16841 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16842 $as_echo_n "(cached) " >&6
16844 case "$XGETTEXT" in
16846 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16850 for ac_dir in $PATH; do
16852 test -z "$ac_dir" && ac_dir=.
16853 for ac_exec_ext in '' $ac_executable_extensions; do
16854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16855 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16856 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16857 (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
16858 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16869 XGETTEXT="$ac_cv_path_XGETTEXT"
16870 if test "$XGETTEXT" != ":"; then
16871 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16872 $as_echo "$XGETTEXT" >&6; }
16874 { $as_echo "$as_me:$LINENO: result: no" >&5
16875 $as_echo "no" >&6; }
16881 # Prepare PATH_SEPARATOR.
16882 # The user is always right.
16883 if test "${PATH_SEPARATOR+set}" != set; then
16884 echo "#! /bin/sh" >conf$$.sh
16885 echo "exit 0" >>conf$$.sh
16887 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16895 # Find out how to test for executable files. Don't use a zero-byte file,
16896 # as systems may use methods other than mode bits to determine executability.
16897 cat >conf$$.file <<_ASEOF
16901 chmod +x conf$$.file
16902 if test -x conf$$.file >/dev/null 2>&1; then
16903 ac_executable_p="test -x"
16905 ac_executable_p="test -f"
16909 # Extract the first word of "msgmerge", so it can be a program name with args.
16910 set dummy msgmerge; ac_word=$2
16911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16912 $as_echo_n "checking for $ac_word... " >&6; }
16913 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16914 $as_echo_n "(cached) " >&6
16916 case "$MSGMERGE" in
16918 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16921 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16922 for ac_dir in $PATH; do
16924 test -z "$ac_dir" && ac_dir=.
16925 for ac_exec_ext in '' $ac_executable_extensions; do
16926 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16927 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16928 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16929 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16936 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16940 MSGMERGE="$ac_cv_path_MSGMERGE"
16941 if test "$MSGMERGE" != ":"; then
16942 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16943 $as_echo "$MSGMERGE" >&6; }
16945 { $as_echo "$as_me:$LINENO: result: no" >&5
16946 $as_echo "no" >&6; }
16950 if test "$GMSGFMT" != ":"; then
16951 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16952 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16955 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16956 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16957 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16962 if test "$XGETTEXT" != ":"; then
16963 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16964 (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
16967 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16968 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16974 ac_config_commands="$ac_config_commands default-1"
16978 if test "X$prefix" = "XNONE"; then
16979 acl_final_prefix="$ac_default_prefix"
16981 acl_final_prefix="$prefix"
16983 if test "X$exec_prefix" = "XNONE"; then
16984 acl_final_exec_prefix='${prefix}'
16986 acl_final_exec_prefix="$exec_prefix"
16988 acl_save_prefix="$prefix"
16989 prefix="$acl_final_prefix"
16990 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16991 prefix="$acl_save_prefix"
16994 # Check whether --with-gnu-ld was given.
16995 if test "${with_gnu_ld+set}" = set; then
16996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17001 # Prepare PATH_SEPARATOR.
17002 # The user is always right.
17003 if test "${PATH_SEPARATOR+set}" != set; then
17004 echo "#! /bin/sh" >conf$$.sh
17005 echo "exit 0" >>conf$$.sh
17007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17015 if test "$GCC" = yes; then
17016 # Check if gcc -print-prog-name=ld gives a path.
17017 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
17018 $as_echo_n "checking for ld used by GCC... " >&6; }
17021 # gcc leaves a trailing carriage return which upsets mingw
17022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17027 # Accept absolute paths.
17028 [\\/]* | [A-Za-z]:[\\/]*)
17029 re_direlt='/[^/][^/]*/\.\./'
17030 # Canonicalize the path of ld
17031 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17033 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17035 test -z "$LD" && LD="$ac_prog"
17038 # If it fails, then pretend we aren't using GCC.
17042 # If it is relative, then search for the first ld in PATH.
17043 with_gnu_ld=unknown
17046 elif test "$with_gnu_ld" = yes; then
17047 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
17048 $as_echo_n "checking for GNU ld... " >&6; }
17050 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17051 $as_echo_n "checking for non-GNU ld... " >&6; }
17053 if test "${acl_cv_path_LD+set}" = set; then
17054 $as_echo_n "(cached) " >&6
17056 if test -z "$LD"; then
17057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17058 for ac_dir in $PATH; do
17059 test -z "$ac_dir" && ac_dir=.
17060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17061 acl_cv_path_LD="$ac_dir/$ac_prog"
17062 # Check to see if the program is GNU ld. I'd rather use --version,
17063 # but apparently some GNU ld's only accept -v.
17064 # Break only if it was the GNU/non-GNU ld that we prefer.
17065 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17066 *GNU* | *'with BFD'*)
17067 test "$with_gnu_ld" != no && break ;;
17069 test "$with_gnu_ld" != yes && break ;;
17075 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17079 LD="$acl_cv_path_LD"
17080 if test -n "$LD"; then
17081 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17082 $as_echo "$LD" >&6; }
17084 { $as_echo "$as_me:$LINENO: result: no" >&5
17085 $as_echo "no" >&6; }
17087 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17088 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17089 { (exit 1); exit 1; }; }
17090 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17091 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17092 if test "${acl_cv_prog_gnu_ld+set}" = set; then
17093 $as_echo_n "(cached) " >&6
17095 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17096 case `$LD -v 2>&1 </dev/null` in
17097 *GNU* | *'with BFD'*)
17098 acl_cv_prog_gnu_ld=yes ;;
17100 acl_cv_prog_gnu_ld=no ;;
17103 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
17104 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17105 with_gnu_ld=$acl_cv_prog_gnu_ld
17110 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
17111 $as_echo_n "checking for shared library run path origin... " >&6; }
17112 if test "${acl_cv_rpath+set}" = set; then
17113 $as_echo_n "(cached) " >&6
17116 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17117 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17119 rm -f ./conftest.sh
17123 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
17124 $as_echo "$acl_cv_rpath" >&6; }
17126 libext="$acl_cv_libext"
17127 shlibext="$acl_cv_shlibext"
17128 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17129 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17130 hardcode_direct="$acl_cv_hardcode_direct"
17131 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17132 # Check whether --enable-rpath was given.
17133 if test "${enable_rpath+set}" = set; then
17134 enableval=$enable_rpath; :
17148 acl_save_prefix="$prefix"
17149 prefix="$acl_final_prefix"
17150 acl_save_exec_prefix="$exec_prefix"
17151 exec_prefix="$acl_final_exec_prefix"
17153 eval additional_includedir=\"$includedir\"
17154 eval additional_libdir=\"$libdir\"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17160 # Check whether --with-libiconv-prefix was given.
17161 if test "${with_libiconv_prefix+set}" = set; then
17162 withval=$with_libiconv_prefix;
17163 if test "X$withval" = "Xno"; then
17166 if test "X$withval" = "X"; then
17168 acl_save_prefix="$prefix"
17169 prefix="$acl_final_prefix"
17170 acl_save_exec_prefix="$exec_prefix"
17171 exec_prefix="$acl_final_exec_prefix"
17173 eval additional_includedir=\"$includedir\"
17174 eval additional_libdir=\"$libdir\"
17176 exec_prefix="$acl_save_exec_prefix"
17177 prefix="$acl_save_prefix"
17180 additional_includedir="$withval/include"
17181 additional_libdir="$withval/lib"
17192 names_already_handled=
17193 names_next_round='iconv '
17194 while test -n "$names_next_round"; do
17195 names_this_round="$names_next_round"
17197 for name in $names_this_round; do
17199 for n in $names_already_handled; do
17200 if test "$n" = "$name"; then
17201 already_handled=yes
17205 if test -z "$already_handled"; then
17206 names_already_handled="$names_already_handled $name"
17207 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17208 eval value=\"\$HAVE_LIB$uppername\"
17209 if test -n "$value"; then
17210 if test "$value" = yes; then
17211 eval value=\"\$LIB$uppername\"
17212 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17213 eval value=\"\$LTLIB$uppername\"
17214 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17223 if test $use_additional = yes; then
17224 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17225 found_dir="$additional_libdir"
17226 found_so="$additional_libdir/lib$name.$shlibext"
17227 if test -f "$additional_libdir/lib$name.la"; then
17228 found_la="$additional_libdir/lib$name.la"
17231 if test -f "$additional_libdir/lib$name.$libext"; then
17232 found_dir="$additional_libdir"
17233 found_a="$additional_libdir/lib$name.$libext"
17234 if test -f "$additional_libdir/lib$name.la"; then
17235 found_la="$additional_libdir/lib$name.la"
17240 if test "X$found_dir" = "X"; then
17241 for x in $LDFLAGS $LTLIBICONV; do
17243 acl_save_prefix="$prefix"
17244 prefix="$acl_final_prefix"
17245 acl_save_exec_prefix="$exec_prefix"
17246 exec_prefix="$acl_final_exec_prefix"
17248 exec_prefix="$acl_save_exec_prefix"
17249 prefix="$acl_save_prefix"
17253 dir=`echo "X$x" | sed -e 's/^X-L//'`
17254 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17256 found_so="$dir/lib$name.$shlibext"
17257 if test -f "$dir/lib$name.la"; then
17258 found_la="$dir/lib$name.la"
17261 if test -f "$dir/lib$name.$libext"; then
17263 found_a="$dir/lib$name.$libext"
17264 if test -f "$dir/lib$name.la"; then
17265 found_la="$dir/lib$name.la"
17271 if test "X$found_dir" != "X"; then
17276 if test "X$found_dir" != "X"; then
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17278 if test "X$found_so" != "X"; then
17279 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17280 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17283 for x in $ltrpathdirs; do
17284 if test "X$x" = "X$found_dir"; then
17289 if test -z "$haveit"; then
17290 ltrpathdirs="$ltrpathdirs $found_dir"
17292 if test "$hardcode_direct" = yes; then
17293 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17295 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17296 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17298 for x in $rpathdirs; do
17299 if test "X$x" = "X$found_dir"; then
17304 if test -z "$haveit"; then
17305 rpathdirs="$rpathdirs $found_dir"
17309 for x in $LDFLAGS $LIBICONV; do
17311 acl_save_prefix="$prefix"
17312 prefix="$acl_final_prefix"
17313 acl_save_exec_prefix="$exec_prefix"
17314 exec_prefix="$acl_final_exec_prefix"
17316 exec_prefix="$acl_save_exec_prefix"
17317 prefix="$acl_save_prefix"
17319 if test "X$x" = "X-L$found_dir"; then
17324 if test -z "$haveit"; then
17325 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17327 if test "$hardcode_minus_L" != no; then
17328 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17330 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17336 if test "X$found_a" != "X"; then
17337 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17339 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17342 additional_includedir=
17343 case "$found_dir" in
17345 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17346 additional_includedir="$basedir/include"
17349 if test "X$additional_includedir" != "X"; then
17350 if test "X$additional_includedir" != "X/usr/include"; then
17352 if test "X$additional_includedir" = "X/usr/local/include"; then
17353 if test -n "$GCC"; then
17355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17359 if test -z "$haveit"; then
17360 for x in $CPPFLAGS $INCICONV; do
17362 acl_save_prefix="$prefix"
17363 prefix="$acl_final_prefix"
17364 acl_save_exec_prefix="$exec_prefix"
17365 exec_prefix="$acl_final_exec_prefix"
17367 exec_prefix="$acl_save_exec_prefix"
17368 prefix="$acl_save_prefix"
17370 if test "X$x" = "X-I$additional_includedir"; then
17375 if test -z "$haveit"; then
17376 if test -d "$additional_includedir"; then
17377 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17383 if test -n "$found_la"; then
17384 save_libdir="$libdir"
17385 case "$found_la" in
17386 */* | *\\*) . "$found_la" ;;
17387 *) . "./$found_la" ;;
17389 libdir="$save_libdir"
17390 for dep in $dependency_libs; do
17393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17394 if test "X$additional_libdir" != "X/usr/lib"; then
17396 if test "X$additional_libdir" = "X/usr/local/lib"; then
17397 if test -n "$GCC"; then
17399 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17403 if test -z "$haveit"; then
17405 for x in $LDFLAGS $LIBICONV; do
17407 acl_save_prefix="$prefix"
17408 prefix="$acl_final_prefix"
17409 acl_save_exec_prefix="$exec_prefix"
17410 exec_prefix="$acl_final_exec_prefix"
17412 exec_prefix="$acl_save_exec_prefix"
17413 prefix="$acl_save_prefix"
17415 if test "X$x" = "X-L$additional_libdir"; then
17420 if test -z "$haveit"; then
17421 if test -d "$additional_libdir"; then
17422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17426 for x in $LDFLAGS $LTLIBICONV; do
17428 acl_save_prefix="$prefix"
17429 prefix="$acl_final_prefix"
17430 acl_save_exec_prefix="$exec_prefix"
17431 exec_prefix="$acl_final_exec_prefix"
17433 exec_prefix="$acl_save_exec_prefix"
17434 prefix="$acl_save_prefix"
17436 if test "X$x" = "X-L$additional_libdir"; then
17441 if test -z "$haveit"; then
17442 if test -d "$additional_libdir"; then
17443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17450 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17451 if test "$enable_rpath" != no; then
17453 for x in $rpathdirs; do
17454 if test "X$x" = "X$dir"; then
17459 if test -z "$haveit"; then
17460 rpathdirs="$rpathdirs $dir"
17463 for x in $ltrpathdirs; do
17464 if test "X$x" = "X$dir"; then
17469 if test -z "$haveit"; then
17470 ltrpathdirs="$ltrpathdirs $dir"
17475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17481 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17482 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17488 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17489 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17495 if test "X$rpathdirs" != "X"; then
17496 if test -n "$hardcode_libdir_separator"; then
17498 for found_dir in $rpathdirs; do
17499 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17501 acl_save_libdir="$libdir"
17503 eval flag=\"$hardcode_libdir_flag_spec\"
17504 libdir="$acl_save_libdir"
17505 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17507 for found_dir in $rpathdirs; do
17508 acl_save_libdir="$libdir"
17509 libdir="$found_dir"
17510 eval flag=\"$hardcode_libdir_flag_spec\"
17511 libdir="$acl_save_libdir"
17512 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17516 if test "X$ltrpathdirs" != "X"; then
17517 for found_dir in $ltrpathdirs; do
17518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17539 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17540 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17541 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17542 $as_echo_n "(cached) " >&6
17544 gt_save_CPPFLAGS="$CPPFLAGS"
17545 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17546 gt_save_LIBS="$LIBS"
17547 LIBS="$LIBS -framework CoreFoundation"
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 #include <CFPreferences.h>
17558 CFPreferencesCopyAppValue(NULL, NULL)
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17570 $as_echo "$ac_try_echo") >&5
17571 (eval "$ac_link") 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } && {
17578 test -z "$ac_c_werror_flag" ||
17579 test ! -s conftest.err
17580 } && test -s conftest$ac_exeext && {
17581 test "$cross_compiling" = yes ||
17582 $as_test_x conftest$ac_exeext
17584 gt_cv_func_CFPreferencesCopyAppValue=yes
17586 $as_echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 gt_cv_func_CFPreferencesCopyAppValue=no
17592 rm -rf conftest.dSYM
17593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17594 conftest$ac_exeext conftest.$ac_ext
17595 CPPFLAGS="$gt_save_CPPFLAGS"
17596 LIBS="$gt_save_LIBS"
17598 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17599 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17600 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17607 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17608 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17609 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17610 $as_echo_n "(cached) " >&6
17612 gt_save_CPPFLAGS="$CPPFLAGS"
17613 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17614 gt_save_LIBS="$LIBS"
17615 LIBS="$LIBS -framework CoreFoundation"
17616 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <CFLocale.h>
17626 CFLocaleCopyCurrent();
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639 (eval "$ac_link") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest$ac_exeext && {
17649 test "$cross_compiling" = yes ||
17650 $as_test_x conftest$ac_exeext
17652 gt_cv_func_CFLocaleCopyCurrent=yes
17654 $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 gt_cv_func_CFLocaleCopyCurrent=no
17660 rm -rf conftest.dSYM
17661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17662 conftest$ac_exeext conftest.$ac_ext
17663 CPPFLAGS="$gt_save_CPPFLAGS"
17664 LIBS="$gt_save_LIBS"
17666 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17667 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17668 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_CFLOCALECOPYCURRENT 1
17676 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17677 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17683 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17684 $as_echo_n "checking whether NLS is requested... " >&6; }
17685 # Check whether --enable-nls was given.
17686 if test "${enable_nls+set}" = set; then
17687 enableval=$enable_nls; USE_NLS=$enableval
17692 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17693 $as_echo "$USE_NLS" >&6; }
17702 if test "$USE_NLS" = "yes"; then
17703 gt_use_preinstalled_gnugettext=no
17710 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17711 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17712 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17713 $as_echo_n "(cached) " >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <libintl.h>
17722 extern int _nl_msg_cat_cntr;
17723 extern int *_nl_domain_bindings;
17727 bindtextdomain ("", "");
17728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (ac_try="$ac_link"
17735 case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741 (eval "$ac_link") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest$ac_exeext && {
17751 test "$cross_compiling" = yes ||
17752 $as_test_x conftest$ac_exeext
17754 gt_cv_func_gnugettext1_libc=yes
17756 $as_echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 gt_cv_func_gnugettext1_libc=no
17762 rm -rf conftest.dSYM
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
17766 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17767 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17769 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17775 am_save_CPPFLAGS="$CPPFLAGS"
17777 for element in $INCICONV; do
17779 for x in $CPPFLAGS; do
17781 acl_save_prefix="$prefix"
17782 prefix="$acl_final_prefix"
17783 acl_save_exec_prefix="$exec_prefix"
17784 exec_prefix="$acl_final_exec_prefix"
17786 exec_prefix="$acl_save_exec_prefix"
17787 prefix="$acl_save_prefix"
17789 if test "X$x" = "X$element"; then
17794 if test -z "$haveit"; then
17795 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17800 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
17801 $as_echo_n "checking for iconv... " >&6; }
17802 if test "${am_cv_func_iconv+set}" = set; then
17803 $as_echo_n "(cached) " >&6
17806 am_cv_func_iconv="no, consider installing GNU libiconv"
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 #include <stdlib.h>
17819 iconv_t cd = iconv_open("","");
17820 iconv(cd,NULL,NULL,NULL,NULL);
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834 (eval "$ac_link") 2>conftest.er1
17836 grep -v '^ *+' conftest.er1 >conftest.err
17838 cat conftest.err >&5
17839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest$ac_exeext && {
17844 test "$cross_compiling" = yes ||
17845 $as_test_x conftest$ac_exeext
17847 am_cv_func_iconv=yes
17849 $as_echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17855 rm -rf conftest.dSYM
17856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857 conftest$ac_exeext conftest.$ac_ext
17858 if test "$am_cv_func_iconv" != yes; then
17859 am_save_LIBS="$LIBS"
17860 LIBS="$LIBS $LIBICONV"
17861 cat >conftest.$ac_ext <<_ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17867 #include <stdlib.h>
17872 iconv_t cd = iconv_open("","");
17873 iconv(cd,NULL,NULL,NULL,NULL);
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17886 $as_echo "$ac_try_echo") >&5
17887 (eval "$ac_link") 2>conftest.er1
17889 grep -v '^ *+' conftest.er1 >conftest.err
17891 cat conftest.err >&5
17892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext && {
17897 test "$cross_compiling" = yes ||
17898 $as_test_x conftest$ac_exeext
17900 am_cv_lib_iconv=yes
17901 am_cv_func_iconv=yes
17903 $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17909 rm -rf conftest.dSYM
17910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17911 conftest$ac_exeext conftest.$ac_ext
17912 LIBS="$am_save_LIBS"
17916 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17917 $as_echo "$am_cv_func_iconv" >&6; }
17918 if test "$am_cv_func_iconv" = yes; then
17920 cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_ICONV 1
17925 if test "$am_cv_lib_iconv" = yes; then
17926 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17927 $as_echo_n "checking how to link with libiconv... " >&6; }
17928 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17929 $as_echo "$LIBICONV" >&6; }
17931 CPPFLAGS="$am_save_CPPFLAGS"
17943 acl_save_prefix="$prefix"
17944 prefix="$acl_final_prefix"
17945 acl_save_exec_prefix="$exec_prefix"
17946 exec_prefix="$acl_final_exec_prefix"
17948 eval additional_includedir=\"$includedir\"
17949 eval additional_libdir=\"$libdir\"
17951 exec_prefix="$acl_save_exec_prefix"
17952 prefix="$acl_save_prefix"
17955 # Check whether --with-libintl-prefix was given.
17956 if test "${with_libintl_prefix+set}" = set; then
17957 withval=$with_libintl_prefix;
17958 if test "X$withval" = "Xno"; then
17961 if test "X$withval" = "X"; then
17963 acl_save_prefix="$prefix"
17964 prefix="$acl_final_prefix"
17965 acl_save_exec_prefix="$exec_prefix"
17966 exec_prefix="$acl_final_exec_prefix"
17968 eval additional_includedir=\"$includedir\"
17969 eval additional_libdir=\"$libdir\"
17971 exec_prefix="$acl_save_exec_prefix"
17972 prefix="$acl_save_prefix"
17975 additional_includedir="$withval/include"
17976 additional_libdir="$withval/lib"
17987 names_already_handled=
17988 names_next_round='intl '
17989 while test -n "$names_next_round"; do
17990 names_this_round="$names_next_round"
17992 for name in $names_this_round; do
17994 for n in $names_already_handled; do
17995 if test "$n" = "$name"; then
17996 already_handled=yes
18000 if test -z "$already_handled"; then
18001 names_already_handled="$names_already_handled $name"
18002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18003 eval value=\"\$HAVE_LIB$uppername\"
18004 if test -n "$value"; then
18005 if test "$value" = yes; then
18006 eval value=\"\$LIB$uppername\"
18007 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18008 eval value=\"\$LTLIB$uppername\"
18009 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18018 if test $use_additional = yes; then
18019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18020 found_dir="$additional_libdir"
18021 found_so="$additional_libdir/lib$name.$shlibext"
18022 if test -f "$additional_libdir/lib$name.la"; then
18023 found_la="$additional_libdir/lib$name.la"
18026 if test -f "$additional_libdir/lib$name.$libext"; then
18027 found_dir="$additional_libdir"
18028 found_a="$additional_libdir/lib$name.$libext"
18029 if test -f "$additional_libdir/lib$name.la"; then
18030 found_la="$additional_libdir/lib$name.la"
18035 if test "X$found_dir" = "X"; then
18036 for x in $LDFLAGS $LTLIBINTL; do
18038 acl_save_prefix="$prefix"
18039 prefix="$acl_final_prefix"
18040 acl_save_exec_prefix="$exec_prefix"
18041 exec_prefix="$acl_final_exec_prefix"
18043 exec_prefix="$acl_save_exec_prefix"
18044 prefix="$acl_save_prefix"
18048 dir=`echo "X$x" | sed -e 's/^X-L//'`
18049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18051 found_so="$dir/lib$name.$shlibext"
18052 if test -f "$dir/lib$name.la"; then
18053 found_la="$dir/lib$name.la"
18056 if test -f "$dir/lib$name.$libext"; then
18058 found_a="$dir/lib$name.$libext"
18059 if test -f "$dir/lib$name.la"; then
18060 found_la="$dir/lib$name.la"
18066 if test "X$found_dir" != "X"; then
18071 if test "X$found_dir" != "X"; then
18072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18073 if test "X$found_so" != "X"; then
18074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18078 for x in $ltrpathdirs; do
18079 if test "X$x" = "X$found_dir"; then
18084 if test -z "$haveit"; then
18085 ltrpathdirs="$ltrpathdirs $found_dir"
18087 if test "$hardcode_direct" = yes; then
18088 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18093 for x in $rpathdirs; do
18094 if test "X$x" = "X$found_dir"; then
18099 if test -z "$haveit"; then
18100 rpathdirs="$rpathdirs $found_dir"
18104 for x in $LDFLAGS $LIBINTL; do
18106 acl_save_prefix="$prefix"
18107 prefix="$acl_final_prefix"
18108 acl_save_exec_prefix="$exec_prefix"
18109 exec_prefix="$acl_final_exec_prefix"
18111 exec_prefix="$acl_save_exec_prefix"
18112 prefix="$acl_save_prefix"
18114 if test "X$x" = "X-L$found_dir"; then
18119 if test -z "$haveit"; then
18120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18122 if test "$hardcode_minus_L" != no; then
18123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18125 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18131 if test "X$found_a" != "X"; then
18132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18134 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18137 additional_includedir=
18138 case "$found_dir" in
18140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18141 additional_includedir="$basedir/include"
18144 if test "X$additional_includedir" != "X"; then
18145 if test "X$additional_includedir" != "X/usr/include"; then
18147 if test "X$additional_includedir" = "X/usr/local/include"; then
18148 if test -n "$GCC"; then
18150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18154 if test -z "$haveit"; then
18155 for x in $CPPFLAGS $INCINTL; do
18157 acl_save_prefix="$prefix"
18158 prefix="$acl_final_prefix"
18159 acl_save_exec_prefix="$exec_prefix"
18160 exec_prefix="$acl_final_exec_prefix"
18162 exec_prefix="$acl_save_exec_prefix"
18163 prefix="$acl_save_prefix"
18165 if test "X$x" = "X-I$additional_includedir"; then
18170 if test -z "$haveit"; then
18171 if test -d "$additional_includedir"; then
18172 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18178 if test -n "$found_la"; then
18179 save_libdir="$libdir"
18180 case "$found_la" in
18181 */* | *\\*) . "$found_la" ;;
18182 *) . "./$found_la" ;;
18184 libdir="$save_libdir"
18185 for dep in $dependency_libs; do
18188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18189 if test "X$additional_libdir" != "X/usr/lib"; then
18191 if test "X$additional_libdir" = "X/usr/local/lib"; then
18192 if test -n "$GCC"; then
18194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18198 if test -z "$haveit"; then
18200 for x in $LDFLAGS $LIBINTL; do
18202 acl_save_prefix="$prefix"
18203 prefix="$acl_final_prefix"
18204 acl_save_exec_prefix="$exec_prefix"
18205 exec_prefix="$acl_final_exec_prefix"
18207 exec_prefix="$acl_save_exec_prefix"
18208 prefix="$acl_save_prefix"
18210 if test "X$x" = "X-L$additional_libdir"; then
18215 if test -z "$haveit"; then
18216 if test -d "$additional_libdir"; then
18217 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18221 for x in $LDFLAGS $LTLIBINTL; do
18223 acl_save_prefix="$prefix"
18224 prefix="$acl_final_prefix"
18225 acl_save_exec_prefix="$exec_prefix"
18226 exec_prefix="$acl_final_exec_prefix"
18228 exec_prefix="$acl_save_exec_prefix"
18229 prefix="$acl_save_prefix"
18231 if test "X$x" = "X-L$additional_libdir"; then
18236 if test -z "$haveit"; then
18237 if test -d "$additional_libdir"; then
18238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18246 if test "$enable_rpath" != no; then
18248 for x in $rpathdirs; do
18249 if test "X$x" = "X$dir"; then
18254 if test -z "$haveit"; then
18255 rpathdirs="$rpathdirs $dir"
18258 for x in $ltrpathdirs; do
18259 if test "X$x" = "X$dir"; then
18264 if test -z "$haveit"; then
18265 ltrpathdirs="$ltrpathdirs $dir"
18270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18276 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18290 if test "X$rpathdirs" != "X"; then
18291 if test -n "$hardcode_libdir_separator"; then
18293 for found_dir in $rpathdirs; do
18294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18296 acl_save_libdir="$libdir"
18298 eval flag=\"$hardcode_libdir_flag_spec\"
18299 libdir="$acl_save_libdir"
18300 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18302 for found_dir in $rpathdirs; do
18303 acl_save_libdir="$libdir"
18304 libdir="$found_dir"
18305 eval flag=\"$hardcode_libdir_flag_spec\"
18306 libdir="$acl_save_libdir"
18307 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18311 if test "X$ltrpathdirs" != "X"; then
18312 for found_dir in $ltrpathdirs; do
18313 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18317 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18318 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18319 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18320 $as_echo_n "(cached) " >&6
18322 gt_save_CPPFLAGS="$CPPFLAGS"
18323 CPPFLAGS="$CPPFLAGS $INCINTL"
18324 gt_save_LIBS="$LIBS"
18325 LIBS="$LIBS $LIBINTL"
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 #include <libintl.h>
18333 extern int _nl_msg_cat_cntr;
18338 const char *_nl_expand_alias (const char *);
18342 bindtextdomain ("", "");
18343 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18355 $as_echo "$ac_try_echo") >&5
18356 (eval "$ac_link") 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } && {
18363 test -z "$ac_c_werror_flag" ||
18364 test ! -s conftest.err
18365 } && test -s conftest$ac_exeext && {
18366 test "$cross_compiling" = yes ||
18367 $as_test_x conftest$ac_exeext
18369 gt_cv_func_gnugettext1_libintl=yes
18371 $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 gt_cv_func_gnugettext1_libintl=no
18377 rm -rf conftest.dSYM
18378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18379 conftest$ac_exeext conftest.$ac_ext
18380 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18381 LIBS="$LIBS $LIBICONV"
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 #include <libintl.h>
18389 extern int _nl_msg_cat_cntr;
18394 const char *_nl_expand_alias (const char *);
18398 bindtextdomain ("", "");
18399 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (ac_try="$ac_link"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18411 $as_echo "$ac_try_echo") >&5
18412 (eval "$ac_link") 2>conftest.er1
18414 grep -v '^ *+' conftest.er1 >conftest.err
18416 cat conftest.err >&5
18417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } && {
18419 test -z "$ac_c_werror_flag" ||
18420 test ! -s conftest.err
18421 } && test -s conftest$ac_exeext && {
18422 test "$cross_compiling" = yes ||
18423 $as_test_x conftest$ac_exeext
18425 LIBINTL="$LIBINTL $LIBICONV"
18426 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18427 gt_cv_func_gnugettext1_libintl=yes
18430 $as_echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18436 rm -rf conftest.dSYM
18437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18438 conftest$ac_exeext conftest.$ac_ext
18440 CPPFLAGS="$gt_save_CPPFLAGS"
18441 LIBS="$gt_save_LIBS"
18443 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18444 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18447 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18448 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18449 && test "$PACKAGE" != gettext-runtime \
18450 && test "$PACKAGE" != gettext-tools; }; then
18451 gt_use_preinstalled_gnugettext=yes
18460 if test -n "$INTL_MACOSX_LIBS"; then
18461 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18462 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18463 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18464 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18468 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18469 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18471 cat >>confdefs.h <<\_ACEOF
18472 #define ENABLE_NLS 1
18480 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
18481 $as_echo_n "checking whether to use NLS... " >&6; }
18482 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
18483 $as_echo "$USE_NLS" >&6; }
18484 if test "$USE_NLS" = "yes"; then
18485 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18486 $as_echo_n "checking where the gettext function comes from... " >&6; }
18487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18488 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18489 gt_source="external libintl"
18494 gt_source="included intl directory"
18496 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
18497 $as_echo "$gt_source" >&6; }
18500 if test "$USE_NLS" = "yes"; then
18502 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18503 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18504 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
18505 $as_echo_n "checking how to link with libintl... " >&6; }
18506 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
18507 $as_echo "$LIBINTL" >&6; }
18509 for element in $INCINTL; do
18511 for x in $CPPFLAGS; do
18513 acl_save_prefix="$prefix"
18514 prefix="$acl_final_prefix"
18515 acl_save_exec_prefix="$exec_prefix"
18516 exec_prefix="$acl_final_exec_prefix"
18518 exec_prefix="$acl_save_exec_prefix"
18519 prefix="$acl_save_prefix"
18521 if test "X$x" = "X$element"; then
18526 if test -z "$haveit"; then
18527 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18534 cat >>confdefs.h <<\_ACEOF
18535 #define HAVE_GETTEXT 1
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_DCGETTEXT 1
18550 INTLLIBS="$LIBINTL"
18558 os_name=`uname -s 2>/dev/null`
18559 if test x${prefix} = xNONE ; then
18560 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18561 sysconfdir=/etc/bacula
18564 if test `eval echo ${libdir}` = NONE/lib ; then
18567 os_processor=`uname -p 2>/dev/null`
18568 case ${os_processor} in
18583 if test `eval echo ${includedir}` = NONE/include ; then
18584 includedir=/usr/include
18587 if test `eval echo ${datarootdir}` = NONE/share ; then
18588 datarootdir=/usr/share
18593 if test x${exec_prefix} = xNONE ; then
18594 exec_prefix=${prefix}
18597 sysconfdir=`eval echo ${sysconfdir}`
18598 datarootdir=`eval echo ${datarootdir}`
18599 docdir=`eval echo ${docdir}`
18600 htmldir=`eval echo ${htmldir}`
18601 libdir=`eval echo ${libdir}`
18602 includedir=`eval echo ${includedir}`
18603 localedir=`eval echo ${datarootdir}/locale`
18604 cat >>confdefs.h <<_ACEOF
18605 #define SYSCONFDIR "$sysconfdir"
18608 cat >>confdefs.h <<_ACEOF
18609 #define LOCALEDIR "$localedir"
18613 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18614 sbindir=${exec_prefix}/sbin
18616 sbindir=`eval echo ${sbindir}`
18618 if test x$mandir = x'${prefix}/man' ; then
18619 mandir=/usr/share/man
18622 if test x$htmldir = x${docdir} ; then
18623 htmldir=`eval echo ${docdir}bacula/html`
18626 if test x$docdir = x'/usr/share/doc/' ; then
18627 docdir=`eval echo ${docdir}bacula`
18631 for ac_prog in msgfmt
18633 # Extract the first word of "$ac_prog", so it can be a program name with args.
18634 set dummy $ac_prog; ac_word=$2
18635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18636 $as_echo_n "checking for $ac_word... " >&6; }
18637 if test "${ac_cv_path_MSGFMT+set}" = set; then
18638 $as_echo_n "(cached) " >&6
18642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18649 test -z "$as_dir" && as_dir=.
18650 for ac_exec_ext in '' $ac_executable_extensions; do
18651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18652 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18663 MSGFMT=$ac_cv_path_MSGFMT
18664 if test -n "$MSGFMT"; then
18665 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
18666 $as_echo "$MSGFMT" >&6; }
18668 { $as_echo "$as_me:$LINENO: result: no" >&5
18669 $as_echo "no" >&6; }
18673 test -n "$MSGFMT" && break
18675 test -n "$MSGFMT" || MSGFMT="no"
18677 if test "$MSGFMT" = "no"
18679 echo 'msgfmt program not found, disabling NLS !'
18681 USE_INCLUDED_LIBINTL=no
18684 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18685 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18686 if test "${ac_cv_gnu_library_2+set}" = set; then
18687 $as_echo_n "(cached) " >&6
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18696 #include <features.h>
18697 #ifdef __GNU_LIBRARY__
18698 #if (__GLIBC__ >= 2)
18704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18705 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18706 ac_cv_gnu_library_2=yes
18708 ac_cv_gnu_library_2=no
18715 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18716 $as_echo "$ac_cv_gnu_library_2" >&6; }
18718 GLIBC2="$ac_cv_gnu_library_2"
18721 if test -n "$ac_tool_prefix"; then
18722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18725 $as_echo_n "checking for $ac_word... " >&6; }
18726 if test "${ac_cv_prog_RANLIB+set}" = set; then
18727 $as_echo_n "(cached) " >&6
18729 if test -n "$RANLIB"; then
18730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18733 for as_dir in $PATH
18736 test -z "$as_dir" && as_dir=.
18737 for ac_exec_ext in '' $ac_executable_extensions; do
18738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18749 RANLIB=$ac_cv_prog_RANLIB
18750 if test -n "$RANLIB"; then
18751 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
18752 $as_echo "$RANLIB" >&6; }
18754 { $as_echo "$as_me:$LINENO: result: no" >&5
18755 $as_echo "no" >&6; }
18760 if test -z "$ac_cv_prog_RANLIB"; then
18761 ac_ct_RANLIB=$RANLIB
18762 # Extract the first word of "ranlib", so it can be a program name with args.
18763 set dummy ranlib; ac_word=$2
18764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18765 $as_echo_n "checking for $ac_word... " >&6; }
18766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18767 $as_echo_n "(cached) " >&6
18769 if test -n "$ac_ct_RANLIB"; then
18770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18779 ac_cv_prog_ac_ct_RANLIB="ranlib"
18780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18790 if test -n "$ac_ct_RANLIB"; then
18791 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18792 $as_echo "$ac_ct_RANLIB" >&6; }
18794 { $as_echo "$as_me:$LINENO: result: no" >&5
18795 $as_echo "no" >&6; }
18798 if test "x$ac_ct_RANLIB" = x; then
18801 case $cross_compiling:$ac_tool_warned in
18803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18805 ac_tool_warned=yes ;;
18807 RANLIB=$ac_ct_RANLIB
18810 RANLIB="$ac_cv_prog_RANLIB"
18814 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18815 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18816 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18817 $as_echo_n "(cached) " >&6
18819 ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lcposix $LIBS"
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18838 return strerror ();
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext && {
18861 test "$cross_compiling" = yes ||
18862 $as_test_x conftest$ac_exeext
18864 ac_cv_lib_cposix_strerror=yes
18866 $as_echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_cv_lib_cposix_strerror=no
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874 conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18878 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18879 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
18880 LIBS="$LIBS -lcposix"
18885 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18886 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18887 if test "${ac_cv_c_const+set}" = set; then
18888 $as_echo_n "(cached) " >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18900 /* FIXME: Include the comments suggested by Paul. */
18901 #ifndef __cplusplus
18902 /* Ultrix mips cc rejects this. */
18903 typedef int charset[2];
18905 /* SunOS 4.1.1 cc rejects this. */
18906 char const *const *pcpcc;
18908 /* NEC SVR4.0.2 mips cc rejects this. */
18909 struct point {int x, y;};
18910 static struct point const zero = {0,0};
18911 /* AIX XL C 1.02.0.0 rejects this.
18912 It does not let you subtract one const X* pointer from another in
18913 an arm of an if-expression whose if-part is not a constant
18915 const char *g = "string";
18916 pcpcc = &g + (g ? g-g : 0);
18917 /* HPUX 7.0 cc rejects these. */
18919 ppc = (char**) pcpcc;
18920 pcpcc = (char const *const *) ppc;
18921 { /* SCO 3.2v4 cc rejects this. */
18923 char const *s = 0 ? (char *) 0 : (char const *) 0;
18928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18929 int x[] = {25, 17};
18930 const int *foo = &x[0];
18933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18934 typedef const int *iptr;
18938 { /* AIX XL C 1.02.0.0 rejects this saying
18939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18940 struct s { int j; const int *ap[3]; };
18941 struct s *b; b->j = 5;
18943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18944 const int foo = 10;
18945 if (!foo) return 0;
18947 return !cs[0] && !zero.x;
18954 rm -f conftest.$ac_objext
18955 if { (ac_try="$ac_compile"
18956 case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18961 $as_echo "$ac_try_echo") >&5
18962 (eval "$ac_compile") 2>conftest.er1
18964 grep -v '^ *+' conftest.er1 >conftest.err
18966 cat conftest.err >&5
18967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && {
18969 test -z "$ac_c_werror_flag" ||
18970 test ! -s conftest.err
18971 } && test -s conftest.$ac_objext; then
18974 $as_echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18983 $as_echo "$ac_cv_c_const" >&6; }
18984 if test $ac_cv_c_const = no; then
18986 cat >>confdefs.h <<\_ACEOF
18993 { $as_echo "$as_me:$LINENO: checking for signed" >&5
18994 $as_echo_n "checking for signed... " >&6; }
18995 if test "${bh_cv_c_signed+set}" = set; then
18996 $as_echo_n "(cached) " >&6
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021 (eval "$ac_compile") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest.$ac_objext; then
19033 $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
19042 $as_echo "$bh_cv_c_signed" >&6; }
19043 if test $bh_cv_c_signed = no; then
19045 cat >>confdefs.h <<\_ACEOF
19046 #define signed /**/
19051 { $as_echo "$as_me:$LINENO: checking for inline" >&5
19052 $as_echo_n "checking for inline... " >&6; }
19053 if test "${ac_cv_c_inline+set}" = set; then
19054 $as_echo_n "(cached) " >&6
19057 for ac_kw in inline __inline__ __inline; do
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #ifndef __cplusplus
19066 static $ac_kw foo_t static_foo () {return 0; }
19067 $ac_kw foo_t foo () {return 0; }
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19078 $as_echo "$ac_try_echo") >&5
19079 (eval "$ac_compile") 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest.$ac_objext; then
19089 ac_cv_c_inline=$ac_kw
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 test "$ac_cv_c_inline" != no && break
19102 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19103 $as_echo "$ac_cv_c_inline" >&6; }
19106 case $ac_cv_c_inline in
19109 case $ac_cv_c_inline in
19111 *) ac_val=$ac_cv_c_inline;;
19113 cat >>confdefs.h <<_ACEOF
19114 #ifndef __cplusplus
19115 #define inline $ac_val
19121 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19122 $as_echo_n "checking for off_t... " >&6; }
19123 if test "${ac_cv_type_off_t+set}" = set; then
19124 $as_echo_n "(cached) " >&6
19126 ac_cv_type_off_t=no
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 $ac_includes_default
19137 if (sizeof (off_t))
19143 rm -f conftest.$ac_objext
19144 if { (ac_try="$ac_compile"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151 (eval "$ac_compile") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest.$ac_objext; then
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 $ac_includes_default
19171 if (sizeof ((off_t)))
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19184 $as_echo "$ac_try_echo") >&5
19185 (eval "$ac_compile") 2>conftest.er1
19187 grep -v '^ *+' conftest.er1 >conftest.err
19189 cat conftest.err >&5
19190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && {
19192 test -z "$ac_c_werror_flag" ||
19193 test ! -s conftest.err
19194 } && test -s conftest.$ac_objext; then
19197 $as_echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_type_off_t=yes
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 $as_echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19214 $as_echo "$ac_cv_type_off_t" >&6; }
19215 if test "x$ac_cv_type_off_t" = x""yes; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define off_t long int
19225 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19226 $as_echo_n "checking for size_t... " >&6; }
19227 if test "${ac_cv_type_size_t+set}" = set; then
19228 $as_echo_n "(cached) " >&6
19230 ac_cv_type_size_t=no
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 $ac_includes_default
19241 if (sizeof (size_t))
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255 (eval "$ac_compile") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest.$ac_objext; then
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 $ac_includes_default
19275 if (sizeof ((size_t)))
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19288 $as_echo "$ac_try_echo") >&5
19289 (eval "$ac_compile") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1 >conftest.err
19293 cat conftest.err >&5
19294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest.$ac_objext; then
19301 $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_cv_type_size_t=yes
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309 $as_echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19318 $as_echo "$ac_cv_type_size_t" >&6; }
19319 if test "x$ac_cv_type_size_t" = x""yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define size_t unsigned int
19330 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19331 $as_echo_n "checking for long long... " >&6; }
19332 if test "${ac_cv_type_long_long+set}" = set; then
19333 $as_echo_n "(cached) " >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 long long ll = 1LL; int i = 63;
19345 long long llmax = (long long) -1;
19346 return ll << i | ll >> i | llmax / ll | llmax % ll;
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19358 $as_echo "$ac_try_echo") >&5
19359 (eval "$ac_link") 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest$ac_exeext && {
19369 test "$cross_compiling" = yes ||
19370 $as_test_x conftest$ac_exeext
19372 ac_cv_type_long_long=yes
19374 $as_echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_type_long_long=no
19380 rm -rf conftest.dSYM
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19384 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19385 $as_echo "$ac_cv_type_long_long" >&6; }
19386 if test $ac_cv_type_long_long = yes; then
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_LONG_LONG 1
19395 { $as_echo "$as_me:$LINENO: checking for long double" >&5
19396 $as_echo_n "checking for long double... " >&6; }
19397 if test "${gt_cv_c_long_double+set}" = set; then
19398 $as_echo_n "(cached) " >&6
19400 if test "$GCC" = yes; then
19401 gt_cv_c_long_double=yes
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19410 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19411 long double foo = 0.0;
19412 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19413 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19423 rm -f conftest.$ac_objext
19424 if { (ac_try="$ac_compile"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431 (eval "$ac_compile") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest.$ac_objext; then
19441 gt_cv_c_long_double=yes
19443 $as_echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 gt_cv_c_long_double=no
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19453 $as_echo "$gt_cv_c_long_double" >&6; }
19454 if test $gt_cv_c_long_double = yes; then
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE_LONG_DOUBLE 1
19463 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
19464 $as_echo_n "checking for wchar_t... " >&6; }
19465 if test "${gt_cv_c_wchar_t+set}" = set; then
19466 $as_echo_n "(cached) " >&6
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 #include <stddef.h>
19475 wchar_t foo = (wchar_t)'\0';
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19491 $as_echo "$ac_try_echo") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19502 gt_cv_c_wchar_t=yes
19504 $as_echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19513 $as_echo "$gt_cv_c_wchar_t" >&6; }
19514 if test $gt_cv_c_wchar_t = yes; then
19516 cat >>confdefs.h <<\_ACEOF
19517 #define HAVE_WCHAR_T 1
19523 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
19524 $as_echo_n "checking for wint_t... " >&6; }
19525 if test "${gt_cv_c_wint_t+set}" = set; then
19526 $as_echo_n "(cached) " >&6
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19535 wint_t foo = (wchar_t)'\0';
19544 rm -f conftest.$ac_objext
19545 if { (ac_try="$ac_compile"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19551 $as_echo "$ac_try_echo") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19564 $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19573 $as_echo "$gt_cv_c_wint_t" >&6; }
19574 if test $gt_cv_c_wint_t = yes; then
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_WINT_T 1
19583 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19584 $as_echo_n "checking for inttypes.h... " >&6; }
19585 if test "${gl_cv_header_inttypes_h+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594 #include <sys/types.h>
19595 #include <inttypes.h>
19599 uintmax_t i = (uintmax_t) -1;
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 gl_cv_header_inttypes_h=yes
19624 $as_echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 gl_cv_header_inttypes_h=no
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19633 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19634 if test $gl_cv_header_inttypes_h = yes; then
19636 cat >>confdefs.h <<_ACEOF
19637 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19643 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
19644 $as_echo_n "checking for stdint.h... " >&6; }
19645 if test "${gl_cv_header_stdint_h+set}" = set; then
19646 $as_echo_n "(cached) " >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 #include <sys/types.h>
19655 #include <stdint.h>
19659 uintmax_t i = (uintmax_t) -1;
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19671 $as_echo "$ac_try_echo") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 gl_cv_header_stdint_h=yes
19684 $as_echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 gl_cv_header_stdint_h=no
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19693 $as_echo "$gl_cv_header_stdint_h" >&6; }
19694 if test $gl_cv_header_stdint_h = yes; then
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_STDINT_H_WITH_UINTMAX 1
19705 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
19706 $as_echo_n "checking for intmax_t... " >&6; }
19707 if test "${gt_cv_c_intmax_t+set}" = set; then
19708 $as_echo_n "(cached) " >&6
19710 cat >conftest.$ac_ext <<_ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19717 #include <stddef.h>
19718 #include <stdlib.h>
19719 #if HAVE_STDINT_H_WITH_UINTMAX
19720 #include <stdint.h>
19722 #if HAVE_INTTYPES_H_WITH_UINTMAX
19723 #include <inttypes.h>
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742 (eval "$ac_compile") 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && {
19749 test -z "$ac_c_werror_flag" ||
19750 test ! -s conftest.err
19751 } && test -s conftest.$ac_objext; then
19752 gt_cv_c_intmax_t=yes
19754 $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 gt_cv_c_intmax_t=no
19760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19763 $as_echo "$gt_cv_c_intmax_t" >&6; }
19764 if test $gt_cv_c_intmax_t = yes; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_INTMAX_T 1
19774 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19775 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19776 if test "${gt_cv_func_printf_posix+set}" = set; then
19777 $as_echo_n "(cached) " >&6
19780 if test "$cross_compiling" = yes; then
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19789 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19795 $EGREP "notposix" >/dev/null 2>&1; then
19796 gt_cv_func_printf_posix="guessing no"
19798 gt_cv_func_printf_posix="guessing yes"
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19812 #include <string.h>
19813 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19814 dollar expansion (possibly an autoconf bug). */
19815 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19816 static char buf[100];
19819 sprintf (buf, format, 33, 55);
19820 return (strcmp (buf, "55 33") != 0);
19823 rm -f conftest$ac_exeext
19824 if { (ac_try="$ac_link"
19825 case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830 $as_echo "$ac_try_echo") >&5
19831 (eval "$ac_link") 2>&5
19833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_try") 2>&5
19843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 gt_cv_func_printf_posix=yes
19847 $as_echo "$as_me: program exited with status $ac_status" >&5
19848 $as_echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ( exit $ac_status )
19852 gt_cv_func_printf_posix=no
19854 rm -rf conftest.dSYM
19855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19861 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19862 $as_echo "$gt_cv_func_printf_posix" >&6; }
19863 case $gt_cv_func_printf_posix in
19866 cat >>confdefs.h <<\_ACEOF
19867 #define HAVE_POSIX_PRINTF 1
19873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19874 # for constant arguments. Useless!
19875 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
19876 $as_echo_n "checking for working alloca.h... " >&6; }
19877 if test "${ac_cv_working_alloca_h+set}" = set; then
19878 $as_echo_n "(cached) " >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <alloca.h>
19890 char *p = (char *) alloca (2 * sizeof (int));
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19903 $as_echo "$ac_try_echo") >&5
19904 (eval "$ac_link") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext && {
19914 test "$cross_compiling" = yes ||
19915 $as_test_x conftest$ac_exeext
19917 ac_cv_working_alloca_h=yes
19919 $as_echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_cv_working_alloca_h=no
19925 rm -rf conftest.dSYM
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927 conftest$ac_exeext conftest.$ac_ext
19929 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19930 $as_echo "$ac_cv_working_alloca_h" >&6; }
19931 if test $ac_cv_working_alloca_h = yes; then
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_ALLOCA_H 1
19939 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
19940 $as_echo_n "checking for alloca... " >&6; }
19941 if test "${ac_cv_func_alloca_works+set}" = set; then
19942 $as_echo_n "(cached) " >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19951 # define alloca __builtin_alloca
19954 # include <malloc.h>
19955 # define alloca _alloca
19957 # ifdef HAVE_ALLOCA_H
19958 # include <alloca.h>
19963 # ifndef alloca /* predefined by HP cc +Olibcalls */
19974 char *p = (char *) alloca (1);
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_link") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext && {
19998 test "$cross_compiling" = yes ||
19999 $as_test_x conftest$ac_exeext
20001 ac_cv_func_alloca_works=yes
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_func_alloca_works=no
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20014 $as_echo "$ac_cv_func_alloca_works" >&6; }
20016 if test $ac_cv_func_alloca_works = yes; then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_ALLOCA 1
20023 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20024 # that cause trouble. Some versions do not even contain alloca or
20025 # contain a buggy version. If you still want to use their alloca,
20026 # use ar to extract alloca.o from them instead of compiling alloca.c.
20028 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20030 cat >>confdefs.h <<\_ACEOF
20035 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20036 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20037 if test "${ac_cv_os_cray+set}" = set; then
20038 $as_echo_n "(cached) " >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #if defined CRAY && ! defined CRAY2
20053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20054 $EGREP "webecray" >/dev/null 2>&1; then
20062 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20063 $as_echo "$ac_cv_os_cray" >&6; }
20064 if test $ac_cv_os_cray = yes; then
20065 for ac_func in _getb67 GETB67 getb67; do
20066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20068 $as_echo_n "checking for $ac_func... " >&6; }
20069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20070 $as_echo_n "(cached) " >&6
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20080 #define $ac_func innocuous_$ac_func
20082 /* System header to define __stub macros and hopefully few prototypes,
20083 which can conflict with char $ac_func (); below.
20084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20085 <limits.h> exists even on freestanding compilers. */
20088 # include <limits.h>
20090 # include <assert.h>
20095 /* Override any GCC internal prototype to avoid an error.
20096 Use char because int might match the return type of a GCC
20097 builtin and then its argument prototype would still apply. */
20102 /* The GNU C library defines this for functions which it implements
20103 to always fail with ENOSYS. Some functions are actually named
20104 something starting with __ and the normal name is an alias. */
20105 #if defined __stub_$ac_func || defined __stub___$ac_func
20112 return $ac_func ();
20117 rm -f conftest.$ac_objext conftest$ac_exeext
20118 if { (ac_try="$ac_link"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20124 $as_echo "$ac_try_echo") >&5
20125 (eval "$ac_link") 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest$ac_exeext && {
20135 test "$cross_compiling" = yes ||
20136 $as_test_x conftest$ac_exeext
20138 eval "$as_ac_var=yes"
20140 $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 eval "$as_ac_var=no"
20146 rm -rf conftest.dSYM
20147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20148 conftest$ac_exeext conftest.$ac_ext
20150 ac_res=`eval 'as_val=${'$as_ac_var'}
20151 $as_echo "$as_val"'`
20152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20153 $as_echo "$ac_res" >&6; }
20154 as_val=`eval 'as_val=${'$as_ac_var'}
20155 $as_echo "$as_val"'`
20156 if test "x$as_val" = x""yes; then
20158 cat >>confdefs.h <<_ACEOF
20159 #define CRAY_STACKSEG_END $ac_func
20168 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20169 $as_echo_n "checking stack direction for C alloca... " >&6; }
20170 if test "${ac_cv_c_stack_direction+set}" = set; then
20171 $as_echo_n "(cached) " >&6
20173 if test "$cross_compiling" = yes; then
20174 ac_cv_c_stack_direction=0
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 $ac_includes_default
20184 find_stack_direction ()
20186 static char *addr = 0;
20191 return find_stack_direction ();
20194 return (&dummy > addr) ? 1 : -1;
20200 return find_stack_direction () < 0;
20203 rm -f conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20210 $as_echo "$ac_try_echo") >&5
20211 (eval "$ac_link") 2>&5
20213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215 { (case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20220 $as_echo "$ac_try_echo") >&5
20221 (eval "$ac_try") 2>&5
20223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_cv_c_stack_direction=1
20227 $as_echo "$as_me: program exited with status $ac_status" >&5
20228 $as_echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ( exit $ac_status )
20232 ac_cv_c_stack_direction=-1
20234 rm -rf conftest.dSYM
20235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20240 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20241 $as_echo "$ac_cv_c_stack_direction" >&6; }
20243 cat >>confdefs.h <<_ACEOF
20244 #define STACK_DIRECTION $ac_cv_c_stack_direction
20252 for ac_header in stdlib.h unistd.h
20254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20257 $as_echo_n "checking for $ac_header... " >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 $as_echo_n "(cached) " >&6
20261 ac_res=`eval 'as_val=${'$as_ac_Header'}
20262 $as_echo "$as_val"'`
20263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20264 $as_echo "$ac_res" >&6; }
20266 # Is the header compilable?
20267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20268 $as_echo_n "checking $ac_header usability... " >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 $ac_includes_default
20276 #include <$ac_header>
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_header_compiler=yes
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_header_compiler=no
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20306 $as_echo "$ac_header_compiler" >&6; }
20308 # Is the header present?
20309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20310 $as_echo_n "checking $ac_header presence... " >&6; }
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20317 #include <$ac_header>
20319 if { (ac_try="$ac_cpp conftest.$ac_ext"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20325 $as_echo "$ac_try_echo") >&5
20326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } >/dev/null && {
20333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20336 ac_header_preproc=yes
20338 $as_echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_preproc=no
20344 rm -f conftest.err conftest.$ac_ext
20345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 $as_echo "$ac_header_preproc" >&6; }
20348 # So? What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20355 ac_header_preproc=yes
20358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20361 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20365 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20374 $as_echo_n "checking for $ac_header... " >&6; }
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376 $as_echo_n "(cached) " >&6
20378 eval "$as_ac_Header=\$ac_header_preproc"
20380 ac_res=`eval 'as_val=${'$as_ac_Header'}
20381 $as_echo "$as_val"'`
20382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20383 $as_echo "$ac_res" >&6; }
20386 as_val=`eval 'as_val=${'$as_ac_Header'}
20387 $as_echo "$as_val"'`
20388 if test "x$as_val" = x""yes; then
20389 cat >>confdefs.h <<_ACEOF
20390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20398 for ac_func in getpagesize
20400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20402 $as_echo_n "checking for $ac_func... " >&6; }
20403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20404 $as_echo_n "(cached) " >&6
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20414 #define $ac_func innocuous_$ac_func
20416 /* System header to define __stub macros and hopefully few prototypes,
20417 which can conflict with char $ac_func (); below.
20418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20419 <limits.h> exists even on freestanding compilers. */
20422 # include <limits.h>
20424 # include <assert.h>
20429 /* Override any GCC internal prototype to avoid an error.
20430 Use char because int might match the return type of a GCC
20431 builtin and then its argument prototype would still apply. */
20436 /* The GNU C library defines this for functions which it implements
20437 to always fail with ENOSYS. Some functions are actually named
20438 something starting with __ and the normal name is an alias. */
20439 #if defined __stub_$ac_func || defined __stub___$ac_func
20446 return $ac_func ();
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20458 $as_echo "$ac_try_echo") >&5
20459 (eval "$ac_link") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext && {
20469 test "$cross_compiling" = yes ||
20470 $as_test_x conftest$ac_exeext
20472 eval "$as_ac_var=yes"
20474 $as_echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 eval "$as_ac_var=no"
20480 rm -rf conftest.dSYM
20481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20482 conftest$ac_exeext conftest.$ac_ext
20484 ac_res=`eval 'as_val=${'$as_ac_var'}
20485 $as_echo "$as_val"'`
20486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20487 $as_echo "$ac_res" >&6; }
20488 as_val=`eval 'as_val=${'$as_ac_var'}
20489 $as_echo "$as_val"'`
20490 if test "x$as_val" = x""yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20498 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
20499 $as_echo_n "checking for working mmap... " >&6; }
20500 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20501 $as_echo_n "(cached) " >&6
20503 if test "$cross_compiling" = yes; then
20504 ac_cv_func_mmap_fixed_mapped=no
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 $ac_includes_default
20513 /* malloc might have been renamed as rpl_malloc. */
20516 /* Thanks to Mike Haertel and Jim Avera for this test.
20517 Here is a matrix of mmap possibilities:
20518 mmap private not fixed
20519 mmap private fixed at somewhere currently unmapped
20520 mmap private fixed at somewhere already mapped
20521 mmap shared not fixed
20522 mmap shared fixed at somewhere currently unmapped
20523 mmap shared fixed at somewhere already mapped
20524 For private mappings, we should verify that changes cannot be read()
20525 back from the file, nor mmap's back from the file at a different
20526 address. (There have been systems where private was not correctly
20527 implemented like the infamous i386 svr4.0, and systems where the
20528 VM page cache was not coherent with the file system buffer cache
20529 like early versions of FreeBSD and possibly contemporary NetBSD.)
20530 For shared mappings, we should conversely verify that changes get
20531 propagated back to all the places they're supposed to be.
20533 Grep wants private fixed already mapped.
20534 The main things grep needs to know about mmap are:
20535 * does it exist and is it safe to write into the mmap'd area
20536 * how to use it (BSD variants) */
20539 #include <sys/mman.h>
20541 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20545 /* This mess was copied from the GNU getpagesize.h. */
20546 #ifndef HAVE_GETPAGESIZE
20547 /* Assume that all systems that can run configure have sys/param.h. */
20548 # ifndef HAVE_SYS_PARAM_H
20549 # define HAVE_SYS_PARAM_H 1
20552 # ifdef _SC_PAGESIZE
20553 # define getpagesize() sysconf(_SC_PAGESIZE)
20554 # else /* no _SC_PAGESIZE */
20555 # ifdef HAVE_SYS_PARAM_H
20556 # include <sys/param.h>
20557 # ifdef EXEC_PAGESIZE
20558 # define getpagesize() EXEC_PAGESIZE
20559 # else /* no EXEC_PAGESIZE */
20561 # define getpagesize() NBPG * CLSIZE
20564 # endif /* no CLSIZE */
20565 # else /* no NBPG */
20567 # define getpagesize() NBPC
20568 # else /* no NBPC */
20570 # define getpagesize() PAGESIZE
20571 # endif /* PAGESIZE */
20572 # endif /* no NBPC */
20573 # endif /* no NBPG */
20574 # endif /* no EXEC_PAGESIZE */
20575 # else /* no HAVE_SYS_PARAM_H */
20576 # define getpagesize() 8192 /* punt totally */
20577 # endif /* no HAVE_SYS_PARAM_H */
20578 # endif /* no _SC_PAGESIZE */
20580 #endif /* no HAVE_GETPAGESIZE */
20585 char *data, *data2, *data3;
20589 pagesize = getpagesize ();
20591 /* First, make a file with some known garbage in it. */
20592 data = (char *) malloc (pagesize);
20595 for (i = 0; i < pagesize; ++i)
20596 *(data + i) = rand ();
20598 fd = creat ("conftest.mmap", 0600);
20601 if (write (fd, data, pagesize) != pagesize)
20605 /* Next, try to mmap the file at a fixed address which already has
20606 something else allocated at it. If we can, also make sure that
20607 we see the same garbage. */
20608 fd = open ("conftest.mmap", O_RDWR);
20611 data2 = (char *) malloc (2 * pagesize);
20614 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20615 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20616 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20618 for (i = 0; i < pagesize; ++i)
20619 if (*(data + i) != *(data2 + i))
20622 /* Finally, make sure that changes to the mapped area do not
20623 percolate back to the file as seen by read(). (This is a bug on
20624 some variants of i386 svr4.0.) */
20625 for (i = 0; i < pagesize; ++i)
20626 *(data2 + i) = *(data2 + i) + 1;
20627 data3 = (char *) malloc (pagesize);
20630 if (read (fd, data3, pagesize) != pagesize)
20632 for (i = 0; i < pagesize; ++i)
20633 if (*(data + i) != *(data3 + i))
20639 rm -f conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20646 $as_echo "$ac_try_echo") >&5
20647 (eval "$ac_link") 2>&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20656 $as_echo "$ac_try_echo") >&5
20657 (eval "$ac_try") 2>&5
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_func_mmap_fixed_mapped=yes
20663 $as_echo "$as_me: program exited with status $ac_status" >&5
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ( exit $ac_status )
20668 ac_cv_func_mmap_fixed_mapped=no
20670 rm -rf conftest.dSYM
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20677 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_MMAP 1
20685 rm -f conftest.mmap
20688 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20689 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20690 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20691 $as_echo_n "(cached) " >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 #include <features.h>
20701 #ifdef __GNU_LIBRARY__
20702 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20710 ac_cv_gnu_library_2_1=yes
20712 ac_cv_gnu_library_2_1=no
20719 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20720 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20722 GLIBC21="$ac_cv_gnu_library_2_1"
20727 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20728 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20729 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20730 $as_echo_n "(cached) " >&6
20733 if test "$cross_compiling" = yes; then
20735 # Guess based on the CPU.
20736 case "$host_cpu" in
20737 alpha* | i3456786 | m68k | s390*)
20738 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20740 gt_cv_int_divbyzero_sigfpe="guessing no";;
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20751 #include <stdlib.h>
20752 #include <signal.h>
20756 sigfpe_handler (int sig)
20758 sigfpe_handler (sig) int sig;
20761 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20762 exit (sig != SIGFPE);
20772 signal (SIGFPE, sigfpe_handler);
20773 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20774 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20775 signal (SIGTRAP, sigfpe_handler);
20777 /* Linux/SPARC yields signal SIGILL. */
20778 #if defined (__sparc__) && defined (__linux__)
20779 signal (SIGILL, sigfpe_handler);
20788 rm -f conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796 (eval "$ac_link") 2>&5
20798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20805 $as_echo "$ac_try_echo") >&5
20806 (eval "$ac_try") 2>&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 gt_cv_int_divbyzero_sigfpe=yes
20812 $as_echo "$as_me: program exited with status $ac_status" >&5
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ( exit $ac_status )
20817 gt_cv_int_divbyzero_sigfpe=no
20819 rm -rf conftest.dSYM
20820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20826 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20827 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20828 case "$gt_cv_int_divbyzero_sigfpe" in
20833 cat >>confdefs.h <<_ACEOF
20834 #define INTDIV0_RAISES_SIGFPE $value
20839 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20840 $as_echo_n "checking for unsigned long long... " >&6; }
20841 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20842 $as_echo_n "(cached) " >&6
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 unsigned long long ull = 1ULL; int i = 63;
20854 unsigned long long ullmax = (unsigned long long) -1;
20855 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (ac_try="$ac_link"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20867 $as_echo "$ac_try_echo") >&5
20868 (eval "$ac_link") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest$ac_exeext && {
20878 test "$cross_compiling" = yes ||
20879 $as_test_x conftest$ac_exeext
20881 ac_cv_type_unsigned_long_long=yes
20883 $as_echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_type_unsigned_long_long=no
20889 rm -rf conftest.dSYM
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20893 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20894 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20895 if test $ac_cv_type_unsigned_long_long = yes; then
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_UNSIGNED_LONG_LONG 1
20906 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20908 test $ac_cv_type_unsigned_long_long = yes \
20909 && ac_type='unsigned long long' \
20910 || ac_type='unsigned long'
20912 cat >>confdefs.h <<_ACEOF
20913 #define uintmax_t $ac_type
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_UINTMAX_T 1
20925 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
20926 $as_echo_n "checking for inttypes.h... " >&6; }
20927 if test "${gt_cv_header_inttypes_h+set}" = set; then
20928 $as_echo_n "(cached) " >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <sys/types.h>
20938 #include <inttypes.h>
20947 rm -f conftest.$ac_objext
20948 if { (ac_try="$ac_compile"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20954 $as_echo "$ac_try_echo") >&5
20955 (eval "$ac_compile") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest.$ac_objext; then
20965 gt_cv_header_inttypes_h=yes
20967 $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 gt_cv_header_inttypes_h=no
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20977 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20978 if test $gt_cv_header_inttypes_h = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define HAVE_INTTYPES_H 1
20988 if test $gt_cv_header_inttypes_h = yes; then
20989 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20990 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20991 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20992 $as_echo_n "(cached) " >&6
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <inttypes.h>
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21021 $as_echo "$ac_try_echo") >&5
21022 (eval "$ac_compile") 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest.$ac_objext; then
21032 gt_cv_inttypes_pri_broken=no
21034 $as_echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 gt_cv_inttypes_pri_broken=yes
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
21044 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21046 if test "$gt_cv_inttypes_pri_broken" = yes; then
21048 cat >>confdefs.h <<_ACEOF
21049 #define PRI_MACROS_BROKEN 1
21056 for ac_header in stdint.h
21058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21061 $as_echo_n "checking for $ac_header... " >&6; }
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063 $as_echo_n "(cached) " >&6
21065 ac_res=`eval 'as_val=${'$as_ac_Header'}
21066 $as_echo "$as_val"'`
21067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21068 $as_echo "$ac_res" >&6; }
21070 # Is the header compilable?
21071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21072 $as_echo_n "checking $ac_header usability... " >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <$ac_header>
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21089 $as_echo "$ac_try_echo") >&5
21090 (eval "$ac_compile") 2>conftest.er1
21092 grep -v '^ *+' conftest.er1 >conftest.err
21094 cat conftest.err >&5
21095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest.$ac_objext; then
21100 ac_header_compiler=yes
21102 $as_echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21105 ac_header_compiler=no
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21110 $as_echo "$ac_header_compiler" >&6; }
21112 # Is the header present?
21113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21114 $as_echo_n "checking $ac_header presence... " >&6; }
21115 cat >conftest.$ac_ext <<_ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 #include <$ac_header>
21123 if { (ac_try="$ac_cpp conftest.$ac_ext"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21129 $as_echo "$ac_try_echo") >&5
21130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } >/dev/null && {
21137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21140 ac_header_preproc=yes
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_header_preproc=no
21148 rm -f conftest.err conftest.$ac_ext
21149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21150 $as_echo "$ac_header_preproc" >&6; }
21152 # So? What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21159 ac_header_preproc=yes
21162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21178 $as_echo_n "checking for $ac_header... " >&6; }
21179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21180 $as_echo_n "(cached) " >&6
21182 eval "$as_ac_Header=\$ac_header_preproc"
21184 ac_res=`eval 'as_val=${'$as_ac_Header'}
21185 $as_echo "$as_val"'`
21186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21187 $as_echo "$ac_res" >&6; }
21190 as_val=`eval 'as_val=${'$as_ac_Header'}
21191 $as_echo "$as_val"'`
21192 if test "x$as_val" = x""yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21201 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21202 $as_echo_n "checking for SIZE_MAX... " >&6; }
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21211 #include <limits.h>
21213 #include <stdint.h>
21220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21221 $EGREP "Found it" >/dev/null 2>&1; then
21226 if test -z "$result"; then
21227 if test "$cross_compiling" = yes; then
21228 # Depending upon the size, compute the lo and hi bounds.
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 #include <stddef.h>
21239 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21253 $as_echo "$ac_try_echo") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest.$ac_objext; then
21266 cat >conftest.$ac_ext <<_ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <stddef.h>
21276 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21290 $as_echo "$ac_try_echo") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest.$ac_objext; then
21301 ac_hi=$ac_mid; break
21303 $as_echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ac_lo=`expr $ac_mid + 1`
21307 if test $ac_lo -le $ac_mid; then
21311 ac_mid=`expr 2 '*' $ac_mid + 1`
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 $as_echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #include <stddef.h>
21330 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21344 $as_echo "$ac_try_echo") >&5
21345 (eval "$ac_compile") 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } && {
21352 test -z "$ac_c_werror_flag" ||
21353 test ! -s conftest.err
21354 } && test -s conftest.$ac_objext; then
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 #include <stddef.h>
21367 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382 (eval "$ac_compile") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest.$ac_objext; then
21392 ac_lo=$ac_mid; break
21394 $as_echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ac_hi=`expr '(' $ac_mid ')' - 1`
21398 if test $ac_mid -le $ac_hi; then
21402 ac_mid=`expr 2 '*' $ac_mid`
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 $as_echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 # Binary search between lo and hi bounds.
21419 while test "x$ac_lo" != "x$ac_hi"; do
21420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <stddef.h>
21431 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21445 $as_echo "$ac_try_echo") >&5
21446 (eval "$ac_compile") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest.$ac_objext; then
21458 $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_lo=`expr '(' $ac_mid ')' + 1`
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 ?*) res_hi=$ac_lo;;
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <stddef.h>
21478 static long int longval () { return ~(size_t)0 / 10; }
21479 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21481 #include <stdlib.h>
21486 FILE *f = fopen ("conftest.val", "w");
21489 if ((~(size_t)0 / 10) < 0)
21491 long int i = longval ();
21492 if (i != (~(size_t)0 / 10))
21494 fprintf (f, "%ld", i);
21498 unsigned long int i = ulongval ();
21499 if (i != (~(size_t)0 / 10))
21501 fprintf (f, "%lu", i);
21503 /* Do not output a trailing newline, as this causes \r\n confusion
21504 on some platforms. */
21505 return ferror (f) || fclose (f) != 0;
21511 rm -f conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519 (eval "$ac_link") 2>&5
21521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21528 $as_echo "$ac_try_echo") >&5
21529 (eval "$ac_try") 2>&5
21531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 res_hi=`cat conftest.val`
21535 $as_echo "$as_me: program exited with status $ac_status" >&5
21536 $as_echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ( exit $ac_status )
21542 rm -rf conftest.dSYM
21543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 if test "$cross_compiling" = yes; then
21548 # Depending upon the size, compute the lo and hi bounds.
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 #include <stddef.h>
21559 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21573 $as_echo "$ac_try_echo") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 #include <stddef.h>
21596 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21603 rm -f conftest.$ac_objext
21604 if { (ac_try="$ac_compile"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21610 $as_echo "$ac_try_echo") >&5
21611 (eval "$ac_compile") 2>conftest.er1
21613 grep -v '^ *+' conftest.er1 >conftest.err
21615 cat conftest.err >&5
21616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest.$ac_objext; then
21621 ac_hi=$ac_mid; break
21623 $as_echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 ac_lo=`expr $ac_mid + 1`
21627 if test $ac_lo -le $ac_mid; then
21631 ac_mid=`expr 2 '*' $ac_mid + 1`
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <stddef.h>
21650 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21664 $as_echo "$ac_try_echo") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21677 cat >conftest.$ac_ext <<_ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 #include <stddef.h>
21687 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21701 $as_echo "$ac_try_echo") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21704 grep -v '^ *+' conftest.er1 >conftest.err
21706 cat conftest.err >&5
21707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_lo=$ac_mid; break
21714 $as_echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_hi=`expr '(' $ac_mid ')' - 1`
21718 if test $ac_mid -le $ac_hi; then
21722 ac_mid=`expr 2 '*' $ac_mid`
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 $as_echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 # Binary search between lo and hi bounds.
21739 while test "x$ac_lo" != "x$ac_hi"; do
21740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 #include <stddef.h>
21751 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21758 rm -f conftest.$ac_objext
21759 if { (ac_try="$ac_compile"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21765 $as_echo "$ac_try_echo") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21778 $as_echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_lo=`expr '(' $ac_mid ')' + 1`
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 ?*) res_lo=$ac_lo;;
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <stddef.h>
21798 static long int longval () { return ~(size_t)0 % 10; }
21799 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21801 #include <stdlib.h>
21806 FILE *f = fopen ("conftest.val", "w");
21809 if ((~(size_t)0 % 10) < 0)
21811 long int i = longval ();
21812 if (i != (~(size_t)0 % 10))
21814 fprintf (f, "%ld", i);
21818 unsigned long int i = ulongval ();
21819 if (i != (~(size_t)0 % 10))
21821 fprintf (f, "%lu", i);
21823 /* Do not output a trailing newline, as this causes \r\n confusion
21824 on some platforms. */
21825 return ferror (f) || fclose (f) != 0;
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>&5
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21848 $as_echo "$ac_try_echo") >&5
21849 (eval "$ac_try") 2>&5
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 res_lo=`cat conftest.val`
21855 $as_echo "$as_me: program exited with status $ac_status" >&5
21856 $as_echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ( exit $ac_status )
21862 rm -rf conftest.dSYM
21863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21867 if test "$cross_compiling" = yes; then
21868 # Depending upon the size, compute the lo and hi bounds.
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 #include <stddef.h>
21879 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21893 $as_echo "$ac_try_echo") >&5
21894 (eval "$ac_compile") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } && {
21901 test -z "$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 } && test -s conftest.$ac_objext; then
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <stddef.h>
21916 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21923 rm -f conftest.$ac_objext
21924 if { (ac_try="$ac_compile"
21925 case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21930 $as_echo "$ac_try_echo") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.$ac_objext; then
21941 ac_hi=$ac_mid; break
21943 $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_lo=`expr $ac_mid + 1`
21947 if test $ac_lo -le $ac_mid; then
21951 ac_mid=`expr 2 '*' $ac_mid + 1`
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 $as_echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 #include <stddef.h>
21970 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21984 $as_echo "$ac_try_echo") >&5
21985 (eval "$ac_compile") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest.$ac_objext; then
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <stddef.h>
22007 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22021 $as_echo "$ac_try_echo") >&5
22022 (eval "$ac_compile") 2>conftest.er1
22024 grep -v '^ *+' conftest.er1 >conftest.err
22026 cat conftest.err >&5
22027 $as_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_lo=$ac_mid; break
22034 $as_echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22037 ac_hi=`expr '(' $ac_mid ')' - 1`
22038 if test $ac_mid -le $ac_hi; then
22042 ac_mid=`expr 2 '*' $ac_mid`
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 $as_echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 # Binary search between lo and hi bounds.
22059 while test "x$ac_lo" != "x$ac_hi"; do
22060 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 #include <stddef.h>
22071 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22085 $as_echo "$ac_try_echo") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22088 grep -v '^ *+' conftest.er1 >conftest.err
22090 cat conftest.err >&5
22091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 ac_lo=`expr '(' $ac_mid ')' + 1`
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 ?*) fits_in_uint=$ac_lo;;
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 #include <stddef.h>
22118 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22119 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22121 #include <stdlib.h>
22126 FILE *f = fopen ("conftest.val", "w");
22129 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22131 long int i = longval ();
22132 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22134 fprintf (f, "%ld", i);
22138 unsigned long int i = ulongval ();
22139 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22141 fprintf (f, "%lu", i);
22143 /* Do not output a trailing newline, as this causes \r\n confusion
22144 on some platforms. */
22145 return ferror (f) || fclose (f) != 0;
22151 rm -f conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159 (eval "$ac_link") 2>&5
22161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163 { (case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_try") 2>&5
22171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 fits_in_uint=`cat conftest.val`
22175 $as_echo "$as_me: program exited with status $ac_status" >&5
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ( exit $ac_status )
22182 rm -rf conftest.dSYM
22183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22187 if test "$fits_in_uint" = 1; then
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <stddef.h>
22196 extern unsigned long foo;
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22213 $as_echo "$ac_try_echo") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22226 $as_echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 if test -z "$result"; then
22235 if test "$fits_in_uint" = 1; then
22236 result="$res_hi$res_lo"U
22238 result="$res_hi$res_lo"UL
22241 result='~(size_t)0'
22244 { $as_echo "$as_me:$LINENO: result: $result" >&5
22245 $as_echo "$result" >&6; }
22246 if test "$result" != yes; then
22248 cat >>confdefs.h <<_ACEOF
22249 #define SIZE_MAX $result
22258 for ac_header in stdint.h
22260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 $as_echo_n "checking for $ac_header... " >&6; }
22264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22265 $as_echo_n "(cached) " >&6
22267 ac_res=`eval 'as_val=${'$as_ac_Header'}
22268 $as_echo "$as_val"'`
22269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22270 $as_echo "$ac_res" >&6; }
22272 # Is the header compilable?
22273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22274 $as_echo_n "checking $ac_header usability... " >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 $ac_includes_default
22282 #include <$ac_header>
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22291 $as_echo "$ac_try_echo") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.$ac_objext; then
22302 ac_header_compiler=yes
22304 $as_echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_header_compiler=no
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22312 $as_echo "$ac_header_compiler" >&6; }
22314 # Is the header present?
22315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22316 $as_echo_n "checking $ac_header presence... " >&6; }
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 #include <$ac_header>
22325 if { (ac_try="$ac_cpp conftest.$ac_ext"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } >/dev/null && {
22339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22342 ac_header_preproc=yes
22344 $as_echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_header_preproc=no
22350 rm -f conftest.err conftest.$ac_ext
22351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22352 $as_echo "$ac_header_preproc" >&6; }
22354 # So? What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22361 ac_header_preproc=yes
22364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 $as_echo_n "checking for $ac_header... " >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22382 $as_echo_n "(cached) " >&6
22384 eval "$as_ac_Header=\$ac_header_preproc"
22386 ac_res=`eval 'as_val=${'$as_ac_Header'}
22387 $as_echo "$as_val"'`
22388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22389 $as_echo "$ac_res" >&6; }
22392 as_val=`eval 'as_val=${'$as_ac_Header'}
22393 $as_echo "$as_val"'`
22394 if test "x$as_val" = x""yes; then
22395 cat >>confdefs.h <<_ACEOF
22396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22410 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22411 $as_echo_n "checking for ptrdiff_t... " >&6; }
22412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22413 $as_echo_n "(cached) " >&6
22415 ac_cv_type_ptrdiff_t=no
22416 cat >conftest.$ac_ext <<_ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22426 if (sizeof (ptrdiff_t))
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22439 $as_echo "$ac_try_echo") >&5
22440 (eval "$ac_compile") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest.$ac_objext; then
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22460 if (sizeof ((ptrdiff_t)))
22466 rm -f conftest.$ac_objext
22467 if { (ac_try="$ac_compile"
22468 case "(($ac_try" in
22469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470 *) ac_try_echo=$ac_try;;
22472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22473 $as_echo "$ac_try_echo") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22486 $as_echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_type_ptrdiff_t=yes
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 $as_echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22503 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22504 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22508 cat >>confdefs.h <<\_ACEOF
22509 #define ptrdiff_t long
22525 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22526 stdlib.h string.h unistd.h sys/param.h
22528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22531 $as_echo_n "checking for $ac_header... " >&6; }
22532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22533 $as_echo_n "(cached) " >&6
22535 ac_res=`eval 'as_val=${'$as_ac_Header'}
22536 $as_echo "$as_val"'`
22537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22538 $as_echo "$ac_res" >&6; }
22540 # Is the header compilable?
22541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22542 $as_echo_n "checking $ac_header usability... " >&6; }
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 #include <$ac_header>
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 ac_header_compiler=yes
22572 $as_echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 ac_header_compiler=no
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22580 $as_echo "$ac_header_compiler" >&6; }
22582 # Is the header present?
22583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22584 $as_echo_n "checking $ac_header presence... " >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <$ac_header>
22593 if { (ac_try="$ac_cpp conftest.$ac_ext"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22599 $as_echo "$ac_try_echo") >&5
22600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } >/dev/null && {
22607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22610 ac_header_preproc=yes
22612 $as_echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 ac_header_preproc=no
22618 rm -f conftest.err conftest.$ac_ext
22619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22620 $as_echo "$ac_header_preproc" >&6; }
22622 # So? What about this header?
22623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22629 ac_header_preproc=yes
22632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 $as_echo_n "checking for $ac_header... " >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650 $as_echo_n "(cached) " >&6
22652 eval "$as_ac_Header=\$ac_header_preproc"
22654 ac_res=`eval 'as_val=${'$as_ac_Header'}
22655 $as_echo "$as_val"'`
22656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22657 $as_echo "$ac_res" >&6; }
22660 as_val=`eval 'as_val=${'$as_ac_Header'}
22661 $as_echo "$as_val"'`
22662 if test "x$as_val" = x""yes; then
22663 cat >>confdefs.h <<_ACEOF
22664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22694 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22695 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22696 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22701 $as_echo_n "checking for $ac_func... " >&6; }
22702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22703 $as_echo_n "(cached) " >&6
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22713 #define $ac_func innocuous_$ac_func
22715 /* System header to define __stub macros and hopefully few prototypes,
22716 which can conflict with char $ac_func (); below.
22717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22718 <limits.h> exists even on freestanding compilers. */
22721 # include <limits.h>
22723 # include <assert.h>
22728 /* Override any GCC internal prototype to avoid an error.
22729 Use char because int might match the return type of a GCC
22730 builtin and then its argument prototype would still apply. */
22735 /* The GNU C library defines this for functions which it implements
22736 to always fail with ENOSYS. Some functions are actually named
22737 something starting with __ and the normal name is an alias. */
22738 #if defined __stub_$ac_func || defined __stub___$ac_func
22745 return $ac_func ();
22750 rm -f conftest.$ac_objext conftest$ac_exeext
22751 if { (ac_try="$ac_link"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22757 $as_echo "$ac_try_echo") >&5
22758 (eval "$ac_link") 2>conftest.er1
22760 grep -v '^ *+' conftest.er1 >conftest.err
22762 cat conftest.err >&5
22763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest$ac_exeext && {
22768 test "$cross_compiling" = yes ||
22769 $as_test_x conftest$ac_exeext
22771 eval "$as_ac_var=yes"
22773 $as_echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22776 eval "$as_ac_var=no"
22779 rm -rf conftest.dSYM
22780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22781 conftest$ac_exeext conftest.$ac_ext
22783 ac_res=`eval 'as_val=${'$as_ac_var'}
22784 $as_echo "$as_val"'`
22785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22786 $as_echo "$ac_res" >&6; }
22787 as_val=`eval 'as_val=${'$as_ac_var'}
22788 $as_echo "$as_val"'`
22789 if test "x$as_val" = x""yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22799 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22800 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22801 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22802 $as_echo_n "(cached) " >&6
22804 cat >conftest.$ac_ext <<_ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22816 char *p = (char *) _snprintf;
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831 (eval "$ac_compile") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest.$ac_objext; then
22841 ac_cv_have_decl__snprintf=yes
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_cv_have_decl__snprintf=no
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22852 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22853 if test $ac_cv_have_decl__snprintf = yes; then
22859 cat >>confdefs.h <<_ACEOF
22860 #define HAVE_DECL__SNPRINTF $gt_value
22865 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22866 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
22867 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22868 $as_echo_n "(cached) " >&6
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22882 char *p = (char *) _snwprintf;
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22896 $as_echo "$ac_try_echo") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 ac_cv_have_decl__snwprintf=yes
22909 $as_echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ac_cv_have_decl__snwprintf=no
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22918 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
22919 if test $ac_cv_have_decl__snwprintf = yes; then
22925 cat >>confdefs.h <<_ACEOF
22926 #define HAVE_DECL__SNWPRINTF $gt_value
22932 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22933 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
22934 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22935 $as_echo_n "(cached) " >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22948 #ifndef feof_unlocked
22949 char *p = (char *) feof_unlocked;
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22963 $as_echo "$ac_try_echo") >&5
22964 (eval "$ac_compile") 2>conftest.er1
22966 grep -v '^ *+' conftest.er1 >conftest.err
22968 cat conftest.err >&5
22969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && {
22971 test -z "$ac_c_werror_flag" ||
22972 test ! -s conftest.err
22973 } && test -s conftest.$ac_objext; then
22974 ac_cv_have_decl_feof_unlocked=yes
22976 $as_echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22979 ac_cv_have_decl_feof_unlocked=no
22982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22985 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
22986 if test $ac_cv_have_decl_feof_unlocked = yes; then
22992 cat >>confdefs.h <<_ACEOF
22993 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22998 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22999 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
23000 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23001 $as_echo_n "(cached) " >&6
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23014 #ifndef fgets_unlocked
23015 char *p = (char *) fgets_unlocked;
23022 rm -f conftest.$ac_objext
23023 if { (ac_try="$ac_compile"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23029 $as_echo "$ac_try_echo") >&5
23030 (eval "$ac_compile") 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } && {
23037 test -z "$ac_c_werror_flag" ||
23038 test ! -s conftest.err
23039 } && test -s conftest.$ac_objext; then
23040 ac_cv_have_decl_fgets_unlocked=yes
23042 $as_echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 ac_cv_have_decl_fgets_unlocked=no
23048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23050 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23051 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
23052 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23058 cat >>confdefs.h <<_ACEOF
23059 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
23064 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23065 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23066 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23067 $as_echo_n "(cached) " >&6
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23080 #ifndef getc_unlocked
23081 char *p = (char *) getc_unlocked;
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23095 $as_echo "$ac_try_echo") >&5
23096 (eval "$ac_compile") 2>conftest.er1
23098 grep -v '^ *+' conftest.er1 >conftest.err
23100 cat conftest.err >&5
23101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } && {
23103 test -z "$ac_c_werror_flag" ||
23104 test ! -s conftest.err
23105 } && test -s conftest.$ac_objext; then
23106 ac_cv_have_decl_getc_unlocked=yes
23108 $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23111 ac_cv_have_decl_getc_unlocked=no
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23117 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23118 if test $ac_cv_have_decl_getc_unlocked = yes; then
23124 cat >>confdefs.h <<_ACEOF
23125 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23130 case $gt_cv_func_printf_posix in
23131 *yes) HAVE_POSIX_PRINTF=1 ;;
23132 *) HAVE_POSIX_PRINTF=0 ;;
23135 if test "$ac_cv_func_asprintf" = yes; then
23141 if test "$ac_cv_func_snprintf" = yes; then
23147 if test "$ac_cv_func_wprintf" = yes; then
23159 am_save_CPPFLAGS="$CPPFLAGS"
23161 for element in $INCICONV; do
23163 for x in $CPPFLAGS; do
23165 acl_save_prefix="$prefix"
23166 prefix="$acl_final_prefix"
23167 acl_save_exec_prefix="$exec_prefix"
23168 exec_prefix="$acl_final_exec_prefix"
23170 exec_prefix="$acl_save_exec_prefix"
23171 prefix="$acl_save_prefix"
23173 if test "X$x" = "X$element"; then
23178 if test -z "$haveit"; then
23179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23184 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
23185 $as_echo_n "checking for iconv... " >&6; }
23186 if test "${am_cv_func_iconv+set}" = set; then
23187 $as_echo_n "(cached) " >&6
23190 am_cv_func_iconv="no, consider installing GNU libiconv"
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <stdlib.h>
23203 iconv_t cd = iconv_open("","");
23204 iconv(cd,NULL,NULL,NULL,NULL);
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (ac_try="$ac_link"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_link") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest$ac_exeext && {
23228 test "$cross_compiling" = yes ||
23229 $as_test_x conftest$ac_exeext
23231 am_cv_func_iconv=yes
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23239 rm -rf conftest.dSYM
23240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23241 conftest$ac_exeext conftest.$ac_ext
23242 if test "$am_cv_func_iconv" != yes; then
23243 am_save_LIBS="$LIBS"
23244 LIBS="$LIBS $LIBICONV"
23245 cat >conftest.$ac_ext <<_ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23251 #include <stdlib.h>
23256 iconv_t cd = iconv_open("","");
23257 iconv(cd,NULL,NULL,NULL,NULL);
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (ac_try="$ac_link"
23265 case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23270 $as_echo "$ac_try_echo") >&5
23271 (eval "$ac_link") 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && {
23278 test -z "$ac_c_werror_flag" ||
23279 test ! -s conftest.err
23280 } && test -s conftest$ac_exeext && {
23281 test "$cross_compiling" = yes ||
23282 $as_test_x conftest$ac_exeext
23284 am_cv_lib_iconv=yes
23285 am_cv_func_iconv=yes
23287 $as_echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23293 rm -rf conftest.dSYM
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS="$am_save_LIBS"
23300 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23301 $as_echo "$am_cv_func_iconv" >&6; }
23302 if test "$am_cv_func_iconv" = yes; then
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_ICONV 1
23309 if test "$am_cv_lib_iconv" = yes; then
23310 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23311 $as_echo_n "checking how to link with libiconv... " >&6; }
23312 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
23313 $as_echo "$LIBICONV" >&6; }
23315 CPPFLAGS="$am_save_CPPFLAGS"
23322 if test "$am_cv_func_iconv" = yes; then
23323 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
23324 $as_echo_n "checking for iconv declaration... " >&6; }
23325 if test "${am_cv_proto_iconv+set}" = set; then
23326 $as_echo_n "(cached) " >&6
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23336 #include <stdlib.h>
23342 #if defined(__STDC__) || defined(__cplusplus)
23343 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23356 rm -f conftest.$ac_objext
23357 if { (ac_try="$ac_compile"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364 (eval "$ac_compile") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest.$ac_objext; then
23374 am_cv_proto_iconv_arg1=""
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 am_cv_proto_iconv_arg1="const"
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 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);"
23386 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23387 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
23388 }$am_cv_proto_iconv" >&5
23390 }$am_cv_proto_iconv" >&6; }
23392 cat >>confdefs.h <<_ACEOF
23393 #define ICONV_CONST $am_cv_proto_iconv_arg1
23399 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23400 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23401 if test "${am_cv_langinfo_codeset+set}" = set; then
23402 $as_echo_n "(cached) " >&6
23404 cat >conftest.$ac_ext <<_ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23410 #include <langinfo.h>
23414 char* cs = nl_langinfo(CODESET);
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_link") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest$ac_exeext && {
23437 test "$cross_compiling" = yes ||
23438 $as_test_x conftest$ac_exeext
23440 am_cv_langinfo_codeset=yes
23442 $as_echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 am_cv_langinfo_codeset=no
23448 rm -rf conftest.dSYM
23449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23450 conftest$ac_exeext conftest.$ac_ext
23453 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23454 $as_echo "$am_cv_langinfo_codeset" >&6; }
23455 if test $am_cv_langinfo_codeset = yes; then
23457 cat >>confdefs.h <<\_ACEOF
23458 #define HAVE_LANGINFO_CODESET 1
23463 if test $ac_cv_header_locale_h = yes; then
23465 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23466 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23467 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
23468 $as_echo_n "(cached) " >&6
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 #include <locale.h>
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489 *) ac_try_echo=$ac_try;;
23491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23492 $as_echo "$ac_try_echo") >&5
23493 (eval "$ac_link") 2>conftest.er1
23495 grep -v '^ *+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest$ac_exeext && {
23503 test "$cross_compiling" = yes ||
23504 $as_test_x conftest$ac_exeext
23506 gt_cv_val_LC_MESSAGES=yes
23508 $as_echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23511 gt_cv_val_LC_MESSAGES=no
23514 rm -rf conftest.dSYM
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516 conftest$ac_exeext conftest.$ac_ext
23518 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23519 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
23520 if test $gt_cv_val_LC_MESSAGES = yes; then
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_LC_MESSAGES 1
23530 if test -n "$INTL_MACOSX_LIBS"; then
23531 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23534 for ac_prog in bison
23536 # Extract the first word of "$ac_prog", so it can be a program name with args.
23537 set dummy $ac_prog; ac_word=$2
23538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23539 $as_echo_n "checking for $ac_word... " >&6; }
23540 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23541 $as_echo_n "(cached) " >&6
23543 if test -n "$INTLBISON"; then
23544 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547 for as_dir in $PATH
23550 test -z "$as_dir" && as_dir=.
23551 for ac_exec_ext in '' $ac_executable_extensions; do
23552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23553 ac_cv_prog_INTLBISON="$ac_prog"
23554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23563 INTLBISON=$ac_cv_prog_INTLBISON
23564 if test -n "$INTLBISON"; then
23565 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
23566 $as_echo "$INTLBISON" >&6; }
23568 { $as_echo "$as_me:$LINENO: result: no" >&5
23569 $as_echo "no" >&6; }
23573 test -n "$INTLBISON" && break
23576 if test -z "$INTLBISON"; then
23579 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
23580 $as_echo_n "checking version of bison... " >&6; }
23581 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23582 case $ac_prog_version in
23583 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23584 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23585 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23586 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23588 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23589 $as_echo "$ac_prog_version" >&6; }
23591 if test $ac_verc_fail = yes; then
23610 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23611 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23612 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23613 $as_echo_n "(cached) " >&6
23615 gt_save_CPPFLAGS="$CPPFLAGS"
23616 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23617 gt_save_LIBS="$LIBS"
23618 LIBS="$LIBS -framework CoreFoundation"
23619 cat >conftest.$ac_ext <<_ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23625 #include <CFPreferences.h>
23629 CFPreferencesCopyAppValue(NULL, NULL)
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_link") 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && {
23649 test -z "$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 } && test -s conftest$ac_exeext && {
23652 test "$cross_compiling" = yes ||
23653 $as_test_x conftest$ac_exeext
23655 gt_cv_func_CFPreferencesCopyAppValue=yes
23657 $as_echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 gt_cv_func_CFPreferencesCopyAppValue=no
23663 rm -rf conftest.dSYM
23664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23665 conftest$ac_exeext conftest.$ac_ext
23666 CPPFLAGS="$gt_save_CPPFLAGS"
23667 LIBS="$gt_save_LIBS"
23669 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23670 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23671 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23678 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23679 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23680 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23681 $as_echo_n "(cached) " >&6
23683 gt_save_CPPFLAGS="$CPPFLAGS"
23684 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23685 gt_save_LIBS="$LIBS"
23686 LIBS="$LIBS -framework CoreFoundation"
23687 cat >conftest.$ac_ext <<_ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h. */
23693 #include <CFLocale.h>
23697 CFLocaleCopyCurrent();
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (ac_try="$ac_link"
23704 case "(($ac_try" in
23705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706 *) ac_try_echo=$ac_try;;
23708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23709 $as_echo "$ac_try_echo") >&5
23710 (eval "$ac_link") 2>conftest.er1
23712 grep -v '^ *+' conftest.er1 >conftest.err
23714 cat conftest.err >&5
23715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } && {
23717 test -z "$ac_c_werror_flag" ||
23718 test ! -s conftest.err
23719 } && test -s conftest$ac_exeext && {
23720 test "$cross_compiling" = yes ||
23721 $as_test_x conftest$ac_exeext
23723 gt_cv_func_CFLocaleCopyCurrent=yes
23725 $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 gt_cv_func_CFLocaleCopyCurrent=no
23731 rm -rf conftest.dSYM
23732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23733 conftest$ac_exeext conftest.$ac_ext
23734 CPPFLAGS="$gt_save_CPPFLAGS"
23735 LIBS="$gt_save_LIBS"
23737 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23738 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23739 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23741 cat >>confdefs.h <<\_ACEOF
23742 #define HAVE_CFLOCALECOPYCURRENT 1
23747 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23748 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23754 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23755 $as_echo_n "checking whether NLS is requested... " >&6; }
23756 # Check whether --enable-nls was given.
23757 if test "${enable_nls+set}" = set; then
23758 enableval=$enable_nls; USE_NLS=$enableval
23763 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23764 $as_echo "$USE_NLS" >&6; }
23769 BUILD_INCLUDED_LIBINTL=no
23770 USE_INCLUDED_LIBINTL=no
23776 if test "$USE_NLS" = "yes"; then
23777 gt_use_preinstalled_gnugettext=no
23779 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23780 $as_echo_n "checking whether included gettext is requested... " >&6; }
23782 # Check whether --with-included-gettext was given.
23783 if test "${with_included_gettext+set}" = set; then
23784 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23786 nls_cv_force_use_gnu_gettext=no
23789 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23790 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
23792 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23793 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23800 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23801 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23802 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23803 $as_echo_n "(cached) " >&6
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 #include <libintl.h>
23812 extern int _nl_msg_cat_cntr;
23813 extern int *_nl_domain_bindings;
23817 bindtextdomain ("", "");
23818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831 (eval "$ac_link") 2>conftest.er1
23833 grep -v '^ *+' conftest.er1 >conftest.err
23835 cat conftest.err >&5
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } && {
23838 test -z "$ac_c_werror_flag" ||
23839 test ! -s conftest.err
23840 } && test -s conftest$ac_exeext && {
23841 test "$cross_compiling" = yes ||
23842 $as_test_x conftest$ac_exeext
23844 gt_cv_func_gnugettext1_libc=yes
23846 $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 gt_cv_func_gnugettext1_libc=no
23852 rm -rf conftest.dSYM
23853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23854 conftest$ac_exeext conftest.$ac_ext
23856 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23857 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
23859 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23865 acl_save_prefix="$prefix"
23866 prefix="$acl_final_prefix"
23867 acl_save_exec_prefix="$exec_prefix"
23868 exec_prefix="$acl_final_exec_prefix"
23870 eval additional_includedir=\"$includedir\"
23871 eval additional_libdir=\"$libdir\"
23873 exec_prefix="$acl_save_exec_prefix"
23874 prefix="$acl_save_prefix"
23877 # Check whether --with-libintl-prefix was given.
23878 if test "${with_libintl_prefix+set}" = set; then
23879 withval=$with_libintl_prefix;
23880 if test "X$withval" = "Xno"; then
23883 if test "X$withval" = "X"; then
23885 acl_save_prefix="$prefix"
23886 prefix="$acl_final_prefix"
23887 acl_save_exec_prefix="$exec_prefix"
23888 exec_prefix="$acl_final_exec_prefix"
23890 eval additional_includedir=\"$includedir\"
23891 eval additional_libdir=\"$libdir\"
23893 exec_prefix="$acl_save_exec_prefix"
23894 prefix="$acl_save_prefix"
23897 additional_includedir="$withval/include"
23898 additional_libdir="$withval/lib"
23909 names_already_handled=
23910 names_next_round='intl '
23911 while test -n "$names_next_round"; do
23912 names_this_round="$names_next_round"
23914 for name in $names_this_round; do
23916 for n in $names_already_handled; do
23917 if test "$n" = "$name"; then
23918 already_handled=yes
23922 if test -z "$already_handled"; then
23923 names_already_handled="$names_already_handled $name"
23924 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23925 eval value=\"\$HAVE_LIB$uppername\"
23926 if test -n "$value"; then
23927 if test "$value" = yes; then
23928 eval value=\"\$LIB$uppername\"
23929 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23930 eval value=\"\$LTLIB$uppername\"
23931 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23940 if test $use_additional = yes; then
23941 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23942 found_dir="$additional_libdir"
23943 found_so="$additional_libdir/lib$name.$shlibext"
23944 if test -f "$additional_libdir/lib$name.la"; then
23945 found_la="$additional_libdir/lib$name.la"
23948 if test -f "$additional_libdir/lib$name.$libext"; then
23949 found_dir="$additional_libdir"
23950 found_a="$additional_libdir/lib$name.$libext"
23951 if test -f "$additional_libdir/lib$name.la"; then
23952 found_la="$additional_libdir/lib$name.la"
23957 if test "X$found_dir" = "X"; then
23958 for x in $LDFLAGS $LTLIBINTL; do
23960 acl_save_prefix="$prefix"
23961 prefix="$acl_final_prefix"
23962 acl_save_exec_prefix="$exec_prefix"
23963 exec_prefix="$acl_final_exec_prefix"
23965 exec_prefix="$acl_save_exec_prefix"
23966 prefix="$acl_save_prefix"
23970 dir=`echo "X$x" | sed -e 's/^X-L//'`
23971 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23973 found_so="$dir/lib$name.$shlibext"
23974 if test -f "$dir/lib$name.la"; then
23975 found_la="$dir/lib$name.la"
23978 if test -f "$dir/lib$name.$libext"; then
23980 found_a="$dir/lib$name.$libext"
23981 if test -f "$dir/lib$name.la"; then
23982 found_la="$dir/lib$name.la"
23988 if test "X$found_dir" != "X"; then
23993 if test "X$found_dir" != "X"; then
23994 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23995 if test "X$found_so" != "X"; then
23996 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23997 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24000 for x in $ltrpathdirs; do
24001 if test "X$x" = "X$found_dir"; then
24006 if test -z "$haveit"; then
24007 ltrpathdirs="$ltrpathdirs $found_dir"
24009 if test "$hardcode_direct" = yes; then
24010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24012 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24013 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24015 for x in $rpathdirs; do
24016 if test "X$x" = "X$found_dir"; then
24021 if test -z "$haveit"; then
24022 rpathdirs="$rpathdirs $found_dir"
24026 for x in $LDFLAGS $LIBINTL; do
24028 acl_save_prefix="$prefix"
24029 prefix="$acl_final_prefix"
24030 acl_save_exec_prefix="$exec_prefix"
24031 exec_prefix="$acl_final_exec_prefix"
24033 exec_prefix="$acl_save_exec_prefix"
24034 prefix="$acl_save_prefix"
24036 if test "X$x" = "X-L$found_dir"; then
24041 if test -z "$haveit"; then
24042 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24044 if test "$hardcode_minus_L" != no; then
24045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24047 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24053 if test "X$found_a" != "X"; then
24054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24056 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24059 additional_includedir=
24060 case "$found_dir" in
24062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24063 additional_includedir="$basedir/include"
24066 if test "X$additional_includedir" != "X"; then
24067 if test "X$additional_includedir" != "X/usr/include"; then
24069 if test "X$additional_includedir" = "X/usr/local/include"; then
24070 if test -n "$GCC"; then
24072 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24076 if test -z "$haveit"; then
24077 for x in $CPPFLAGS $INCINTL; do
24079 acl_save_prefix="$prefix"
24080 prefix="$acl_final_prefix"
24081 acl_save_exec_prefix="$exec_prefix"
24082 exec_prefix="$acl_final_exec_prefix"
24084 exec_prefix="$acl_save_exec_prefix"
24085 prefix="$acl_save_prefix"
24087 if test "X$x" = "X-I$additional_includedir"; then
24092 if test -z "$haveit"; then
24093 if test -d "$additional_includedir"; then
24094 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24100 if test -n "$found_la"; then
24101 save_libdir="$libdir"
24102 case "$found_la" in
24103 */* | *\\*) . "$found_la" ;;
24104 *) . "./$found_la" ;;
24106 libdir="$save_libdir"
24107 for dep in $dependency_libs; do
24110 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24111 if test "X$additional_libdir" != "X/usr/lib"; then
24113 if test "X$additional_libdir" = "X/usr/local/lib"; then
24114 if test -n "$GCC"; then
24116 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24120 if test -z "$haveit"; then
24122 for x in $LDFLAGS $LIBINTL; do
24124 acl_save_prefix="$prefix"
24125 prefix="$acl_final_prefix"
24126 acl_save_exec_prefix="$exec_prefix"
24127 exec_prefix="$acl_final_exec_prefix"
24129 exec_prefix="$acl_save_exec_prefix"
24130 prefix="$acl_save_prefix"
24132 if test "X$x" = "X-L$additional_libdir"; then
24137 if test -z "$haveit"; then
24138 if test -d "$additional_libdir"; then
24139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24143 for x in $LDFLAGS $LTLIBINTL; do
24145 acl_save_prefix="$prefix"
24146 prefix="$acl_final_prefix"
24147 acl_save_exec_prefix="$exec_prefix"
24148 exec_prefix="$acl_final_exec_prefix"
24150 exec_prefix="$acl_save_exec_prefix"
24151 prefix="$acl_save_prefix"
24153 if test "X$x" = "X-L$additional_libdir"; then
24158 if test -z "$haveit"; then
24159 if test -d "$additional_libdir"; then
24160 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24167 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24168 if test "$enable_rpath" != no; then
24170 for x in $rpathdirs; do
24171 if test "X$x" = "X$dir"; then
24176 if test -z "$haveit"; then
24177 rpathdirs="$rpathdirs $dir"
24180 for x in $ltrpathdirs; do
24181 if test "X$x" = "X$dir"; then
24186 if test -z "$haveit"; then
24187 ltrpathdirs="$ltrpathdirs $dir"
24192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24198 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24199 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24205 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24206 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24212 if test "X$rpathdirs" != "X"; then
24213 if test -n "$hardcode_libdir_separator"; then
24215 for found_dir in $rpathdirs; do
24216 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24218 acl_save_libdir="$libdir"
24220 eval flag=\"$hardcode_libdir_flag_spec\"
24221 libdir="$acl_save_libdir"
24222 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24224 for found_dir in $rpathdirs; do
24225 acl_save_libdir="$libdir"
24226 libdir="$found_dir"
24227 eval flag=\"$hardcode_libdir_flag_spec\"
24228 libdir="$acl_save_libdir"
24229 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24233 if test "X$ltrpathdirs" != "X"; then
24234 for found_dir in $ltrpathdirs; do
24235 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24239 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24240 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24241 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
24242 $as_echo_n "(cached) " >&6
24244 gt_save_CPPFLAGS="$CPPFLAGS"
24245 CPPFLAGS="$CPPFLAGS $INCINTL"
24246 gt_save_LIBS="$LIBS"
24247 LIBS="$LIBS $LIBINTL"
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #include <libintl.h>
24255 extern int _nl_msg_cat_cntr;
24260 const char *_nl_expand_alias (const char *);
24264 bindtextdomain ("", "");
24265 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24270 rm -f conftest.$ac_objext conftest$ac_exeext
24271 if { (ac_try="$ac_link"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278 (eval "$ac_link") 2>conftest.er1
24280 grep -v '^ *+' conftest.er1 >conftest.err
24282 cat conftest.err >&5
24283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); } && {
24285 test -z "$ac_c_werror_flag" ||
24286 test ! -s conftest.err
24287 } && test -s conftest$ac_exeext && {
24288 test "$cross_compiling" = yes ||
24289 $as_test_x conftest$ac_exeext
24291 gt_cv_func_gnugettext1_libintl=yes
24293 $as_echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 gt_cv_func_gnugettext1_libintl=no
24299 rm -rf conftest.dSYM
24300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24301 conftest$ac_exeext conftest.$ac_ext
24302 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
24303 LIBS="$LIBS $LIBICONV"
24304 cat >conftest.$ac_ext <<_ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 #include <libintl.h>
24311 extern int _nl_msg_cat_cntr;
24316 const char *_nl_expand_alias (const char *);
24320 bindtextdomain ("", "");
24321 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24326 rm -f conftest.$ac_objext conftest$ac_exeext
24327 if { (ac_try="$ac_link"
24328 case "(($ac_try" in
24329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24333 $as_echo "$ac_try_echo") >&5
24334 (eval "$ac_link") 2>conftest.er1
24336 grep -v '^ *+' conftest.er1 >conftest.err
24338 cat conftest.err >&5
24339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } && {
24341 test -z "$ac_c_werror_flag" ||
24342 test ! -s conftest.err
24343 } && test -s conftest$ac_exeext && {
24344 test "$cross_compiling" = yes ||
24345 $as_test_x conftest$ac_exeext
24347 LIBINTL="$LIBINTL $LIBICONV"
24348 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
24349 gt_cv_func_gnugettext1_libintl=yes
24352 $as_echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24358 rm -rf conftest.dSYM
24359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24360 conftest$ac_exeext conftest.$ac_ext
24362 CPPFLAGS="$gt_save_CPPFLAGS"
24363 LIBS="$gt_save_LIBS"
24365 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
24366 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
24369 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
24370 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
24371 && test "$PACKAGE" != gettext-runtime \
24372 && test "$PACKAGE" != gettext-tools; }; then
24373 gt_use_preinstalled_gnugettext=yes
24381 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
24382 nls_cv_use_gnu_gettext=yes
24386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
24387 BUILD_INCLUDED_LIBINTL=yes
24388 USE_INCLUDED_LIBINTL=yes
24389 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
24390 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
24391 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
24395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24401 if test -n "$INTL_MACOSX_LIBS"; then
24402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24404 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
24405 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
24409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
24412 cat >>confdefs.h <<\_ACEOF
24413 #define ENABLE_NLS 1
24421 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
24422 $as_echo_n "checking whether to use NLS... " >&6; }
24423 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
24424 $as_echo "$USE_NLS" >&6; }
24425 if test "$USE_NLS" = "yes"; then
24426 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
24427 $as_echo_n "checking where the gettext function comes from... " >&6; }
24428 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24429 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24430 gt_source="external libintl"
24435 gt_source="included intl directory"
24437 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
24438 $as_echo "$gt_source" >&6; }
24441 if test "$USE_NLS" = "yes"; then
24443 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24444 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
24445 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
24446 $as_echo_n "checking how to link with libintl... " >&6; }
24447 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
24448 $as_echo "$LIBINTL" >&6; }
24450 for element in $INCINTL; do
24452 for x in $CPPFLAGS; do
24454 acl_save_prefix="$prefix"
24455 prefix="$acl_final_prefix"
24456 acl_save_exec_prefix="$exec_prefix"
24457 exec_prefix="$acl_final_exec_prefix"
24459 exec_prefix="$acl_save_exec_prefix"
24460 prefix="$acl_save_prefix"
24462 if test "X$x" = "X$element"; then
24467 if test -z "$haveit"; then
24468 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_GETTEXT 1
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_DCGETTEXT 1
24490 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
24491 BUILD_INCLUDED_LIBINTL=yes
24498 nls_cv_header_intl=
24499 nls_cv_header_libgt=
24511 if test "$USE_INCLUDED_LIBINTL" = yes; then
24512 INTLOBJS="\$(GETTOBJS)"
24516 INTL_LIBTOOL_SUFFIX_PREFIX=
24520 INTLLIBS="$LIBINTL"
24532 support_postgresql=no
24535 support_smartalloc=yes
24536 support_readline=yes
24540 support_wx_console=no
24541 support_tray_monitor=no
24546 support_static_tools=no
24547 support_static_fd=no
24548 support_static_sd=no
24549 support_static_dir=no
24550 support_static_cons=no
24552 build_client_only=no
24561 # Check whether --enable-gnome was given.
24562 if test "${enable_gnome+set}" = set; then
24563 enableval=$enable_gnome;
24564 if test x$enableval = xyes; then
24573 if test x$support_gnome = xyes; then
24574 { { $as_echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24575 $as_echo "$as_me: error: bgnome-console no longer supported" >&2;}
24576 { (exit 1); exit 1; }; }
24577 { { $as_echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24578 $as_echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24579 { (exit 1); exit 1; }; }
24581 # AC_SUBST(GNOME_DIR)
24583 # Check whether --enable-bat was given.
24584 if test "${enable_bat+set}" = set; then
24585 enableval=$enable_bat;
24586 if test x$enableval = xyes; then
24588 cat >>confdefs.h <<\_ACEOF
24600 if test x$support_bat = xyes; then
24601 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24603 if test $pkg = 0; then
24604 BAT_DIR=src/qt-console
24606 { { $as_echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24607 $as_echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24608 { (exit 1); exit 1; }; }
24626 # Check whether --enable-bwx-console was given.
24627 if test "${enable_bwx_console+set}" = set; then
24628 enableval=$enable_bwx_console;
24629 if test x$enableval = xyes; then
24630 support_wx_console=yes
24638 if test x$support_wx_console = xyes; then
24639 abc=`$WXCONFIG $WXFLAGS --cppflags`
24641 if test $pkg = 0; then
24642 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24643 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24644 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24648 WX_DIR="src/wx-console"
24651 echo "wx-config program not found. bwx-console disabled."
24653 support_wx_console=no
24658 # Check whether --enable-tray-monitor was given.
24659 if test "${enable_tray_monitor+set}" = set; then
24660 enableval=$enable_tray_monitor;
24661 if test x$enableval = xyes; then
24662 support_tray_monitor=yes
24670 if test x$support_tray_monitor = xyes; then
24671 abc=`$PKGCONFIG --exists gtk+-2.0`
24673 if test $pkg = 0; then
24674 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24675 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24678 TRAY_MONITOR_DIR=src/tray-monitor
24679 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24681 if test $pkg = 0; then
24683 cat >>confdefs.h <<\_ACEOF
24684 #define HAVE_GTK_2_4 1
24692 # Check whether --enable-smartalloc was given.
24693 if test "${enable_smartalloc+set}" = set; then
24694 enableval=$enable_smartalloc;
24695 if test x$enableval = xno; then
24696 support_smartalloc=no
24703 if test x$support_smartalloc = xyes; then
24705 cat >>confdefs.h <<\_ACEOF
24706 #define SMARTALLOC 1
24711 # Check whether --enable-lockmgr was given.
24712 if test "${enable_lockmgr+set}" = set; then
24713 enableval=$enable_lockmgr;
24714 if test x$enableval = xyes; then
24715 support_lockmgr=yes
24722 if test x$support_lockmgr = xyes; then
24724 cat >>confdefs.h <<\_ACEOF
24725 #define _USE_LOCKMGR 1
24731 # Check whether --enable-static-tools was given.
24732 if test "${enable_static_tools+set}" = set; then
24733 enableval=$enable_static_tools;
24734 if test x$enableval = xyes; then
24735 if test x$use_libtool = xyes; then
24736 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24737 please rerun configure with --disable-libtool" >&5
24738 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24739 please rerun configure with --disable-libtool" >&2;}
24740 { (exit 1); exit 1; }; }
24742 support_static_tools=yes
24750 if test x$support_static_tools = xyes; then
24751 TTOOL_LDFLAGS="-static"
24755 # Check whether --enable-static-fd was given.
24756 if test "${enable_static_fd+set}" = set; then
24757 enableval=$enable_static_fd;
24758 if test x$enableval = xyes; then
24759 if test x$use_libtool = xyes; then
24760 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24761 please rerun configure with --disable-libtool" >&5
24762 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24763 please rerun configure with --disable-libtool" >&2;}
24764 { (exit 1); exit 1; }; }
24766 support_static_fd=yes
24774 if test x$support_static_fd = xyes; then
24775 STATIC_FD="static-bacula-fd"
24779 # Check whether --enable-static-sd was given.
24780 if test "${enable_static_sd+set}" = set; then
24781 enableval=$enable_static_sd;
24782 if test x$enableval = xyes; then
24783 if test x$use_libtool = xyes; then
24784 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24785 please rerun configure with --disable-libtool" >&5
24786 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24787 please rerun configure with --disable-libtool" >&2;}
24788 { (exit 1); exit 1; }; }
24790 support_static_sd=yes
24798 if test x$support_static_sd = xyes; then
24799 STATIC_SD="static-bacula-sd"
24803 # Check whether --enable-static-dir was given.
24804 if test "${enable_static_dir+set}" = set; then
24805 enableval=$enable_static_dir;
24806 if test x$enableval = xyes; then
24807 if test x$use_libtool = xyes; then
24808 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24809 please rerun configure with --disable-libtool" >&5
24810 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24811 please rerun configure with --disable-libtool" >&2;}
24812 { (exit 1); exit 1; }; }
24814 support_static_dir=yes
24822 if test x$support_static_dir = xyes; then
24823 STATIC_DIR="static-bacula-dir"
24827 # Check whether --enable-static-cons was given.
24828 if test "${enable_static_cons+set}" = set; then
24829 enableval=$enable_static_cons;
24830 if test x$enableval = xyes; then
24831 if test x$use_libtool = xyes; then
24832 { { $as_echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24833 please rerun configure with --disable-libtool" >&5
24834 $as_echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24835 please rerun configure with --disable-libtool" >&2;}
24836 { (exit 1); exit 1; }; }
24838 support_static_cons=yes
24848 if test x$support_static_cons = xyes; then
24849 STATIC_CONS="static-bconsole"
24850 STATIC_GNOME_CONS="static-bgnome-console"
24851 STATIC_WX_CONS="static-bwx-console"
24857 # Check whether --enable-client-only was given.
24858 if test "${enable_client_only+set}" = set; then
24859 enableval=$enable_client_only;
24860 if test x$enableval = xyes; then
24861 build_client_only=yes
24869 if test x$build_client_only = xno; then
24876 # Check whether --enable-build-dird was given.
24877 if test "${enable_build_dird+set}" = set; then
24878 enableval=$enable_build_dird;
24879 if test x$enableval = xno; then
24886 if test x$build_dird = xyes; then
24887 DIRD_DIR="src/dird"
24888 DIR_TOOLS="DIRTOOLS"
24891 DIR_TOOLS="NODIRTOOLS"
24896 # Check whether --enable-build-stored was given.
24897 if test "${enable_build_stored+set}" = set; then
24898 enableval=$enable_build_stored;
24899 if test x$enableval = xno; then
24906 if test x$build_stored = xyes; then
24907 STORED_DIR="src/stored"
24913 # Check whether --enable-conio was given.
24914 if test "${enable_conio+set}" = set; then
24915 enableval=$enable_conio;
24916 if test x$enableval = xno; then
24926 # Check whether --enable-ipv6 was given.
24927 if test "${enable_ipv6+set}" = set; then
24928 enableval=$enable_ipv6;
24929 if test x$enableval = xno; then
24937 if test x$support_ipv6 = xyes; then
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 #include <sys/types.h>
24945 #include <sys/socket.h>
24946 #include <netinet/in.h>
24950 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24955 rm -f conftest.$ac_objext conftest$ac_exeext
24956 if { (ac_try="$ac_link"
24957 case "(($ac_try" in
24958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24959 *) ac_try_echo=$ac_try;;
24961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24962 $as_echo "$ac_try_echo") >&5
24963 (eval "$ac_link") 2>conftest.er1
24965 grep -v '^ *+' conftest.er1 >conftest.err
24967 cat conftest.err >&5
24968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); } && {
24970 test -z "$ac_c_werror_flag" ||
24971 test ! -s conftest.err
24972 } && test -s conftest$ac_exeext && {
24973 test "$cross_compiling" = yes ||
24974 $as_test_x conftest$ac_exeext
24978 $as_echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24984 rm -rf conftest.dSYM
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986 conftest$ac_exeext conftest.$ac_ext
24989 if test x$support_ipv6 = xyes; then
24991 cat >>confdefs.h <<\_ACEOF
24992 #define HAVE_IPV6 1
24998 if test "${ac_cv_header_curses_h+set}" = set; then
24999 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25000 $as_echo_n "checking for curses.h... " >&6; }
25001 if test "${ac_cv_header_curses_h+set}" = set; then
25002 $as_echo_n "(cached) " >&6
25004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25005 $as_echo "$ac_cv_header_curses_h" >&6; }
25007 # Is the header compilable?
25008 { $as_echo "$as_me:$LINENO: checking curses.h usability" >&5
25009 $as_echo_n "checking curses.h usability... " >&6; }
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 $ac_includes_default
25017 #include <curses.h>
25019 rm -f conftest.$ac_objext
25020 if { (ac_try="$ac_compile"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25026 $as_echo "$ac_try_echo") >&5
25027 (eval "$ac_compile") 2>conftest.er1
25029 grep -v '^ *+' conftest.er1 >conftest.err
25031 cat conftest.err >&5
25032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } && {
25034 test -z "$ac_c_werror_flag" ||
25035 test ! -s conftest.err
25036 } && test -s conftest.$ac_objext; then
25037 ac_header_compiler=yes
25039 $as_echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 ac_header_compiler=no
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25046 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 $as_echo "$ac_header_compiler" >&6; }
25049 # Is the header present?
25050 { $as_echo "$as_me:$LINENO: checking curses.h presence" >&5
25051 $as_echo_n "checking curses.h presence... " >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 #include <curses.h>
25060 if { (ac_try="$ac_cpp conftest.$ac_ext"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } >/dev/null && {
25074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25077 ac_header_preproc=yes
25079 $as_echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_header_preproc=no
25085 rm -f conftest.err conftest.$ac_ext
25086 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 $as_echo "$ac_header_preproc" >&6; }
25089 # So? What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092 { $as_echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
25093 $as_echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
25095 $as_echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
25096 ac_header_preproc=yes
25099 { $as_echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
25100 $as_echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
25101 { $as_echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
25102 $as_echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
25103 { $as_echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
25104 $as_echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
25105 { $as_echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
25106 $as_echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
25107 { $as_echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
25108 $as_echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
25109 { $as_echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
25110 $as_echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
25114 { $as_echo "$as_me:$LINENO: checking for curses.h" >&5
25115 $as_echo_n "checking for curses.h... " >&6; }
25116 if test "${ac_cv_header_curses_h+set}" = set; then
25117 $as_echo_n "(cached) " >&6
25119 ac_cv_header_curses_h=$ac_header_preproc
25121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
25122 $as_echo "$ac_cv_header_curses_h" >&6; }
25125 if test "x$ac_cv_header_curses_h" = x""yes; then
25126 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
25127 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
25128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
25129 $as_echo_n "(cached) " >&6
25131 ac_check_lib_save_LIBS=$LIBS
25132 LIBS="-lncurses $LIBS"
25133 cat >conftest.$ac_ext <<_ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25140 /* Override any GCC internal prototype to avoid an error.
25141 Use char because int might match the return type of a GCC
25142 builtin and then its argument prototype would still apply. */
25155 rm -f conftest.$ac_objext conftest$ac_exeext
25156 if { (ac_try="$ac_link"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163 (eval "$ac_link") 2>conftest.er1
25165 grep -v '^ *+' conftest.er1 >conftest.err
25167 cat conftest.err >&5
25168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } && {
25170 test -z "$ac_c_werror_flag" ||
25171 test ! -s conftest.err
25172 } && test -s conftest$ac_exeext && {
25173 test "$cross_compiling" = yes ||
25174 $as_test_x conftest$ac_exeext
25176 ac_cv_lib_ncurses_tgetent=yes
25178 $as_echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 ac_cv_lib_ncurses_tgetent=no
25184 rm -rf conftest.dSYM
25185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25186 conftest$ac_exeext conftest.$ac_ext
25187 LIBS=$ac_check_lib_save_LIBS
25189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
25190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
25191 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
25192 TERM_LIB="-lncurses"
25194 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
25195 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
25196 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
25197 $as_echo_n "(cached) " >&6
25199 ac_check_lib_save_LIBS=$LIBS
25200 LIBS="-ltermcap $LIBS"
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25208 /* Override any GCC internal prototype to avoid an error.
25209 Use char because int might match the return type of a GCC
25210 builtin and then its argument prototype would still apply. */
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (ac_try="$ac_link"
25225 case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231 (eval "$ac_link") 2>conftest.er1
25233 grep -v '^ *+' conftest.er1 >conftest.err
25235 cat conftest.err >&5
25236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); } && {
25238 test -z "$ac_c_werror_flag" ||
25239 test ! -s conftest.err
25240 } && test -s conftest$ac_exeext && {
25241 test "$cross_compiling" = yes ||
25242 $as_test_x conftest$ac_exeext
25244 ac_cv_lib_termcap_tgetent=yes
25246 $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 ac_cv_lib_termcap_tgetent=no
25252 rm -rf conftest.dSYM
25253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254 conftest$ac_exeext conftest.$ac_ext
25255 LIBS=$ac_check_lib_save_LIBS
25257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
25258 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
25259 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
25260 TERM_LIB="-ltermcap"
25269 for ac_header in curses.h
25271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25273 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 $as_echo_n "checking for $ac_header... " >&6; }
25275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25276 $as_echo_n "(cached) " >&6
25278 ac_res=`eval 'as_val=${'$as_ac_Header'}
25279 $as_echo "$as_val"'`
25280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25281 $as_echo "$ac_res" >&6; }
25283 # Is the header compilable?
25284 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25285 $as_echo_n "checking $ac_header usability... " >&6; }
25286 cat >conftest.$ac_ext <<_ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25292 $ac_includes_default
25293 #include <$ac_header>
25295 rm -f conftest.$ac_objext
25296 if { (ac_try="$ac_compile"
25297 case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25302 $as_echo "$ac_try_echo") >&5
25303 (eval "$ac_compile") 2>conftest.er1
25305 grep -v '^ *+' conftest.er1 >conftest.err
25307 cat conftest.err >&5
25308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); } && {
25310 test -z "$ac_c_werror_flag" ||
25311 test ! -s conftest.err
25312 } && test -s conftest.$ac_objext; then
25313 ac_header_compiler=yes
25315 $as_echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ac_header_compiler=no
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25323 $as_echo "$ac_header_compiler" >&6; }
25325 # Is the header present?
25326 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25327 $as_echo_n "checking $ac_header presence... " >&6; }
25328 cat >conftest.$ac_ext <<_ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h. */
25334 #include <$ac_header>
25336 if { (ac_try="$ac_cpp conftest.$ac_ext"
25337 case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25342 $as_echo "$ac_try_echo") >&5
25343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } >/dev/null && {
25350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25351 test ! -s conftest.err
25353 ac_header_preproc=yes
25355 $as_echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ac_header_preproc=no
25361 rm -f conftest.err conftest.$ac_ext
25362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25363 $as_echo "$ac_header_preproc" >&6; }
25365 # So? What about this header?
25366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25369 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25372 ac_header_preproc=yes
25375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25376 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25378 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25380 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25382 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25386 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25391 $as_echo_n "checking for $ac_header... " >&6; }
25392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393 $as_echo_n "(cached) " >&6
25395 eval "$as_ac_Header=\$ac_header_preproc"
25397 ac_res=`eval 'as_val=${'$as_ac_Header'}
25398 $as_echo "$as_val"'`
25399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25400 $as_echo "$ac_res" >&6; }
25403 as_val=`eval 'as_val=${'$as_ac_Header'}
25404 $as_echo "$as_val"'`
25405 if test "x$as_val" = x""yes; then
25406 cat >>confdefs.h <<_ACEOF
25407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25414 if test "${ac_cv_header_term_h+set}" = set; then
25415 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25416 $as_echo_n "checking for term.h... " >&6; }
25417 if test "${ac_cv_header_term_h+set}" = set; then
25418 $as_echo_n "(cached) " >&6
25420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25421 $as_echo "$ac_cv_header_term_h" >&6; }
25423 # Is the header compilable?
25424 { $as_echo "$as_me:$LINENO: checking term.h usability" >&5
25425 $as_echo_n "checking term.h usability... " >&6; }
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25432 $ac_includes_default
25435 rm -f conftest.$ac_objext
25436 if { (ac_try="$ac_compile"
25437 case "(($ac_try" in
25438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25439 *) ac_try_echo=$ac_try;;
25441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25442 $as_echo "$ac_try_echo") >&5
25443 (eval "$ac_compile") 2>conftest.er1
25445 grep -v '^ *+' conftest.er1 >conftest.err
25447 cat conftest.err >&5
25448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); } && {
25450 test -z "$ac_c_werror_flag" ||
25451 test ! -s conftest.err
25452 } && test -s conftest.$ac_objext; then
25453 ac_header_compiler=yes
25455 $as_echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ac_header_compiler=no
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25463 $as_echo "$ac_header_compiler" >&6; }
25465 # Is the header present?
25466 { $as_echo "$as_me:$LINENO: checking term.h presence" >&5
25467 $as_echo_n "checking term.h presence... " >&6; }
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25476 if { (ac_try="$ac_cpp conftest.$ac_ext"
25477 case "(($ac_try" in
25478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25482 $as_echo "$ac_try_echo") >&5
25483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25485 grep -v '^ *+' conftest.er1 >conftest.err
25487 cat conftest.err >&5
25488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } >/dev/null && {
25490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25491 test ! -s conftest.err
25493 ac_header_preproc=yes
25495 $as_echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25498 ac_header_preproc=no
25501 rm -f conftest.err conftest.$ac_ext
25502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25503 $as_echo "$ac_header_preproc" >&6; }
25505 # So? What about this header?
25506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25508 { $as_echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
25509 $as_echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
25511 $as_echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
25512 ac_header_preproc=yes
25515 { $as_echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
25516 $as_echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
25517 { $as_echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
25518 $as_echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
25519 { $as_echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
25520 $as_echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
25521 { $as_echo "$as_me:$LINENO: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&5
25522 $as_echo "$as_me: WARNING: term.h: section \"Present But Cannot Be Compiled\"" >&2;}
25523 { $as_echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
25524 $as_echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
25525 { $as_echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
25526 $as_echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
25530 { $as_echo "$as_me:$LINENO: checking for term.h" >&5
25531 $as_echo_n "checking for term.h... " >&6; }
25532 if test "${ac_cv_header_term_h+set}" = set; then
25533 $as_echo_n "(cached) " >&6
25535 ac_cv_header_term_h=$ac_header_preproc
25537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25538 $as_echo "$ac_cv_header_term_h" >&6; }
25541 if test "x$ac_cv_header_term_h" = x""yes; then
25542 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25543 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
25544 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25545 $as_echo_n "(cached) " >&6
25547 ac_check_lib_save_LIBS=$LIBS
25548 LIBS="-lcurses $LIBS"
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25556 /* Override any GCC internal prototype to avoid an error.
25557 Use char because int might match the return type of a GCC
25558 builtin and then its argument prototype would still apply. */
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575 *) ac_try_echo=$ac_try;;
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579 (eval "$ac_link") 2>conftest.er1
25581 grep -v '^ *+' conftest.er1 >conftest.err
25583 cat conftest.err >&5
25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest$ac_exeext && {
25589 test "$cross_compiling" = yes ||
25590 $as_test_x conftest$ac_exeext
25592 ac_cv_lib_curses_tgetent=yes
25594 $as_echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 ac_cv_lib_curses_tgetent=no
25600 rm -rf conftest.dSYM
25601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25602 conftest$ac_exeext conftest.$ac_ext
25603 LIBS=$ac_check_lib_save_LIBS
25605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25606 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
25607 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
25608 TERM_LIB="-lcurses"
25622 if test x$support_conio = xyes; then
25623 if test x$TERM_LIB != x; then
25624 CONS_LIBS=$TERM_LIB
25628 support_readline=no
25630 cat >>confdefs.h <<\_ACEOF
25631 #define HAVE_CONIO 1
25635 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25640 # Check whether --enable-readline was given.
25641 if test "${enable_readline+set}" = set; then
25642 enableval=$enable_readline;
25643 if test x$enableval = xno; then
25644 support_readline=no
25650 if test x$TERM_LIB = x ; then
25651 support_readline=no
25656 if test x$support_readline = xyes; then
25658 # Check whether --with-readline was given.
25659 if test "${with_readline+set}" = set; then
25660 withval=$with_readline;
25661 case "$with_readline" in
25666 if test -f ${with_readline}/readline.h; then
25667 CONS_INC="-I${with_readline}"
25668 CONS_LDFLAGS="-L$with_readline"
25669 elif test -f ${with_readline}/include/readline/readline.h; then
25670 CONS_INC="-I${with_readline}/include/readline"
25671 CONS_LDFLAGS="-L${with_readline}/lib"
25672 with_readline="${with_readline}/include/readline"
25674 with_readline="/usr/include/readline"
25677 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25679 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25680 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25682 $as_echo_n "(cached) " >&6
25684 ac_res=`eval 'as_val=${'$as_ac_Header'}
25685 $as_echo "$as_val"'`
25686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25687 $as_echo "$ac_res" >&6; }
25689 # Is the header compilable?
25690 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25691 $as_echo_n "checking ${with_readline}/readline.h usability... " >&6; }
25692 cat >conftest.$ac_ext <<_ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 $ac_includes_default
25699 #include <${with_readline}/readline.h>
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709 (eval "$ac_compile") 2>conftest.er1
25711 grep -v '^ *+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } && {
25716 test -z "$ac_c_werror_flag" ||
25717 test ! -s conftest.err
25718 } && test -s conftest.$ac_objext; then
25719 ac_header_compiler=yes
25721 $as_echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25724 ac_header_compiler=no
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 $as_echo "$ac_header_compiler" >&6; }
25731 # Is the header present?
25732 { $as_echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25733 $as_echo_n "checking ${with_readline}/readline.h presence... " >&6; }
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 #include <${with_readline}/readline.h>
25742 if { (ac_try="$ac_cpp conftest.$ac_ext"
25743 case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25748 $as_echo "$ac_try_echo") >&5
25749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25751 grep -v '^ *+' conftest.er1 >conftest.err
25753 cat conftest.err >&5
25754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } >/dev/null && {
25756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25757 test ! -s conftest.err
25759 ac_header_preproc=yes
25761 $as_echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25764 ac_header_preproc=no
25767 rm -f conftest.err conftest.$ac_ext
25768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 $as_echo "$ac_header_preproc" >&6; }
25771 # So? What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25774 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25775 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25777 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
25781 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25782 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25783 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25784 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25785 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25786 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25787 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25788 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25789 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25790 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25791 { $as_echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25792 $as_echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25796 { $as_echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25797 $as_echo_n "checking for ${with_readline}/readline.h... " >&6; }
25798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25799 $as_echo_n "(cached) " >&6
25801 eval "$as_ac_Header=\$ac_header_preproc"
25803 ac_res=`eval 'as_val=${'$as_ac_Header'}
25804 $as_echo "$as_val"'`
25805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25806 $as_echo "$ac_res" >&6; }
25809 as_val=`eval 'as_val=${'$as_ac_Header'}
25810 $as_echo "$as_val"'`
25811 if test "x$as_val" = x""yes; then
25814 cat >>confdefs.h <<\_ACEOF
25815 #define HAVE_READLINE 1
25818 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25824 echo "readline.h not found. readline turned off ..."
25836 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25837 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25838 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25839 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25840 $as_echo_n "(cached) " >&6
25842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25843 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25845 # Is the header compilable?
25846 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25847 $as_echo_n "checking /usr/include/readline/readline.h usability... " >&6; }
25848 cat >conftest.$ac_ext <<_ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 $ac_includes_default
25855 #include </usr/include/readline/readline.h>
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_compile") 2>conftest.er1
25867 grep -v '^ *+' conftest.er1 >conftest.err
25869 cat conftest.err >&5
25870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } && {
25872 test -z "$ac_c_werror_flag" ||
25873 test ! -s conftest.err
25874 } && test -s conftest.$ac_objext; then
25875 ac_header_compiler=yes
25877 $as_echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 ac_header_compiler=no
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25885 $as_echo "$ac_header_compiler" >&6; }
25887 # Is the header present?
25888 { $as_echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25889 $as_echo_n "checking /usr/include/readline/readline.h presence... " >&6; }
25890 cat >conftest.$ac_ext <<_ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 #include </usr/include/readline/readline.h>
25898 if { (ac_try="$ac_cpp conftest.$ac_ext"
25899 case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25904 $as_echo "$ac_try_echo") >&5
25905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25907 grep -v '^ *+' conftest.er1 >conftest.err
25909 cat conftest.err >&5
25910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } >/dev/null && {
25912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25913 test ! -s conftest.err
25915 ac_header_preproc=yes
25917 $as_echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25920 ac_header_preproc=no
25923 rm -f conftest.err conftest.$ac_ext
25924 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25925 $as_echo "$ac_header_preproc" >&6; }
25927 # So? What about this header?
25928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25930 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25931 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25932 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25933 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25934 ac_header_preproc=yes
25937 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25938 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25939 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25940 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25941 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25942 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25943 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25944 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25945 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25946 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25947 { $as_echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25948 $as_echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25952 { $as_echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25953 $as_echo_n "checking for /usr/include/readline/readline.h... " >&6; }
25954 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25955 $as_echo_n "(cached) " >&6
25957 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25960 $as_echo "$ac_cv_header__usr_include_readline_readline_h" >&6; }
25963 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then
25966 cat >>confdefs.h <<\_ACEOF
25967 #define HAVE_READLINE 1
25971 CONS_INC="-I/usr/include/readline"
25972 CONS_LIBS="-lreadline $TERM_LIB"
25976 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25978 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25979 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
25980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25981 $as_echo_n "(cached) " >&6
25983 ac_res=`eval 'as_val=${'$as_ac_Header'}
25984 $as_echo "$as_val"'`
25985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25986 $as_echo "$ac_res" >&6; }
25988 # Is the header compilable?
25989 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25990 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h usability... " >&6; }
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 $ac_includes_default
25998 #include <${TOP_DIR}/depkgs/readline/readline.h>
26000 rm -f conftest.$ac_objext
26001 if { (ac_try="$ac_compile"
26002 case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26007 $as_echo "$ac_try_echo") >&5
26008 (eval "$ac_compile") 2>conftest.er1
26010 grep -v '^ *+' conftest.er1 >conftest.err
26012 cat conftest.err >&5
26013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } && {
26015 test -z "$ac_c_werror_flag" ||
26016 test ! -s conftest.err
26017 } && test -s conftest.$ac_objext; then
26018 ac_header_compiler=yes
26020 $as_echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 ac_header_compiler=no
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26028 $as_echo "$ac_header_compiler" >&6; }
26030 # Is the header present?
26031 { $as_echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
26032 $as_echo_n "checking ${TOP_DIR}/depkgs/readline/readline.h presence... " >&6; }
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 #include <${TOP_DIR}/depkgs/readline/readline.h>
26041 if { (ac_try="$ac_cpp conftest.$ac_ext"
26042 case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26047 $as_echo "$ac_try_echo") >&5
26048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26050 grep -v '^ *+' conftest.er1 >conftest.err
26052 cat conftest.err >&5
26053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } >/dev/null && {
26055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26058 ac_header_preproc=yes
26060 $as_echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 ac_header_preproc=no
26066 rm -f conftest.err conftest.$ac_ext
26067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26068 $as_echo "$ac_header_preproc" >&6; }
26070 # So? What about this header?
26071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26073 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
26074 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26075 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
26076 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
26077 ac_header_preproc=yes
26080 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
26081 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
26082 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
26083 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
26084 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
26085 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
26086 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
26087 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
26088 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
26089 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
26090 { $as_echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
26091 $as_echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
26095 { $as_echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
26096 $as_echo_n "checking for ${TOP_DIR}/depkgs/readline/readline.h... " >&6; }
26097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26098 $as_echo_n "(cached) " >&6
26100 eval "$as_ac_Header=\$ac_header_preproc"
26102 ac_res=`eval 'as_val=${'$as_ac_Header'}
26103 $as_echo "$as_val"'`
26104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26105 $as_echo "$ac_res" >&6; }
26108 as_val=`eval 'as_val=${'$as_ac_Header'}
26109 $as_echo "$as_val"'`
26110 if test "x$as_val" = x""yes; then
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_READLINE 1
26118 CONS_INC="-I${TOP_DIR}/depkgs/readline"
26119 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
26120 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
26121 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
26126 echo "readline.h not found. readline turned off ..."
26153 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26154 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26155 if test "${ac_cv_header_stat_broken+set}" = set; then
26156 $as_echo_n "(cached) " >&6
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 #include <sys/types.h>
26165 #include <sys/stat.h>
26167 #if defined S_ISBLK && defined S_IFDIR
26168 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26171 #if defined S_ISBLK && defined S_IFCHR
26172 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26175 #if defined S_ISLNK && defined S_IFREG
26176 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26179 #if defined S_ISSOCK && defined S_IFREG
26180 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26191 $as_echo "$ac_try_echo") >&5
26192 (eval "$ac_compile") 2>conftest.er1
26194 grep -v '^ *+' conftest.er1 >conftest.err
26196 cat conftest.err >&5
26197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } && {
26199 test -z "$ac_c_werror_flag" ||
26200 test ! -s conftest.err
26201 } && test -s conftest.$ac_objext; then
26202 ac_cv_header_stat_broken=no
26204 $as_echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26207 ac_cv_header_stat_broken=yes
26210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26213 $as_echo "$ac_cv_header_stat_broken" >&6; }
26214 if test $ac_cv_header_stat_broken = yes; then
26216 cat >>confdefs.h <<\_ACEOF
26217 #define STAT_MACROS_BROKEN 1
26227 ac_header_dirent=no
26228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26229 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26230 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26231 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26233 $as_echo_n "(cached) " >&6
26235 cat >conftest.$ac_ext <<_ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 #include <sys/types.h>
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257 *) ac_try_echo=$ac_try;;
26259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26260 $as_echo "$ac_try_echo") >&5
26261 (eval "$ac_compile") 2>conftest.er1
26263 grep -v '^ *+' conftest.er1 >conftest.err
26265 cat conftest.err >&5
26266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } && {
26268 test -z "$ac_c_werror_flag" ||
26269 test ! -s conftest.err
26270 } && test -s conftest.$ac_objext; then
26271 eval "$as_ac_Header=yes"
26273 $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 eval "$as_ac_Header=no"
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281 ac_res=`eval 'as_val=${'$as_ac_Header'}
26282 $as_echo "$as_val"'`
26283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26284 $as_echo "$ac_res" >&6; }
26285 as_val=`eval 'as_val=${'$as_ac_Header'}
26286 $as_echo "$as_val"'`
26287 if test "x$as_val" = x""yes; then
26288 cat >>confdefs.h <<_ACEOF
26289 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26292 ac_header_dirent=$ac_hdr; break
26296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26297 if test $ac_header_dirent = dirent.h; then
26298 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26299 $as_echo_n "checking for library containing opendir... " >&6; }
26300 if test "${ac_cv_search_opendir+set}" = set; then
26301 $as_echo_n "(cached) " >&6
26303 ac_func_search_save_LIBS=$LIBS
26304 cat >conftest.$ac_ext <<_ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h. */
26311 /* Override any GCC internal prototype to avoid an error.
26312 Use char because int might match the return type of a GCC
26313 builtin and then its argument prototype would still apply. */
26326 for ac_lib in '' dir; do
26327 if test -z "$ac_lib"; then
26328 ac_res="none required"
26331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26340 $as_echo "$ac_try_echo") >&5
26341 (eval "$ac_link") 2>conftest.er1
26343 grep -v '^ *+' conftest.er1 >conftest.err
26345 cat conftest.err >&5
26346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); } && {
26348 test -z "$ac_c_werror_flag" ||
26349 test ! -s conftest.err
26350 } && test -s conftest$ac_exeext && {
26351 test "$cross_compiling" = yes ||
26352 $as_test_x conftest$ac_exeext
26354 ac_cv_search_opendir=$ac_res
26356 $as_echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26362 rm -rf conftest.dSYM
26363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26365 if test "${ac_cv_search_opendir+set}" = set; then
26369 if test "${ac_cv_search_opendir+set}" = set; then
26372 ac_cv_search_opendir=no
26374 rm conftest.$ac_ext
26375 LIBS=$ac_func_search_save_LIBS
26377 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26378 $as_echo "$ac_cv_search_opendir" >&6; }
26379 ac_res=$ac_cv_search_opendir
26380 if test "$ac_res" != no; then
26381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26386 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26387 $as_echo_n "checking for library containing opendir... " >&6; }
26388 if test "${ac_cv_search_opendir+set}" = set; then
26389 $as_echo_n "(cached) " >&6
26391 ac_func_search_save_LIBS=$LIBS
26392 cat >conftest.$ac_ext <<_ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26414 for ac_lib in '' x; do
26415 if test -z "$ac_lib"; then
26416 ac_res="none required"
26419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26428 $as_echo "$ac_try_echo") >&5
26429 (eval "$ac_link") 2>conftest.er1
26431 grep -v '^ *+' conftest.er1 >conftest.err
26433 cat conftest.err >&5
26434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest$ac_exeext && {
26439 test "$cross_compiling" = yes ||
26440 $as_test_x conftest$ac_exeext
26442 ac_cv_search_opendir=$ac_res
26444 $as_echo "$as_me: failed program was:" >&5
26445 sed 's/^/| /' conftest.$ac_ext >&5
26450 rm -rf conftest.dSYM
26451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26453 if test "${ac_cv_search_opendir+set}" = set; then
26457 if test "${ac_cv_search_opendir+set}" = set; then
26460 ac_cv_search_opendir=no
26462 rm conftest.$ac_ext
26463 LIBS=$ac_func_search_save_LIBS
26465 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26466 $as_echo "$ac_cv_search_opendir" >&6; }
26467 ac_res=$ac_cv_search_opendir
26468 if test "$ac_res" != no; then
26469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26482 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
26484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26485 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26486 $as_echo_n "checking for $ac_func... " >&6; }
26487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26488 $as_echo_n "(cached) " >&6
26490 cat >conftest.$ac_ext <<_ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h. */
26496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26498 #define $ac_func innocuous_$ac_func
26500 /* System header to define __stub macros and hopefully few prototypes,
26501 which can conflict with char $ac_func (); below.
26502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26503 <limits.h> exists even on freestanding compilers. */
26506 # include <limits.h>
26508 # include <assert.h>
26513 /* Override any GCC internal prototype to avoid an error.
26514 Use char because int might match the return type of a GCC
26515 builtin and then its argument prototype would still apply. */
26520 /* The GNU C library defines this for functions which it implements
26521 to always fail with ENOSYS. Some functions are actually named
26522 something starting with __ and the normal name is an alias. */
26523 #if defined __stub_$ac_func || defined __stub___$ac_func
26530 return $ac_func ();
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (ac_try="$ac_link"
26537 case "(($ac_try" in
26538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26539 *) ac_try_echo=$ac_try;;
26541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26542 $as_echo "$ac_try_echo") >&5
26543 (eval "$ac_link") 2>conftest.er1
26545 grep -v '^ *+' conftest.er1 >conftest.err
26547 cat conftest.err >&5
26548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } && {
26550 test -z "$ac_c_werror_flag" ||
26551 test ! -s conftest.err
26552 } && test -s conftest$ac_exeext && {
26553 test "$cross_compiling" = yes ||
26554 $as_test_x conftest$ac_exeext
26556 eval "$as_ac_var=yes"
26558 $as_echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 eval "$as_ac_var=no"
26564 rm -rf conftest.dSYM
26565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26566 conftest$ac_exeext conftest.$ac_ext
26568 ac_res=`eval 'as_val=${'$as_ac_var'}
26569 $as_echo "$as_val"'`
26570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26571 $as_echo "$ac_res" >&6; }
26572 as_val=`eval 'as_val=${'$as_ac_var'}
26573 $as_echo "$as_val"'`
26574 if test "x$as_val" = x""yes; then
26575 cat >>confdefs.h <<_ACEOF
26576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26584 for ac_func in nanosleep nl_langinfo
26586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26588 $as_echo_n "checking for $ac_func... " >&6; }
26589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26590 $as_echo_n "(cached) " >&6
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26600 #define $ac_func innocuous_$ac_func
26602 /* System header to define __stub macros and hopefully few prototypes,
26603 which can conflict with char $ac_func (); below.
26604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26605 <limits.h> exists even on freestanding compilers. */
26608 # include <limits.h>
26610 # include <assert.h>
26615 /* Override any GCC internal prototype to avoid an error.
26616 Use char because int might match the return type of a GCC
26617 builtin and then its argument prototype would still apply. */
26622 /* The GNU C library defines this for functions which it implements
26623 to always fail with ENOSYS. Some functions are actually named
26624 something starting with __ and the normal name is an alias. */
26625 #if defined __stub_$ac_func || defined __stub___$ac_func
26632 return $ac_func ();
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (ac_try="$ac_link"
26639 case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26644 $as_echo "$ac_try_echo") >&5
26645 (eval "$ac_link") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && {
26652 test -z "$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 } && test -s conftest$ac_exeext && {
26655 test "$cross_compiling" = yes ||
26656 $as_test_x conftest$ac_exeext
26658 eval "$as_ac_var=yes"
26660 $as_echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 eval "$as_ac_var=no"
26666 rm -rf conftest.dSYM
26667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26668 conftest$ac_exeext conftest.$ac_ext
26670 ac_res=`eval 'as_val=${'$as_ac_var'}
26671 $as_echo "$as_val"'`
26672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26673 $as_echo "$ac_res" >&6; }
26674 as_val=`eval 'as_val=${'$as_ac_var'}
26675 $as_echo "$as_val"'`
26676 if test "x$as_val" = x""yes; then
26677 cat >>confdefs.h <<_ACEOF
26678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26685 for ac_header in varargs.h
26687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26690 $as_echo_n "checking for $ac_header... " >&6; }
26691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26692 $as_echo_n "(cached) " >&6
26694 ac_res=`eval 'as_val=${'$as_ac_Header'}
26695 $as_echo "$as_val"'`
26696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26697 $as_echo "$ac_res" >&6; }
26699 # Is the header compilable?
26700 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26701 $as_echo_n "checking $ac_header usability... " >&6; }
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26708 $ac_includes_default
26709 #include <$ac_header>
26711 rm -f conftest.$ac_objext
26712 if { (ac_try="$ac_compile"
26713 case "(($ac_try" in
26714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715 *) ac_try_echo=$ac_try;;
26717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26718 $as_echo "$ac_try_echo") >&5
26719 (eval "$ac_compile") 2>conftest.er1
26721 grep -v '^ *+' conftest.er1 >conftest.err
26723 cat conftest.err >&5
26724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } && {
26726 test -z "$ac_c_werror_flag" ||
26727 test ! -s conftest.err
26728 } && test -s conftest.$ac_objext; then
26729 ac_header_compiler=yes
26731 $as_echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26734 ac_header_compiler=no
26737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26739 $as_echo "$ac_header_compiler" >&6; }
26741 # Is the header present?
26742 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26743 $as_echo_n "checking $ac_header presence... " >&6; }
26744 cat >conftest.$ac_ext <<_ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26750 #include <$ac_header>
26752 if { (ac_try="$ac_cpp conftest.$ac_ext"
26753 case "(($ac_try" in
26754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755 *) ac_try_echo=$ac_try;;
26757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26758 $as_echo "$ac_try_echo") >&5
26759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26761 grep -v '^ *+' conftest.er1 >conftest.err
26763 cat conftest.err >&5
26764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } >/dev/null && {
26766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26767 test ! -s conftest.err
26769 ac_header_preproc=yes
26771 $as_echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ac_header_preproc=no
26777 rm -f conftest.err conftest.$ac_ext
26778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26779 $as_echo "$ac_header_preproc" >&6; }
26781 # So? What about this header?
26782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26785 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26788 ac_header_preproc=yes
26791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26792 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26794 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26796 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26798 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26802 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26807 $as_echo_n "checking for $ac_header... " >&6; }
26808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26809 $as_echo_n "(cached) " >&6
26811 eval "$as_ac_Header=\$ac_header_preproc"
26813 ac_res=`eval 'as_val=${'$as_ac_Header'}
26814 $as_echo "$as_val"'`
26815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26816 $as_echo "$ac_res" >&6; }
26819 as_val=`eval 'as_val=${'$as_ac_Header'}
26820 $as_echo "$as_val"'`
26821 if test "x$as_val" = x""yes; then
26822 cat >>confdefs.h <<_ACEOF
26823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26832 { $as_echo "$as_me:$LINENO: checking for Python support" >&5
26833 $as_echo_n "checking for Python support... " >&6; }
26835 # Check whether --with-python was given.
26836 if test "${with_python+set}" = set; then
26837 withval=$with_python;
26840 if test "$withval" != "no"; then
26841 if test "$withval" = "yes"; then
26842 if test -e /usr/bin/python-config ; then
26843 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26844 PYTHON_LIBS=`/usr/bin/python-config --libs`
26846 for python_root in /usr /usr/local /usr/sfw; do
26847 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26848 if test -f $python_root/include/${ver}/Python.h; then
26849 PYTHON_INCDIR=-I$python_root/include/${ver}
26850 if test -d $python_root/lib64/${ver}/config; then
26851 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26853 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26860 if test x$PYTHON_INCDIR = x; then
26861 if test -f $prefix/include/Python.h; then
26862 PYTHON_INCDIR=-I$prefix/include
26863 if test -d $prefix/lib64/config; then
26864 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26866 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26869 { $as_echo "$as_me:$LINENO: result: no" >&5
26870 $as_echo "no" >&6; }
26871 { { $as_echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26872 $as_echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26873 { (exit 1); exit 1; }; }
26878 if test -e $withval/bin/python-config ; then
26879 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26880 PYTHON_LIBS=`$withval/bin/python-config --libs`
26881 elif test -f $withval/Python.h; then
26882 PYTHON_INCDIR=-I$withval
26883 PYTHON_LIBS="-L$withval/config -lpython"
26884 elif test -f $withval/include/Python.h; then
26885 PYTHON_INCDIR=-I$withval/include
26886 if test -d $withval/lib64/config; then
26887 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26889 PYTHON_LIBS="-L$withval/lib/config -lpython"
26891 elif test -f $withval/include/python/Python.h; then
26892 PYTHON_INCDIR=-I$withval/include/python
26893 if test -d $withval/lib64/python/config; then
26894 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26896 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26899 { $as_echo "$as_me:$LINENO: result: no" >&5
26900 $as_echo "no" >&6; }
26901 { { $as_echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26902 $as_echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26903 { (exit 1); exit 1; }; }
26907 cat >>confdefs.h <<\_ACEOF
26908 #define HAVE_PYTHON 1
26911 { $as_echo "$as_me:$LINENO: result: yes" >&5
26912 $as_echo "yes" >&6; }
26914 { $as_echo "$as_me:$LINENO: checking for more Python libs" >&5
26915 $as_echo "$as_me: checking for more Python libs" >&6;}
26916 saved_LIBS="$LIBS"; LIBS=
26917 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26918 $as_echo_n "checking for library containing shm_open... " >&6; }
26919 if test "${ac_cv_search_shm_open+set}" = set; then
26920 $as_echo_n "(cached) " >&6
26922 ac_func_search_save_LIBS=$LIBS
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26930 /* Override any GCC internal prototype to avoid an error.
26931 Use char because int might match the return type of a GCC
26932 builtin and then its argument prototype would still apply. */
26940 return shm_open ();
26945 for ac_lib in '' rt; do
26946 if test -z "$ac_lib"; then
26947 ac_res="none required"
26950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26952 rm -f conftest.$ac_objext conftest$ac_exeext
26953 if { (ac_try="$ac_link"
26954 case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26959 $as_echo "$ac_try_echo") >&5
26960 (eval "$ac_link") 2>conftest.er1
26962 grep -v '^ *+' conftest.er1 >conftest.err
26964 cat conftest.err >&5
26965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest$ac_exeext && {
26970 test "$cross_compiling" = yes ||
26971 $as_test_x conftest$ac_exeext
26973 ac_cv_search_shm_open=$ac_res
26975 $as_echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26981 rm -rf conftest.dSYM
26982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26984 if test "${ac_cv_search_shm_open+set}" = set; then
26988 if test "${ac_cv_search_shm_open+set}" = set; then
26991 ac_cv_search_shm_open=no
26993 rm conftest.$ac_ext
26994 LIBS=$ac_func_search_save_LIBS
26996 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26997 $as_echo "$ac_cv_search_shm_open" >&6; }
26998 ac_res=$ac_cv_search_shm_open
26999 if test "$ac_res" != no; then
27000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27005 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27006 $as_echo_n "checking for openpty in -lutil... " >&6; }
27007 if test "${ac_cv_lib_util_openpty+set}" = set; then
27008 $as_echo_n "(cached) " >&6
27010 ac_check_lib_save_LIBS=$LIBS
27011 LIBS="-lutil $LIBS"
27012 cat >conftest.$ac_ext <<_ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h. */
27019 /* Override any GCC internal prototype to avoid an error.
27020 Use char because int might match the return type of a GCC
27021 builtin and then its argument prototype would still apply. */
27034 rm -f conftest.$ac_objext conftest$ac_exeext
27035 if { (ac_try="$ac_link"
27036 case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27041 $as_echo "$ac_try_echo") >&5
27042 (eval "$ac_link") 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } && {
27049 test -z "$ac_c_werror_flag" ||
27050 test ! -s conftest.err
27051 } && test -s conftest$ac_exeext && {
27052 test "$cross_compiling" = yes ||
27053 $as_test_x conftest$ac_exeext
27055 ac_cv_lib_util_openpty=yes
27057 $as_echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27060 ac_cv_lib_util_openpty=no
27063 rm -rf conftest.dSYM
27064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27065 conftest$ac_exeext conftest.$ac_ext
27066 LIBS=$ac_check_lib_save_LIBS
27068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27069 $as_echo "$ac_cv_lib_util_openpty" >&6; }
27070 if test "x$ac_cv_lib_util_openpty" = x""yes; then
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_LIBUTIL 1
27075 LIBS="-lutil $LIBS"
27079 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
27082 { $as_echo "$as_me:$LINENO: result: no" >&5
27083 $as_echo "no" >&6; }
27088 { $as_echo "$as_me:$LINENO: result: no" >&5
27089 $as_echo "no" >&6; }
27097 { $as_echo "$as_me:$LINENO: checking for socket" >&5
27098 $as_echo_n "checking for socket... " >&6; }
27099 if test "${ac_cv_func_socket+set}" = set; then
27100 $as_echo_n "(cached) " >&6
27102 cat >conftest.$ac_ext <<_ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27108 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
27109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27110 #define socket innocuous_socket
27112 /* System header to define __stub macros and hopefully few prototypes,
27113 which can conflict with char socket (); below.
27114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27115 <limits.h> exists even on freestanding compilers. */
27118 # include <limits.h>
27120 # include <assert.h>
27125 /* Override any GCC internal prototype to avoid an error.
27126 Use char because int might match the return type of a GCC
27127 builtin and then its argument prototype would still apply. */
27132 /* The GNU C library defines this for functions which it implements
27133 to always fail with ENOSYS. Some functions are actually named
27134 something starting with __ and the normal name is an alias. */
27135 #if defined __stub_socket || defined __stub___socket
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27154 $as_echo "$ac_try_echo") >&5
27155 (eval "$ac_link") 2>conftest.er1
27157 grep -v '^ *+' conftest.er1 >conftest.err
27159 cat conftest.err >&5
27160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); } && {
27162 test -z "$ac_c_werror_flag" ||
27163 test ! -s conftest.err
27164 } && test -s conftest$ac_exeext && {
27165 test "$cross_compiling" = yes ||
27166 $as_test_x conftest$ac_exeext
27168 ac_cv_func_socket=yes
27170 $as_echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27173 ac_cv_func_socket=no
27176 rm -rf conftest.dSYM
27177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27178 conftest$ac_exeext conftest.$ac_ext
27180 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
27181 $as_echo "$ac_cv_func_socket" >&6; }
27182 if test "x$ac_cv_func_socket" = x""yes; then
27183 { $as_echo "$as_me:$LINENO: result: using libc's socket" >&5
27184 $as_echo "using libc's socket" >&6; }
27187 { $as_echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
27188 $as_echo_n "checking for socket in -lxnet... " >&6; }
27189 if test "${ac_cv_lib_xnet_socket+set}" = set; then
27190 $as_echo_n "(cached) " >&6
27192 ac_check_lib_save_LIBS=$LIBS
27193 LIBS="-lxnet $LIBS"
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27201 /* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27216 rm -f conftest.$ac_objext conftest$ac_exeext
27217 if { (ac_try="$ac_link"
27218 case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27223 $as_echo "$ac_try_echo") >&5
27224 (eval "$ac_link") 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } && {
27231 test -z "$ac_c_werror_flag" ||
27232 test ! -s conftest.err
27233 } && test -s conftest$ac_exeext && {
27234 test "$cross_compiling" = yes ||
27235 $as_test_x conftest$ac_exeext
27237 ac_cv_lib_xnet_socket=yes
27239 $as_echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27242 ac_cv_lib_xnet_socket=no
27245 rm -rf conftest.dSYM
27246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27247 conftest$ac_exeext conftest.$ac_ext
27248 LIBS=$ac_check_lib_save_LIBS
27250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
27251 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
27252 if test "x$ac_cv_lib_xnet_socket" = x""yes; then
27253 cat >>confdefs.h <<_ACEOF
27254 #define HAVE_LIBXNET 1
27257 LIBS="-lxnet $LIBS"
27262 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
27263 $as_echo_n "checking for socket in -lsocket... " >&6; }
27264 if test "${ac_cv_lib_socket_socket+set}" = set; then
27265 $as_echo_n "(cached) " >&6
27267 ac_check_lib_save_LIBS=$LIBS
27268 LIBS="-lsocket $LIBS"
27269 cat >conftest.$ac_ext <<_ACEOF
27272 cat confdefs.h >>conftest.$ac_ext
27273 cat >>conftest.$ac_ext <<_ACEOF
27274 /* end confdefs.h. */
27276 /* Override any GCC internal prototype to avoid an error.
27277 Use char because int might match the return type of a GCC
27278 builtin and then its argument prototype would still apply. */
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (ac_try="$ac_link"
27293 case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27298 $as_echo "$ac_try_echo") >&5
27299 (eval "$ac_link") 2>conftest.er1
27301 grep -v '^ *+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } && {
27306 test -z "$ac_c_werror_flag" ||
27307 test ! -s conftest.err
27308 } && test -s conftest$ac_exeext && {
27309 test "$cross_compiling" = yes ||
27310 $as_test_x conftest$ac_exeext
27312 ac_cv_lib_socket_socket=yes
27314 $as_echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 ac_cv_lib_socket_socket=no
27320 rm -rf conftest.dSYM
27321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27322 conftest$ac_exeext conftest.$ac_ext
27323 LIBS=$ac_check_lib_save_LIBS
27325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
27326 $as_echo "$ac_cv_lib_socket_socket" >&6; }
27327 if test "x$ac_cv_lib_socket_socket" = x""yes; then
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_LIBSOCKET 1
27332 LIBS="-lsocket $LIBS"
27337 { $as_echo "$as_me:$LINENO: checking for socket in -linet" >&5
27338 $as_echo_n "checking for socket in -linet... " >&6; }
27339 if test "${ac_cv_lib_inet_socket+set}" = set; then
27340 $as_echo_n "(cached) " >&6
27342 ac_check_lib_save_LIBS=$LIBS
27343 LIBS="-linet $LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27351 /* Override any GCC internal prototype to avoid an error.
27352 Use char because int might match the return type of a GCC
27353 builtin and then its argument prototype would still apply. */
27366 rm -f conftest.$ac_objext conftest$ac_exeext
27367 if { (ac_try="$ac_link"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373 $as_echo "$ac_try_echo") >&5
27374 (eval "$ac_link") 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } && {
27381 test -z "$ac_c_werror_flag" ||
27382 test ! -s conftest.err
27383 } && test -s conftest$ac_exeext && {
27384 test "$cross_compiling" = yes ||
27385 $as_test_x conftest$ac_exeext
27387 ac_cv_lib_inet_socket=yes
27389 $as_echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27392 ac_cv_lib_inet_socket=no
27395 rm -rf conftest.dSYM
27396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27397 conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27400 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
27401 $as_echo "$ac_cv_lib_inet_socket" >&6; }
27402 if test "x$ac_cv_lib_inet_socket" = x""yes; then
27403 cat >>confdefs.h <<_ACEOF
27404 #define HAVE_LIBINET 1
27407 LIBS="-linet $LIBS"
27417 # Check whether --with-tcp-wrappers was given.
27418 if test "${with_tcp_wrappers+set}" = set; then
27419 withval=$with_tcp_wrappers;
27420 if test "x$withval" != "xno" ; then
27422 LIBS="$saved_LIBS -lwrap"
27423 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
27424 $as_echo_n "checking for library containing nanosleep... " >&6; }
27425 if test "${ac_cv_search_nanosleep+set}" = set; then
27426 $as_echo_n "(cached) " >&6
27428 ac_func_search_save_LIBS=$LIBS
27429 cat >conftest.$ac_ext <<_ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27436 /* Override any GCC internal prototype to avoid an error.
27437 Use char because int might match the return type of a GCC
27438 builtin and then its argument prototype would still apply. */
27446 return nanosleep ();
27451 for ac_lib in '' rt; do
27452 if test -z "$ac_lib"; then
27453 ac_res="none required"
27456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27458 rm -f conftest.$ac_objext conftest$ac_exeext
27459 if { (ac_try="$ac_link"
27460 case "(($ac_try" in
27461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462 *) ac_try_echo=$ac_try;;
27464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27465 $as_echo "$ac_try_echo") >&5
27466 (eval "$ac_link") 2>conftest.er1
27468 grep -v '^ *+' conftest.er1 >conftest.err
27470 cat conftest.err >&5
27471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } && {
27473 test -z "$ac_c_werror_flag" ||
27474 test ! -s conftest.err
27475 } && test -s conftest$ac_exeext && {
27476 test "$cross_compiling" = yes ||
27477 $as_test_x conftest$ac_exeext
27479 ac_cv_search_nanosleep=$ac_res
27481 $as_echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27487 rm -rf conftest.dSYM
27488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27490 if test "${ac_cv_search_nanosleep+set}" = set; then
27494 if test "${ac_cv_search_nanosleep+set}" = set; then
27497 ac_cv_search_nanosleep=no
27499 rm conftest.$ac_ext
27500 LIBS=$ac_func_search_save_LIBS
27502 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
27503 $as_echo "$ac_cv_search_nanosleep" >&6; }
27504 ac_res=$ac_cv_search_nanosleep
27505 if test "$ac_res" != no; then
27506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27510 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
27511 $as_echo_n "checking for libwrap... " >&6; }
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27519 #include <sys/types.h>
27521 int deny_severity = 0;
27522 int allow_severity = 0;
27523 struct request_info *req;
27535 rm -f conftest.$ac_objext conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27542 $as_echo "$ac_try_echo") >&5
27543 (eval "$ac_link") 2>conftest.er1
27545 grep -v '^ *+' conftest.er1 >conftest.err
27547 cat conftest.err >&5
27548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } && {
27550 test -z "$ac_c_werror_flag" ||
27551 test ! -s conftest.err
27552 } && test -s conftest$ac_exeext && {
27553 test "$cross_compiling" = yes ||
27554 $as_test_x conftest$ac_exeext
27557 { $as_echo "$as_me:$LINENO: result: yes" >&5
27558 $as_echo "yes" >&6; }
27560 cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_LIBWRAP 1
27569 $as_echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27573 LIBS="$saved_LIBS -lwrap -lnsl"
27574 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
27575 cat >conftest.$ac_ext <<_ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h. */
27582 #include <sys/types.h>
27584 int deny_severity = 0;
27585 int allow_severity = 0;
27586 struct request_info *req;
27598 rm -f conftest.$ac_objext conftest$ac_exeext
27599 if { (ac_try="$ac_link"
27600 case "(($ac_try" in
27601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602 *) ac_try_echo=$ac_try;;
27604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27605 $as_echo "$ac_try_echo") >&5
27606 (eval "$ac_link") 2>conftest.er1
27608 grep -v '^ *+' conftest.er1 >conftest.err
27610 cat conftest.err >&5
27611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } && {
27613 test -z "$ac_c_werror_flag" ||
27614 test ! -s conftest.err
27615 } && test -s conftest$ac_exeext && {
27616 test "$cross_compiling" = yes ||
27617 $as_test_x conftest$ac_exeext
27620 { $as_echo "$as_me:$LINENO: result: yes" >&5
27621 $as_echo "yes" >&6; }
27623 cat >>confdefs.h <<\_ACEOF
27624 #define HAVE_LIBWRAP 1
27632 $as_echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27636 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27637 $as_echo "$as_me: error: *** libwrap missing" >&2;}
27638 { (exit 1); exit 1; }; }
27643 rm -rf conftest.dSYM
27644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27645 conftest$ac_exeext conftest.$ac_ext
27650 rm -rf conftest.dSYM
27651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27652 conftest$ac_exeext conftest.$ac_ext
27659 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
27660 $as_echo_n "checking for OpenSSL... " >&6; }
27662 # Check whether --with-openssl was given.
27663 if test "${with_openssl+set}" = set; then
27664 withval=$with_openssl;
27665 with_openssl_directory=${withval}
27671 if test "x$with_openssl_directory" != "xno"; then
27672 OPENSSL_LIBS="-lssl -lcrypto"
27675 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27677 # Make sure the $with_openssl_directory also makes sense
27679 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27680 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27681 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27685 saved_LIBS="${LIBS}"
27686 saved_CFLAGS="${CFLAGS}"
27687 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27688 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27697 #include <openssl/ssl.h>
27703 CRYPTO_set_id_callback(NULL);
27709 rm -f conftest.$ac_objext conftest$ac_exeext
27710 if { (ac_try="$ac_link"
27711 case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27716 $as_echo "$ac_try_echo") >&5
27717 (eval "$ac_link") 2>conftest.er1
27719 grep -v '^ *+' conftest.er1 >conftest.err
27721 cat conftest.err >&5
27722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && {
27724 test -z "$ac_c_werror_flag" ||
27725 test ! -s conftest.err
27726 } && test -s conftest$ac_exeext && {
27727 test "$cross_compiling" = yes ||
27728 $as_test_x conftest$ac_exeext
27732 support_crypto="yes"
27735 $as_echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27740 support_crypto="no"
27745 rm -rf conftest.dSYM
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747 conftest$ac_exeext conftest.$ac_ext
27749 cat >conftest.$ac_ext <<_ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h. */
27756 #include <openssl/evp.h>
27768 rm -f conftest.$ac_objext conftest$ac_exeext
27769 if { (ac_try="$ac_link"
27770 case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27775 $as_echo "$ac_try_echo") >&5
27776 (eval "$ac_link") 2>conftest.er1
27778 grep -v '^ *+' conftest.er1 >conftest.err
27780 cat conftest.err >&5
27781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } && {
27783 test -z "$ac_c_werror_flag" ||
27784 test ! -s conftest.err
27785 } && test -s conftest$ac_exeext && {
27786 test "$cross_compiling" = yes ||
27787 $as_test_x conftest$ac_exeext
27790 ac_cv_openssl_sha2="yes"
27793 $as_echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_cv_openssl_sha2="no"
27802 rm -rf conftest.dSYM
27803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27804 conftest$ac_exeext conftest.$ac_ext
27806 cat >conftest.$ac_ext <<_ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h. */
27813 #include <openssl/evp.h>
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (ac_try="$ac_link"
27827 case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27832 $as_echo "$ac_try_echo") >&5
27833 (eval "$ac_link") 2>conftest.er1
27835 grep -v '^ *+' conftest.er1 >conftest.err
27837 cat conftest.err >&5
27838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } && {
27840 test -z "$ac_c_werror_flag" ||
27841 test ! -s conftest.err
27842 } && test -s conftest$ac_exeext && {
27843 test "$cross_compiling" = yes ||
27844 $as_test_x conftest$ac_exeext
27847 ac_cv_openssl_export="no"
27850 $as_echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27854 ac_cv_openssl_export="yes"
27859 rm -rf conftest.dSYM
27860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27861 conftest$ac_exeext conftest.$ac_ext
27863 if test "$support_tls" = "yes"; then
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_OPENSSL 1
27870 cat >>confdefs.h <<\_ACEOF
27875 cat >>confdefs.h <<\_ACEOF
27876 #define HAVE_CRYPTO 1
27881 if test "$ac_cv_openssl_sha2" = "yes"; then
27883 cat >>confdefs.h <<\_ACEOF
27884 #define HAVE_SHA2 1
27889 if test "$ac_cv_openssl_export" = "yes"; then
27891 cat >>confdefs.h <<\_ACEOF
27892 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27897 if test "$support_crypto" = "yes"; then
27898 { $as_echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27899 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
27900 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27901 $as_echo_n "(cached) " >&6
27903 ac_check_lib_save_LIBS=$LIBS
27905 cat >conftest.$ac_ext <<_ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27912 /* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27918 char EVP_PKEY_encrypt_old ();
27922 return EVP_PKEY_encrypt_old ();
27927 rm -f conftest.$ac_objext conftest$ac_exeext
27928 if { (ac_try="$ac_link"
27929 case "(($ac_try" in
27930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931 *) ac_try_echo=$ac_try;;
27933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27934 $as_echo "$ac_try_echo") >&5
27935 (eval "$ac_link") 2>conftest.er1
27937 grep -v '^ *+' conftest.er1 >conftest.err
27939 cat conftest.err >&5
27940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } && {
27942 test -z "$ac_c_werror_flag" ||
27943 test ! -s conftest.err
27944 } && test -s conftest$ac_exeext && {
27945 test "$cross_compiling" = yes ||
27946 $as_test_x conftest$ac_exeext
27948 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27950 $as_echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27953 ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27956 rm -rf conftest.dSYM
27957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27958 conftest$ac_exeext conftest.$ac_ext
27959 LIBS=$ac_check_lib_save_LIBS
27961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27962 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27963 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then
27965 cat >>confdefs.h <<\_ACEOF
27966 #define HAVE_OPENSSLv1 1
27973 LIBS="${saved_LIBS}"
27974 CFLAGS="${saved_CFLAGS}"
27977 support_crypto="no"
27981 { $as_echo "$as_me:$LINENO: result: $support_tls" >&5
27982 $as_echo "$support_tls" >&6; }
27984 if test "$support_tls" = "no"; then
27988 if test "$support_crypto" = "no"; then
27996 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27997 $as_echo_n "checking for library containing dlopen... " >&6; }
27998 if test "${ac_cv_search_dlopen+set}" = set; then
27999 $as_echo_n "(cached) " >&6
28001 ac_func_search_save_LIBS=$LIBS
28002 cat >conftest.$ac_ext <<_ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28009 /* Override any GCC internal prototype to avoid an error.
28010 Use char because int might match the return type of a GCC
28011 builtin and then its argument prototype would still apply. */
28024 for ac_lib in '' dl; do
28025 if test -z "$ac_lib"; then
28026 ac_res="none required"
28029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28031 rm -f conftest.$ac_objext conftest$ac_exeext
28032 if { (ac_try="$ac_link"
28033 case "(($ac_try" in
28034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28035 *) ac_try_echo=$ac_try;;
28037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28038 $as_echo "$ac_try_echo") >&5
28039 (eval "$ac_link") 2>conftest.er1
28041 grep -v '^ *+' conftest.er1 >conftest.err
28043 cat conftest.err >&5
28044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); } && {
28046 test -z "$ac_c_werror_flag" ||
28047 test ! -s conftest.err
28048 } && test -s conftest$ac_exeext && {
28049 test "$cross_compiling" = yes ||
28050 $as_test_x conftest$ac_exeext
28052 ac_cv_search_dlopen=$ac_res
28054 $as_echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28060 rm -rf conftest.dSYM
28061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28063 if test "${ac_cv_search_dlopen+set}" = set; then
28067 if test "${ac_cv_search_dlopen+set}" = set; then
28070 ac_cv_search_dlopen=no
28072 rm conftest.$ac_ext
28073 LIBS=$ac_func_search_save_LIBS
28075 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28076 $as_echo "$ac_cv_search_dlopen" >&6; }
28077 ac_res=$ac_cv_search_dlopen
28078 if test "$ac_res" != no; then
28079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28084 working_dir=`eval echo ${prefix}/var/bacula/working`
28086 # Check whether --with-working-dir was given.
28087 if test "${with_working_dir+set}" = set; then
28088 withval=$with_working_dir;
28089 if test "x$withval" != "xno" ; then
28090 working_dir=$withval
28101 # Check whether --with-archivedir was given.
28102 if test "${with_archivedir+set}" = set; then
28103 withval=$with_archivedir;
28104 if test "x$withval" != "xno" ; then
28105 archivedir=$withval
28114 basename=`hostname`
28116 # Check whether --with-basename was given.
28117 if test "${with_basename+set}" = set; then
28118 withval=$with_basename;
28119 if test "x$withval" != "xno" ; then
28129 hostname=`uname -n | cut -d '.' -f 1`
28130 if test x${hostname} = x ; then
28131 hostname="localhost"
28134 # Check whether --with-hostname was given.
28135 if test "${with_hostname+set}" = set; then
28136 withval=$with_hostname;
28137 if test "x$withval" != "xno" ; then
28148 scriptdir=`eval echo ${sysconfdir}`
28150 # Check whether --with-scriptdir was given.
28151 if test "${with_scriptdir+set}" = set; then
28152 withval=$with_scriptdir;
28153 if test "x$withval" != "xno" ; then
28166 # Check whether --with-bsrdir was given.
28167 if test "${with_bsrdir+set}" = set; then
28168 withval=$with_bsrdir;
28169 if test "x$withval" != "xno" ; then
28181 # Check whether --with-logdir was given.
28182 if test "${with_logdir+set}" = set; then
28183 withval=$with_logdir;
28184 if test "x$withval" != "xno" ; then
28195 # ------------------------------------------
28196 # Where to place plugindir (plugin files)
28197 # ------------------------------------------
28198 plugindir=`eval echo ${libdir}`
28200 # Check whether --with-plugindir was given.
28201 if test "${with_plugindir+set}" = set; then
28202 withval=$with_plugindir;
28203 if test "x$withval" != "xno" ; then
28213 dump_email=root@localhost
28215 # Check whether --with-dump-email was given.
28216 if test "${with_dump_email+set}" = set; then
28217 withval=$with_dump_email;
28218 if test "x$withval" != "xno" ; then
28219 dump_email=$withval
28228 job_email=root@localhost
28230 # Check whether --with-job-email was given.
28231 if test "${with_job_email+set}" = set; then
28232 withval=$with_job_email;
28233 if test "x$withval" != "xno" ; then
28243 smtp_host=localhost
28245 # Check whether --with-smtp_host was given.
28246 if test "${with_smtp_host+set}" = set; then
28247 withval=$with_smtp_host;
28248 if test "x$withval" != "xno" ; then
28260 # Check whether --with-pid-dir was given.
28261 if test "${with_pid_dir+set}" = set; then
28262 withval=$with_pid_dir;
28263 if test "x$withval" != "xno" ; then
28271 cat >>confdefs.h <<_ACEOF
28272 #define _PATH_BACULA_PIDDIR "$piddir"
28277 subsysdir=/var/run/subsys
28278 if test -d /var/run/subsys; then
28279 subsysdir=/var/run/subsys
28280 elif test -d /var/lock/subsys; then
28281 subsysdir=/var/lock/subsys
28283 subsysdir=/var/run/subsys
28286 # Check whether --with-subsys-dir was given.
28287 if test "${with_subsys_dir+set}" = set; then
28288 withval=$with_subsys_dir;
28289 if test "x$withval" != "xno" ; then
28301 # Check whether --with-baseport was given.
28302 if test "${with_baseport+set}" = set; then
28303 withval=$with_baseport;
28304 if test "x$withval" != "xno" ; then
28313 dir_port=`expr $baseport`
28314 fd_port=`expr $baseport + 1`
28315 sd_port=`expr $fd_port + 1`
28323 # Check whether --with-dir-password was given.
28324 if test "${with_dir_password+set}" = set; then
28325 withval=$with_dir_password;
28326 if test "x$withval" != "xno" ; then
28327 dir_password=$withval
28334 if test "x$dir_password" = "x" ; then
28335 if test "x$OPENSSL" = "xnone" ; then
28336 key=`autoconf/randpass 33`
28338 key=`openssl rand -base64 33`
28345 # Check whether --with-fd-password was given.
28346 if test "${with_fd_password+set}" = set; then
28347 withval=$with_fd_password;
28348 if test "x$withval" != "xno" ; then
28349 fd_password=$withval
28356 if test "x$fd_password" = "x" ; then
28357 if test "x$OPENSSL" = "xnone" ; then
28358 key=`autoconf/randpass 37`
28360 key=`openssl rand -base64 33`
28367 # Check whether --with-sd-password was given.
28368 if test "${with_sd_password+set}" = set; then
28369 withval=$with_sd_password;
28370 if test "x$withval" != "xno" ; then
28371 sd_password=$withval
28378 if test "x$sd_password" = "x" ; then
28379 if test "x$OPENSSL" = "xnone" ; then
28380 key=`autoconf/randpass 41`
28382 key=`openssl rand -base64 33`
28389 # Check whether --with-mon-dir-password was given.
28390 if test "${with_mon_dir_password+set}" = set; then
28391 withval=$with_mon_dir_password;
28392 if test "x$withval" != "xno" ; then
28393 mon_dir_password=$withval
28400 if test "x$mon_dir_password" = "x" ; then
28401 if test "x$OPENSSL" = "xnone" ; then
28402 key=`autoconf/randpass 33`
28404 key=`openssl rand -base64 33`
28406 mon_dir_password=$key
28411 # Check whether --with-mon-fd-password was given.
28412 if test "${with_mon_fd_password+set}" = set; then
28413 withval=$with_mon_fd_password;
28414 if test "x$withval" != "xno" ; then
28415 mon_fd_password=$withval
28422 if test "x$mon_fd_password" = "x" ; then
28423 if test "x$OPENSSL" = "xnone" ; then
28424 key=`autoconf/randpass 37`
28426 key=`openssl rand -base64 33`
28428 mon_fd_password=$key
28433 # Check whether --with-mon-sd-password was given.
28434 if test "${with_mon_sd_password+set}" = set; then
28435 withval=$with_mon_sd_password;
28436 if test "x$withval" != "xno" ; then
28437 mon_sd_password=$withval
28444 if test "x$mon_sd_password" = "x" ; then
28445 if test "x$OPENSSL" = "xnone" ; then
28446 key=`autoconf/randpass 41`
28448 key=`openssl rand -base64 33`
28450 mon_sd_password=$key
28462 # Check whether --with-db_name was given.
28463 if test "${with_db_name+set}" = set; then
28464 withval=$with_db_name;
28465 if test "x$withval" != "x" ; then
28476 # Check whether --with-db_user was given.
28477 if test "${with_db_user+set}" = set; then
28478 withval=$with_db_user;
28479 if test "x$withval" != "x" ; then
28490 # Check whether --with-db_password was given.
28491 if test "${with_db_password+set}" = set; then
28492 withval=$with_db_password;
28493 if test "x$withval" != "x" ; then
28494 db_password=$withval
28504 # Check whether --with-db_port was given.
28505 if test "${with_db_port+set}" = set; then
28506 withval=$with_db_port;
28507 if test "x$withval" != "x" ; then
28517 # Handle users and groups for each daemon
28521 # Check whether --with-dir_user was given.
28522 if test "${with_dir_user+set}" = set; then
28523 withval=$with_dir_user;
28524 if test "x$withval" != "x" ; then
28534 # Check whether --with-dir_group was given.
28535 if test "${with_dir_group+set}" = set; then
28536 withval=$with_dir_group;
28537 if test "x$withval" != "x" ; then
28547 # Check whether --with-sd_user was given.
28548 if test "${with_sd_user+set}" = set; then
28549 withval=$with_sd_user;
28550 if test "x$withval" != "x" ; then
28560 # Check whether --with-sd_group was given.
28561 if test "${with_sd_group+set}" = set; then
28562 withval=$with_sd_group;
28563 if test "x$withval" != "x" ; then
28573 # Check whether --with-fd_user was given.
28574 if test "${with_fd_user+set}" = set; then
28575 withval=$with_fd_user;
28576 if test "x$withval" != "x" ; then
28586 # Check whether --with-fd_group was given.
28587 if test "${with_fd_group+set}" = set; then
28588 withval=$with_fd_group;
28589 if test "x$withval" != "x" ; then
28606 # Check whether --with-sbin-perm was given.
28607 if test "${with_sbin_perm+set}" = set; then
28608 withval=$with_sbin_perm;
28609 if test "x$withval" != "x" ; then
28622 { $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
28623 $as_echo_n "checking for PostgreSQL support... " >&6; }
28625 # Check whether --with-postgresql was given.
28626 if test "${with_postgresql+set}" = set; then
28627 withval=$with_postgresql;
28628 if test "$withval" != "no"; then
28629 if test "$db_found" = "yes"; then
28630 { $as_echo "$as_me:$LINENO: result: error" >&5
28631 $as_echo "error" >&6; }
28632 { { $as_echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
28633 $as_echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
28634 { (exit 1); exit 1; }; };
28636 if test "$withval" = "yes"; then
28637 PG_CONFIG=`which pg_config`
28638 if test -n "$PG_CONFIG";then
28639 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
28640 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
28641 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28642 elif test -f /usr/local/include/libpq-fe.h; then
28643 POSTGRESQL_INCDIR=/usr/local/include
28644 if test -d /usr/local/lib64; then
28645 POSTGRESQL_LIBDIR=/usr/local/lib64
28647 POSTGRESQL_LIBDIR=/usr/local/lib
28649 POSTGRESQL_BINDIR=/usr/local/bin
28650 elif test -f /usr/include/libpq-fe.h; then
28651 POSTGRESQL_INCDIR=/usr/include
28652 if test -d /usr/lib64; then
28653 POSTGRESQL_LIBDIR=/usr/lib64
28655 POSTGRESQL_LIBDIR=/usr/lib
28657 POSTGRESQL_BINDIR=/usr/bin
28658 elif test -f /usr/include/pgsql/libpq-fe.h; then
28659 POSTGRESQL_INCDIR=/usr/include/pgsql
28660 if test -d /usr/lib64/pgsql; then
28661 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28663 POSTGRESQL_LIBDIR=/usr/lib/pgsql
28665 POSTGRESQL_BINDIR=/usr/bin
28666 elif test -f /usr/include/postgresql/libpq-fe.h; then
28667 POSTGRESQL_INCDIR=/usr/include/postgresql
28668 if test -d /usr/lib64/postgresql; then
28669 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28671 POSTGRESQL_LIBDIR=/usr/lib/postgresql
28673 POSTGRESQL_BINDIR=/usr/bin
28675 { $as_echo "$as_me:$LINENO: result: no" >&5
28676 $as_echo "no" >&6; }
28677 { { $as_echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28678 $as_echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28679 { (exit 1); exit 1; }; }
28681 elif test -f $withval/include/libpq-fe.h; then
28682 POSTGRESQL_INCDIR=$withval/include
28683 POSTGRESQL_LIBDIR=$withval/lib
28684 POSTGRESQL_BINDIR=$withval/bin
28685 elif test -f $withval/include/postgresql/libpq-fe.h; then
28686 POSTGRESQL_INCDIR=$withval/include/postgresql
28687 if test -d $withval/lib64; then
28688 POSTGRESQL_LIBDIR=$withval/lib64
28690 POSTGRESQL_LIBDIR=$withval/lib
28692 POSTGRESQL_BINDIR=$withval/bin
28694 { $as_echo "$as_me:$LINENO: result: no" >&5
28695 $as_echo "no" >&6; }
28696 { { $as_echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28697 $as_echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28698 { (exit 1); exit 1; }; }
28700 cat >>confdefs.h <<\_ACEOF
28701 #define HAVE_POSTGRESQL 1
28704 { $as_echo "$as_me:$LINENO: result: yes" >&5
28705 $as_echo "yes" >&6; }
28706 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28707 { $as_echo "$as_me:$LINENO: checking for crypt" >&5
28708 $as_echo_n "checking for crypt... " >&6; }
28709 if test "${ac_cv_func_crypt+set}" = set; then
28710 $as_echo_n "(cached) " >&6
28712 cat >conftest.$ac_ext <<_ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28720 #define crypt innocuous_crypt
28722 /* System header to define __stub macros and hopefully few prototypes,
28723 which can conflict with char crypt (); below.
28724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28725 <limits.h> exists even on freestanding compilers. */
28728 # include <limits.h>
28730 # include <assert.h>
28735 /* Override any GCC internal prototype to avoid an error.
28736 Use char because int might match the return type of a GCC
28737 builtin and then its argument prototype would still apply. */
28742 /* The GNU C library defines this for functions which it implements
28743 to always fail with ENOSYS. Some functions are actually named
28744 something starting with __ and the normal name is an alias. */
28745 #if defined __stub_crypt || defined __stub___crypt
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (ac_try="$ac_link"
28759 case "(($ac_try" in
28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28764 $as_echo "$ac_try_echo") >&5
28765 (eval "$ac_link") 2>conftest.er1
28767 grep -v '^ *+' conftest.er1 >conftest.err
28769 cat conftest.err >&5
28770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } && {
28772 test -z "$ac_c_werror_flag" ||
28773 test ! -s conftest.err
28774 } && test -s conftest$ac_exeext && {
28775 test "$cross_compiling" = yes ||
28776 $as_test_x conftest$ac_exeext
28778 ac_cv_func_crypt=yes
28780 $as_echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28783 ac_cv_func_crypt=no
28786 rm -rf conftest.dSYM
28787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28788 conftest$ac_exeext conftest.$ac_ext
28790 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28791 $as_echo "$ac_cv_func_crypt" >&6; }
28792 if test "x$ac_cv_func_crypt" = x""yes; then
28795 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28796 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
28797 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28798 $as_echo_n "(cached) " >&6
28800 ac_check_lib_save_LIBS=$LIBS
28801 LIBS="-lcrypt $LIBS"
28802 cat >conftest.$ac_ext <<_ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h. */
28809 /* Override any GCC internal prototype to avoid an error.
28810 Use char because int might match the return type of a GCC
28811 builtin and then its argument prototype would still apply. */
28824 rm -f conftest.$ac_objext conftest$ac_exeext
28825 if { (ac_try="$ac_link"
28826 case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28831 $as_echo "$ac_try_echo") >&5
28832 (eval "$ac_link") 2>conftest.er1
28834 grep -v '^ *+' conftest.er1 >conftest.err
28836 cat conftest.err >&5
28837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } && {
28839 test -z "$ac_c_werror_flag" ||
28840 test ! -s conftest.err
28841 } && test -s conftest$ac_exeext && {
28842 test "$cross_compiling" = yes ||
28843 $as_test_x conftest$ac_exeext
28845 ac_cv_lib_crypt_crypt=yes
28847 $as_echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_cv_lib_crypt_crypt=no
28853 rm -rf conftest.dSYM
28854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28855 conftest$ac_exeext conftest.$ac_ext
28856 LIBS=$ac_check_lib_save_LIBS
28858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28859 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
28860 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
28861 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28866 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28867 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28868 SQL_BINDIR=$POSTGRESQL_BINDIR
28869 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28872 support_postgresql=yes
28876 { $as_echo "$as_me:$LINENO: result: no" >&5
28877 $as_echo "no" >&6; }
28882 { $as_echo "$as_me:$LINENO: result: no" >&5
28883 $as_echo "no" >&6; }
28895 { $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
28896 $as_echo_n "checking for MySQL support... " >&6; }
28898 # Check whether --with-mysql was given.
28899 if test "${with_mysql+set}" = set; then
28900 withval=$with_mysql;
28901 if test "$withval" != "no"; then
28902 if test "$withval" = "yes"; then
28903 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28904 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28905 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28906 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28907 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28909 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28911 MYSQL_BINDIR=/usr/local/mysql/bin
28912 elif test -f /usr/include/mysql/mysql.h; then
28913 MYSQL_INCDIR=/usr/include/mysql
28914 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28915 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28916 MYSQL_LIBDIR=/usr/lib64/mysql
28917 elif test -f /usr/lib64/libmysqlclient_r.a \
28918 -o -f /usr/lib64/libmysqlclient_r.so; then
28919 MYSQL_LIBDIR=/usr/lib64
28920 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28921 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28922 MYSQL_LIBDIR=/usr/lib/mysql
28924 MYSQL_LIBDIR=/usr/lib
28926 MYSQL_BINDIR=/usr/bin
28927 elif test -f /usr/include/mysql.h; then
28928 MYSQL_INCDIR=/usr/include
28929 if test -f /usr/lib64/libmysqlclient_r.a \
28930 -o -f /usr/lib64/libmysqlclient_r.so; then
28931 MYSQL_LIBDIR=/usr/lib64
28933 MYSQL_LIBDIR=/usr/lib
28935 MYSQL_BINDIR=/usr/bin
28936 elif test -f /usr/local/include/mysql/mysql.h; then
28937 MYSQL_INCDIR=/usr/local/include/mysql
28938 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28939 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28940 MYSQL_LIBDIR=/usr/local/lib64/mysql
28942 MYSQL_LIBDIR=/usr/local/lib/mysql
28944 MYSQL_BINDIR=/usr/local/bin
28945 elif test -f /usr/local/include/mysql.h; then
28946 MYSQL_INCDIR=/usr/local/include
28947 if test -f /usr/local/lib64/libmysqlclient_r.a \
28948 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28949 MYSQL_LIBDIR=/usr/local/lib64
28951 MYSQL_LIBDIR=/usr/local/lib
28953 MYSQL_BINDIR=/usr/local/bin
28955 { $as_echo "$as_me:$LINENO: result: no" >&5
28956 $as_echo "no" >&6; }
28957 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28958 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28959 { (exit 1); exit 1; }; }
28962 if test -f $withval/include/mysql/mysql.h; then
28963 MYSQL_INCDIR=$withval/include/mysql
28964 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28965 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28966 MYSQL_LIBDIR=$withval/lib64/mysql
28967 elif test -f $withval/lib64/libmysqlclient_r.a \
28968 -o -f $withval/lib64/libmysqlclient_r.so; then
28969 MYSQL_LIBDIR=$withval/lib64
28970 elif test -f $withval/lib/libmysqlclient_r.a \
28971 -o -f $withval/lib/libmysqlclient_r.so; then
28972 MYSQL_LIBDIR=$withval/lib
28974 MYSQL_LIBDIR=$withval/lib/mysql
28976 MYSQL_BINDIR=$withval/bin
28977 elif test -f $withval/include/mysql.h; then
28978 MYSQL_INCDIR=$withval/include
28979 if test -f $withval/lib64/libmysqlclient_r.a \
28980 -o -f $withval/lib64/libmysqlclient_r.so; then
28981 MYSQL_LIBDIR=$withval/lib64
28983 MYSQL_LIBDIR=$withval/lib
28985 MYSQL_BINDIR=$withval/bin
28987 { $as_echo "$as_me:$LINENO: result: no" >&5
28988 $as_echo "no" >&6; }
28989 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28990 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28991 { (exit 1); exit 1; }; }
28994 SQL_INCLUDE=-I$MYSQL_INCDIR
28995 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28996 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28997 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28998 cat >>confdefs.h <<\_ACEOF
28999 #define HAVE_THREAD_SAFE_MYSQL 1
29003 SQL_BINDIR=$MYSQL_BINDIR
29004 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
29007 cat >>confdefs.h <<\_ACEOF
29008 #define HAVE_MYSQL 1
29011 { $as_echo "$as_me:$LINENO: result: yes" >&5
29012 $as_echo "yes" >&6; }
29019 { $as_echo "$as_me:$LINENO: result: no" >&5
29020 $as_echo "no" >&6; }
29028 # Check whether --with-embedded-mysql was given.
29029 if test "${with_embedded_mysql+set}" = set; then
29030 withval=$with_embedded_mysql;
29031 if test "$withval" != "no"; then
29032 if test "$withval" = "yes"; then
29033 if test -f /usr/local/mysql/include/mysql/mysql.h; then
29034 MYSQL_INCDIR=/usr/local/mysql/include/mysql
29035 if test -d /usr/local/mysql/lib64/mysql; then
29036 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
29038 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
29040 MYSQL_BINDIR=/usr/local/mysql/bin
29041 elif test -f /usr/include/mysql/mysql.h; then
29042 MYSQL_INCDIR=/usr/include/mysql
29043 if test -d /usr/lib64/mysql; then
29044 MYSQL_LIBDIR=/usr/lib64/mysql
29046 MYSQL_LIBDIR=/usr/lib/mysql
29048 MYSQL_BINDIR=/usr/bin
29049 elif test -f /usr/include/mysql.h; then
29050 MYSQL_INCDIR=/usr/include
29051 if test -d /usr/lib64; then
29052 MYSQL_LIBDIR=/usr/lib64
29054 MYSQL_LIBDIR=/usr/lib
29056 MYSQL_BINDIR=/usr/bin
29057 elif test -f /usr/local/include/mysql/mysql.h; then
29058 MYSQL_INCDIR=/usr/local/include/mysql
29059 if test -d /usr/local/lib64/mysql; then
29060 MYSQL_LIBDIR=/usr/local/lib64/mysql
29062 MYSQL_LIBDIR=/usr/local/lib/mysql
29064 MYSQL_BINDIR=/usr/local/bin
29065 elif test -f /usr/local/include/mysql.h; then
29066 MYSQL_INCDIR=/usr/local/include
29067 if test -d /usr/local/lib64; then
29068 MYSQL_LIBDIR=/usr/local/lib64
29070 MYSQL_LIBDIR=/usr/local/lib
29072 MYSQL_BINDIR=/usr/local/bin
29074 { $as_echo "$as_me:$LINENO: result: no" >&5
29075 $as_echo "no" >&6; }
29076 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
29077 $as_echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
29078 { (exit 1); exit 1; }; }
29081 if test -f $withval/include/mysql/mysql.h; then
29082 MYSQL_INCDIR=$withval/include/mysql
29083 if test -d $withval/lib64/mysql; then
29084 MYSQL_LIBDIR=$withval/lib64/mysql
29086 MYSQL_LIBDIR=$withval/lib/mysql
29088 MYSQL_BINDIR=$withval/bin
29089 elif test -f $withval/include/mysql.h; then
29090 MYSQL_INCDIR=$withval/include
29091 if test -d $withval/lib64; then
29092 MYSQL_LIBDIR=$withval/lib64
29094 MYSQL_LIBDIR=$withval/lib
29096 MYSQL_BINDIR=$withval/bin
29098 { $as_echo "$as_me:$LINENO: result: no" >&5
29099 $as_echo "no" >&6; }
29100 { { $as_echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
29101 $as_echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
29102 { (exit 1); exit 1; }; }
29105 SQL_INCLUDE=-I$MYSQL_INCDIR
29106 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
29107 SQL_BINDIR=$MYSQL_BINDIR
29108 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
29110 cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_MYSQL 1
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_EMBEDDED_MYSQL 1
29118 { $as_echo "$as_me:$LINENO: result: yes" >&5
29119 $as_echo "yes" >&6; }
29126 { $as_echo "$as_me:$LINENO: result: no" >&5
29127 $as_echo "no" >&6; }
29143 { $as_echo "$as_me:$LINENO: checking for Ingres support" >&5
29144 $as_echo_n "checking for Ingres support... " >&6; }
29146 # Check whether --with-ingres was given.
29147 if test "${with_ingres+set}" = set; then
29148 withval=$with_ingres;
29149 if test "$withval" != "no"; then
29150 if test "$withval" = "yes"; then
29151 if test -f ${II_SYSTEM}/files/eqdefc.h; then
29152 INGRES_INCDIR=${II_SYSTEM}/files
29153 INGRES_LIBDIR=${II_SYSTEM}/lib
29154 INGRES_BINDIR=${II_SYSTEM}/bin
29155 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
29156 INGRES_INCDIR=${II_SYSTEM}/ingres/files
29157 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
29158 INGRES_BINDIR=${II_SYSTEM}/ingres/bin
29160 { $as_echo "$as_me:$LINENO: result: no" >&5
29161 $as_echo "no" >&6; }
29162 { { $as_echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
29163 $as_echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
29164 { (exit 1); exit 1; }; }
29167 if test -f $withval/files/eqdefc.h; then
29168 INGRES_INCDIR=$withval/files
29169 INGRES_LIBDIR=$withval/lib
29170 INGRES_BINDIR=$withval/bin
29172 { $as_echo "$as_me:$LINENO: result: no" >&5
29173 $as_echo "no" >&6; }
29174 { { $as_echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
29175 $as_echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
29176 { (exit 1); exit 1; }; }
29179 SQL_INCLUDE=-I$INGRES_INCDIR
29180 SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
29181 SQL_BINDIR=$INGRES_BINDIR
29182 SQL_LIB=$INGRES_LIBDIR/libingres.a
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_INGRES 1
29188 { $as_echo "$as_me:$LINENO: result: yes" >&5
29189 $as_echo "yes" >&6; }
29196 { $as_echo "$as_me:$LINENO: result: no" >&5
29197 $as_echo "no" >&6; }
29202 { $as_echo "$as_me:$LINENO: result: no" >&5
29203 $as_echo "no" >&6; }
29215 { $as_echo "$as_me:$LINENO: checking for SQLite3 support" >&5
29216 $as_echo_n "checking for SQLite3 support... " >&6; }
29218 # Check whether --with-sqlite3 was given.
29219 if test "${with_sqlite3+set}" = set; then
29220 withval=$with_sqlite3;
29221 if test "$withval" != "no"; then
29222 if test "$withval" = "yes"; then
29223 if test -f /usr/local/include/sqlite3.h; then
29224 SQLITE_INCDIR=/usr/local/include
29225 if test -d /usr/local/lib64; then
29226 SQLITE_LIBDIR=/usr/local/lib64
29228 SQLITE_LIBDIR=/usr/local/lib
29230 SQLITE_BINDIR=/usr/local/bin
29231 elif test -f /usr/include/sqlite3.h; then
29232 SQLITE_INCDIR=/usr/include
29233 if test -d /usr/lib64; then
29234 SQLITE_LIBDIR=/usr/lib64
29236 SQLITE_LIBDIR=/usr/lib
29238 SQLITE_BINDIR=/usr/bin
29239 elif test -f $prefix/include/sqlite3.h; then
29240 SQLITE_INCDIR=$prefix/include
29241 if test -d $prefix/lib64; then
29242 SQLITE_LIBDIR=$prefix/lib64
29244 SQLITE_LIBDIR=$prefix/lib
29246 SQLITE_BINDIR=$prefix/bin
29248 { $as_echo "$as_me:$LINENO: result: no" >&5
29249 $as_echo "no" >&6; }
29250 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
29251 $as_echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
29252 { (exit 1); exit 1; }; }
29255 if test -f $withval/sqlite3.h; then
29256 SQLITE_INCDIR=$withval
29257 SQLITE_LIBDIR=$withval
29258 SQLITE_BINDIR=$withval
29259 elif test -f $withval/include/sqlite3.h; then
29260 SQLITE_INCDIR=$withval/include
29261 if test -d $withval/lib64; then
29262 SQLITE_LIBDIR=$withval/lib64
29264 SQLITE_LIBDIR=$withval/lib
29266 SQLITE_BINDIR=$withval/bin
29268 { $as_echo "$as_me:$LINENO: result: no" >&5
29269 $as_echo "no" >&6; }
29270 { { $as_echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
29271 $as_echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
29272 { (exit 1); exit 1; }; }
29275 SQL_INCLUDE=-I$SQLITE_INCDIR
29276 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
29277 SQL_BINDIR=$SQLITE_BINDIR
29278 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
29280 cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_SQLITE3 1
29284 { $as_echo "$as_me:$LINENO: result: yes" >&5
29285 $as_echo "yes" >&6; }
29287 support_sqlite3=yes
29292 { $as_echo "$as_me:$LINENO: result: no" >&5
29293 $as_echo "no" >&6; }
29298 { $as_echo "$as_me:$LINENO: result: no" >&5
29299 $as_echo "no" >&6; }
29309 # BA_CHECK_SQLITE_DB
29313 { $as_echo "$as_me:$LINENO: checking for DBI support" >&5
29314 $as_echo_n "checking for DBI support... " >&6; }
29316 # Check whether --with-dbi was given.
29317 if test "${with_dbi+set}" = set; then
29319 if test "$withval" != "no"; then
29320 if test "$withval" = "yes"; then
29321 if test -f /usr/local/include/dbi/dbi.h; then
29322 DBI_INCDIR=/usr/local/dbi/include
29323 if test -d /usr/local/lib64; then
29324 DBI_LIBDIR=/usr/local/lib64
29326 DBI_LIBDIR=/usr/local/lib
29328 DBI_BINDIR=/usr/local/bin
29329 elif test -f /usr/include/dbi/dbi.h; then
29330 DBI_INCDIR=/usr/include
29331 if test -d /usr/lib64; then
29332 DBI_LIBDIR=/usr/lib64
29334 DBI_LIBDIR=/usr/lib
29336 DBI_BINDIR=/usr/bin
29337 elif test -f $prefix/include/dbi/dbi.h; then
29338 DBI_INCDIR=$prefix/include
29339 if test -d $prefix/lib64; then
29340 DBI_LIBDIR=$prefix/lib64
29342 DBI_LIBDIR=$prefix/lib
29344 DBI_BINDIR=$prefix/bin
29346 { $as_echo "$as_me:$LINENO: result: no" >&5
29347 $as_echo "no" >&6; }
29348 { { $as_echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
29349 $as_echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
29350 { (exit 1); exit 1; }; }
29352 if test -d /usr/local/lib/dbd; then
29353 DRIVERDIR=/usr/local/lib/dbd
29354 if test -d /usr/local/lib64/dbd; then
29355 DRIVERDIR=/usr/local/lib64/dbd
29357 DRIVERDIR=/usr/local/lib/dbd
29359 elif test -d /usr/lib/dbd; then
29360 DRIVERDIR=/usr/lib/dbd
29361 if test -d /usr/lib64/dbd; then
29362 DRIVERDIR=/usr/lib64/dbd
29364 DRIVERDIR=/usr/lib/dbd
29366 elif test -d $prefix/lib/dbd; then
29367 if test -d $prefix/lib64/dbd; then
29368 DRIVERDIR=$prefix/lib64/dbd
29370 DRIVERDIR=$prefix/lib/dbd
29372 elif test -d /usr/local/lib64/dbd; then
29373 DRIVERDIR=/usr/local/lib64/dbd
29374 elif test -d /usr/lib64/dbd; then
29375 DRIVERDIR=/usr/lib64/dbd
29376 elif test -d $prefix/lib64/dbd; then
29377 DRIVERDIR=$prefix/lib64/dbd
29379 { $as_echo "$as_me:$LINENO: result: no" >&5
29380 $as_echo "no" >&6; }
29381 { { $as_echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
29382 $as_echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
29383 { (exit 1); exit 1; }; }
29386 if test -f $withval/dbi.h; then
29387 DBI_INCDIR=$withval
29388 DBI_LIBDIR=$withval
29389 DBI_BINDIR=$withval
29390 elif test -f $withval/include/dbi/dbi.h; then
29391 DBI_INCDIR=$withval/include
29392 if test -d $withval/lib64; then
29393 DBI_LIBDIR=$withval/lib64
29395 DBI_LIBDIR=$withval/lib
29397 DBI_BINDIR=$withval/bin
29399 { $as_echo "$as_me:$LINENO: result: no" >&5
29400 $as_echo "no" >&6; }
29401 { { $as_echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
29402 $as_echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
29403 { (exit 1); exit 1; }; }
29405 if test -d $withval/dbd; then
29406 DRIVERDIR=$withval/dbd
29407 elif test -d $withval/lib/; then
29408 if test -d $withval/lib64/dbd; then
29409 DRIVERDIR=$withval/lib64/dbd
29411 DRIVERDIR=$withval/lib/dbd
29413 elif test -d $withval/lib64/dbd; then
29414 DRIVERDIR=$withval/lib64/dbd
29416 { $as_echo "$as_me:$LINENO: result: no" >&5
29417 $as_echo "no" >&6; }
29418 { { $as_echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
29419 $as_echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
29420 { (exit 1); exit 1; }; }
29423 SQL_INCLUDE=-I$DBI_INCDIR
29424 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
29425 SQL_BINDIR=$DBI_BINDIR
29426 SQL_LIB=$DBI_LIBDIR/libdbi.a
29427 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
29430 cat >>confdefs.h <<\_ACEOF
29434 { $as_echo "$as_me:$LINENO: result: yes" >&5
29435 $as_echo "yes" >&6; }
29443 { $as_echo "$as_me:$LINENO: result: no" >&5
29444 $as_echo "no" >&6; }
29449 { $as_echo "$as_me:$LINENO: result: no" >&5
29450 $as_echo "no" >&6; }
29465 { $as_echo "$as_me:$LINENO: checking for DBI drivers support" >&5
29466 $as_echo_n "checking for DBI drivers support... " >&6; }
29468 # Check whether --with-dbi-driver was given.
29469 if test "${with_dbi_driver+set}" = set; then
29470 withval=$with_dbi_driver;
29471 if test "$withval" != "no"; then
29475 if test -f /usr/local/mysql/bin/mysql; then
29476 SQL_BINDIR=/usr/local/mysql/bin
29477 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
29478 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
29479 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
29481 SQL_LIBDIR=/usr/local/mysql/lib/mysql
29483 elif test -f /usr/bin/mysql; then
29484 SQL_BINDIR=/usr/bin
29485 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
29486 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
29487 SQL_LIBDIR=/usr/lib64/mysql
29488 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
29489 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
29490 SQL_LIBDIR=/usr/lib/mysql
29492 SQL_LIBDIR=/usr/lib
29494 elif test -f /usr/local/bin/mysql; then
29495 SQL_BINDIR=/usr/local/bin
29496 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
29497 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
29498 SQL_LIBDIR=/usr/local/lib64/mysql
29499 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
29500 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
29501 SQL_LIBDIR=/usr/local/lib/mysql
29503 SQL_LIBDIR=/usr/local/lib
29505 elif test -f $withval/bin/mysql; then
29506 SQL_BINDIR=$withval/bin
29507 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
29508 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
29509 SQL_LIBDIR=$withval/lib64/mysql
29510 elif test -f $withval/lib64/libmysqlclient_r.a \
29511 -o -f $withval/lib64/libmysqlclient_r.so; then
29512 SQL_LIBDIR=$withval/lib64
29513 elif test -f $withval/lib/libmysqlclient_r.a \
29514 -o -f $withval/lib/libmysqlclient_r.so; then
29515 SQL_LIBDIR=$withval/lib/
29517 SQL_LIBDIR=$withval/lib/mysql
29520 { $as_echo "$as_me:$LINENO: result: no" >&5
29521 $as_echo "no" >&6; }
29522 { { $as_echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
29523 $as_echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
29524 { (exit 1); exit 1; }; }
29526 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
29527 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
29529 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
29533 db_prog="postgresql"
29534 PG_CONFIG=`which pg_config`
29535 if test -n "$PG_CONFIG"; then
29536 SQL_BINDIR=`"$PG_CONFIG" --bindir`
29537 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
29538 elif test -f /usr/local/bin/psql; then
29539 SQL_BINDIR=/usr/local/bin
29540 if test -d /usr/local/lib64; then
29541 SQL_LIBDIR=/usr/local/lib64
29543 SQL_LIBDIR=/usr/local/lib
29545 elif test -f /usr/bin/psql; then
29546 SQL_BINDIR=/usr/local/bin
29547 if test -d /usr/lib64/postgresql; then
29548 SQL_LIBDIR=/usr/lib64/postgresql
29549 elif test -d /usr/lib/postgresql; then
29550 SQL_LIBDIR=/usr/lib/postgresql
29551 elif test -d /usr/lib64; then
29552 SQL_LIBDIR=/usr/lib64
29554 SQL_LIBDIR=/usr/lib
29556 elif test -f $withval/bin/psql; then
29557 SQL_BINDIR=$withval/bin
29558 if test -d $withval/lib64; then
29559 SQL_LIBDIR=$withval/lib64
29561 SQL_LIBDIR=$withval/lib
29564 { $as_echo "$as_me:$LINENO: result: no" >&5
29565 $as_echo "no" >&6; }
29566 { { $as_echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
29567 $as_echo "$as_me: error: Unable to find psql in standard locations" >&2;}
29568 { (exit 1); exit 1; }; }
29570 if test -f $SQL_LIBDIR/libpq.so; then
29571 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
29573 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
29578 if test -f /usr/local/bin/sqlite; then
29579 SQL_BINDIR=/usr/local/bin
29580 if test -d /usr/local/lib64; then
29581 SQL_LIBDIR=/usr/local/lib64
29583 SQL_LIBDIR=/usr/local/lib
29585 elif test -f /usr/bin/sqlite; then
29586 SQL_BINDIR=/usr/bin
29587 if test -d /usr/lib64; then
29588 SQL_LIBDIR=/usr/lib64
29590 SQL_LIBDIR=/usr/lib
29592 elif test -f $withval/bin/sqlite; then
29593 SQL_BINDIR=$withval/bin
29594 if test -d $withval/lib64; then
29595 SQL_LIBDIR=$withval/lib64
29597 SQL_LIBDIR=$withval/lib
29600 { $as_echo "$as_me:$LINENO: result: no" >&5
29601 $as_echo "no" >&6; }
29602 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29603 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29604 { (exit 1); exit 1; }; }
29606 if test -f $SQL_LIBDIR/libsqlite.so; then
29607 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
29609 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
29614 if test -f /usr/local/bin/sqlite3; then
29615 SQL_BINDIR=/usr/local/bin
29616 if test -d /usr/local/lib64; then
29617 SQL_LIBDIR=/usr/local/lib64
29619 SQL_LIBDIR=/usr/local/lib
29621 elif test -f /usr/bin/sqlite3; then
29622 SQL_BINDIR=/usr/bin
29623 if test -d /usr/lib64; then
29624 SQL_LIBDIR=/usr/lib64
29626 SQL_LIBDIR=/usr/lib
29628 elif test -f $withval/bin/sqlite3; then
29629 SQL_BINDIR=$withval/bin
29630 if test -d $withval/lib64; then
29631 SQL_LIBDIR=$withval/lib64
29633 SQL_LIBDIR=$withval/lib
29636 { $as_echo "$as_me:$LINENO: result: no" >&5
29637 $as_echo "no" >&6; }
29638 { { $as_echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
29639 $as_echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
29640 { (exit 1); exit 1; }; }
29642 if test -f $SQL_LIBDIR/libsqlite3.so; then
29643 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
29645 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
29649 { $as_echo "$as_me:$LINENO: result: no" >&5
29650 $as_echo "no" >&6; }
29651 { { $as_echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29652 $as_echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29653 { (exit 1); exit 1; }; }
29657 { $as_echo "$as_me:$LINENO: result: yes" >&5
29658 $as_echo "yes" >&6; }
29661 { $as_echo "$as_me:$LINENO: result: no" >&5
29662 $as_echo "no" >&6; }
29667 { $as_echo "$as_me:$LINENO: result: no" >&5
29668 $as_echo "no" >&6; }
29681 support_batch_insert=no
29682 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29684 if test $pkg = 0; then
29685 support_batch_insert=yes
29686 # Check whether --enable-batch-insert was given.
29687 if test "${enable_batch_insert+set}" = set; then
29688 enableval=$enable_batch_insert;
29689 if test x$enableval = xno; then
29690 support_batch_insert=no
29692 support_batch_insert=yes
29700 if test x$support_batch_insert = xno; then
29701 if test x$DB_TYPE = xmysql; then
29702 A=`test -f $MYSQL_LIBDIR/libmysqlclient_r.so && nm -D $MYSQL_LIBDIR/libmysqlclient_r.so | grep pthread_mutex_lock`
29704 if test $pkg = 0; then
29705 support_batch_insert=yes
29706 # Check whether --enable-batch-insert was given.
29707 if test "${enable_batch_insert+set}" = set; then
29708 enableval=$enable_batch_insert;
29709 if test x$enableval = xno; then
29710 support_batch_insert=no
29712 support_batch_insert=yes
29722 saved_LIBS="${LIBS}"
29723 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
29725 if test x$DB_TYPE = xpostgresql; then
29726 support_batch_insert=yes
29727 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29728 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29729 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29730 $as_echo_n "(cached) " >&6
29732 ac_check_lib_save_LIBS=$LIBS
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29741 /* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29747 char PQisthreadsafe ();
29751 return PQisthreadsafe ();
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29763 $as_echo "$ac_try_echo") >&5
29764 (eval "$ac_link") 2>conftest.er1
29766 grep -v '^ *+' conftest.er1 >conftest.err
29768 cat conftest.err >&5
29769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } && {
29771 test -z "$ac_c_werror_flag" ||
29772 test ! -s conftest.err
29773 } && test -s conftest$ac_exeext && {
29774 test "$cross_compiling" = yes ||
29775 $as_test_x conftest$ac_exeext
29777 ac_cv_lib_pq_PQisthreadsafe=yes
29779 $as_echo "$as_me: failed program was:" >&5
29780 sed 's/^/| /' conftest.$ac_ext >&5
29782 ac_cv_lib_pq_PQisthreadsafe=no
29785 rm -rf conftest.dSYM
29786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29787 conftest$ac_exeext conftest.$ac_ext
29788 LIBS=$ac_check_lib_save_LIBS
29790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29791 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29792 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_PQISTHREADSAFE 1
29800 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29801 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29802 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29803 $as_echo_n "(cached) " >&6
29805 ac_check_lib_save_LIBS=$LIBS
29807 cat >conftest.$ac_ext <<_ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29814 /* Override any GCC internal prototype to avoid an error.
29815 Use char because int might match the return type of a GCC
29816 builtin and then its argument prototype would still apply. */
29820 char PQputCopyData ();
29824 return PQputCopyData ();
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (ac_try="$ac_link"
29831 case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29836 $as_echo "$ac_try_echo") >&5
29837 (eval "$ac_link") 2>conftest.er1
29839 grep -v '^ *+' conftest.er1 >conftest.err
29841 cat conftest.err >&5
29842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); } && {
29844 test -z "$ac_c_werror_flag" ||
29845 test ! -s conftest.err
29846 } && test -s conftest$ac_exeext && {
29847 test "$cross_compiling" = yes ||
29848 $as_test_x conftest$ac_exeext
29850 ac_cv_lib_pq_PQputCopyData=yes
29852 $as_echo "$as_me: failed program was:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29855 ac_cv_lib_pq_PQputCopyData=no
29858 rm -rf conftest.dSYM
29859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29860 conftest$ac_exeext conftest.$ac_ext
29861 LIBS=$ac_check_lib_save_LIBS
29863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29864 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
29865 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
29867 cat >>confdefs.h <<\_ACEOF
29868 #define HAVE_PQ_COPY 1
29873 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
29875 if test $pkg = 0; then
29876 # Check whether --enable-batch-insert was given.
29877 if test "${enable_batch_insert+set}" = set; then
29878 enableval=$enable_batch_insert;
29879 if test x$enableval = xno; then
29880 support_batch_insert=no
29887 support_batch_insert=no
29891 if test x$DB_TYPE = xdbi; then
29895 if test $DB_PROG = postgresql; then
29896 { $as_echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29897 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
29898 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29899 $as_echo_n "(cached) " >&6
29901 ac_check_lib_save_LIBS=$LIBS
29903 cat >conftest.$ac_ext <<_ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h. */
29910 /* Override any GCC internal prototype to avoid an error.
29911 Use char because int might match the return type of a GCC
29912 builtin and then its argument prototype would still apply. */
29916 char PQisthreadsafe ();
29920 return PQisthreadsafe ();
29925 rm -f conftest.$ac_objext conftest$ac_exeext
29926 if { (ac_try="$ac_link"
29927 case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29932 $as_echo "$ac_try_echo") >&5
29933 (eval "$ac_link") 2>conftest.er1
29935 grep -v '^ *+' conftest.er1 >conftest.err
29937 cat conftest.err >&5
29938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } && {
29940 test -z "$ac_c_werror_flag" ||
29941 test ! -s conftest.err
29942 } && test -s conftest$ac_exeext && {
29943 test "$cross_compiling" = yes ||
29944 $as_test_x conftest$ac_exeext
29946 ac_cv_lib_pq_PQisthreadsafe=yes
29948 $as_echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29951 ac_cv_lib_pq_PQisthreadsafe=no
29954 rm -rf conftest.dSYM
29955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29956 conftest$ac_exeext conftest.$ac_ext
29957 LIBS=$ac_check_lib_save_LIBS
29959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29960 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29961 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then
29962 cat >>confdefs.h <<\_ACEOF
29963 #define HAVE_PQISTHREADSAFE 1
29968 { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29969 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
29970 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29971 $as_echo_n "(cached) " >&6
29973 ac_check_lib_save_LIBS=$LIBS
29975 cat >conftest.$ac_ext <<_ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h. */
29982 /* Override any GCC internal prototype to avoid an error.
29983 Use char because int might match the return type of a GCC
29984 builtin and then its argument prototype would still apply. */
29988 char PQputCopyData ();
29992 return PQputCopyData ();
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001 *) ac_try_echo=$ac_try;;
30003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004 $as_echo "$ac_try_echo") >&5
30005 (eval "$ac_link") 2>conftest.er1
30007 grep -v '^ *+' conftest.er1 >conftest.err
30009 cat conftest.err >&5
30010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); } && {
30012 test -z "$ac_c_werror_flag" ||
30013 test ! -s conftest.err
30014 } && test -s conftest$ac_exeext && {
30015 test "$cross_compiling" = yes ||
30016 $as_test_x conftest$ac_exeext
30018 ac_cv_lib_pq_PQputCopyData=yes
30020 $as_echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30023 ac_cv_lib_pq_PQputCopyData=no
30026 rm -rf conftest.dSYM
30027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30028 conftest$ac_exeext conftest.$ac_ext
30029 LIBS=$ac_check_lib_save_LIBS
30031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
30032 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
30033 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
30034 cat >>confdefs.h <<\_ACEOF
30035 #define HAVE_PQ_COPY 1
30040 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
30044 if test $DB_PROG = mysql; then
30045 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30049 if test $DB_PROG = sqlite3; then
30050 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
30052 { $as_echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
30053 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
30054 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
30055 $as_echo_n "(cached) " >&6
30057 ac_check_lib_save_LIBS=$LIBS
30058 LIBS="-lsqlite3 $LIBS"
30059 cat >conftest.$ac_ext <<_ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30066 /* Override any GCC internal prototype to avoid an error.
30067 Use char because int might match the return type of a GCC
30068 builtin and then its argument prototype would still apply. */
30072 char sqlite3_threadsafe ();
30076 return sqlite3_threadsafe ();
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (ac_try="$ac_link"
30083 case "(($ac_try" in
30084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085 *) ac_try_echo=$ac_try;;
30087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30088 $as_echo "$ac_try_echo") >&5
30089 (eval "$ac_link") 2>conftest.er1
30091 grep -v '^ *+' conftest.er1 >conftest.err
30093 cat conftest.err >&5
30094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } && {
30096 test -z "$ac_c_werror_flag" ||
30097 test ! -s conftest.err
30098 } && test -s conftest$ac_exeext && {
30099 test "$cross_compiling" = yes ||
30100 $as_test_x conftest$ac_exeext
30102 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
30104 $as_echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30107 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
30110 rm -rf conftest.dSYM
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112 conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
30116 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
30117 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then
30119 cat >>confdefs.h <<\_ACEOF
30120 #define HAVE_SQLITE3_THREADSAFE 1
30127 if test $pkg = 0; then
30128 # Check whether --enable-batch-insert was given.
30129 if test "${enable_batch_insert+set}" = set; then
30130 enableval=$enable_batch_insert;
30131 if test x$enableval = xno; then
30132 support_batch_insert=no
30134 support_batch_insert=yes
30145 LIBS="${saved_LIBS}"
30149 if test x$DB_TYPE = xingres; then
30150 support_batch_insert=yes
30153 if test $support_batch_insert = yes ; then
30155 cat >>confdefs.h <<\_ACEOF
30156 #define HAVE_BATCH_FILE_INSERT 1
30161 cat >>confdefs.h <<\_ACEOF
30162 #define PROTOTYPES 1
30166 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
30167 if test -z "$CCOPTS"; then
30168 CCOPTS='-g -O2 -Wall'
30175 largefile_support="no"
30177 # Check whether --enable-largefile was given.
30178 if test "${enable_largefile+set}" = set; then
30179 enableval=$enable_largefile;
30182 if test "$enable_largefile" != no; then
30183 if test -n "$ac_tool_prefix"; then
30184 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
30185 set dummy ${ac_tool_prefix}getconf; ac_word=$2
30186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30187 $as_echo_n "checking for $ac_word... " >&6; }
30188 if test "${ac_cv_prog_GETCONF+set}" = set; then
30189 $as_echo_n "(cached) " >&6
30191 if test -n "$GETCONF"; then
30192 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
30194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30195 for as_dir in $PATH
30198 test -z "$as_dir" && as_dir=.
30199 for ac_exec_ext in '' $ac_executable_extensions; do
30200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30201 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
30202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30211 GETCONF=$ac_cv_prog_GETCONF
30212 if test -n "$GETCONF"; then
30213 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
30214 $as_echo "$GETCONF" >&6; }
30216 { $as_echo "$as_me:$LINENO: result: no" >&5
30217 $as_echo "no" >&6; }
30222 if test -z "$ac_cv_prog_GETCONF"; then
30223 ac_ct_GETCONF=$GETCONF
30224 # Extract the first word of "getconf", so it can be a program name with args.
30225 set dummy getconf; ac_word=$2
30226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30227 $as_echo_n "checking for $ac_word... " >&6; }
30228 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
30229 $as_echo_n "(cached) " >&6
30231 if test -n "$ac_ct_GETCONF"; then
30232 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
30234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30235 for as_dir in $PATH
30238 test -z "$as_dir" && as_dir=.
30239 for ac_exec_ext in '' $ac_executable_extensions; do
30240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30241 ac_cv_prog_ac_ct_GETCONF="getconf"
30242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30251 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
30252 if test -n "$ac_ct_GETCONF"; then
30253 { $as_echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
30254 $as_echo "$ac_ct_GETCONF" >&6; }
30256 { $as_echo "$as_me:$LINENO: result: no" >&5
30257 $as_echo "no" >&6; }
30260 if test "x$ac_ct_GETCONF" = x; then
30263 case $cross_compiling:$ac_tool_warned in
30265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30267 ac_tool_warned=yes ;;
30269 GETCONF=$ac_ct_GETCONF
30272 GETCONF="$ac_cv_prog_GETCONF"
30275 { $as_echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
30276 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
30277 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
30278 $as_echo_n "(cached) " >&6
30280 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
30281 ac_cv_sys_largefile_CFLAGS=no
30283 # IRIX 6.2 and later require cc -n32.
30284 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
30285 if test "$GCC" != yes; then
30286 ac_cv_sys_largefile_CFLAGS=-n32
30289 CC="$CC $ac_cv_sys_largefile_CFLAGS"
30290 cat >conftest.$ac_ext <<_ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h. */
30305 rm -f conftest.$ac_objext conftest$ac_exeext
30306 if { (ac_try="$ac_link"
30307 case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30312 $as_echo "$ac_try_echo") >&5
30313 (eval "$ac_link") 2>conftest.er1
30315 grep -v '^ *+' conftest.er1 >conftest.err
30317 cat conftest.err >&5
30318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); } && {
30320 test -z "$ac_c_werror_flag" ||
30321 test ! -s conftest.err
30322 } && test -s conftest$ac_exeext && {
30323 test "$cross_compiling" = yes ||
30324 $as_test_x conftest$ac_exeext
30328 $as_echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30331 ac_cv_sys_largefile_CFLAGS=no
30334 rm -rf conftest.dSYM
30335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30336 conftest$ac_exeext conftest.$ac_ext
30341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
30342 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
30343 { $as_echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
30344 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
30345 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
30346 $as_echo_n "(cached) " >&6
30348 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
30349 ac_cv_sys_largefile_LDFLAGS=no
30353 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
30354 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
30355 { $as_echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
30356 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
30357 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
30358 $as_echo_n "(cached) " >&6
30360 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
30361 ac_cv_sys_largefile_LIBS=no
30365 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
30366 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
30368 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30371 -D_FILE_OFFSET_BITS=*) ;;
30372 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
30373 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
30378 case "$CPPFLAGS" in
30379 '') CPPFLAGS="$ac_flag" ;;
30380 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
30388 '') CFLAGS="$ac_flag" ;;
30389 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
30394 case "$ac_cv_sys_largefile_LDFLAGS" in
30398 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
30399 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
30402 case "$ac_cv_sys_largefile_LIBS" in
30406 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
30407 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
30410 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
30411 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
30412 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30413 $as_echo_n "(cached) " >&6
30415 ac_cv_sys_file_offset_bits=no
30416 ac_cv_sys_file_offset_bits=64
30417 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30419 -D_FILE_OFFSET_BITS)
30420 ac_cv_sys_file_offset_bits=1 ;;
30421 -D_FILE_OFFSET_BITS=*)
30422 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30427 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30428 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
30429 if test "$ac_cv_sys_file_offset_bits" != no; then
30431 cat >>confdefs.h <<_ACEOF
30432 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30436 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
30437 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
30438 if test "${ac_cv_sys_largefile_source+set}" = set; then
30439 $as_echo_n "(cached) " >&6
30441 ac_cv_sys_largefile_source=no
30442 ac_cv_sys_largefile_source=1
30443 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30445 -D_LARGEFILE_SOURCE)
30446 ac_cv_sys_largefile_source=1 ;;
30447 -D_LARGEFILE_SOURCE=*)
30448 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30453 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
30454 $as_echo "$ac_cv_sys_largefile_source" >&6; }
30455 if test "$ac_cv_sys_largefile_source" != no; then
30457 cat >>confdefs.h <<_ACEOF
30458 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
30462 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
30463 $as_echo_n "checking for _LARGE_FILES... " >&6; }
30464 if test "${ac_cv_sys_large_files+set}" = set; then
30465 $as_echo_n "(cached) " >&6
30467 ac_cv_sys_large_files=no
30468 ac_cv_sys_large_files=1
30469 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
30472 ac_cv_sys_large_files=1 ;;
30474 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
30479 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30480 $as_echo "$ac_cv_sys_large_files" >&6; }
30481 if test "$ac_cv_sys_large_files" != no; then
30483 cat >>confdefs.h <<_ACEOF
30484 #define _LARGE_FILES $ac_cv_sys_large_files
30491 { $as_echo "$as_me:$LINENO: checking for X" >&5
30492 $as_echo_n "checking for X... " >&6; }
30495 # Check whether --with-x was given.
30496 if test "${with_x+set}" = set; then
30500 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30501 if test "x$with_x" = xno; then
30502 # The user explicitly disabled X.
30505 case $x_includes,$x_libraries in #(
30506 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
30507 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
30508 { (exit 1); exit 1; }; };; #(
30509 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30510 $as_echo_n "(cached) " >&6
30512 # One or both of the vars are not set, and there is no cached value.
30513 ac_x_includes=no ac_x_libraries=no
30514 rm -f -r conftest.dir
30515 if mkdir conftest.dir; then
30517 cat >Imakefile <<'_ACEOF'
30519 @echo incroot='${INCROOT}'
30521 @echo usrlibdir='${USRLIBDIR}'
30523 @echo libdir='${LIBDIR}'
30525 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30527 for ac_var in incroot usrlibdir libdir; do
30528 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30530 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30531 for ac_extension in a so sl dylib la dll; do
30532 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30533 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30534 ac_im_usrlibdir=$ac_im_libdir; break
30537 # Screen out bogus values from the imake configuration. They are
30538 # bogus both because they are the default anyway, and because
30539 # using them would break gcc on systems where it needs fixed includes.
30540 case $ac_im_incroot in
30541 /usr/include) ac_x_includes= ;;
30542 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30544 case $ac_im_usrlibdir in
30545 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30546 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30550 rm -f -r conftest.dir
30553 # Standard set of common directories for X headers.
30554 # Check X11 before X11Rn because it is often a symlink to the current release.
30566 /usr/local/X11/include
30567 /usr/local/X11R6/include
30568 /usr/local/X11R5/include
30569 /usr/local/X11R4/include
30571 /usr/local/include/X11
30572 /usr/local/include/X11R6
30573 /usr/local/include/X11R5
30574 /usr/local/include/X11R4
30578 /usr/XFree86/include/X11
30582 /usr/unsupported/include
30583 /usr/athena/include
30584 /usr/local/x11r5/include
30585 /usr/lpp/Xamples/include
30587 /usr/openwin/include
30588 /usr/openwin/share/include'
30590 if test "$ac_x_includes" = no; then
30591 # Guess where to find include files, by looking for Xlib.h.
30592 # First, try using that file with no special directory specified.
30593 cat >conftest.$ac_ext <<_ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h. */
30599 #include <X11/Xlib.h>
30601 if { (ac_try="$ac_cpp conftest.$ac_ext"
30602 case "(($ac_try" in
30603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604 *) ac_try_echo=$ac_try;;
30606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30607 $as_echo "$ac_try_echo") >&5
30608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30610 grep -v '^ *+' conftest.er1 >conftest.err
30612 cat conftest.err >&5
30613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); } >/dev/null && {
30615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30616 test ! -s conftest.err
30618 # We can compile using X headers with no special include directory.
30621 $as_echo "$as_me: failed program was:" >&5
30622 sed 's/^/| /' conftest.$ac_ext >&5
30624 for ac_dir in $ac_x_header_dirs; do
30625 if test -r "$ac_dir/X11/Xlib.h"; then
30626 ac_x_includes=$ac_dir
30632 rm -f conftest.err conftest.$ac_ext
30633 fi # $ac_x_includes = no
30635 if test "$ac_x_libraries" = no; then
30636 # Check for the libraries.
30637 # See if we find them without any special options.
30638 # Don't add to $LIBS permanently.
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30647 #include <X11/Xlib.h>
30656 rm -f conftest.$ac_objext conftest$ac_exeext
30657 if { (ac_try="$ac_link"
30658 case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30663 $as_echo "$ac_try_echo") >&5
30664 (eval "$ac_link") 2>conftest.er1
30666 grep -v '^ *+' conftest.er1 >conftest.err
30668 cat conftest.err >&5
30669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } && {
30671 test -z "$ac_c_werror_flag" ||
30672 test ! -s conftest.err
30673 } && test -s conftest$ac_exeext && {
30674 test "$cross_compiling" = yes ||
30675 $as_test_x conftest$ac_exeext
30678 # We can link X programs with no special library path.
30681 $as_echo "$as_me: failed program was:" >&5
30682 sed 's/^/| /' conftest.$ac_ext >&5
30685 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30687 # Don't even attempt the hair of trying to link an X program!
30688 for ac_extension in a so sl dylib la dll; do
30689 if test -r "$ac_dir/libX11.$ac_extension"; then
30690 ac_x_libraries=$ac_dir
30697 rm -rf conftest.dSYM
30698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30699 conftest$ac_exeext conftest.$ac_ext
30700 fi # $ac_x_libraries = no
30702 case $ac_x_includes,$ac_x_libraries in #(
30703 no,* | *,no | *\'*)
30704 # Didn't find X, or a directory has "'" in its name.
30705 ac_cv_have_x="have_x=no";; #(
30707 # Record where we found X for the cache.
30708 ac_cv_have_x="have_x=yes\
30709 ac_x_includes='$ac_x_includes'\
30710 ac_x_libraries='$ac_x_libraries'"
30716 eval "$ac_cv_have_x"
30719 if test "$have_x" != yes; then
30720 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
30721 $as_echo "$have_x" >&6; }
30724 # If each of the values was on the command line, it overrides each guess.
30725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30727 # Update the cache value to reflect the command line values.
30728 ac_cv_have_x="have_x=yes\
30729 ac_x_includes='$x_includes'\
30730 ac_x_libraries='$x_libraries'"
30731 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30732 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
30735 if test "$no_x" = yes; then
30736 # Not all programs may use this symbol, but it does not hurt to define it.
30738 cat >>confdefs.h <<\_ACEOF
30739 #define X_DISPLAY_MISSING 1
30742 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30744 if test -n "$x_includes"; then
30745 X_CFLAGS="$X_CFLAGS -I$x_includes"
30748 # It would also be nice to do this for all -L options, not just this one.
30749 if test -n "$x_libraries"; then
30750 X_LIBS="$X_LIBS -L$x_libraries"
30751 # For Solaris; some versions of Sun CC require a space after -R and
30752 # others require no space. Words are not sufficient . . . .
30753 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30754 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
30755 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30756 ac_xsave_c_werror_flag=$ac_c_werror_flag
30757 ac_c_werror_flag=yes
30758 cat >conftest.$ac_ext <<_ACEOF
30761 cat confdefs.h >>conftest.$ac_ext
30762 cat >>conftest.$ac_ext <<_ACEOF
30763 /* end confdefs.h. */
30773 rm -f conftest.$ac_objext conftest$ac_exeext
30774 if { (ac_try="$ac_link"
30775 case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30780 $as_echo "$ac_try_echo") >&5
30781 (eval "$ac_link") 2>conftest.er1
30783 grep -v '^ *+' conftest.er1 >conftest.err
30785 cat conftest.err >&5
30786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext && {
30791 test "$cross_compiling" = yes ||
30792 $as_test_x conftest$ac_exeext
30794 { $as_echo "$as_me:$LINENO: result: no" >&5
30795 $as_echo "no" >&6; }
30796 X_LIBS="$X_LIBS -R$x_libraries"
30798 $as_echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 LIBS="$ac_xsave_LIBS -R $x_libraries"
30802 cat >conftest.$ac_ext <<_ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h. */
30817 rm -f conftest.$ac_objext conftest$ac_exeext
30818 if { (ac_try="$ac_link"
30819 case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30824 $as_echo "$ac_try_echo") >&5
30825 (eval "$ac_link") 2>conftest.er1
30827 grep -v '^ *+' conftest.er1 >conftest.err
30829 cat conftest.err >&5
30830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); } && {
30832 test -z "$ac_c_werror_flag" ||
30833 test ! -s conftest.err
30834 } && test -s conftest$ac_exeext && {
30835 test "$cross_compiling" = yes ||
30836 $as_test_x conftest$ac_exeext
30838 { $as_echo "$as_me:$LINENO: result: yes" >&5
30839 $as_echo "yes" >&6; }
30840 X_LIBS="$X_LIBS -R $x_libraries"
30842 $as_echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30845 { $as_echo "$as_me:$LINENO: result: neither works" >&5
30846 $as_echo "neither works" >&6; }
30849 rm -rf conftest.dSYM
30850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30851 conftest$ac_exeext conftest.$ac_ext
30854 rm -rf conftest.dSYM
30855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30856 conftest$ac_exeext conftest.$ac_ext
30857 ac_c_werror_flag=$ac_xsave_c_werror_flag
30858 LIBS=$ac_xsave_LIBS
30861 # Check for system-dependent libraries X programs must link with.
30862 # Do this before checking for the system-independent R6 libraries
30863 # (-lICE), since we may need -lsocket or whatever for X linking.
30865 if test "$ISC" = yes; then
30866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30868 # Martyn Johnson says this is needed for Ultrix, if the X
30869 # libraries were built with DECnet support. And Karl Berry says
30870 # the Alpha needs dnet_stub (dnet does not exist).
30871 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30879 /* Override any GCC internal prototype to avoid an error.
30880 Use char because int might match the return type of a GCC
30881 builtin and then its argument prototype would still apply. */
30885 char XOpenDisplay ();
30889 return XOpenDisplay ();
30894 rm -f conftest.$ac_objext conftest$ac_exeext
30895 if { (ac_try="$ac_link"
30896 case "(($ac_try" in
30897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30898 *) ac_try_echo=$ac_try;;
30900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30901 $as_echo "$ac_try_echo") >&5
30902 (eval "$ac_link") 2>conftest.er1
30904 grep -v '^ *+' conftest.er1 >conftest.err
30906 cat conftest.err >&5
30907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } && {
30909 test -z "$ac_c_werror_flag" ||
30910 test ! -s conftest.err
30911 } && test -s conftest$ac_exeext && {
30912 test "$cross_compiling" = yes ||
30913 $as_test_x conftest$ac_exeext
30917 $as_echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30920 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30921 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
30922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30923 $as_echo_n "(cached) " >&6
30925 ac_check_lib_save_LIBS=$LIBS
30926 LIBS="-ldnet $LIBS"
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30934 /* Override any GCC internal prototype to avoid an error.
30935 Use char because int might match the return type of a GCC
30936 builtin and then its argument prototype would still apply. */
30944 return dnet_ntoa ();
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (ac_try="$ac_link"
30951 case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30956 $as_echo "$ac_try_echo") >&5
30957 (eval "$ac_link") 2>conftest.er1
30959 grep -v '^ *+' conftest.er1 >conftest.err
30961 cat conftest.err >&5
30962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } && {
30964 test -z "$ac_c_werror_flag" ||
30965 test ! -s conftest.err
30966 } && test -s conftest$ac_exeext && {
30967 test "$cross_compiling" = yes ||
30968 $as_test_x conftest$ac_exeext
30970 ac_cv_lib_dnet_dnet_ntoa=yes
30972 $as_echo "$as_me: failed program was:" >&5
30973 sed 's/^/| /' conftest.$ac_ext >&5
30975 ac_cv_lib_dnet_dnet_ntoa=no
30978 rm -rf conftest.dSYM
30979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30980 conftest$ac_exeext conftest.$ac_ext
30981 LIBS=$ac_check_lib_save_LIBS
30983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30984 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30985 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
30986 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30989 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30990 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30991 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30992 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30993 $as_echo_n "(cached) " >&6
30995 ac_check_lib_save_LIBS=$LIBS
30996 LIBS="-ldnet_stub $LIBS"
30997 cat >conftest.$ac_ext <<_ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31004 /* Override any GCC internal prototype to avoid an error.
31005 Use char because int might match the return type of a GCC
31006 builtin and then its argument prototype would still apply. */
31014 return dnet_ntoa ();
31019 rm -f conftest.$ac_objext conftest$ac_exeext
31020 if { (ac_try="$ac_link"
31021 case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31026 $as_echo "$ac_try_echo") >&5
31027 (eval "$ac_link") 2>conftest.er1
31029 grep -v '^ *+' conftest.er1 >conftest.err
31031 cat conftest.err >&5
31032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); } && {
31034 test -z "$ac_c_werror_flag" ||
31035 test ! -s conftest.err
31036 } && test -s conftest$ac_exeext && {
31037 test "$cross_compiling" = yes ||
31038 $as_test_x conftest$ac_exeext
31040 ac_cv_lib_dnet_stub_dnet_ntoa=yes
31042 $as_echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31045 ac_cv_lib_dnet_stub_dnet_ntoa=no
31048 rm -rf conftest.dSYM
31049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31050 conftest$ac_exeext conftest.$ac_ext
31051 LIBS=$ac_check_lib_save_LIBS
31053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31054 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
31055 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
31056 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31062 rm -rf conftest.dSYM
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064 conftest$ac_exeext conftest.$ac_ext
31065 LIBS="$ac_xsave_LIBS"
31067 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31068 # to get the SysV transport functions.
31069 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31071 # The nsl library prevents programs from opening the X display
31072 # on Irix 5.2, according to T.E. Dickey.
31073 # The functions gethostbyname, getservbyname, and inet_addr are
31074 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31075 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
31076 $as_echo_n "checking for gethostbyname... " >&6; }
31077 if test "${ac_cv_func_gethostbyname+set}" = set; then
31078 $as_echo_n "(cached) " >&6
31080 cat >conftest.$ac_ext <<_ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h. */
31086 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31088 #define gethostbyname innocuous_gethostbyname
31090 /* System header to define __stub macros and hopefully few prototypes,
31091 which can conflict with char gethostbyname (); below.
31092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31093 <limits.h> exists even on freestanding compilers. */
31096 # include <limits.h>
31098 # include <assert.h>
31101 #undef gethostbyname
31103 /* Override any GCC internal prototype to avoid an error.
31104 Use char because int might match the return type of a GCC
31105 builtin and then its argument prototype would still apply. */
31109 char gethostbyname ();
31110 /* The GNU C library defines this for functions which it implements
31111 to always fail with ENOSYS. Some functions are actually named
31112 something starting with __ and the normal name is an alias. */
31113 #if defined __stub_gethostbyname || defined __stub___gethostbyname
31120 return gethostbyname ();
31125 rm -f conftest.$ac_objext conftest$ac_exeext
31126 if { (ac_try="$ac_link"
31127 case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31132 $as_echo "$ac_try_echo") >&5
31133 (eval "$ac_link") 2>conftest.er1
31135 grep -v '^ *+' conftest.er1 >conftest.err
31137 cat conftest.err >&5
31138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
31142 } && test -s conftest$ac_exeext && {
31143 test "$cross_compiling" = yes ||
31144 $as_test_x conftest$ac_exeext
31146 ac_cv_func_gethostbyname=yes
31148 $as_echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31151 ac_cv_func_gethostbyname=no
31154 rm -rf conftest.dSYM
31155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31156 conftest$ac_exeext conftest.$ac_ext
31158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31159 $as_echo "$ac_cv_func_gethostbyname" >&6; }
31161 if test $ac_cv_func_gethostbyname = no; then
31162 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31163 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
31164 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31165 $as_echo_n "(cached) " >&6
31167 ac_check_lib_save_LIBS=$LIBS
31169 cat >conftest.$ac_ext <<_ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h. */
31176 /* Override any GCC internal prototype to avoid an error.
31177 Use char because int might match the return type of a GCC
31178 builtin and then its argument prototype would still apply. */
31182 char gethostbyname ();
31186 return gethostbyname ();
31191 rm -f conftest.$ac_objext 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31198 $as_echo "$ac_try_echo") >&5
31199 (eval "$ac_link") 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } && {
31206 test -z "$ac_c_werror_flag" ||
31207 test ! -s conftest.err
31208 } && test -s conftest$ac_exeext && {
31209 test "$cross_compiling" = yes ||
31210 $as_test_x conftest$ac_exeext
31212 ac_cv_lib_nsl_gethostbyname=yes
31214 $as_echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31217 ac_cv_lib_nsl_gethostbyname=no
31220 rm -rf conftest.dSYM
31221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31222 conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31226 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
31227 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
31228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31231 if test $ac_cv_lib_nsl_gethostbyname = no; then
31232 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31233 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
31234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31235 $as_echo_n "(cached) " >&6
31237 ac_check_lib_save_LIBS=$LIBS
31239 cat >conftest.$ac_ext <<_ACEOF
31242 cat confdefs.h >>conftest.$ac_ext
31243 cat >>conftest.$ac_ext <<_ACEOF
31244 /* end confdefs.h. */
31246 /* Override any GCC internal prototype to avoid an error.
31247 Use char because int might match the return type of a GCC
31248 builtin and then its argument prototype would still apply. */
31252 char gethostbyname ();
31256 return gethostbyname ();
31261 rm -f conftest.$ac_objext conftest$ac_exeext
31262 if { (ac_try="$ac_link"
31263 case "(($ac_try" in
31264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265 *) ac_try_echo=$ac_try;;
31267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31268 $as_echo "$ac_try_echo") >&5
31269 (eval "$ac_link") 2>conftest.er1
31271 grep -v '^ *+' conftest.er1 >conftest.err
31273 cat conftest.err >&5
31274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); } && {
31276 test -z "$ac_c_werror_flag" ||
31277 test ! -s conftest.err
31278 } && test -s conftest$ac_exeext && {
31279 test "$cross_compiling" = yes ||
31280 $as_test_x conftest$ac_exeext
31282 ac_cv_lib_bsd_gethostbyname=yes
31284 $as_echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31287 ac_cv_lib_bsd_gethostbyname=no
31290 rm -rf conftest.dSYM
31291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31292 conftest$ac_exeext conftest.$ac_ext
31293 LIBS=$ac_check_lib_save_LIBS
31295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31296 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
31297 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
31298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31304 # lieder@skyler.mavd.honeywell.com says without -lsocket,
31305 # socket/setsockopt and other routines are undefined under SCO ODT
31306 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31307 # on later versions), says Simon Leinen: it contains gethostby*
31308 # variants that don't use the name server (or something). -lsocket
31309 # must be given before -lnsl if both are needed. We assume that
31310 # if connect needs -lnsl, so does gethostbyname.
31311 { $as_echo "$as_me:$LINENO: checking for connect" >&5
31312 $as_echo_n "checking for connect... " >&6; }
31313 if test "${ac_cv_func_connect+set}" = set; then
31314 $as_echo_n "(cached) " >&6
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31322 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31324 #define connect innocuous_connect
31326 /* System header to define __stub macros and hopefully few prototypes,
31327 which can conflict with char connect (); below.
31328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31329 <limits.h> exists even on freestanding compilers. */
31332 # include <limits.h>
31334 # include <assert.h>
31339 /* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31346 /* The GNU C library defines this for functions which it implements
31347 to always fail with ENOSYS. Some functions are actually named
31348 something starting with __ and the normal name is an alias. */
31349 #if defined __stub_connect || defined __stub___connect
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31368 $as_echo "$ac_try_echo") >&5
31369 (eval "$ac_link") 2>conftest.er1
31371 grep -v '^ *+' conftest.er1 >conftest.err
31373 cat conftest.err >&5
31374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } && {
31376 test -z "$ac_c_werror_flag" ||
31377 test ! -s conftest.err
31378 } && test -s conftest$ac_exeext && {
31379 test "$cross_compiling" = yes ||
31380 $as_test_x conftest$ac_exeext
31382 ac_cv_func_connect=yes
31384 $as_echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31387 ac_cv_func_connect=no
31390 rm -rf conftest.dSYM
31391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31392 conftest$ac_exeext conftest.$ac_ext
31394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31395 $as_echo "$ac_cv_func_connect" >&6; }
31397 if test $ac_cv_func_connect = no; then
31398 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31399 $as_echo_n "checking for connect in -lsocket... " >&6; }
31400 if test "${ac_cv_lib_socket_connect+set}" = set; then
31401 $as_echo_n "(cached) " >&6
31403 ac_check_lib_save_LIBS=$LIBS
31404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31405 cat >conftest.$ac_ext <<_ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31412 /* Override any GCC internal prototype to avoid an error.
31413 Use char because int might match the return type of a GCC
31414 builtin and then its argument prototype would still apply. */
31427 rm -f conftest.$ac_objext conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31434 $as_echo "$ac_try_echo") >&5
31435 (eval "$ac_link") 2>conftest.er1
31437 grep -v '^ *+' conftest.er1 >conftest.err
31439 cat conftest.err >&5
31440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } && {
31442 test -z "$ac_c_werror_flag" ||
31443 test ! -s conftest.err
31444 } && test -s conftest$ac_exeext && {
31445 test "$cross_compiling" = yes ||
31446 $as_test_x conftest$ac_exeext
31448 ac_cv_lib_socket_connect=yes
31450 $as_echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_lib_socket_connect=no
31456 rm -rf conftest.dSYM
31457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31458 conftest$ac_exeext conftest.$ac_ext
31459 LIBS=$ac_check_lib_save_LIBS
31461 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31462 $as_echo "$ac_cv_lib_socket_connect" >&6; }
31463 if test "x$ac_cv_lib_socket_connect" = x""yes; then
31464 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31469 # Guillermo Gomez says -lposix is necessary on A/UX.
31470 { $as_echo "$as_me:$LINENO: checking for remove" >&5
31471 $as_echo_n "checking for remove... " >&6; }
31472 if test "${ac_cv_func_remove+set}" = set; then
31473 $as_echo_n "(cached) " >&6
31475 cat >conftest.$ac_ext <<_ACEOF
31478 cat confdefs.h >>conftest.$ac_ext
31479 cat >>conftest.$ac_ext <<_ACEOF
31480 /* end confdefs.h. */
31481 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31483 #define remove innocuous_remove
31485 /* System header to define __stub macros and hopefully few prototypes,
31486 which can conflict with char remove (); below.
31487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31488 <limits.h> exists even on freestanding compilers. */
31491 # include <limits.h>
31493 # include <assert.h>
31498 /* Override any GCC internal prototype to avoid an error.
31499 Use char because int might match the return type of a GCC
31500 builtin and then its argument prototype would still apply. */
31505 /* The GNU C library defines this for functions which it implements
31506 to always fail with ENOSYS. Some functions are actually named
31507 something starting with __ and the normal name is an alias. */
31508 #if defined __stub_remove || defined __stub___remove
31520 rm -f conftest.$ac_objext conftest$ac_exeext
31521 if { (ac_try="$ac_link"
31522 case "(($ac_try" in
31523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524 *) ac_try_echo=$ac_try;;
31526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31527 $as_echo "$ac_try_echo") >&5
31528 (eval "$ac_link") 2>conftest.er1
31530 grep -v '^ *+' conftest.er1 >conftest.err
31532 cat conftest.err >&5
31533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } && {
31535 test -z "$ac_c_werror_flag" ||
31536 test ! -s conftest.err
31537 } && test -s conftest$ac_exeext && {
31538 test "$cross_compiling" = yes ||
31539 $as_test_x conftest$ac_exeext
31541 ac_cv_func_remove=yes
31543 $as_echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31546 ac_cv_func_remove=no
31549 rm -rf conftest.dSYM
31550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31551 conftest$ac_exeext conftest.$ac_ext
31553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31554 $as_echo "$ac_cv_func_remove" >&6; }
31556 if test $ac_cv_func_remove = no; then
31557 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31558 $as_echo_n "checking for remove in -lposix... " >&6; }
31559 if test "${ac_cv_lib_posix_remove+set}" = set; then
31560 $as_echo_n "(cached) " >&6
31562 ac_check_lib_save_LIBS=$LIBS
31563 LIBS="-lposix $LIBS"
31564 cat >conftest.$ac_ext <<_ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31571 /* Override any GCC internal prototype to avoid an error.
31572 Use char because int might match the return type of a GCC
31573 builtin and then its argument prototype would still apply. */
31586 rm -f conftest.$ac_objext conftest$ac_exeext
31587 if { (ac_try="$ac_link"
31588 case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31593 $as_echo "$ac_try_echo") >&5
31594 (eval "$ac_link") 2>conftest.er1
31596 grep -v '^ *+' conftest.er1 >conftest.err
31598 cat conftest.err >&5
31599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); } && {
31601 test -z "$ac_c_werror_flag" ||
31602 test ! -s conftest.err
31603 } && test -s conftest$ac_exeext && {
31604 test "$cross_compiling" = yes ||
31605 $as_test_x conftest$ac_exeext
31607 ac_cv_lib_posix_remove=yes
31609 $as_echo "$as_me: failed program was:" >&5
31610 sed 's/^/| /' conftest.$ac_ext >&5
31612 ac_cv_lib_posix_remove=no
31615 rm -rf conftest.dSYM
31616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31617 conftest$ac_exeext conftest.$ac_ext
31618 LIBS=$ac_check_lib_save_LIBS
31620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31621 $as_echo "$ac_cv_lib_posix_remove" >&6; }
31622 if test "x$ac_cv_lib_posix_remove" = x""yes; then
31623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31628 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31629 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
31630 $as_echo_n "checking for shmat... " >&6; }
31631 if test "${ac_cv_func_shmat+set}" = set; then
31632 $as_echo_n "(cached) " >&6
31634 cat >conftest.$ac_ext <<_ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h. */
31640 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31642 #define shmat innocuous_shmat
31644 /* System header to define __stub macros and hopefully few prototypes,
31645 which can conflict with char shmat (); below.
31646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31647 <limits.h> exists even on freestanding compilers. */
31650 # include <limits.h>
31652 # include <assert.h>
31657 /* Override any GCC internal prototype to avoid an error.
31658 Use char because int might match the return type of a GCC
31659 builtin and then its argument prototype would still apply. */
31664 /* The GNU C library defines this for functions which it implements
31665 to always fail with ENOSYS. Some functions are actually named
31666 something starting with __ and the normal name is an alias. */
31667 #if defined __stub_shmat || defined __stub___shmat
31679 rm -f conftest.$ac_objext conftest$ac_exeext
31680 if { (ac_try="$ac_link"
31681 case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31686 $as_echo "$ac_try_echo") >&5
31687 (eval "$ac_link") 2>conftest.er1
31689 grep -v '^ *+' conftest.er1 >conftest.err
31691 cat conftest.err >&5
31692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } && {
31694 test -z "$ac_c_werror_flag" ||
31695 test ! -s conftest.err
31696 } && test -s conftest$ac_exeext && {
31697 test "$cross_compiling" = yes ||
31698 $as_test_x conftest$ac_exeext
31700 ac_cv_func_shmat=yes
31702 $as_echo "$as_me: failed program was:" >&5
31703 sed 's/^/| /' conftest.$ac_ext >&5
31705 ac_cv_func_shmat=no
31708 rm -rf conftest.dSYM
31709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31710 conftest$ac_exeext conftest.$ac_ext
31712 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31713 $as_echo "$ac_cv_func_shmat" >&6; }
31715 if test $ac_cv_func_shmat = no; then
31716 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31717 $as_echo_n "checking for shmat in -lipc... " >&6; }
31718 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31719 $as_echo_n "(cached) " >&6
31721 ac_check_lib_save_LIBS=$LIBS
31723 cat >conftest.$ac_ext <<_ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h. */
31730 /* Override any GCC internal prototype to avoid an error.
31731 Use char because int might match the return type of a GCC
31732 builtin and then its argument prototype would still apply. */
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (ac_try="$ac_link"
31747 case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31752 $as_echo "$ac_try_echo") >&5
31753 (eval "$ac_link") 2>conftest.er1
31755 grep -v '^ *+' conftest.er1 >conftest.err
31757 cat conftest.err >&5
31758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); } && {
31760 test -z "$ac_c_werror_flag" ||
31761 test ! -s conftest.err
31762 } && test -s conftest$ac_exeext && {
31763 test "$cross_compiling" = yes ||
31764 $as_test_x conftest$ac_exeext
31766 ac_cv_lib_ipc_shmat=yes
31768 $as_echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31771 ac_cv_lib_ipc_shmat=no
31774 rm -rf conftest.dSYM
31775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31776 conftest$ac_exeext conftest.$ac_ext
31777 LIBS=$ac_check_lib_save_LIBS
31779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31780 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
31781 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
31782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31788 # Check for libraries that X11R6 Xt/Xaw programs need.
31789 ac_save_LDFLAGS=$LDFLAGS
31790 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31791 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31792 # check for ICE first), but we must link in the order -lSM -lICE or
31793 # we get undefined symbols. So assume we have SM if we have ICE.
31794 # These have to be linked with before -lX11, unlike the other
31795 # libraries we check for below, so use a different variable.
31796 # John Interrante, Karl Berry
31797 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31798 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
31799 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31800 $as_echo_n "(cached) " >&6
31802 ac_check_lib_save_LIBS=$LIBS
31803 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31811 /* Override any GCC internal prototype to avoid an error.
31812 Use char because int might match the return type of a GCC
31813 builtin and then its argument prototype would still apply. */
31817 char IceConnectionNumber ();
31821 return IceConnectionNumber ();
31826 rm -f conftest.$ac_objext conftest$ac_exeext
31827 if { (ac_try="$ac_link"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31833 $as_echo "$ac_try_echo") >&5
31834 (eval "$ac_link") 2>conftest.er1
31836 grep -v '^ *+' conftest.er1 >conftest.err
31838 cat conftest.err >&5
31839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } && {
31841 test -z "$ac_c_werror_flag" ||
31842 test ! -s conftest.err
31843 } && test -s conftest$ac_exeext && {
31844 test "$cross_compiling" = yes ||
31845 $as_test_x conftest$ac_exeext
31847 ac_cv_lib_ICE_IceConnectionNumber=yes
31849 $as_echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31852 ac_cv_lib_ICE_IceConnectionNumber=no
31855 rm -rf conftest.dSYM
31856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31857 conftest$ac_exeext conftest.$ac_ext
31858 LIBS=$ac_check_lib_save_LIBS
31860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31861 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31862 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
31863 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31866 LDFLAGS=$ac_save_LDFLAGS
31932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31935 $as_echo_n "checking for $ac_header... " >&6; }
31936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31937 $as_echo_n "(cached) " >&6
31939 ac_res=`eval 'as_val=${'$as_ac_Header'}
31940 $as_echo "$as_val"'`
31941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31942 $as_echo "$ac_res" >&6; }
31944 # Is the header compilable?
31945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31946 $as_echo_n "checking $ac_header usability... " >&6; }
31947 cat >conftest.$ac_ext <<_ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h. */
31953 $ac_includes_default
31954 #include <$ac_header>
31956 rm -f conftest.$ac_objext
31957 if { (ac_try="$ac_compile"
31958 case "(($ac_try" in
31959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31960 *) ac_try_echo=$ac_try;;
31962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31963 $as_echo "$ac_try_echo") >&5
31964 (eval "$ac_compile") 2>conftest.er1
31966 grep -v '^ *+' conftest.er1 >conftest.err
31968 cat conftest.err >&5
31969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } && {
31971 test -z "$ac_c_werror_flag" ||
31972 test ! -s conftest.err
31973 } && test -s conftest.$ac_objext; then
31974 ac_header_compiler=yes
31976 $as_echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.$ac_ext >&5
31979 ac_header_compiler=no
31982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31984 $as_echo "$ac_header_compiler" >&6; }
31986 # Is the header present?
31987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31988 $as_echo_n "checking $ac_header presence... " >&6; }
31989 cat >conftest.$ac_ext <<_ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h. */
31995 #include <$ac_header>
31997 if { (ac_try="$ac_cpp conftest.$ac_ext"
31998 case "(($ac_try" in
31999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000 *) ac_try_echo=$ac_try;;
32002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32003 $as_echo "$ac_try_echo") >&5
32004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } >/dev/null && {
32011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32012 test ! -s conftest.err
32014 ac_header_preproc=yes
32016 $as_echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32019 ac_header_preproc=no
32022 rm -f conftest.err conftest.$ac_ext
32023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32024 $as_echo "$ac_header_preproc" >&6; }
32026 # So? What about this header?
32027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32033 ac_header_preproc=yes
32036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32039 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32043 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32052 $as_echo_n "checking for $ac_header... " >&6; }
32053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32054 $as_echo_n "(cached) " >&6
32056 eval "$as_ac_Header=\$ac_header_preproc"
32058 ac_res=`eval 'as_val=${'$as_ac_Header'}
32059 $as_echo "$as_val"'`
32060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32061 $as_echo "$ac_res" >&6; }
32064 as_val=`eval 'as_val=${'$as_ac_Header'}
32065 $as_echo "$as_val"'`
32066 if test "x$as_val" = x""yes; then
32067 cat >>confdefs.h <<_ACEOF
32068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32075 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32076 $as_echo_n "checking for ANSI C header files... " >&6; }
32077 if test "${ac_cv_header_stdc+set}" = set; then
32078 $as_echo_n "(cached) " >&6
32080 cat >conftest.$ac_ext <<_ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h. */
32086 #include <stdlib.h>
32087 #include <stdarg.h>
32088 #include <string.h>
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32106 $as_echo "$ac_try_echo") >&5
32107 (eval "$ac_compile") 2>conftest.er1
32109 grep -v '^ *+' conftest.er1 >conftest.err
32111 cat conftest.err >&5
32112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); } && {
32114 test -z "$ac_c_werror_flag" ||
32115 test ! -s conftest.err
32116 } && test -s conftest.$ac_objext; then
32117 ac_cv_header_stdc=yes
32119 $as_echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32122 ac_cv_header_stdc=no
32125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32127 if test $ac_cv_header_stdc = yes; then
32128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32129 cat >conftest.$ac_ext <<_ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32135 #include <string.h>
32138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32139 $EGREP "memchr" >/dev/null 2>&1; then
32142 ac_cv_header_stdc=no
32148 if test $ac_cv_header_stdc = yes; then
32149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32150 cat >conftest.$ac_ext <<_ACEOF
32153 cat confdefs.h >>conftest.$ac_ext
32154 cat >>conftest.$ac_ext <<_ACEOF
32155 /* end confdefs.h. */
32156 #include <stdlib.h>
32159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32160 $EGREP "free" >/dev/null 2>&1; then
32163 ac_cv_header_stdc=no
32169 if test $ac_cv_header_stdc = yes; then
32170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32171 if test "$cross_compiling" = yes; then
32174 cat >conftest.$ac_ext <<_ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h. */
32181 #include <stdlib.h>
32182 #if ((' ' & 0x0FF) == 0x020)
32183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32186 # define ISLOWER(c) \
32187 (('a' <= (c) && (c) <= 'i') \
32188 || ('j' <= (c) && (c) <= 'r') \
32189 || ('s' <= (c) && (c) <= 'z'))
32190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32198 for (i = 0; i < 256; i++)
32199 if (XOR (islower (i), ISLOWER (i))
32200 || toupper (i) != TOUPPER (i))
32205 rm -f conftest$ac_exeext
32206 if { (ac_try="$ac_link"
32207 case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32212 $as_echo "$ac_try_echo") >&5
32213 (eval "$ac_link") 2>&5
32215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32217 { (case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32222 $as_echo "$ac_try_echo") >&5
32223 (eval "$ac_try") 2>&5
32225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32229 $as_echo "$as_me: program exited with status $ac_status" >&5
32230 $as_echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32233 ( exit $ac_status )
32234 ac_cv_header_stdc=no
32236 rm -rf conftest.dSYM
32237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32244 $as_echo "$ac_cv_header_stdc" >&6; }
32245 if test $ac_cv_header_stdc = yes; then
32247 cat >>confdefs.h <<\_ACEOF
32248 #define STDC_HEADERS 1
32253 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
32254 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
32255 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
32256 $as_echo_n "(cached) " >&6
32258 cat >conftest.$ac_ext <<_ACEOF
32261 cat confdefs.h >>conftest.$ac_ext
32262 cat >>conftest.$ac_ext <<_ACEOF
32263 /* end confdefs.h. */
32264 #include <sys/types.h>
32268 return makedev(0, 0);
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32280 $as_echo "$ac_try_echo") >&5
32281 (eval "$ac_link") 2>conftest.er1
32283 grep -v '^ *+' conftest.er1 >conftest.err
32285 cat conftest.err >&5
32286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } && {
32288 test -z "$ac_c_werror_flag" ||
32289 test ! -s conftest.err
32290 } && test -s conftest$ac_exeext && {
32291 test "$cross_compiling" = yes ||
32292 $as_test_x conftest$ac_exeext
32294 ac_cv_header_sys_types_h_makedev=yes
32296 $as_echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 ac_cv_header_sys_types_h_makedev=no
32302 rm -rf conftest.dSYM
32303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32304 conftest$ac_exeext conftest.$ac_ext
32307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
32308 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
32310 if test $ac_cv_header_sys_types_h_makedev = no; then
32311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32312 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32313 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32314 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32315 $as_echo_n "(cached) " >&6
32317 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32318 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32320 # Is the header compilable?
32321 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
32322 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
32323 cat >conftest.$ac_ext <<_ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h. */
32329 $ac_includes_default
32330 #include <sys/mkdev.h>
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32339 $as_echo "$ac_try_echo") >&5
32340 (eval "$ac_compile") 2>conftest.er1
32342 grep -v '^ *+' conftest.er1 >conftest.err
32344 cat conftest.err >&5
32345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); } && {
32347 test -z "$ac_c_werror_flag" ||
32348 test ! -s conftest.err
32349 } && test -s conftest.$ac_objext; then
32350 ac_header_compiler=yes
32352 $as_echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32355 ac_header_compiler=no
32358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32359 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32360 $as_echo "$ac_header_compiler" >&6; }
32362 # Is the header present?
32363 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
32364 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
32365 cat >conftest.$ac_ext <<_ACEOF
32368 cat confdefs.h >>conftest.$ac_ext
32369 cat >>conftest.$ac_ext <<_ACEOF
32370 /* end confdefs.h. */
32371 #include <sys/mkdev.h>
32373 if { (ac_try="$ac_cpp conftest.$ac_ext"
32374 case "(($ac_try" in
32375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32379 $as_echo "$ac_try_echo") >&5
32380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32382 grep -v '^ *+' conftest.er1 >conftest.err
32384 cat conftest.err >&5
32385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); } >/dev/null && {
32387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32388 test ! -s conftest.err
32390 ac_header_preproc=yes
32392 $as_echo "$as_me: failed program was:" >&5
32393 sed 's/^/| /' conftest.$ac_ext >&5
32395 ac_header_preproc=no
32398 rm -f conftest.err conftest.$ac_ext
32399 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32400 $as_echo "$ac_header_preproc" >&6; }
32402 # So? What about this header?
32403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32405 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32406 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32407 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
32408 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
32409 ac_header_preproc=yes
32412 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
32413 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
32414 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
32415 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
32416 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
32417 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
32418 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
32419 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32420 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
32421 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
32422 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
32423 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
32427 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
32428 $as_echo_n "checking for sys/mkdev.h... " >&6; }
32429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
32430 $as_echo_n "(cached) " >&6
32432 ac_cv_header_sys_mkdev_h=$ac_header_preproc
32434 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
32435 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
32438 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
32440 cat >>confdefs.h <<\_ACEOF
32441 #define MAJOR_IN_MKDEV 1
32448 if test $ac_cv_header_sys_mkdev_h = no; then
32449 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32450 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32451 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32453 $as_echo_n "(cached) " >&6
32455 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32456 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32458 # Is the header compilable?
32459 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
32460 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
32461 cat >conftest.$ac_ext <<_ACEOF
32464 cat confdefs.h >>conftest.$ac_ext
32465 cat >>conftest.$ac_ext <<_ACEOF
32466 /* end confdefs.h. */
32467 $ac_includes_default
32468 #include <sys/sysmacros.h>
32470 rm -f conftest.$ac_objext
32471 if { (ac_try="$ac_compile"
32472 case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32477 $as_echo "$ac_try_echo") >&5
32478 (eval "$ac_compile") 2>conftest.er1
32480 grep -v '^ *+' conftest.er1 >conftest.err
32482 cat conftest.err >&5
32483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } && {
32485 test -z "$ac_c_werror_flag" ||
32486 test ! -s conftest.err
32487 } && test -s conftest.$ac_objext; then
32488 ac_header_compiler=yes
32490 $as_echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32493 ac_header_compiler=no
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32498 $as_echo "$ac_header_compiler" >&6; }
32500 # Is the header present?
32501 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
32502 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
32503 cat >conftest.$ac_ext <<_ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h. */
32509 #include <sys/sysmacros.h>
32511 if { (ac_try="$ac_cpp conftest.$ac_ext"
32512 case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32517 $as_echo "$ac_try_echo") >&5
32518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32520 grep -v '^ *+' conftest.er1 >conftest.err
32522 cat conftest.err >&5
32523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); } >/dev/null && {
32525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32526 test ! -s conftest.err
32528 ac_header_preproc=yes
32530 $as_echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32533 ac_header_preproc=no
32536 rm -f conftest.err conftest.$ac_ext
32537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32538 $as_echo "$ac_header_preproc" >&6; }
32540 # So? What about this header?
32541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32543 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
32544 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32545 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
32546 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
32547 ac_header_preproc=yes
32550 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
32551 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
32552 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
32553 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
32554 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
32555 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
32556 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
32557 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
32558 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
32559 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
32560 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
32561 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
32565 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
32566 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
32567 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
32568 $as_echo_n "(cached) " >&6
32570 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
32572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
32573 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
32576 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
32578 cat >>confdefs.h <<\_ACEOF
32579 #define MAJOR_IN_SYSMACROS 1
32593 ac_header_dirent=no
32594 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
32595 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
32596 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
32597 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
32598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32599 $as_echo_n "(cached) " >&6
32601 cat >conftest.$ac_ext <<_ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h. */
32607 #include <sys/types.h>
32619 rm -f conftest.$ac_objext
32620 if { (ac_try="$ac_compile"
32621 case "(($ac_try" in
32622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623 *) ac_try_echo=$ac_try;;
32625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32626 $as_echo "$ac_try_echo") >&5
32627 (eval "$ac_compile") 2>conftest.er1
32629 grep -v '^ *+' conftest.er1 >conftest.err
32631 cat conftest.err >&5
32632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } && {
32634 test -z "$ac_c_werror_flag" ||
32635 test ! -s conftest.err
32636 } && test -s conftest.$ac_objext; then
32637 eval "$as_ac_Header=yes"
32639 $as_echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32642 eval "$as_ac_Header=no"
32645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32647 ac_res=`eval 'as_val=${'$as_ac_Header'}
32648 $as_echo "$as_val"'`
32649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32650 $as_echo "$ac_res" >&6; }
32651 as_val=`eval 'as_val=${'$as_ac_Header'}
32652 $as_echo "$as_val"'`
32653 if test "x$as_val" = x""yes; then
32654 cat >>confdefs.h <<_ACEOF
32655 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
32658 ac_header_dirent=$ac_hdr; break
32662 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
32663 if test $ac_header_dirent = dirent.h; then
32664 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32665 $as_echo_n "checking for library containing opendir... " >&6; }
32666 if test "${ac_cv_search_opendir+set}" = set; then
32667 $as_echo_n "(cached) " >&6
32669 ac_func_search_save_LIBS=$LIBS
32670 cat >conftest.$ac_ext <<_ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h. */
32677 /* Override any GCC internal prototype to avoid an error.
32678 Use char because int might match the return type of a GCC
32679 builtin and then its argument prototype would still apply. */
32692 for ac_lib in '' dir; do
32693 if test -z "$ac_lib"; then
32694 ac_res="none required"
32697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32699 rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703 *) ac_try_echo=$ac_try;;
32705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32706 $as_echo "$ac_try_echo") >&5
32707 (eval "$ac_link") 2>conftest.er1
32709 grep -v '^ *+' conftest.er1 >conftest.err
32711 cat conftest.err >&5
32712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); } && {
32714 test -z "$ac_c_werror_flag" ||
32715 test ! -s conftest.err
32716 } && test -s conftest$ac_exeext && {
32717 test "$cross_compiling" = yes ||
32718 $as_test_x conftest$ac_exeext
32720 ac_cv_search_opendir=$ac_res
32722 $as_echo "$as_me: failed program was:" >&5
32723 sed 's/^/| /' conftest.$ac_ext >&5
32728 rm -rf conftest.dSYM
32729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32731 if test "${ac_cv_search_opendir+set}" = set; then
32735 if test "${ac_cv_search_opendir+set}" = set; then
32738 ac_cv_search_opendir=no
32740 rm conftest.$ac_ext
32741 LIBS=$ac_func_search_save_LIBS
32743 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32744 $as_echo "$ac_cv_search_opendir" >&6; }
32745 ac_res=$ac_cv_search_opendir
32746 if test "$ac_res" != no; then
32747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32752 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
32753 $as_echo_n "checking for library containing opendir... " >&6; }
32754 if test "${ac_cv_search_opendir+set}" = set; then
32755 $as_echo_n "(cached) " >&6
32757 ac_func_search_save_LIBS=$LIBS
32758 cat >conftest.$ac_ext <<_ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h. */
32765 /* Override any GCC internal prototype to avoid an error.
32766 Use char because int might match the return type of a GCC
32767 builtin and then its argument prototype would still apply. */
32780 for ac_lib in '' x; do
32781 if test -z "$ac_lib"; then
32782 ac_res="none required"
32785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32787 rm -f conftest.$ac_objext conftest$ac_exeext
32788 if { (ac_try="$ac_link"
32789 case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32794 $as_echo "$ac_try_echo") >&5
32795 (eval "$ac_link") 2>conftest.er1
32797 grep -v '^ *+' conftest.er1 >conftest.err
32799 cat conftest.err >&5
32800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); } && {
32802 test -z "$ac_c_werror_flag" ||
32803 test ! -s conftest.err
32804 } && test -s conftest$ac_exeext && {
32805 test "$cross_compiling" = yes ||
32806 $as_test_x conftest$ac_exeext
32808 ac_cv_search_opendir=$ac_res
32810 $as_echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32816 rm -rf conftest.dSYM
32817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32819 if test "${ac_cv_search_opendir+set}" = set; then
32823 if test "${ac_cv_search_opendir+set}" = set; then
32826 ac_cv_search_opendir=no
32828 rm conftest.$ac_ext
32829 LIBS=$ac_func_search_save_LIBS
32831 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32832 $as_echo "$ac_cv_search_opendir" >&6; }
32833 ac_res=$ac_cv_search_opendir
32834 if test "$ac_res" != no; then
32835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32841 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32842 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
32843 if test "${ac_cv_header_stat_broken+set}" = set; then
32844 $as_echo_n "(cached) " >&6
32846 cat >conftest.$ac_ext <<_ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32852 #include <sys/types.h>
32853 #include <sys/stat.h>
32855 #if defined S_ISBLK && defined S_IFDIR
32856 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32859 #if defined S_ISBLK && defined S_IFCHR
32860 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32863 #if defined S_ISLNK && defined S_IFREG
32864 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32867 #if defined S_ISSOCK && defined S_IFREG
32868 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32872 rm -f conftest.$ac_objext
32873 if { (ac_try="$ac_compile"
32874 case "(($ac_try" in
32875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32876 *) ac_try_echo=$ac_try;;
32878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32879 $as_echo "$ac_try_echo") >&5
32880 (eval "$ac_compile") 2>conftest.er1
32882 grep -v '^ *+' conftest.er1 >conftest.err
32884 cat conftest.err >&5
32885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } && {
32887 test -z "$ac_c_werror_flag" ||
32888 test ! -s conftest.err
32889 } && test -s conftest.$ac_objext; then
32890 ac_cv_header_stat_broken=no
32892 $as_echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32895 ac_cv_header_stat_broken=yes
32898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32901 $as_echo "$ac_cv_header_stat_broken" >&6; }
32902 if test $ac_cv_header_stat_broken = yes; then
32904 cat >>confdefs.h <<\_ACEOF
32905 #define STAT_MACROS_BROKEN 1
32910 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32911 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
32912 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32913 $as_echo_n "(cached) " >&6
32915 cat >conftest.$ac_ext <<_ACEOF
32918 cat confdefs.h >>conftest.$ac_ext
32919 cat >>conftest.$ac_ext <<_ACEOF
32920 /* end confdefs.h. */
32921 #include <sys/types.h>
32922 #include <sys/wait.h>
32923 #ifndef WEXITSTATUS
32924 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32927 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32935 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32940 rm -f conftest.$ac_objext
32941 if { (ac_try="$ac_compile"
32942 case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32947 $as_echo "$ac_try_echo") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32950 grep -v '^ *+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } && {
32955 test -z "$ac_c_werror_flag" ||
32956 test ! -s conftest.err
32957 } && test -s conftest.$ac_objext; then
32958 ac_cv_header_sys_wait_h=yes
32960 $as_echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32963 ac_cv_header_sys_wait_h=no
32966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32969 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
32970 if test $ac_cv_header_sys_wait_h = yes; then
32972 cat >>confdefs.h <<\_ACEOF
32973 #define HAVE_SYS_WAIT_H 1
32978 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32979 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
32980 if test "${ac_cv_header_time+set}" = set; then
32981 $as_echo_n "(cached) " >&6
32983 cat >conftest.$ac_ext <<_ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 #include <sys/types.h>
32990 #include <sys/time.h>
32996 if ((struct tm *) 0)
33002 rm -f conftest.$ac_objext
33003 if { (ac_try="$ac_compile"
33004 case "(($ac_try" in
33005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33006 *) ac_try_echo=$ac_try;;
33008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33009 $as_echo "$ac_try_echo") >&5
33010 (eval "$ac_compile") 2>conftest.er1
33012 grep -v '^ *+' conftest.er1 >conftest.err
33014 cat conftest.err >&5
33015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); } && {
33017 test -z "$ac_c_werror_flag" ||
33018 test ! -s conftest.err
33019 } && test -s conftest.$ac_objext; then
33020 ac_cv_header_time=yes
33022 $as_echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 ac_cv_header_time=no
33028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33031 $as_echo "$ac_cv_header_time" >&6; }
33032 if test $ac_cv_header_time = yes; then
33034 cat >>confdefs.h <<\_ACEOF
33035 #define TIME_WITH_SYS_TIME 1
33040 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33041 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
33042 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33043 $as_echo_n "(cached) " >&6
33045 cat >conftest.$ac_ext <<_ACEOF
33048 cat confdefs.h >>conftest.$ac_ext
33049 cat >>conftest.$ac_ext <<_ACEOF
33050 /* end confdefs.h. */
33051 $ac_includes_default
33055 static struct stat ac_aggr;
33056 if (ac_aggr.st_blksize)
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066 *) ac_try_echo=$ac_try;;
33068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33069 $as_echo "$ac_try_echo") >&5
33070 (eval "$ac_compile") 2>conftest.er1
33072 grep -v '^ *+' conftest.er1 >conftest.err
33074 cat conftest.err >&5
33075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } && {
33077 test -z "$ac_c_werror_flag" ||
33078 test ! -s conftest.err
33079 } && test -s conftest.$ac_objext; then
33080 ac_cv_member_struct_stat_st_blksize=yes
33082 $as_echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33085 cat >conftest.$ac_ext <<_ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33091 $ac_includes_default
33095 static struct stat ac_aggr;
33096 if (sizeof ac_aggr.st_blksize)
33102 rm -f conftest.$ac_objext
33103 if { (ac_try="$ac_compile"
33104 case "(($ac_try" in
33105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106 *) ac_try_echo=$ac_try;;
33108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33109 $as_echo "$ac_try_echo") >&5
33110 (eval "$ac_compile") 2>conftest.er1
33112 grep -v '^ *+' conftest.er1 >conftest.err
33114 cat conftest.err >&5
33115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); } && {
33117 test -z "$ac_c_werror_flag" ||
33118 test ! -s conftest.err
33119 } && test -s conftest.$ac_objext; then
33120 ac_cv_member_struct_stat_st_blksize=yes
33122 $as_echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33125 ac_cv_member_struct_stat_st_blksize=no
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33133 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33134 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
33135 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
33137 cat >>confdefs.h <<_ACEOF
33138 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33142 cat >>confdefs.h <<\_ACEOF
33143 #define HAVE_ST_BLKSIZE 1
33149 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33150 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
33151 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33152 $as_echo_n "(cached) " >&6
33154 cat >conftest.$ac_ext <<_ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 $ac_includes_default
33164 static struct stat ac_aggr;
33165 if (ac_aggr.st_blocks)
33171 rm -f conftest.$ac_objext
33172 if { (ac_try="$ac_compile"
33173 case "(($ac_try" in
33174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175 *) ac_try_echo=$ac_try;;
33177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33178 $as_echo "$ac_try_echo") >&5
33179 (eval "$ac_compile") 2>conftest.er1
33181 grep -v '^ *+' conftest.er1 >conftest.err
33183 cat conftest.err >&5
33184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); } && {
33186 test -z "$ac_c_werror_flag" ||
33187 test ! -s conftest.err
33188 } && test -s conftest.$ac_objext; then
33189 ac_cv_member_struct_stat_st_blocks=yes
33191 $as_echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33194 cat >conftest.$ac_ext <<_ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33200 $ac_includes_default
33204 static struct stat ac_aggr;
33205 if (sizeof ac_aggr.st_blocks)
33211 rm -f conftest.$ac_objext
33212 if { (ac_try="$ac_compile"
33213 case "(($ac_try" in
33214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 *) ac_try_echo=$ac_try;;
33217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33218 $as_echo "$ac_try_echo") >&5
33219 (eval "$ac_compile") 2>conftest.er1
33221 grep -v '^ *+' conftest.er1 >conftest.err
33223 cat conftest.err >&5
33224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); } && {
33226 test -z "$ac_c_werror_flag" ||
33227 test ! -s conftest.err
33228 } && test -s conftest.$ac_objext; then
33229 ac_cv_member_struct_stat_st_blocks=yes
33231 $as_echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33234 ac_cv_member_struct_stat_st_blocks=no
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33243 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
33244 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
33246 cat >>confdefs.h <<_ACEOF
33247 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ST_BLOCKS 1
33256 case " $LIBOBJS " in
33257 *" fileblocks.$ac_objext "* ) ;;
33258 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33265 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33266 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
33267 if test "${ac_cv_struct_tm+set}" = set; then
33268 $as_echo_n "(cached) " >&6
33270 cat >conftest.$ac_ext <<_ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33276 #include <sys/types.h>
33283 int *p = &tm.tm_sec;
33289 rm -f conftest.$ac_objext
33290 if { (ac_try="$ac_compile"
33291 case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33296 $as_echo "$ac_try_echo") >&5
33297 (eval "$ac_compile") 2>conftest.er1
33299 grep -v '^ *+' conftest.er1 >conftest.err
33301 cat conftest.err >&5
33302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); } && {
33304 test -z "$ac_c_werror_flag" ||
33305 test ! -s conftest.err
33306 } && test -s conftest.$ac_objext; then
33307 ac_cv_struct_tm=time.h
33309 $as_echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.$ac_ext >&5
33312 ac_cv_struct_tm=sys/time.h
33315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33317 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33318 $as_echo "$ac_cv_struct_tm" >&6; }
33319 if test $ac_cv_struct_tm = sys/time.h; then
33321 cat >>confdefs.h <<\_ACEOF
33322 #define TM_IN_SYS_TIME 1
33327 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
33328 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
33329 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
33330 $as_echo_n "(cached) " >&6
33332 cat >conftest.$ac_ext <<_ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h. */
33338 #include <sys/types.h>
33339 #include <$ac_cv_struct_tm>
33345 static struct tm ac_aggr;
33346 if (ac_aggr.tm_zone)
33352 rm -f conftest.$ac_objext
33353 if { (ac_try="$ac_compile"
33354 case "(($ac_try" in
33355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356 *) ac_try_echo=$ac_try;;
33358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33359 $as_echo "$ac_try_echo") >&5
33360 (eval "$ac_compile") 2>conftest.er1
33362 grep -v '^ *+' conftest.er1 >conftest.err
33364 cat conftest.err >&5
33365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } && {
33367 test -z "$ac_c_werror_flag" ||
33368 test ! -s conftest.err
33369 } && test -s conftest.$ac_objext; then
33370 ac_cv_member_struct_tm_tm_zone=yes
33372 $as_echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33375 cat >conftest.$ac_ext <<_ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33381 #include <sys/types.h>
33382 #include <$ac_cv_struct_tm>
33388 static struct tm ac_aggr;
33389 if (sizeof ac_aggr.tm_zone)
33395 rm -f conftest.$ac_objext
33396 if { (ac_try="$ac_compile"
33397 case "(($ac_try" in
33398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399 *) ac_try_echo=$ac_try;;
33401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33402 $as_echo "$ac_try_echo") >&5
33403 (eval "$ac_compile") 2>conftest.er1
33405 grep -v '^ *+' conftest.er1 >conftest.err
33407 cat conftest.err >&5
33408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } && {
33410 test -z "$ac_c_werror_flag" ||
33411 test ! -s conftest.err
33412 } && test -s conftest.$ac_objext; then
33413 ac_cv_member_struct_tm_tm_zone=yes
33415 $as_echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.$ac_ext >&5
33418 ac_cv_member_struct_tm_tm_zone=no
33421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33426 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
33427 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
33428 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
33430 cat >>confdefs.h <<_ACEOF
33431 #define HAVE_STRUCT_TM_TM_ZONE 1
33437 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
33439 cat >>confdefs.h <<\_ACEOF
33440 #define HAVE_TM_ZONE 1
33444 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
33445 $as_echo_n "checking whether tzname is declared... " >&6; }
33446 if test "${ac_cv_have_decl_tzname+set}" = set; then
33447 $as_echo_n "(cached) " >&6
33449 cat >conftest.$ac_ext <<_ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h. */
33468 rm -f conftest.$ac_objext
33469 if { (ac_try="$ac_compile"
33470 case "(($ac_try" in
33471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472 *) ac_try_echo=$ac_try;;
33474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33475 $as_echo "$ac_try_echo") >&5
33476 (eval "$ac_compile") 2>conftest.er1
33478 grep -v '^ *+' conftest.er1 >conftest.err
33480 cat conftest.err >&5
33481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } && {
33483 test -z "$ac_c_werror_flag" ||
33484 test ! -s conftest.err
33485 } && test -s conftest.$ac_objext; then
33486 ac_cv_have_decl_tzname=yes
33488 $as_echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 ac_cv_have_decl_tzname=no
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
33497 $as_echo "$ac_cv_have_decl_tzname" >&6; }
33498 if test "x$ac_cv_have_decl_tzname" = x""yes; then
33500 cat >>confdefs.h <<_ACEOF
33501 #define HAVE_DECL_TZNAME 1
33506 cat >>confdefs.h <<_ACEOF
33507 #define HAVE_DECL_TZNAME 0
33514 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
33515 $as_echo_n "checking for tzname... " >&6; }
33516 if test "${ac_cv_var_tzname+set}" = set; then
33517 $as_echo_n "(cached) " >&6
33519 cat >conftest.$ac_ext <<_ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h. */
33526 #if !HAVE_DECL_TZNAME
33527 extern char *tzname[];
33533 return tzname[0][0];
33538 rm -f conftest.$ac_objext conftest$ac_exeext
33539 if { (ac_try="$ac_link"
33540 case "(($ac_try" in
33541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33542 *) ac_try_echo=$ac_try;;
33544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33545 $as_echo "$ac_try_echo") >&5
33546 (eval "$ac_link") 2>conftest.er1
33548 grep -v '^ *+' conftest.er1 >conftest.err
33550 cat conftest.err >&5
33551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); } && {
33553 test -z "$ac_c_werror_flag" ||
33554 test ! -s conftest.err
33555 } && test -s conftest$ac_exeext && {
33556 test "$cross_compiling" = yes ||
33557 $as_test_x conftest$ac_exeext
33559 ac_cv_var_tzname=yes
33561 $as_echo "$as_me: failed program was:" >&5
33562 sed 's/^/| /' conftest.$ac_ext >&5
33564 ac_cv_var_tzname=no
33567 rm -rf conftest.dSYM
33568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33569 conftest$ac_exeext conftest.$ac_ext
33571 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
33572 $as_echo "$ac_cv_var_tzname" >&6; }
33573 if test $ac_cv_var_tzname = yes; then
33575 cat >>confdefs.h <<\_ACEOF
33576 #define HAVE_TZNAME 1
33583 { $as_echo "$as_me:$LINENO: checking for utime.h" >&5
33584 $as_echo_n "checking for utime.h... " >&6; }
33585 if test "${ba_cv_header_utime_h+set}" = set; then
33586 $as_echo_n "(cached) " >&6
33589 cat >conftest.$ac_ext <<_ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h. */
33596 #include <sys/types.h>
33609 rm -f conftest.$ac_objext
33610 if { (ac_try="$ac_compile"
33611 case "(($ac_try" in
33612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33613 *) ac_try_echo=$ac_try;;
33615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33616 $as_echo "$ac_try_echo") >&5
33617 (eval "$ac_compile") 2>conftest.er1
33619 grep -v '^ *+' conftest.er1 >conftest.err
33621 cat conftest.err >&5
33622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } && {
33624 test -z "$ac_c_werror_flag" ||
33625 test ! -s conftest.err
33626 } && test -s conftest.$ac_objext; then
33628 ba_cv_header_utime_h=yes
33631 $as_echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33635 ba_cv_header_utime_h=no
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33644 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
33645 $as_echo "$ba_cv_header_utime_h" >&6; }
33646 test $ba_cv_header_utime_h = yes &&
33647 cat >>confdefs.h <<\_ACEOF
33648 #define HAVE_UTIME_H 1
33652 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
33653 $as_echo_n "checking for socklen_t... " >&6; }
33654 if test "${ba_cv_header_socklen_t+set}" = set; then
33655 $as_echo_n "(cached) " >&6
33658 cat >conftest.$ac_ext <<_ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h. */
33665 #include <sys/types.h>
33666 #include <sys/socket.h>
33678 rm -f conftest.$ac_objext
33679 if { (ac_try="$ac_compile"
33680 case "(($ac_try" in
33681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682 *) ac_try_echo=$ac_try;;
33684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33685 $as_echo "$ac_try_echo") >&5
33686 (eval "$ac_compile") 2>conftest.er1
33688 grep -v '^ *+' conftest.er1 >conftest.err
33690 cat conftest.err >&5
33691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 (exit $ac_status); } && {
33693 test -z "$ac_c_werror_flag" ||
33694 test ! -s conftest.err
33695 } && test -s conftest.$ac_objext; then
33697 ba_cv_header_socklen_t=yes
33700 $as_echo "$as_me: failed program was:" >&5
33701 sed 's/^/| /' conftest.$ac_ext >&5
33704 ba_cv_header_socklen_t=no
33709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33713 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
33714 $as_echo "$ba_cv_header_socklen_t" >&6; }
33715 test $ba_cv_header_socklen_t = yes &&
33716 cat >>confdefs.h <<\_ACEOF
33717 #define HAVE_SOCKLEN_T 1
33722 ac_cpp='$CXXCPP $CPPFLAGS'
33723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33727 { $as_echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
33728 $as_echo_n "checking for ioctl_req_t... " >&6; }
33729 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
33730 $as_echo_n "(cached) " >&6
33733 cat >conftest.$ac_ext <<_ACEOF
33736 cat confdefs.h >>conftest.$ac_ext
33737 cat >>conftest.$ac_ext <<_ACEOF
33738 /* end confdefs.h. */
33740 #include <unistd.h>
33741 #include <sys/types.h>
33742 #include <sys/ioctl.h>
33748 int (*d_ioctl)(int fd, unsigned long int request, ...);
33755 rm -f conftest.$ac_objext
33756 if { (ac_try="$ac_compile"
33757 case "(($ac_try" in
33758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33759 *) ac_try_echo=$ac_try;;
33761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33762 $as_echo "$ac_try_echo") >&5
33763 (eval "$ac_compile") 2>conftest.er1
33765 grep -v '^ *+' conftest.er1 >conftest.err
33767 cat conftest.err >&5
33768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); } && {
33770 test -z "$ac_cxx_werror_flag" ||
33771 test ! -s conftest.err
33772 } && test -s conftest.$ac_objext; then
33774 ba_cv_header_ioctl_req_t=yes
33777 $as_echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33781 ba_cv_header_ioctl_req_t=no
33786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33790 { $as_echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
33791 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
33792 test $ba_cv_header_ioctl_req_t = yes &&
33793 cat >>confdefs.h <<\_ACEOF
33794 #define HAVE_IOCTL_ULINT_REQUEST 1
33799 ac_cpp='$CPP $CPPFLAGS'
33800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33806 ac_cpp='$CXXCPP $CPPFLAGS'
33807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33811 { $as_echo "$as_me:$LINENO: checking for typeof" >&5
33812 $as_echo_n "checking for typeof... " >&6; }
33813 if test "${ba_cv_have_typeof+set}" = set; then
33814 $as_echo_n "(cached) " >&6
33817 if test "$cross_compiling" = yes; then
33819 ba_cv_have_typeof=no
33823 cat >conftest.$ac_ext <<_ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h. */
33830 main(){char *a = 0; a = (typeof a)a;}
33833 rm -f conftest$ac_exeext
33834 if { (ac_try="$ac_link"
33835 case "(($ac_try" in
33836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33837 *) ac_try_echo=$ac_try;;
33839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33840 $as_echo "$ac_try_echo") >&5
33841 (eval "$ac_link") 2>&5
33843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33845 { (case "(($ac_try" in
33846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847 *) ac_try_echo=$ac_try;;
33849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33850 $as_echo "$ac_try_echo") >&5
33851 (eval "$ac_try") 2>&5
33853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
33856 ba_cv_have_typeof=yes
33859 $as_echo "$as_me: program exited with status $ac_status" >&5
33860 $as_echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33863 ( exit $ac_status )
33865 ba_cv_have_typeof=no
33868 rm -rf conftest.dSYM
33869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33876 { $as_echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33877 $as_echo "$ba_cv_have_typeof" >&6; }
33878 test $ba_cv_have_typeof = yes &&
33879 cat >>confdefs.h <<\_ACEOF
33880 #define HAVE_TYPEOF 1
33884 ac_cpp='$CPP $CPPFLAGS'
33885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33890 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33892 if test "${ac_cv_c_const+set}" = set; then
33893 $as_echo_n "(cached) " >&6
33895 cat >conftest.$ac_ext <<_ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h. */
33905 /* FIXME: Include the comments suggested by Paul. */
33906 #ifndef __cplusplus
33907 /* Ultrix mips cc rejects this. */
33908 typedef int charset[2];
33910 /* SunOS 4.1.1 cc rejects this. */
33911 char const *const *pcpcc;
33913 /* NEC SVR4.0.2 mips cc rejects this. */
33914 struct point {int x, y;};
33915 static struct point const zero = {0,0};
33916 /* AIX XL C 1.02.0.0 rejects this.
33917 It does not let you subtract one const X* pointer from another in
33918 an arm of an if-expression whose if-part is not a constant
33920 const char *g = "string";
33921 pcpcc = &g + (g ? g-g : 0);
33922 /* HPUX 7.0 cc rejects these. */
33924 ppc = (char**) pcpcc;
33925 pcpcc = (char const *const *) ppc;
33926 { /* SCO 3.2v4 cc rejects this. */
33928 char const *s = 0 ? (char *) 0 : (char const *) 0;
33933 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33934 int x[] = {25, 17};
33935 const int *foo = &x[0];
33938 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33939 typedef const int *iptr;
33943 { /* AIX XL C 1.02.0.0 rejects this saying
33944 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33945 struct s { int j; const int *ap[3]; };
33946 struct s *b; b->j = 5;
33948 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33949 const int foo = 10;
33950 if (!foo) return 0;
33952 return !cs[0] && !zero.x;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33966 $as_echo "$ac_try_echo") >&5
33967 (eval "$ac_compile") 2>conftest.er1
33969 grep -v '^ *+' conftest.er1 >conftest.err
33971 cat conftest.err >&5
33972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } && {
33974 test -z "$ac_c_werror_flag" ||
33975 test ! -s conftest.err
33976 } && test -s conftest.$ac_objext; then
33979 $as_echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33988 $as_echo "$ac_cv_c_const" >&6; }
33989 if test $ac_cv_c_const = no; then
33991 cat >>confdefs.h <<\_ACEOF
33998 { $as_echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33999 $as_echo_n "checking how to get filesystem type... " >&6; }
34001 # The order of these tests is important.
34002 cat >conftest.$ac_ext <<_ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h. */
34009 #include <sys/statvfs.h>
34010 #include <sys/fstyp.h>
34013 if { (ac_try="$ac_cpp conftest.$ac_ext"
34014 case "(($ac_try" in
34015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34019 $as_echo "$ac_try_echo") >&5
34020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34022 grep -v '^ *+' conftest.er1 >conftest.err
34024 cat conftest.err >&5
34025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } >/dev/null && {
34027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34028 test ! -s conftest.err
34030 cat >>confdefs.h <<\_ACEOF
34031 #define FSTYPE_STATVFS 1
34036 $as_echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.$ac_ext >&5
34042 rm -f conftest.err conftest.$ac_ext
34043 if test $fstype = no; then
34044 cat >conftest.$ac_ext <<_ACEOF
34047 cat confdefs.h >>conftest.$ac_ext
34048 cat >>conftest.$ac_ext <<_ACEOF
34049 /* end confdefs.h. */
34051 #include <sys/statfs.h>
34052 #include <sys/fstyp.h>
34055 if { (ac_try="$ac_cpp conftest.$ac_ext"
34056 case "(($ac_try" in
34057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058 *) ac_try_echo=$ac_try;;
34060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34061 $as_echo "$ac_try_echo") >&5
34062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34064 grep -v '^ *+' conftest.er1 >conftest.err
34066 cat conftest.err >&5
34067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } >/dev/null && {
34069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34070 test ! -s conftest.err
34072 cat >>confdefs.h <<\_ACEOF
34073 #define FSTYPE_USG_STATFS 1
34078 $as_echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34084 rm -f conftest.err conftest.$ac_ext
34086 if test $fstype = no; then
34087 cat >conftest.$ac_ext <<_ACEOF
34090 cat confdefs.h >>conftest.$ac_ext
34091 cat >>conftest.$ac_ext <<_ACEOF
34092 /* end confdefs.h. */
34094 #include <sys/statfs.h>
34095 #include <sys/vmount.h>
34098 if { (ac_try="$ac_cpp conftest.$ac_ext"
34099 case "(($ac_try" in
34100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101 *) ac_try_echo=$ac_try;;
34103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34104 $as_echo "$ac_try_echo") >&5
34105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34107 grep -v '^ *+' conftest.er1 >conftest.err
34109 cat conftest.err >&5
34110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); } >/dev/null && {
34112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34113 test ! -s conftest.err
34115 cat >>confdefs.h <<\_ACEOF
34116 #define FSTYPE_AIX_STATFS 1
34121 $as_echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34127 rm -f conftest.err conftest.$ac_ext
34129 if test $fstype = no; then
34130 cat >conftest.$ac_ext <<_ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h. */
34137 #include <mntent.h>
34140 if { (ac_try="$ac_cpp conftest.$ac_ext"
34141 case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34146 $as_echo "$ac_try_echo") >&5
34147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34149 grep -v '^ *+' conftest.er1 >conftest.err
34151 cat conftest.err >&5
34152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } >/dev/null && {
34154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34155 test ! -s conftest.err
34157 cat >>confdefs.h <<\_ACEOF
34158 #define FSTYPE_MNTENT 1
34163 $as_echo "$as_me: failed program was:" >&5
34164 sed 's/^/| /' conftest.$ac_ext >&5
34169 rm -f conftest.err conftest.$ac_ext
34171 if test $fstype = no; then
34172 cat >conftest.$ac_ext <<_ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h. */
34178 #include <sys/mount.h>
34181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34182 $EGREP "f_type;" >/dev/null 2>&1; then
34183 cat >>confdefs.h <<\_ACEOF
34184 #define FSTYPE_STATFS 1
34191 if test $fstype = no; then
34192 cat >conftest.$ac_ext <<_ACEOF
34195 cat confdefs.h >>conftest.$ac_ext
34196 cat >>conftest.$ac_ext <<_ACEOF
34197 /* end confdefs.h. */
34199 #include <sys/mount.h>
34200 #include <sys/fs_types.h>
34203 if { (ac_try="$ac_cpp conftest.$ac_ext"
34204 case "(($ac_try" in
34205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206 *) ac_try_echo=$ac_try;;
34208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34209 $as_echo "$ac_try_echo") >&5
34210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34212 grep -v '^ *+' conftest.er1 >conftest.err
34214 cat conftest.err >&5
34215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } >/dev/null && {
34217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34218 test ! -s conftest.err
34220 cat >>confdefs.h <<\_ACEOF
34221 #define FSTYPE_GETMNT 1
34226 $as_echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34232 rm -f conftest.err conftest.$ac_ext
34234 { $as_echo "$as_me:$LINENO: result: $fstype" >&5
34235 $as_echo "$fstype" >&6; }
34237 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34238 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34239 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34240 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34241 $as_echo_n "(cached) " >&6
34243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34244 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34246 # Is the header compilable?
34247 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
34248 $as_echo_n "checking sys/statvfs.h usability... " >&6; }
34249 cat >conftest.$ac_ext <<_ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h. */
34255 $ac_includes_default
34256 #include <sys/statvfs.h>
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262 *) ac_try_echo=$ac_try;;
34264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34265 $as_echo "$ac_try_echo") >&5
34266 (eval "$ac_compile") 2>conftest.er1
34268 grep -v '^ *+' conftest.er1 >conftest.err
34270 cat conftest.err >&5
34271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); } && {
34273 test -z "$ac_c_werror_flag" ||
34274 test ! -s conftest.err
34275 } && test -s conftest.$ac_objext; then
34276 ac_header_compiler=yes
34278 $as_echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34281 ac_header_compiler=no
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286 $as_echo "$ac_header_compiler" >&6; }
34288 # Is the header present?
34289 { $as_echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
34290 $as_echo_n "checking sys/statvfs.h presence... " >&6; }
34291 cat >conftest.$ac_ext <<_ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h. */
34297 #include <sys/statvfs.h>
34299 if { (ac_try="$ac_cpp conftest.$ac_ext"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34305 $as_echo "$ac_try_echo") >&5
34306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34308 grep -v '^ *+' conftest.er1 >conftest.err
34310 cat conftest.err >&5
34311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); } >/dev/null && {
34313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34314 test ! -s conftest.err
34316 ac_header_preproc=yes
34318 $as_echo "$as_me: failed program was:" >&5
34319 sed 's/^/| /' conftest.$ac_ext >&5
34321 ac_header_preproc=no
34324 rm -f conftest.err conftest.$ac_ext
34325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34326 $as_echo "$ac_header_preproc" >&6; }
34328 # So? What about this header?
34329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34331 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34332 $as_echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34333 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
34334 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
34335 ac_header_preproc=yes
34338 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
34339 $as_echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
34340 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
34341 $as_echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
34342 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
34343 $as_echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
34344 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
34345 $as_echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
34346 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
34347 $as_echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
34348 { $as_echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
34349 $as_echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
34353 { $as_echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
34354 $as_echo_n "checking for sys/statvfs.h... " >&6; }
34355 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
34356 $as_echo_n "(cached) " >&6
34358 ac_cv_header_sys_statvfs_h=$ac_header_preproc
34360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
34361 $as_echo "$ac_cv_header_sys_statvfs_h" >&6; }
34364 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then
34366 cat >>confdefs.h <<\_ACEOF
34367 #define HAVE_SYS_STATVFS_H 1
34374 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34375 $as_echo_n "checking return type of signal handlers... " >&6; }
34376 if test "${ac_cv_type_signal+set}" = set; then
34377 $as_echo_n "(cached) " >&6
34379 cat >conftest.$ac_ext <<_ACEOF
34382 cat confdefs.h >>conftest.$ac_ext
34383 cat >>conftest.$ac_ext <<_ACEOF
34384 /* end confdefs.h. */
34385 #include <sys/types.h>
34386 #include <signal.h>
34391 return *(signal (0, 0)) (0) == 1;
34396 rm -f conftest.$ac_objext
34397 if { (ac_try="$ac_compile"
34398 case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34403 $as_echo "$ac_try_echo") >&5
34404 (eval "$ac_compile") 2>conftest.er1
34406 grep -v '^ *+' conftest.er1 >conftest.err
34408 cat conftest.err >&5
34409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); } && {
34411 test -z "$ac_c_werror_flag" ||
34412 test ! -s conftest.err
34413 } && test -s conftest.$ac_objext; then
34414 ac_cv_type_signal=int
34416 $as_echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34419 ac_cv_type_signal=void
34422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34424 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34425 $as_echo "$ac_cv_type_signal" >&6; }
34427 cat >>confdefs.h <<_ACEOF
34428 #define RETSIGTYPE $ac_cv_type_signal
34433 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
34434 $as_echo_n "checking for type of signal functions... " >&6; }
34435 if test "${bash_cv_signal_vintage+set}" = set; then
34436 $as_echo_n "(cached) " >&6
34439 cat >conftest.$ac_ext <<_ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h. */
34445 #include <signal.h>
34451 struct sigaction sa;
34452 sigemptyset(&ss); sigsuspend(&ss);
34453 sigaction(SIGINT, &sa, (struct sigaction *) 0);
34454 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
34460 rm -f conftest.$ac_objext conftest$ac_exeext
34461 if { (ac_try="$ac_link"
34462 case "(($ac_try" in
34463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34464 *) ac_try_echo=$ac_try;;
34466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34467 $as_echo "$ac_try_echo") >&5
34468 (eval "$ac_link") 2>conftest.er1
34470 grep -v '^ *+' conftest.er1 >conftest.err
34472 cat conftest.err >&5
34473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); } && {
34475 test -z "$ac_c_werror_flag" ||
34476 test ! -s conftest.err
34477 } && test -s conftest$ac_exeext && {
34478 test "$cross_compiling" = yes ||
34479 $as_test_x conftest$ac_exeext
34481 bash_cv_signal_vintage="posix"
34483 $as_echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34487 cat >conftest.$ac_ext <<_ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h. */
34493 #include <signal.h>
34498 int mask = sigmask(SIGINT);
34499 sigsetmask(mask); sigblock(mask); sigpause(mask);
34505 rm -f conftest.$ac_objext conftest$ac_exeext
34506 if { (ac_try="$ac_link"
34507 case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34512 $as_echo "$ac_try_echo") >&5
34513 (eval "$ac_link") 2>conftest.er1
34515 grep -v '^ *+' conftest.er1 >conftest.err
34517 cat conftest.err >&5
34518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } && {
34520 test -z "$ac_c_werror_flag" ||
34521 test ! -s conftest.err
34522 } && test -s conftest$ac_exeext && {
34523 test "$cross_compiling" = yes ||
34524 $as_test_x conftest$ac_exeext
34526 bash_cv_signal_vintage="4.2bsd"
34528 $as_echo "$as_me: failed program was:" >&5
34529 sed 's/^/| /' conftest.$ac_ext >&5
34532 cat >conftest.$ac_ext <<_ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h. */
34539 #include <signal.h>
34540 RETSIGTYPE foo() { }
34545 int mask = sigmask(SIGINT);
34546 sigset(SIGINT, foo); sigrelse(SIGINT);
34547 sighold(SIGINT); sigpause(SIGINT);
34553 rm -f conftest.$ac_objext conftest$ac_exeext
34554 if { (ac_try="$ac_link"
34555 case "(($ac_try" in
34556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557 *) ac_try_echo=$ac_try;;
34559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34560 $as_echo "$ac_try_echo") >&5
34561 (eval "$ac_link") 2>conftest.er1
34563 grep -v '^ *+' conftest.er1 >conftest.err
34565 cat conftest.err >&5
34566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } && {
34568 test -z "$ac_c_werror_flag" ||
34569 test ! -s conftest.err
34570 } && test -s conftest$ac_exeext && {
34571 test "$cross_compiling" = yes ||
34572 $as_test_x conftest$ac_exeext
34574 bash_cv_signal_vintage="svr3"
34576 $as_echo "$as_me: failed program was:" >&5
34577 sed 's/^/| /' conftest.$ac_ext >&5
34579 bash_cv_signal_vintage="v7"
34583 rm -rf conftest.dSYM
34584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34585 conftest$ac_exeext conftest.$ac_ext
34589 rm -rf conftest.dSYM
34590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34591 conftest$ac_exeext conftest.$ac_ext
34595 rm -rf conftest.dSYM
34596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34597 conftest$ac_exeext conftest.$ac_ext
34601 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
34602 $as_echo "$bash_cv_signal_vintage" >&6; }
34603 if test "$bash_cv_signal_vintage" = "posix"; then
34604 cat >>confdefs.h <<\_ACEOF
34605 #define HAVE_POSIX_SIGNALS 1
34608 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
34609 cat >>confdefs.h <<\_ACEOF
34610 #define HAVE_BSD_SIGNALS 1
34613 elif test "$bash_cv_signal_vintage" = "svr3"; then
34614 cat >>confdefs.h <<\_ACEOF
34615 #define HAVE_USG_SIGHOLD 1
34620 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
34621 $as_echo_n "checking for mode_t... " >&6; }
34622 if test "${ac_cv_type_mode_t+set}" = set; then
34623 $as_echo_n "(cached) " >&6
34625 ac_cv_type_mode_t=no
34626 cat >conftest.$ac_ext <<_ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h. */
34632 $ac_includes_default
34636 if (sizeof (mode_t))
34642 rm -f conftest.$ac_objext
34643 if { (ac_try="$ac_compile"
34644 case "(($ac_try" in
34645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34646 *) ac_try_echo=$ac_try;;
34648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34649 $as_echo "$ac_try_echo") >&5
34650 (eval "$ac_compile") 2>conftest.er1
34652 grep -v '^ *+' conftest.er1 >conftest.err
34654 cat conftest.err >&5
34655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } && {
34657 test -z "$ac_c_werror_flag" ||
34658 test ! -s conftest.err
34659 } && test -s conftest.$ac_objext; then
34660 cat >conftest.$ac_ext <<_ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h. */
34666 $ac_includes_default
34670 if (sizeof ((mode_t)))
34676 rm -f conftest.$ac_objext
34677 if { (ac_try="$ac_compile"
34678 case "(($ac_try" in
34679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34680 *) ac_try_echo=$ac_try;;
34682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34683 $as_echo "$ac_try_echo") >&5
34684 (eval "$ac_compile") 2>conftest.er1
34686 grep -v '^ *+' conftest.er1 >conftest.err
34688 cat conftest.err >&5
34689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690 (exit $ac_status); } && {
34691 test -z "$ac_c_werror_flag" ||
34692 test ! -s conftest.err
34693 } && test -s conftest.$ac_objext; then
34696 $as_echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34699 ac_cv_type_mode_t=yes
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34704 $as_echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34712 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34713 $as_echo "$ac_cv_type_mode_t" >&6; }
34714 if test "x$ac_cv_type_mode_t" = x""yes; then
34718 cat >>confdefs.h <<_ACEOF
34724 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34725 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
34726 if test "${ac_cv_type_uid_t+set}" = set; then
34727 $as_echo_n "(cached) " >&6
34729 cat >conftest.$ac_ext <<_ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h. */
34735 #include <sys/types.h>
34738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34739 $EGREP "uid_t" >/dev/null 2>&1; then
34740 ac_cv_type_uid_t=yes
34742 ac_cv_type_uid_t=no
34747 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34748 $as_echo "$ac_cv_type_uid_t" >&6; }
34749 if test $ac_cv_type_uid_t = no; then
34751 cat >>confdefs.h <<\_ACEOF
34756 cat >>confdefs.h <<\_ACEOF
34762 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
34763 $as_echo_n "checking for size_t... " >&6; }
34764 if test "${ac_cv_type_size_t+set}" = set; then
34765 $as_echo_n "(cached) " >&6
34767 ac_cv_type_size_t=no
34768 cat >conftest.$ac_ext <<_ACEOF
34771 cat confdefs.h >>conftest.$ac_ext
34772 cat >>conftest.$ac_ext <<_ACEOF
34773 /* end confdefs.h. */
34774 $ac_includes_default
34778 if (sizeof (size_t))
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34791 $as_echo "$ac_try_echo") >&5
34792 (eval "$ac_compile") 2>conftest.er1
34794 grep -v '^ *+' conftest.er1 >conftest.err
34796 cat conftest.err >&5
34797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } && {
34799 test -z "$ac_c_werror_flag" ||
34800 test ! -s conftest.err
34801 } && test -s conftest.$ac_objext; then
34802 cat >conftest.$ac_ext <<_ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34808 $ac_includes_default
34812 if (sizeof ((size_t)))
34818 rm -f conftest.$ac_objext
34819 if { (ac_try="$ac_compile"
34820 case "(($ac_try" in
34821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822 *) ac_try_echo=$ac_try;;
34824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34825 $as_echo "$ac_try_echo") >&5
34826 (eval "$ac_compile") 2>conftest.er1
34828 grep -v '^ *+' conftest.er1 >conftest.err
34830 cat conftest.err >&5
34831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } && {
34833 test -z "$ac_c_werror_flag" ||
34834 test ! -s conftest.err
34835 } && test -s conftest.$ac_objext; then
34838 $as_echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34841 ac_cv_type_size_t=yes
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846 $as_echo "$as_me: failed program was:" >&5
34847 sed 's/^/| /' conftest.$ac_ext >&5
34852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34854 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34855 $as_echo "$ac_cv_type_size_t" >&6; }
34856 if test "x$ac_cv_type_size_t" = x""yes; then
34860 cat >>confdefs.h <<_ACEOF
34861 #define size_t unsigned int
34866 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34867 $as_echo_n "checking for pid_t... " >&6; }
34868 if test "${ac_cv_type_pid_t+set}" = set; then
34869 $as_echo_n "(cached) " >&6
34871 ac_cv_type_pid_t=no
34872 cat >conftest.$ac_ext <<_ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h. */
34878 $ac_includes_default
34882 if (sizeof (pid_t))
34888 rm -f conftest.$ac_objext
34889 if { (ac_try="$ac_compile"
34890 case "(($ac_try" in
34891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34892 *) ac_try_echo=$ac_try;;
34894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34895 $as_echo "$ac_try_echo") >&5
34896 (eval "$ac_compile") 2>conftest.er1
34898 grep -v '^ *+' conftest.er1 >conftest.err
34900 cat conftest.err >&5
34901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); } && {
34903 test -z "$ac_c_werror_flag" ||
34904 test ! -s conftest.err
34905 } && test -s conftest.$ac_objext; then
34906 cat >conftest.$ac_ext <<_ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h. */
34912 $ac_includes_default
34916 if (sizeof ((pid_t)))
34922 rm -f conftest.$ac_objext
34923 if { (ac_try="$ac_compile"
34924 case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34929 $as_echo "$ac_try_echo") >&5
34930 (eval "$ac_compile") 2>conftest.er1
34932 grep -v '^ *+' conftest.er1 >conftest.err
34934 cat conftest.err >&5
34935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); } && {
34937 test -z "$ac_c_werror_flag" ||
34938 test ! -s conftest.err
34939 } && test -s conftest.$ac_objext; then
34942 $as_echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34945 ac_cv_type_pid_t=yes
34948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34950 $as_echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34959 $as_echo "$ac_cv_type_pid_t" >&6; }
34960 if test "x$ac_cv_type_pid_t" = x""yes; then
34964 cat >>confdefs.h <<_ACEOF
34970 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
34971 $as_echo_n "checking for off_t... " >&6; }
34972 if test "${ac_cv_type_off_t+set}" = set; then
34973 $as_echo_n "(cached) " >&6
34975 ac_cv_type_off_t=no
34976 cat >conftest.$ac_ext <<_ACEOF
34979 cat confdefs.h >>conftest.$ac_ext
34980 cat >>conftest.$ac_ext <<_ACEOF
34981 /* end confdefs.h. */
34982 $ac_includes_default
34986 if (sizeof (off_t))
34992 rm -f conftest.$ac_objext
34993 if { (ac_try="$ac_compile"
34994 case "(($ac_try" in
34995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996 *) ac_try_echo=$ac_try;;
34998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34999 $as_echo "$ac_try_echo") >&5
35000 (eval "$ac_compile") 2>conftest.er1
35002 grep -v '^ *+' conftest.er1 >conftest.err
35004 cat conftest.err >&5
35005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); } && {
35007 test -z "$ac_c_werror_flag" ||
35008 test ! -s conftest.err
35009 } && 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
35020 if (sizeof ((off_t)))
35026 rm -f conftest.$ac_objext
35027 if { (ac_try="$ac_compile"
35028 case "(($ac_try" in
35029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030 *) ac_try_echo=$ac_try;;
35032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35033 $as_echo "$ac_try_echo") >&5
35034 (eval "$ac_compile") 2>conftest.er1
35036 grep -v '^ *+' conftest.er1 >conftest.err
35038 cat conftest.err >&5
35039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040 (exit $ac_status); } && {
35041 test -z "$ac_c_werror_flag" ||
35042 test ! -s conftest.err
35043 } && test -s conftest.$ac_objext; then
35046 $as_echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35049 ac_cv_type_off_t=yes
35052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35054 $as_echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35063 $as_echo "$ac_cv_type_off_t" >&6; }
35064 if test "x$ac_cv_type_off_t" = x""yes; then
35068 cat >>confdefs.h <<_ACEOF
35069 #define off_t long int
35075 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
35076 $as_echo_n "checking for intptr_t... " >&6; }
35077 if test "${ac_cv_type_intptr_t+set}" = set; then
35078 $as_echo_n "(cached) " >&6
35080 ac_cv_type_intptr_t=no
35081 cat >conftest.$ac_ext <<_ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h. */
35087 $ac_includes_default
35091 if (sizeof (intptr_t))
35097 rm -f conftest.$ac_objext
35098 if { (ac_try="$ac_compile"
35099 case "(($ac_try" in
35100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35101 *) ac_try_echo=$ac_try;;
35103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35104 $as_echo "$ac_try_echo") >&5
35105 (eval "$ac_compile") 2>conftest.er1
35107 grep -v '^ *+' conftest.er1 >conftest.err
35109 cat conftest.err >&5
35110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } && {
35112 test -z "$ac_c_werror_flag" ||
35113 test ! -s conftest.err
35114 } && test -s conftest.$ac_objext; then
35115 cat >conftest.$ac_ext <<_ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h. */
35121 $ac_includes_default
35125 if (sizeof ((intptr_t)))
35131 rm -f conftest.$ac_objext
35132 if { (ac_try="$ac_compile"
35133 case "(($ac_try" in
35134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135 *) ac_try_echo=$ac_try;;
35137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35138 $as_echo "$ac_try_echo") >&5
35139 (eval "$ac_compile") 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } && {
35146 test -z "$ac_c_werror_flag" ||
35147 test ! -s conftest.err
35148 } && test -s conftest.$ac_objext; then
35151 $as_echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35154 ac_cv_type_intptr_t=yes
35157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159 $as_echo "$as_me: failed program was:" >&5
35160 sed 's/^/| /' conftest.$ac_ext >&5
35165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35167 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
35168 $as_echo "$ac_cv_type_intptr_t" >&6; }
35169 if test "x$ac_cv_type_intptr_t" = x""yes; then
35171 cat >>confdefs.h <<\_ACEOF
35172 #define HAVE_INTPTR_T 1
35176 for ac_type in 'int' 'long int' 'long long int'; do
35177 cat >conftest.$ac_ext <<_ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35183 $ac_includes_default
35187 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35194 rm -f conftest.$ac_objext
35195 if { (ac_try="$ac_compile"
35196 case "(($ac_try" in
35197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35198 *) ac_try_echo=$ac_try;;
35200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35201 $as_echo "$ac_try_echo") >&5
35202 (eval "$ac_compile") 2>conftest.er1
35204 grep -v '^ *+' conftest.er1 >conftest.err
35206 cat conftest.err >&5
35207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } && {
35209 test -z "$ac_c_werror_flag" ||
35210 test ! -s conftest.err
35211 } && test -s conftest.$ac_objext; then
35213 cat >>confdefs.h <<_ACEOF
35214 #define intptr_t $ac_type
35219 $as_echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35226 test -z "$ac_type" && break
35232 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
35233 $as_echo_n "checking for uintptr_t... " >&6; }
35234 if test "${ac_cv_type_uintptr_t+set}" = set; then
35235 $as_echo_n "(cached) " >&6
35237 ac_cv_type_uintptr_t=no
35238 cat >conftest.$ac_ext <<_ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h. */
35244 $ac_includes_default
35248 if (sizeof (uintptr_t))
35254 rm -f conftest.$ac_objext
35255 if { (ac_try="$ac_compile"
35256 case "(($ac_try" in
35257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258 *) ac_try_echo=$ac_try;;
35260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35261 $as_echo "$ac_try_echo") >&5
35262 (eval "$ac_compile") 2>conftest.er1
35264 grep -v '^ *+' conftest.er1 >conftest.err
35266 cat conftest.err >&5
35267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); } && {
35269 test -z "$ac_c_werror_flag" ||
35270 test ! -s conftest.err
35271 } && test -s conftest.$ac_objext; then
35272 cat >conftest.$ac_ext <<_ACEOF
35275 cat confdefs.h >>conftest.$ac_ext
35276 cat >>conftest.$ac_ext <<_ACEOF
35277 /* end confdefs.h. */
35278 $ac_includes_default
35282 if (sizeof ((uintptr_t)))
35288 rm -f conftest.$ac_objext
35289 if { (ac_try="$ac_compile"
35290 case "(($ac_try" in
35291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35292 *) ac_try_echo=$ac_try;;
35294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35295 $as_echo "$ac_try_echo") >&5
35296 (eval "$ac_compile") 2>conftest.er1
35298 grep -v '^ *+' conftest.er1 >conftest.err
35300 cat conftest.err >&5
35301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); } && {
35303 test -z "$ac_c_werror_flag" ||
35304 test ! -s conftest.err
35305 } && test -s conftest.$ac_objext; then
35308 $as_echo "$as_me: failed program was:" >&5
35309 sed 's/^/| /' conftest.$ac_ext >&5
35311 ac_cv_type_uintptr_t=yes
35314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 $as_echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
35325 $as_echo "$ac_cv_type_uintptr_t" >&6; }
35326 if test "x$ac_cv_type_uintptr_t" = x""yes; then
35328 cat >>confdefs.h <<\_ACEOF
35329 #define HAVE_UINTPTR_T 1
35333 for ac_type in 'unsigned int' 'unsigned long int' \
35334 'unsigned long long int'; do
35335 cat >conftest.$ac_ext <<_ACEOF
35338 cat confdefs.h >>conftest.$ac_ext
35339 cat >>conftest.$ac_ext <<_ACEOF
35340 /* end confdefs.h. */
35341 $ac_includes_default
35345 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
35352 rm -f conftest.$ac_objext
35353 if { (ac_try="$ac_compile"
35354 case "(($ac_try" in
35355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35356 *) ac_try_echo=$ac_try;;
35358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35359 $as_echo "$ac_try_echo") >&5
35360 (eval "$ac_compile") 2>conftest.er1
35362 grep -v '^ *+' conftest.er1 >conftest.err
35364 cat conftest.err >&5
35365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); } && {
35367 test -z "$ac_c_werror_flag" ||
35368 test ! -s conftest.err
35369 } && test -s conftest.$ac_objext; then
35371 cat >>confdefs.h <<_ACEOF
35372 #define uintptr_t $ac_type
35377 $as_echo "$as_me: failed program was:" >&5
35378 sed 's/^/| /' conftest.$ac_ext >&5
35383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35384 test -z "$ac_type" && break
35389 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
35390 $as_echo_n "checking for ino_t... " >&6; }
35391 if test "${ac_cv_type_ino_t+set}" = set; then
35392 $as_echo_n "(cached) " >&6
35394 ac_cv_type_ino_t=no
35395 cat >conftest.$ac_ext <<_ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h. */
35401 $ac_includes_default
35405 if (sizeof (ino_t))
35411 rm -f conftest.$ac_objext
35412 if { (ac_try="$ac_compile"
35413 case "(($ac_try" in
35414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35415 *) ac_try_echo=$ac_try;;
35417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35418 $as_echo "$ac_try_echo") >&5
35419 (eval "$ac_compile") 2>conftest.er1
35421 grep -v '^ *+' conftest.er1 >conftest.err
35423 cat conftest.err >&5
35424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } && {
35426 test -z "$ac_c_werror_flag" ||
35427 test ! -s conftest.err
35428 } && test -s conftest.$ac_objext; then
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 $ac_includes_default
35439 if (sizeof ((ino_t)))
35445 rm -f conftest.$ac_objext
35446 if { (ac_try="$ac_compile"
35447 case "(($ac_try" in
35448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35449 *) ac_try_echo=$ac_try;;
35451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35452 $as_echo "$ac_try_echo") >&5
35453 (eval "$ac_compile") 2>conftest.er1
35455 grep -v '^ *+' conftest.er1 >conftest.err
35457 cat conftest.err >&5
35458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); } && {
35460 test -z "$ac_c_werror_flag" ||
35461 test ! -s conftest.err
35462 } && test -s conftest.$ac_objext; then
35465 $as_echo "$as_me: failed program was:" >&5
35466 sed 's/^/| /' conftest.$ac_ext >&5
35468 ac_cv_type_ino_t=yes
35471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35473 $as_echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35481 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
35482 $as_echo "$ac_cv_type_ino_t" >&6; }
35483 if test "x$ac_cv_type_ino_t" = x""yes; then
35487 cat >>confdefs.h <<_ACEOF
35488 #define ino_t unsigned long
35493 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
35494 $as_echo_n "checking for dev_t... " >&6; }
35495 if test "${ac_cv_type_dev_t+set}" = set; then
35496 $as_echo_n "(cached) " >&6
35498 ac_cv_type_dev_t=no
35499 cat >conftest.$ac_ext <<_ACEOF
35502 cat confdefs.h >>conftest.$ac_ext
35503 cat >>conftest.$ac_ext <<_ACEOF
35504 /* end confdefs.h. */
35505 $ac_includes_default
35509 if (sizeof (dev_t))
35515 rm -f conftest.$ac_objext
35516 if { (ac_try="$ac_compile"
35517 case "(($ac_try" in
35518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35519 *) ac_try_echo=$ac_try;;
35521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35522 $as_echo "$ac_try_echo") >&5
35523 (eval "$ac_compile") 2>conftest.er1
35525 grep -v '^ *+' conftest.er1 >conftest.err
35527 cat conftest.err >&5
35528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); } && {
35530 test -z "$ac_c_werror_flag" ||
35531 test ! -s conftest.err
35532 } && test -s conftest.$ac_objext; then
35533 cat >conftest.$ac_ext <<_ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h. */
35539 $ac_includes_default
35543 if (sizeof ((dev_t)))
35549 rm -f conftest.$ac_objext
35550 if { (ac_try="$ac_compile"
35551 case "(($ac_try" in
35552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553 *) ac_try_echo=$ac_try;;
35555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35556 $as_echo "$ac_try_echo") >&5
35557 (eval "$ac_compile") 2>conftest.er1
35559 grep -v '^ *+' conftest.er1 >conftest.err
35561 cat conftest.err >&5
35562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); } && {
35564 test -z "$ac_c_werror_flag" ||
35565 test ! -s conftest.err
35566 } && test -s conftest.$ac_objext; then
35569 $as_echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35572 ac_cv_type_dev_t=yes
35575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35577 $as_echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35585 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
35586 $as_echo "$ac_cv_type_dev_t" >&6; }
35587 if test "x$ac_cv_type_dev_t" = x""yes; then
35591 cat >>confdefs.h <<_ACEOF
35592 #define dev_t unsigned long
35597 { $as_echo "$as_me:$LINENO: checking for daddr_t" >&5
35598 $as_echo_n "checking for daddr_t... " >&6; }
35599 if test "${ac_cv_type_daddr_t+set}" = set; then
35600 $as_echo_n "(cached) " >&6
35602 ac_cv_type_daddr_t=no
35603 cat >conftest.$ac_ext <<_ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h. */
35609 $ac_includes_default
35613 if (sizeof (daddr_t))
35619 rm -f conftest.$ac_objext
35620 if { (ac_try="$ac_compile"
35621 case "(($ac_try" in
35622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35623 *) ac_try_echo=$ac_try;;
35625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35626 $as_echo "$ac_try_echo") >&5
35627 (eval "$ac_compile") 2>conftest.er1
35629 grep -v '^ *+' conftest.er1 >conftest.err
35631 cat conftest.err >&5
35632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); } && {
35634 test -z "$ac_c_werror_flag" ||
35635 test ! -s conftest.err
35636 } && test -s conftest.$ac_objext; then
35637 cat >conftest.$ac_ext <<_ACEOF
35640 cat confdefs.h >>conftest.$ac_ext
35641 cat >>conftest.$ac_ext <<_ACEOF
35642 /* end confdefs.h. */
35643 $ac_includes_default
35647 if (sizeof ((daddr_t)))
35653 rm -f conftest.$ac_objext
35654 if { (ac_try="$ac_compile"
35655 case "(($ac_try" in
35656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657 *) ac_try_echo=$ac_try;;
35659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35660 $as_echo "$ac_try_echo") >&5
35661 (eval "$ac_compile") 2>conftest.er1
35663 grep -v '^ *+' conftest.er1 >conftest.err
35665 cat conftest.err >&5
35666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && {
35668 test -z "$ac_c_werror_flag" ||
35669 test ! -s conftest.err
35670 } && test -s conftest.$ac_objext; then
35673 $as_echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35676 ac_cv_type_daddr_t=yes
35679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35681 $as_echo "$as_me: failed program was:" >&5
35682 sed 's/^/| /' conftest.$ac_ext >&5
35687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
35690 $as_echo "$ac_cv_type_daddr_t" >&6; }
35691 if test "x$ac_cv_type_daddr_t" = x""yes; then
35695 cat >>confdefs.h <<_ACEOF
35696 #define daddr_t long
35701 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
35702 $as_echo_n "checking for major_t... " >&6; }
35703 if test "${ac_cv_type_major_t+set}" = set; then
35704 $as_echo_n "(cached) " >&6
35706 ac_cv_type_major_t=no
35707 cat >conftest.$ac_ext <<_ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h. */
35713 $ac_includes_default
35717 if (sizeof (major_t))
35723 rm -f conftest.$ac_objext
35724 if { (ac_try="$ac_compile"
35725 case "(($ac_try" in
35726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35727 *) ac_try_echo=$ac_try;;
35729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35730 $as_echo "$ac_try_echo") >&5
35731 (eval "$ac_compile") 2>conftest.er1
35733 grep -v '^ *+' conftest.er1 >conftest.err
35735 cat conftest.err >&5
35736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); } && {
35738 test -z "$ac_c_werror_flag" ||
35739 test ! -s conftest.err
35740 } && test -s conftest.$ac_objext; then
35741 cat >conftest.$ac_ext <<_ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h. */
35747 $ac_includes_default
35751 if (sizeof ((major_t)))
35757 rm -f conftest.$ac_objext
35758 if { (ac_try="$ac_compile"
35759 case "(($ac_try" in
35760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35761 *) ac_try_echo=$ac_try;;
35763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35764 $as_echo "$ac_try_echo") >&5
35765 (eval "$ac_compile") 2>conftest.er1
35767 grep -v '^ *+' conftest.er1 >conftest.err
35769 cat conftest.err >&5
35770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); } && {
35772 test -z "$ac_c_werror_flag" ||
35773 test ! -s conftest.err
35774 } && test -s conftest.$ac_objext; then
35777 $as_echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.$ac_ext >&5
35780 ac_cv_type_major_t=yes
35783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35785 $as_echo "$as_me: failed program was:" >&5
35786 sed 's/^/| /' conftest.$ac_ext >&5
35791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35793 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
35794 $as_echo "$ac_cv_type_major_t" >&6; }
35795 if test "x$ac_cv_type_major_t" = x""yes; then
35799 cat >>confdefs.h <<_ACEOF
35800 #define major_t int
35805 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
35806 $as_echo_n "checking for minor_t... " >&6; }
35807 if test "${ac_cv_type_minor_t+set}" = set; then
35808 $as_echo_n "(cached) " >&6
35810 ac_cv_type_minor_t=no
35811 cat >conftest.$ac_ext <<_ACEOF
35814 cat confdefs.h >>conftest.$ac_ext
35815 cat >>conftest.$ac_ext <<_ACEOF
35816 /* end confdefs.h. */
35817 $ac_includes_default
35821 if (sizeof (minor_t))
35827 rm -f conftest.$ac_objext
35828 if { (ac_try="$ac_compile"
35829 case "(($ac_try" in
35830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35831 *) ac_try_echo=$ac_try;;
35833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35834 $as_echo "$ac_try_echo") >&5
35835 (eval "$ac_compile") 2>conftest.er1
35837 grep -v '^ *+' conftest.er1 >conftest.err
35839 cat conftest.err >&5
35840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); } && {
35842 test -z "$ac_c_werror_flag" ||
35843 test ! -s conftest.err
35844 } && test -s conftest.$ac_objext; then
35845 cat >conftest.$ac_ext <<_ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h. */
35851 $ac_includes_default
35855 if (sizeof ((minor_t)))
35861 rm -f conftest.$ac_objext
35862 if { (ac_try="$ac_compile"
35863 case "(($ac_try" in
35864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35865 *) ac_try_echo=$ac_try;;
35867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35868 $as_echo "$ac_try_echo") >&5
35869 (eval "$ac_compile") 2>conftest.er1
35871 grep -v '^ *+' conftest.er1 >conftest.err
35873 cat conftest.err >&5
35874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); } && {
35876 test -z "$ac_c_werror_flag" ||
35877 test ! -s conftest.err
35878 } && test -s conftest.$ac_objext; then
35881 $as_echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35884 ac_cv_type_minor_t=yes
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35889 $as_echo "$as_me: failed program was:" >&5
35890 sed 's/^/| /' conftest.$ac_ext >&5
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
35898 $as_echo "$ac_cv_type_minor_t" >&6; }
35899 if test "x$ac_cv_type_minor_t" = x""yes; then
35903 cat >>confdefs.h <<_ACEOF
35904 #define minor_t int
35909 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35910 $as_echo_n "checking for ssize_t... " >&6; }
35911 if test "${ac_cv_type_ssize_t+set}" = set; then
35912 $as_echo_n "(cached) " >&6
35914 ac_cv_type_ssize_t=no
35915 cat >conftest.$ac_ext <<_ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h. */
35921 $ac_includes_default
35925 if (sizeof (ssize_t))
35931 rm -f conftest.$ac_objext
35932 if { (ac_try="$ac_compile"
35933 case "(($ac_try" in
35934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35935 *) ac_try_echo=$ac_try;;
35937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35938 $as_echo "$ac_try_echo") >&5
35939 (eval "$ac_compile") 2>conftest.er1
35941 grep -v '^ *+' conftest.er1 >conftest.err
35943 cat conftest.err >&5
35944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); } && {
35946 test -z "$ac_c_werror_flag" ||
35947 test ! -s conftest.err
35948 } && test -s conftest.$ac_objext; then
35949 cat >conftest.$ac_ext <<_ACEOF
35952 cat confdefs.h >>conftest.$ac_ext
35953 cat >>conftest.$ac_ext <<_ACEOF
35954 /* end confdefs.h. */
35955 $ac_includes_default
35959 if (sizeof ((ssize_t)))
35965 rm -f conftest.$ac_objext
35966 if { (ac_try="$ac_compile"
35967 case "(($ac_try" in
35968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969 *) ac_try_echo=$ac_try;;
35971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35972 $as_echo "$ac_try_echo") >&5
35973 (eval "$ac_compile") 2>conftest.er1
35975 grep -v '^ *+' conftest.er1 >conftest.err
35977 cat conftest.err >&5
35978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); } && {
35980 test -z "$ac_c_werror_flag" ||
35981 test ! -s conftest.err
35982 } && test -s conftest.$ac_objext; then
35985 $as_echo "$as_me: failed program was:" >&5
35986 sed 's/^/| /' conftest.$ac_ext >&5
35988 ac_cv_type_ssize_t=yes
35991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35993 $as_echo "$as_me: failed program was:" >&5
35994 sed 's/^/| /' conftest.$ac_ext >&5
35999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36001 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36002 $as_echo "$ac_cv_type_ssize_t" >&6; }
36003 if test "x$ac_cv_type_ssize_t" = x""yes; then
36007 cat >>confdefs.h <<_ACEOF
36008 #define ssize_t int
36013 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
36014 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
36015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
36016 $as_echo_n "(cached) " >&6
36018 cat >conftest.$ac_ext <<_ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h. */
36024 $ac_includes_default
36028 static struct stat ac_aggr;
36029 if (ac_aggr.st_blocks)
36035 rm -f conftest.$ac_objext
36036 if { (ac_try="$ac_compile"
36037 case "(($ac_try" in
36038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36039 *) ac_try_echo=$ac_try;;
36041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36042 $as_echo "$ac_try_echo") >&5
36043 (eval "$ac_compile") 2>conftest.er1
36045 grep -v '^ *+' conftest.er1 >conftest.err
36047 cat conftest.err >&5
36048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); } && {
36050 test -z "$ac_c_werror_flag" ||
36051 test ! -s conftest.err
36052 } && test -s conftest.$ac_objext; then
36053 ac_cv_member_struct_stat_st_blocks=yes
36055 $as_echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36058 cat >conftest.$ac_ext <<_ACEOF
36061 cat confdefs.h >>conftest.$ac_ext
36062 cat >>conftest.$ac_ext <<_ACEOF
36063 /* end confdefs.h. */
36064 $ac_includes_default
36068 static struct stat ac_aggr;
36069 if (sizeof ac_aggr.st_blocks)
36075 rm -f conftest.$ac_objext
36076 if { (ac_try="$ac_compile"
36077 case "(($ac_try" in
36078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36079 *) ac_try_echo=$ac_try;;
36081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36082 $as_echo "$ac_try_echo") >&5
36083 (eval "$ac_compile") 2>conftest.er1
36085 grep -v '^ *+' conftest.er1 >conftest.err
36087 cat conftest.err >&5
36088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); } && {
36090 test -z "$ac_c_werror_flag" ||
36091 test ! -s conftest.err
36092 } && test -s conftest.$ac_objext; then
36093 ac_cv_member_struct_stat_st_blocks=yes
36095 $as_echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36098 ac_cv_member_struct_stat_st_blocks=no
36101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36106 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
36107 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
36108 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
36110 cat >>confdefs.h <<_ACEOF
36111 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
36115 cat >>confdefs.h <<\_ACEOF
36116 #define HAVE_ST_BLOCKS 1
36120 case " $LIBOBJS " in
36121 *" fileblocks.$ac_objext "* ) ;;
36122 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
36129 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36130 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
36131 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36132 $as_echo_n "(cached) " >&6
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
36144 static struct stat ac_aggr;
36145 if (ac_aggr.st_rdev)
36151 rm -f conftest.$ac_objext
36152 if { (ac_try="$ac_compile"
36153 case "(($ac_try" in
36154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155 *) ac_try_echo=$ac_try;;
36157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36158 $as_echo "$ac_try_echo") >&5
36159 (eval "$ac_compile") 2>conftest.er1
36161 grep -v '^ *+' conftest.er1 >conftest.err
36163 cat conftest.err >&5
36164 $as_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_cv_member_struct_stat_st_rdev=yes
36171 $as_echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36174 cat >conftest.$ac_ext <<_ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h. */
36180 $ac_includes_default
36184 static struct stat ac_aggr;
36185 if (sizeof ac_aggr.st_rdev)
36191 rm -f conftest.$ac_objext
36192 if { (ac_try="$ac_compile"
36193 case "(($ac_try" in
36194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36195 *) ac_try_echo=$ac_try;;
36197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36198 $as_echo "$ac_try_echo") >&5
36199 (eval "$ac_compile") 2>conftest.er1
36201 grep -v '^ *+' conftest.er1 >conftest.err
36203 cat conftest.err >&5
36204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); } && {
36206 test -z "$ac_c_werror_flag" ||
36207 test ! -s conftest.err
36208 } && test -s conftest.$ac_objext; then
36209 ac_cv_member_struct_stat_st_rdev=yes
36211 $as_echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36214 ac_cv_member_struct_stat_st_rdev=no
36217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36223 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36224 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36226 cat >>confdefs.h <<_ACEOF
36227 #define HAVE_STRUCT_STAT_ST_RDEV 1
36231 cat >>confdefs.h <<\_ACEOF
36232 #define HAVE_ST_RDEV 1
36238 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
36239 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
36240 if test "${ac_cv_struct_tm+set}" = set; then
36241 $as_echo_n "(cached) " >&6
36243 cat >conftest.$ac_ext <<_ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h. */
36249 #include <sys/types.h>
36256 int *p = &tm.tm_sec;
36262 rm -f conftest.$ac_objext
36263 if { (ac_try="$ac_compile"
36264 case "(($ac_try" in
36265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266 *) ac_try_echo=$ac_try;;
36268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36269 $as_echo "$ac_try_echo") >&5
36270 (eval "$ac_compile") 2>conftest.er1
36272 grep -v '^ *+' conftest.er1 >conftest.err
36274 cat conftest.err >&5
36275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); } && {
36277 test -z "$ac_c_werror_flag" ||
36278 test ! -s conftest.err
36279 } && test -s conftest.$ac_objext; then
36280 ac_cv_struct_tm=time.h
36282 $as_echo "$as_me: failed program was:" >&5
36283 sed 's/^/| /' conftest.$ac_ext >&5
36285 ac_cv_struct_tm=sys/time.h
36288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36290 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
36291 $as_echo "$ac_cv_struct_tm" >&6; }
36292 if test $ac_cv_struct_tm = sys/time.h; then
36294 cat >>confdefs.h <<\_ACEOF
36295 #define TM_IN_SYS_TIME 1
36300 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
36301 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
36302 if test "${ac_cv_c_const+set}" = set; then
36303 $as_echo_n "(cached) " >&6
36305 cat >conftest.$ac_ext <<_ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h. */
36315 /* FIXME: Include the comments suggested by Paul. */
36316 #ifndef __cplusplus
36317 /* Ultrix mips cc rejects this. */
36318 typedef int charset[2];
36320 /* SunOS 4.1.1 cc rejects this. */
36321 char const *const *pcpcc;
36323 /* NEC SVR4.0.2 mips cc rejects this. */
36324 struct point {int x, y;};
36325 static struct point const zero = {0,0};
36326 /* AIX XL C 1.02.0.0 rejects this.
36327 It does not let you subtract one const X* pointer from another in
36328 an arm of an if-expression whose if-part is not a constant
36330 const char *g = "string";
36331 pcpcc = &g + (g ? g-g : 0);
36332 /* HPUX 7.0 cc rejects these. */
36334 ppc = (char**) pcpcc;
36335 pcpcc = (char const *const *) ppc;
36336 { /* SCO 3.2v4 cc rejects this. */
36338 char const *s = 0 ? (char *) 0 : (char const *) 0;
36343 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
36344 int x[] = {25, 17};
36345 const int *foo = &x[0];
36348 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
36349 typedef const int *iptr;
36353 { /* AIX XL C 1.02.0.0 rejects this saying
36354 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
36355 struct s { int j; const int *ap[3]; };
36356 struct s *b; b->j = 5;
36358 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
36359 const int foo = 10;
36360 if (!foo) return 0;
36362 return !cs[0] && !zero.x;
36369 rm -f conftest.$ac_objext
36370 if { (ac_try="$ac_compile"
36371 case "(($ac_try" in
36372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373 *) ac_try_echo=$ac_try;;
36375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36376 $as_echo "$ac_try_echo") >&5
36377 (eval "$ac_compile") 2>conftest.er1
36379 grep -v '^ *+' conftest.er1 >conftest.err
36381 cat conftest.err >&5
36382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); } && {
36384 test -z "$ac_c_werror_flag" ||
36385 test ! -s conftest.err
36386 } && test -s conftest.$ac_objext; then
36389 $as_echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36397 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
36398 $as_echo "$ac_cv_c_const" >&6; }
36399 if test $ac_cv_c_const = no; then
36401 cat >>confdefs.h <<\_ACEOF
36408 # The cast to long int works around a bug in the HP C Compiler
36409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36411 # This bug is HP SR number 8606223364.
36412 { $as_echo "$as_me:$LINENO: checking size of char" >&5
36413 $as_echo_n "checking size of char... " >&6; }
36414 if test "${ac_cv_sizeof_char+set}" = set; then
36415 $as_echo_n "(cached) " >&6
36417 if test "$cross_compiling" = yes; then
36418 # Depending upon the size, compute the lo and hi bounds.
36419 cat >conftest.$ac_ext <<_ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h. */
36425 $ac_includes_default
36429 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
36436 rm -f conftest.$ac_objext
36437 if { (ac_try="$ac_compile"
36438 case "(($ac_try" in
36439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36440 *) ac_try_echo=$ac_try;;
36442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36443 $as_echo "$ac_try_echo") >&5
36444 (eval "$ac_compile") 2>conftest.er1
36446 grep -v '^ *+' conftest.er1 >conftest.err
36448 cat conftest.err >&5
36449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } && {
36451 test -z "$ac_c_werror_flag" ||
36452 test ! -s conftest.err
36453 } && test -s conftest.$ac_objext; then
36456 cat >conftest.$ac_ext <<_ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h. */
36462 $ac_includes_default
36466 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36473 rm -f conftest.$ac_objext
36474 if { (ac_try="$ac_compile"
36475 case "(($ac_try" in
36476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36477 *) ac_try_echo=$ac_try;;
36479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36480 $as_echo "$ac_try_echo") >&5
36481 (eval "$ac_compile") 2>conftest.er1
36483 grep -v '^ *+' conftest.er1 >conftest.err
36485 cat conftest.err >&5
36486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); } && {
36488 test -z "$ac_c_werror_flag" ||
36489 test ! -s conftest.err
36490 } && test -s conftest.$ac_objext; then
36491 ac_hi=$ac_mid; break
36493 $as_echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36496 ac_lo=`expr $ac_mid + 1`
36497 if test $ac_lo -le $ac_mid; then
36501 ac_mid=`expr 2 '*' $ac_mid + 1`
36504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36507 $as_echo "$as_me: failed program was:" >&5
36508 sed 's/^/| /' conftest.$ac_ext >&5
36510 cat >conftest.$ac_ext <<_ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h. */
36516 $ac_includes_default
36520 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36527 rm -f conftest.$ac_objext
36528 if { (ac_try="$ac_compile"
36529 case "(($ac_try" in
36530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531 *) ac_try_echo=$ac_try;;
36533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36534 $as_echo "$ac_try_echo") >&5
36535 (eval "$ac_compile") 2>conftest.er1
36537 grep -v '^ *+' conftest.er1 >conftest.err
36539 cat conftest.err >&5
36540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); } && {
36542 test -z "$ac_c_werror_flag" ||
36543 test ! -s conftest.err
36544 } && test -s conftest.$ac_objext; then
36547 cat >conftest.$ac_ext <<_ACEOF
36550 cat confdefs.h >>conftest.$ac_ext
36551 cat >>conftest.$ac_ext <<_ACEOF
36552 /* end confdefs.h. */
36553 $ac_includes_default
36557 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36564 rm -f conftest.$ac_objext
36565 if { (ac_try="$ac_compile"
36566 case "(($ac_try" in
36567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36568 *) ac_try_echo=$ac_try;;
36570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36571 $as_echo "$ac_try_echo") >&5
36572 (eval "$ac_compile") 2>conftest.er1
36574 grep -v '^ *+' conftest.er1 >conftest.err
36576 cat conftest.err >&5
36577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); } && {
36579 test -z "$ac_c_werror_flag" ||
36580 test ! -s conftest.err
36581 } && test -s conftest.$ac_objext; then
36582 ac_lo=$ac_mid; break
36584 $as_echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36587 ac_hi=`expr '(' $ac_mid ')' - 1`
36588 if test $ac_mid -le $ac_hi; then
36592 ac_mid=`expr 2 '*' $ac_mid`
36595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36598 $as_echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36608 # Binary search between lo and hi bounds.
36609 while test "x$ac_lo" != "x$ac_hi"; do
36610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36611 cat >conftest.$ac_ext <<_ACEOF
36614 cat confdefs.h >>conftest.$ac_ext
36615 cat >>conftest.$ac_ext <<_ACEOF
36616 /* end confdefs.h. */
36617 $ac_includes_default
36621 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632 *) ac_try_echo=$ac_try;;
36634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36635 $as_echo "$ac_try_echo") >&5
36636 (eval "$ac_compile") 2>conftest.er1
36638 grep -v '^ *+' conftest.er1 >conftest.err
36640 cat conftest.err >&5
36641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36642 (exit $ac_status); } && {
36643 test -z "$ac_c_werror_flag" ||
36644 test ! -s conftest.err
36645 } && test -s conftest.$ac_objext; then
36648 $as_echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36651 ac_lo=`expr '(' $ac_mid ')' + 1`
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36657 ?*) ac_cv_sizeof_char=$ac_lo;;
36658 '') if test "$ac_cv_type_char" = yes; then
36659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36661 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36662 See \`config.log' for more details." >&5
36663 $as_echo "$as_me: error: cannot compute sizeof (char)
36664 See \`config.log' for more details." >&2;}
36665 { (exit 77); exit 77; }; }; }
36667 ac_cv_sizeof_char=0
36671 cat >conftest.$ac_ext <<_ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h. */
36677 $ac_includes_default
36678 static long int longval () { return (long int) (sizeof (char)); }
36679 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36681 #include <stdlib.h>
36686 FILE *f = fopen ("conftest.val", "w");
36689 if (((long int) (sizeof (char))) < 0)
36691 long int i = longval ();
36692 if (i != ((long int) (sizeof (char))))
36694 fprintf (f, "%ld", i);
36698 unsigned long int i = ulongval ();
36699 if (i != ((long int) (sizeof (char))))
36701 fprintf (f, "%lu", i);
36703 /* Do not output a trailing newline, as this causes \r\n confusion
36704 on some platforms. */
36705 return ferror (f) || fclose (f) != 0;
36711 rm -f conftest$ac_exeext
36712 if { (ac_try="$ac_link"
36713 case "(($ac_try" in
36714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715 *) ac_try_echo=$ac_try;;
36717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36718 $as_echo "$ac_try_echo") >&5
36719 (eval "$ac_link") 2>&5
36721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36723 { (case "(($ac_try" in
36724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36725 *) ac_try_echo=$ac_try;;
36727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36728 $as_echo "$ac_try_echo") >&5
36729 (eval "$ac_try") 2>&5
36731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732 (exit $ac_status); }; }; then
36733 ac_cv_sizeof_char=`cat conftest.val`
36735 $as_echo "$as_me: program exited with status $ac_status" >&5
36736 $as_echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36739 ( exit $ac_status )
36740 if test "$ac_cv_type_char" = yes; then
36741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36743 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36744 See \`config.log' for more details." >&5
36745 $as_echo "$as_me: error: cannot compute sizeof (char)
36746 See \`config.log' for more details." >&2;}
36747 { (exit 77); exit 77; }; }; }
36749 ac_cv_sizeof_char=0
36752 rm -rf conftest.dSYM
36753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36757 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
36758 $as_echo "$ac_cv_sizeof_char" >&6; }
36762 cat >>confdefs.h <<_ACEOF
36763 #define SIZEOF_CHAR $ac_cv_sizeof_char
36767 # The cast to long int works around a bug in the HP C Compiler
36768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36770 # This bug is HP SR number 8606223364.
36771 { $as_echo "$as_me:$LINENO: checking size of short int" >&5
36772 $as_echo_n "checking size of short int... " >&6; }
36773 if test "${ac_cv_sizeof_short_int+set}" = set; then
36774 $as_echo_n "(cached) " >&6
36776 if test "$cross_compiling" = yes; then
36777 # Depending upon the size, compute the lo and hi bounds.
36778 cat >conftest.$ac_ext <<_ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h. */
36784 $ac_includes_default
36788 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
36795 rm -f conftest.$ac_objext
36796 if { (ac_try="$ac_compile"
36797 case "(($ac_try" in
36798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799 *) ac_try_echo=$ac_try;;
36801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36802 $as_echo "$ac_try_echo") >&5
36803 (eval "$ac_compile") 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } && {
36810 test -z "$ac_c_werror_flag" ||
36811 test ! -s conftest.err
36812 } && test -s conftest.$ac_objext; then
36815 cat >conftest.$ac_ext <<_ACEOF
36818 cat confdefs.h >>conftest.$ac_ext
36819 cat >>conftest.$ac_ext <<_ACEOF
36820 /* end confdefs.h. */
36821 $ac_includes_default
36825 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36832 rm -f conftest.$ac_objext
36833 if { (ac_try="$ac_compile"
36834 case "(($ac_try" in
36835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36836 *) ac_try_echo=$ac_try;;
36838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36839 $as_echo "$ac_try_echo") >&5
36840 (eval "$ac_compile") 2>conftest.er1
36842 grep -v '^ *+' conftest.er1 >conftest.err
36844 cat conftest.err >&5
36845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); } && {
36847 test -z "$ac_c_werror_flag" ||
36848 test ! -s conftest.err
36849 } && test -s conftest.$ac_objext; then
36850 ac_hi=$ac_mid; break
36852 $as_echo "$as_me: failed program was:" >&5
36853 sed 's/^/| /' conftest.$ac_ext >&5
36855 ac_lo=`expr $ac_mid + 1`
36856 if test $ac_lo -le $ac_mid; then
36860 ac_mid=`expr 2 '*' $ac_mid + 1`
36863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36866 $as_echo "$as_me: failed program was:" >&5
36867 sed 's/^/| /' conftest.$ac_ext >&5
36869 cat >conftest.$ac_ext <<_ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h. */
36875 $ac_includes_default
36879 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
36886 rm -f conftest.$ac_objext
36887 if { (ac_try="$ac_compile"
36888 case "(($ac_try" in
36889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890 *) ac_try_echo=$ac_try;;
36892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36893 $as_echo "$ac_try_echo") >&5
36894 (eval "$ac_compile") 2>conftest.er1
36896 grep -v '^ *+' conftest.er1 >conftest.err
36898 cat conftest.err >&5
36899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); } && {
36901 test -z "$ac_c_werror_flag" ||
36902 test ! -s conftest.err
36903 } && test -s conftest.$ac_objext; then
36906 cat >conftest.$ac_ext <<_ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h. */
36912 $ac_includes_default
36916 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
36923 rm -f conftest.$ac_objext
36924 if { (ac_try="$ac_compile"
36925 case "(($ac_try" in
36926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36927 *) ac_try_echo=$ac_try;;
36929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36930 $as_echo "$ac_try_echo") >&5
36931 (eval "$ac_compile") 2>conftest.er1
36933 grep -v '^ *+' conftest.er1 >conftest.err
36935 cat conftest.err >&5
36936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); } && {
36938 test -z "$ac_c_werror_flag" ||
36939 test ! -s conftest.err
36940 } && test -s conftest.$ac_objext; then
36941 ac_lo=$ac_mid; break
36943 $as_echo "$as_me: failed program was:" >&5
36944 sed 's/^/| /' conftest.$ac_ext >&5
36946 ac_hi=`expr '(' $ac_mid ')' - 1`
36947 if test $ac_mid -le $ac_hi; then
36951 ac_mid=`expr 2 '*' $ac_mid`
36954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36957 $as_echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36967 # Binary search between lo and hi bounds.
36968 while test "x$ac_lo" != "x$ac_hi"; do
36969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36970 cat >conftest.$ac_ext <<_ACEOF
36973 cat confdefs.h >>conftest.$ac_ext
36974 cat >>conftest.$ac_ext <<_ACEOF
36975 /* end confdefs.h. */
36976 $ac_includes_default
36980 static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
36987 rm -f conftest.$ac_objext
36988 if { (ac_try="$ac_compile"
36989 case "(($ac_try" in
36990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991 *) ac_try_echo=$ac_try;;
36993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36994 $as_echo "$ac_try_echo") >&5
36995 (eval "$ac_compile") 2>conftest.er1
36997 grep -v '^ *+' conftest.er1 >conftest.err
36999 cat conftest.err >&5
37000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); } && {
37002 test -z "$ac_c_werror_flag" ||
37003 test ! -s conftest.err
37004 } && test -s conftest.$ac_objext; then
37007 $as_echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37010 ac_lo=`expr '(' $ac_mid ')' + 1`
37013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37016 ?*) ac_cv_sizeof_short_int=$ac_lo;;
37017 '') if test "$ac_cv_type_short_int" = yes; then
37018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37021 See \`config.log' for more details." >&5
37022 $as_echo "$as_me: error: cannot compute sizeof (short int)
37023 See \`config.log' for more details." >&2;}
37024 { (exit 77); exit 77; }; }; }
37026 ac_cv_sizeof_short_int=0
37030 cat >conftest.$ac_ext <<_ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h. */
37036 $ac_includes_default
37037 static long int longval () { return (long int) (sizeof (short int)); }
37038 static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
37040 #include <stdlib.h>
37045 FILE *f = fopen ("conftest.val", "w");
37048 if (((long int) (sizeof (short int))) < 0)
37050 long int i = longval ();
37051 if (i != ((long int) (sizeof (short int))))
37053 fprintf (f, "%ld", i);
37057 unsigned long int i = ulongval ();
37058 if (i != ((long int) (sizeof (short int))))
37060 fprintf (f, "%lu", i);
37062 /* Do not output a trailing newline, as this causes \r\n confusion
37063 on some platforms. */
37064 return ferror (f) || fclose (f) != 0;
37070 rm -f conftest$ac_exeext
37071 if { (ac_try="$ac_link"
37072 case "(($ac_try" in
37073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37074 *) ac_try_echo=$ac_try;;
37076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37077 $as_echo "$ac_try_echo") >&5
37078 (eval "$ac_link") 2>&5
37080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37082 { (case "(($ac_try" in
37083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37084 *) ac_try_echo=$ac_try;;
37086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37087 $as_echo "$ac_try_echo") >&5
37088 (eval "$ac_try") 2>&5
37090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092 ac_cv_sizeof_short_int=`cat conftest.val`
37094 $as_echo "$as_me: program exited with status $ac_status" >&5
37095 $as_echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37098 ( exit $ac_status )
37099 if test "$ac_cv_type_short_int" = yes; then
37100 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37102 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
37103 See \`config.log' for more details." >&5
37104 $as_echo "$as_me: error: cannot compute sizeof (short int)
37105 See \`config.log' for more details." >&2;}
37106 { (exit 77); exit 77; }; }; }
37108 ac_cv_sizeof_short_int=0
37111 rm -rf conftest.dSYM
37112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37116 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
37117 $as_echo "$ac_cv_sizeof_short_int" >&6; }
37121 cat >>confdefs.h <<_ACEOF
37122 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
37126 # The cast to long int works around a bug in the HP C Compiler
37127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37129 # This bug is HP SR number 8606223364.
37130 { $as_echo "$as_me:$LINENO: checking size of int" >&5
37131 $as_echo_n "checking size of int... " >&6; }
37132 if test "${ac_cv_sizeof_int+set}" = set; then
37133 $as_echo_n "(cached) " >&6
37135 if test "$cross_compiling" = yes; then
37136 # Depending upon the size, compute the lo and hi bounds.
37137 cat >conftest.$ac_ext <<_ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h. */
37143 $ac_includes_default
37147 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
37154 rm -f conftest.$ac_objext
37155 if { (ac_try="$ac_compile"
37156 case "(($ac_try" in
37157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37158 *) ac_try_echo=$ac_try;;
37160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37161 $as_echo "$ac_try_echo") >&5
37162 (eval "$ac_compile") 2>conftest.er1
37164 grep -v '^ *+' conftest.er1 >conftest.err
37166 cat conftest.err >&5
37167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); } && {
37169 test -z "$ac_c_werror_flag" ||
37170 test ! -s conftest.err
37171 } && test -s conftest.$ac_objext; then
37174 cat >conftest.$ac_ext <<_ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 $ac_includes_default
37184 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37191 rm -f conftest.$ac_objext
37192 if { (ac_try="$ac_compile"
37193 case "(($ac_try" in
37194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37195 *) ac_try_echo=$ac_try;;
37197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37198 $as_echo "$ac_try_echo") >&5
37199 (eval "$ac_compile") 2>conftest.er1
37201 grep -v '^ *+' conftest.er1 >conftest.err
37203 cat conftest.err >&5
37204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); } && {
37206 test -z "$ac_c_werror_flag" ||
37207 test ! -s conftest.err
37208 } && test -s conftest.$ac_objext; then
37209 ac_hi=$ac_mid; break
37211 $as_echo "$as_me: failed program was:" >&5
37212 sed 's/^/| /' conftest.$ac_ext >&5
37214 ac_lo=`expr $ac_mid + 1`
37215 if test $ac_lo -le $ac_mid; then
37219 ac_mid=`expr 2 '*' $ac_mid + 1`
37222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37225 $as_echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37234 $ac_includes_default
37238 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
37245 rm -f conftest.$ac_objext
37246 if { (ac_try="$ac_compile"
37247 case "(($ac_try" in
37248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249 *) ac_try_echo=$ac_try;;
37251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37252 $as_echo "$ac_try_echo") >&5
37253 (eval "$ac_compile") 2>conftest.er1
37255 grep -v '^ *+' conftest.er1 >conftest.err
37257 cat conftest.err >&5
37258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259 (exit $ac_status); } && {
37260 test -z "$ac_c_werror_flag" ||
37261 test ! -s conftest.err
37262 } && test -s conftest.$ac_objext; then
37265 cat >conftest.$ac_ext <<_ACEOF
37268 cat confdefs.h >>conftest.$ac_ext
37269 cat >>conftest.$ac_ext <<_ACEOF
37270 /* end confdefs.h. */
37271 $ac_includes_default
37275 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
37282 rm -f conftest.$ac_objext
37283 if { (ac_try="$ac_compile"
37284 case "(($ac_try" in
37285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37286 *) ac_try_echo=$ac_try;;
37288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37289 $as_echo "$ac_try_echo") >&5
37290 (eval "$ac_compile") 2>conftest.er1
37292 grep -v '^ *+' conftest.er1 >conftest.err
37294 cat conftest.err >&5
37295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); } && {
37297 test -z "$ac_c_werror_flag" ||
37298 test ! -s conftest.err
37299 } && test -s conftest.$ac_objext; then
37300 ac_lo=$ac_mid; break
37302 $as_echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37305 ac_hi=`expr '(' $ac_mid ')' - 1`
37306 if test $ac_mid -le $ac_hi; then
37310 ac_mid=`expr 2 '*' $ac_mid`
37313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37316 $as_echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37326 # Binary search between lo and hi bounds.
37327 while test "x$ac_lo" != "x$ac_hi"; do
37328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37329 cat >conftest.$ac_ext <<_ACEOF
37332 cat confdefs.h >>conftest.$ac_ext
37333 cat >>conftest.$ac_ext <<_ACEOF
37334 /* end confdefs.h. */
37335 $ac_includes_default
37339 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
37346 rm -f conftest.$ac_objext
37347 if { (ac_try="$ac_compile"
37348 case "(($ac_try" in
37349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37350 *) ac_try_echo=$ac_try;;
37352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37353 $as_echo "$ac_try_echo") >&5
37354 (eval "$ac_compile") 2>conftest.er1
37356 grep -v '^ *+' conftest.er1 >conftest.err
37358 cat conftest.err >&5
37359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); } && {
37361 test -z "$ac_c_werror_flag" ||
37362 test ! -s conftest.err
37363 } && test -s conftest.$ac_objext; then
37366 $as_echo "$as_me: failed program was:" >&5
37367 sed 's/^/| /' conftest.$ac_ext >&5
37369 ac_lo=`expr '(' $ac_mid ')' + 1`
37372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37375 ?*) ac_cv_sizeof_int=$ac_lo;;
37376 '') if test "$ac_cv_type_int" = yes; then
37377 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37379 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37380 See \`config.log' for more details." >&5
37381 $as_echo "$as_me: error: cannot compute sizeof (int)
37382 See \`config.log' for more details." >&2;}
37383 { (exit 77); exit 77; }; }; }
37389 cat >conftest.$ac_ext <<_ACEOF
37392 cat confdefs.h >>conftest.$ac_ext
37393 cat >>conftest.$ac_ext <<_ACEOF
37394 /* end confdefs.h. */
37395 $ac_includes_default
37396 static long int longval () { return (long int) (sizeof (int)); }
37397 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
37399 #include <stdlib.h>
37404 FILE *f = fopen ("conftest.val", "w");
37407 if (((long int) (sizeof (int))) < 0)
37409 long int i = longval ();
37410 if (i != ((long int) (sizeof (int))))
37412 fprintf (f, "%ld", i);
37416 unsigned long int i = ulongval ();
37417 if (i != ((long int) (sizeof (int))))
37419 fprintf (f, "%lu", i);
37421 /* Do not output a trailing newline, as this causes \r\n confusion
37422 on some platforms. */
37423 return ferror (f) || fclose (f) != 0;
37429 rm -f conftest$ac_exeext
37430 if { (ac_try="$ac_link"
37431 case "(($ac_try" in
37432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37433 *) ac_try_echo=$ac_try;;
37435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37436 $as_echo "$ac_try_echo") >&5
37437 (eval "$ac_link") 2>&5
37439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37441 { (case "(($ac_try" in
37442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37443 *) ac_try_echo=$ac_try;;
37445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37446 $as_echo "$ac_try_echo") >&5
37447 (eval "$ac_try") 2>&5
37449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); }; }; then
37451 ac_cv_sizeof_int=`cat conftest.val`
37453 $as_echo "$as_me: program exited with status $ac_status" >&5
37454 $as_echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37457 ( exit $ac_status )
37458 if test "$ac_cv_type_int" = yes; then
37459 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37461 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
37462 See \`config.log' for more details." >&5
37463 $as_echo "$as_me: error: cannot compute sizeof (int)
37464 See \`config.log' for more details." >&2;}
37465 { (exit 77); exit 77; }; }; }
37470 rm -rf conftest.dSYM
37471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37475 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
37476 $as_echo "$ac_cv_sizeof_int" >&6; }
37480 cat >>confdefs.h <<_ACEOF
37481 #define SIZEOF_INT $ac_cv_sizeof_int
37485 # The cast to long int works around a bug in the HP C Compiler
37486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37488 # This bug is HP SR number 8606223364.
37489 { $as_echo "$as_me:$LINENO: checking size of long int" >&5
37490 $as_echo_n "checking size of long int... " >&6; }
37491 if test "${ac_cv_sizeof_long_int+set}" = set; then
37492 $as_echo_n "(cached) " >&6
37494 if test "$cross_compiling" = yes; then
37495 # Depending upon the size, compute the lo and hi bounds.
37496 cat >conftest.$ac_ext <<_ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h. */
37502 $ac_includes_default
37506 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
37513 rm -f conftest.$ac_objext
37514 if { (ac_try="$ac_compile"
37515 case "(($ac_try" in
37516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517 *) ac_try_echo=$ac_try;;
37519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37520 $as_echo "$ac_try_echo") >&5
37521 (eval "$ac_compile") 2>conftest.er1
37523 grep -v '^ *+' conftest.er1 >conftest.err
37525 cat conftest.err >&5
37526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); } && {
37528 test -z "$ac_c_werror_flag" ||
37529 test ! -s conftest.err
37530 } && test -s conftest.$ac_objext; then
37533 cat >conftest.$ac_ext <<_ACEOF
37536 cat confdefs.h >>conftest.$ac_ext
37537 cat >>conftest.$ac_ext <<_ACEOF
37538 /* end confdefs.h. */
37539 $ac_includes_default
37543 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37550 rm -f conftest.$ac_objext
37551 if { (ac_try="$ac_compile"
37552 case "(($ac_try" in
37553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37554 *) ac_try_echo=$ac_try;;
37556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37557 $as_echo "$ac_try_echo") >&5
37558 (eval "$ac_compile") 2>conftest.er1
37560 grep -v '^ *+' conftest.er1 >conftest.err
37562 cat conftest.err >&5
37563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); } && {
37565 test -z "$ac_c_werror_flag" ||
37566 test ! -s conftest.err
37567 } && test -s conftest.$ac_objext; then
37568 ac_hi=$ac_mid; break
37570 $as_echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37573 ac_lo=`expr $ac_mid + 1`
37574 if test $ac_lo -le $ac_mid; then
37578 ac_mid=`expr 2 '*' $ac_mid + 1`
37581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37584 $as_echo "$as_me: failed program was:" >&5
37585 sed 's/^/| /' conftest.$ac_ext >&5
37587 cat >conftest.$ac_ext <<_ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h. */
37593 $ac_includes_default
37597 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608 *) ac_try_echo=$ac_try;;
37610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37611 $as_echo "$ac_try_echo") >&5
37612 (eval "$ac_compile") 2>conftest.er1
37614 grep -v '^ *+' conftest.er1 >conftest.err
37616 cat conftest.err >&5
37617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } && {
37619 test -z "$ac_c_werror_flag" ||
37620 test ! -s conftest.err
37621 } && test -s conftest.$ac_objext; then
37624 cat >conftest.$ac_ext <<_ACEOF
37627 cat confdefs.h >>conftest.$ac_ext
37628 cat >>conftest.$ac_ext <<_ACEOF
37629 /* end confdefs.h. */
37630 $ac_includes_default
37634 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
37641 rm -f conftest.$ac_objext
37642 if { (ac_try="$ac_compile"
37643 case "(($ac_try" in
37644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645 *) ac_try_echo=$ac_try;;
37647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37648 $as_echo "$ac_try_echo") >&5
37649 (eval "$ac_compile") 2>conftest.er1
37651 grep -v '^ *+' conftest.er1 >conftest.err
37653 cat conftest.err >&5
37654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655 (exit $ac_status); } && {
37656 test -z "$ac_c_werror_flag" ||
37657 test ! -s conftest.err
37658 } && test -s conftest.$ac_objext; then
37659 ac_lo=$ac_mid; break
37661 $as_echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37664 ac_hi=`expr '(' $ac_mid ')' - 1`
37665 if test $ac_mid -le $ac_hi; then
37669 ac_mid=`expr 2 '*' $ac_mid`
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37675 $as_echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37685 # Binary search between lo and hi bounds.
37686 while test "x$ac_lo" != "x$ac_hi"; do
37687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37688 cat >conftest.$ac_ext <<_ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h. */
37694 $ac_includes_default
37698 static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
37705 rm -f conftest.$ac_objext
37706 if { (ac_try="$ac_compile"
37707 case "(($ac_try" in
37708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709 *) ac_try_echo=$ac_try;;
37711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37712 $as_echo "$ac_try_echo") >&5
37713 (eval "$ac_compile") 2>conftest.er1
37715 grep -v '^ *+' conftest.er1 >conftest.err
37717 cat conftest.err >&5
37718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } && {
37720 test -z "$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37722 } && test -s conftest.$ac_objext; then
37725 $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37728 ac_lo=`expr '(' $ac_mid ')' + 1`
37731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37734 ?*) ac_cv_sizeof_long_int=$ac_lo;;
37735 '') if test "$ac_cv_type_long_int" = yes; then
37736 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37738 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37739 See \`config.log' for more details." >&5
37740 $as_echo "$as_me: error: cannot compute sizeof (long int)
37741 See \`config.log' for more details." >&2;}
37742 { (exit 77); exit 77; }; }; }
37744 ac_cv_sizeof_long_int=0
37748 cat >conftest.$ac_ext <<_ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h. */
37754 $ac_includes_default
37755 static long int longval () { return (long int) (sizeof (long int)); }
37756 static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
37758 #include <stdlib.h>
37763 FILE *f = fopen ("conftest.val", "w");
37766 if (((long int) (sizeof (long int))) < 0)
37768 long int i = longval ();
37769 if (i != ((long int) (sizeof (long int))))
37771 fprintf (f, "%ld", i);
37775 unsigned long int i = ulongval ();
37776 if (i != ((long int) (sizeof (long int))))
37778 fprintf (f, "%lu", i);
37780 /* Do not output a trailing newline, as this causes \r\n confusion
37781 on some platforms. */
37782 return ferror (f) || fclose (f) != 0;
37788 rm -f conftest$ac_exeext
37789 if { (ac_try="$ac_link"
37790 case "(($ac_try" in
37791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37792 *) ac_try_echo=$ac_try;;
37794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37795 $as_echo "$ac_try_echo") >&5
37796 (eval "$ac_link") 2>&5
37798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37800 { (case "(($ac_try" in
37801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37802 *) ac_try_echo=$ac_try;;
37804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37805 $as_echo "$ac_try_echo") >&5
37806 (eval "$ac_try") 2>&5
37808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); }; }; then
37810 ac_cv_sizeof_long_int=`cat conftest.val`
37812 $as_echo "$as_me: program exited with status $ac_status" >&5
37813 $as_echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.$ac_ext >&5
37816 ( exit $ac_status )
37817 if test "$ac_cv_type_long_int" = yes; then
37818 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37820 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
37821 See \`config.log' for more details." >&5
37822 $as_echo "$as_me: error: cannot compute sizeof (long int)
37823 See \`config.log' for more details." >&2;}
37824 { (exit 77); exit 77; }; }; }
37826 ac_cv_sizeof_long_int=0
37829 rm -rf conftest.dSYM
37830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37834 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
37835 $as_echo "$ac_cv_sizeof_long_int" >&6; }
37839 cat >>confdefs.h <<_ACEOF
37840 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
37844 # The cast to long int works around a bug in the HP C Compiler
37845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37847 # This bug is HP SR number 8606223364.
37848 { $as_echo "$as_me:$LINENO: checking size of long long int" >&5
37849 $as_echo_n "checking size of long long int... " >&6; }
37850 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
37851 $as_echo_n "(cached) " >&6
37853 if test "$cross_compiling" = yes; then
37854 # Depending upon the size, compute the lo and hi bounds.
37855 cat >conftest.$ac_ext <<_ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37861 $ac_includes_default
37865 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
37872 rm -f conftest.$ac_objext
37873 if { (ac_try="$ac_compile"
37874 case "(($ac_try" in
37875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37876 *) ac_try_echo=$ac_try;;
37878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37879 $as_echo "$ac_try_echo") >&5
37880 (eval "$ac_compile") 2>conftest.er1
37882 grep -v '^ *+' conftest.er1 >conftest.err
37884 cat conftest.err >&5
37885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); } && {
37887 test -z "$ac_c_werror_flag" ||
37888 test ! -s conftest.err
37889 } && test -s conftest.$ac_objext; then
37892 cat >conftest.$ac_ext <<_ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h. */
37898 $ac_includes_default
37902 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
37909 rm -f conftest.$ac_objext
37910 if { (ac_try="$ac_compile"
37911 case "(($ac_try" in
37912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37913 *) ac_try_echo=$ac_try;;
37915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37916 $as_echo "$ac_try_echo") >&5
37917 (eval "$ac_compile") 2>conftest.er1
37919 grep -v '^ *+' conftest.er1 >conftest.err
37921 cat conftest.err >&5
37922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); } && {
37924 test -z "$ac_c_werror_flag" ||
37925 test ! -s conftest.err
37926 } && test -s conftest.$ac_objext; then
37927 ac_hi=$ac_mid; break
37929 $as_echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37932 ac_lo=`expr $ac_mid + 1`
37933 if test $ac_lo -le $ac_mid; then
37937 ac_mid=`expr 2 '*' $ac_mid + 1`
37940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37943 $as_echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37946 cat >conftest.$ac_ext <<_ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h. */
37952 $ac_includes_default
37956 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
37963 rm -f conftest.$ac_objext
37964 if { (ac_try="$ac_compile"
37965 case "(($ac_try" in
37966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967 *) ac_try_echo=$ac_try;;
37969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37970 $as_echo "$ac_try_echo") >&5
37971 (eval "$ac_compile") 2>conftest.er1
37973 grep -v '^ *+' conftest.er1 >conftest.err
37975 cat conftest.err >&5
37976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); } && {
37978 test -z "$ac_c_werror_flag" ||
37979 test ! -s conftest.err
37980 } && test -s conftest.$ac_objext; then
37983 cat >conftest.$ac_ext <<_ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h. */
37989 $ac_includes_default
37993 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
38000 rm -f conftest.$ac_objext
38001 if { (ac_try="$ac_compile"
38002 case "(($ac_try" in
38003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38004 *) ac_try_echo=$ac_try;;
38006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38007 $as_echo "$ac_try_echo") >&5
38008 (eval "$ac_compile") 2>conftest.er1
38010 grep -v '^ *+' conftest.er1 >conftest.err
38012 cat conftest.err >&5
38013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014 (exit $ac_status); } && {
38015 test -z "$ac_c_werror_flag" ||
38016 test ! -s conftest.err
38017 } && test -s conftest.$ac_objext; then
38018 ac_lo=$ac_mid; break
38020 $as_echo "$as_me: failed program was:" >&5
38021 sed 's/^/| /' conftest.$ac_ext >&5
38023 ac_hi=`expr '(' $ac_mid ')' - 1`
38024 if test $ac_mid -le $ac_hi; then
38028 ac_mid=`expr 2 '*' $ac_mid`
38031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38034 $as_echo "$as_me: failed program was:" >&5
38035 sed 's/^/| /' conftest.$ac_ext >&5
38040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38044 # Binary search between lo and hi bounds.
38045 while test "x$ac_lo" != "x$ac_hi"; do
38046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38047 cat >conftest.$ac_ext <<_ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h. */
38053 $ac_includes_default
38057 static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
38064 rm -f conftest.$ac_objext
38065 if { (ac_try="$ac_compile"
38066 case "(($ac_try" in
38067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38068 *) ac_try_echo=$ac_try;;
38070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38071 $as_echo "$ac_try_echo") >&5
38072 (eval "$ac_compile") 2>conftest.er1
38074 grep -v '^ *+' conftest.er1 >conftest.err
38076 cat conftest.err >&5
38077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); } && {
38079 test -z "$ac_c_werror_flag" ||
38080 test ! -s conftest.err
38081 } && test -s conftest.$ac_objext; then
38084 $as_echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38087 ac_lo=`expr '(' $ac_mid ')' + 1`
38090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38093 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
38094 '') if test "$ac_cv_type_long_long_int" = yes; then
38095 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38097 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38098 See \`config.log' for more details." >&5
38099 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38100 See \`config.log' for more details." >&2;}
38101 { (exit 77); exit 77; }; }; }
38103 ac_cv_sizeof_long_long_int=0
38107 cat >conftest.$ac_ext <<_ACEOF
38110 cat confdefs.h >>conftest.$ac_ext
38111 cat >>conftest.$ac_ext <<_ACEOF
38112 /* end confdefs.h. */
38113 $ac_includes_default
38114 static long int longval () { return (long int) (sizeof (long long int)); }
38115 static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
38117 #include <stdlib.h>
38122 FILE *f = fopen ("conftest.val", "w");
38125 if (((long int) (sizeof (long long int))) < 0)
38127 long int i = longval ();
38128 if (i != ((long int) (sizeof (long long int))))
38130 fprintf (f, "%ld", i);
38134 unsigned long int i = ulongval ();
38135 if (i != ((long int) (sizeof (long long int))))
38137 fprintf (f, "%lu", i);
38139 /* Do not output a trailing newline, as this causes \r\n confusion
38140 on some platforms. */
38141 return ferror (f) || fclose (f) != 0;
38147 rm -f conftest$ac_exeext
38148 if { (ac_try="$ac_link"
38149 case "(($ac_try" in
38150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38151 *) ac_try_echo=$ac_try;;
38153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38154 $as_echo "$ac_try_echo") >&5
38155 (eval "$ac_link") 2>&5
38157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38159 { (case "(($ac_try" in
38160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161 *) ac_try_echo=$ac_try;;
38163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38164 $as_echo "$ac_try_echo") >&5
38165 (eval "$ac_try") 2>&5
38167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); }; }; then
38169 ac_cv_sizeof_long_long_int=`cat conftest.val`
38171 $as_echo "$as_me: program exited with status $ac_status" >&5
38172 $as_echo "$as_me: failed program was:" >&5
38173 sed 's/^/| /' conftest.$ac_ext >&5
38175 ( exit $ac_status )
38176 if test "$ac_cv_type_long_long_int" = yes; then
38177 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38179 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
38180 See \`config.log' for more details." >&5
38181 $as_echo "$as_me: error: cannot compute sizeof (long long int)
38182 See \`config.log' for more details." >&2;}
38183 { (exit 77); exit 77; }; }; }
38185 ac_cv_sizeof_long_long_int=0
38188 rm -rf conftest.dSYM
38189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38193 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
38194 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
38198 cat >>confdefs.h <<_ACEOF
38199 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
38203 # The cast to long int works around a bug in the HP C Compiler
38204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38206 # This bug is HP SR number 8606223364.
38207 { $as_echo "$as_me:$LINENO: checking size of int *" >&5
38208 $as_echo_n "checking size of int *... " >&6; }
38209 if test "${ac_cv_sizeof_int_p+set}" = set; then
38210 $as_echo_n "(cached) " >&6
38212 if test "$cross_compiling" = yes; then
38213 # Depending upon the size, compute the lo and hi bounds.
38214 cat >conftest.$ac_ext <<_ACEOF
38217 cat confdefs.h >>conftest.$ac_ext
38218 cat >>conftest.$ac_ext <<_ACEOF
38219 /* end confdefs.h. */
38220 $ac_includes_default
38224 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= 0)];
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235 *) ac_try_echo=$ac_try;;
38237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238 $as_echo "$ac_try_echo") >&5
38239 (eval "$ac_compile") 2>conftest.er1
38241 grep -v '^ *+' conftest.er1 >conftest.err
38243 cat conftest.err >&5
38244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); } && {
38246 test -z "$ac_c_werror_flag" ||
38247 test ! -s conftest.err
38248 } && test -s conftest.$ac_objext; then
38251 cat >conftest.$ac_ext <<_ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h. */
38257 $ac_includes_default
38261 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38268 rm -f conftest.$ac_objext
38269 if { (ac_try="$ac_compile"
38270 case "(($ac_try" in
38271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38272 *) ac_try_echo=$ac_try;;
38274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38275 $as_echo "$ac_try_echo") >&5
38276 (eval "$ac_compile") 2>conftest.er1
38278 grep -v '^ *+' conftest.er1 >conftest.err
38280 cat conftest.err >&5
38281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282 (exit $ac_status); } && {
38283 test -z "$ac_c_werror_flag" ||
38284 test ! -s conftest.err
38285 } && test -s conftest.$ac_objext; then
38286 ac_hi=$ac_mid; break
38288 $as_echo "$as_me: failed program was:" >&5
38289 sed 's/^/| /' conftest.$ac_ext >&5
38291 ac_lo=`expr $ac_mid + 1`
38292 if test $ac_lo -le $ac_mid; then
38296 ac_mid=`expr 2 '*' $ac_mid + 1`
38299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38302 $as_echo "$as_me: failed program was:" >&5
38303 sed 's/^/| /' conftest.$ac_ext >&5
38305 cat >conftest.$ac_ext <<_ACEOF
38308 cat confdefs.h >>conftest.$ac_ext
38309 cat >>conftest.$ac_ext <<_ACEOF
38310 /* end confdefs.h. */
38311 $ac_includes_default
38315 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) < 0)];
38322 rm -f conftest.$ac_objext
38323 if { (ac_try="$ac_compile"
38324 case "(($ac_try" in
38325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326 *) ac_try_echo=$ac_try;;
38328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38329 $as_echo "$ac_try_echo") >&5
38330 (eval "$ac_compile") 2>conftest.er1
38332 grep -v '^ *+' conftest.er1 >conftest.err
38334 cat conftest.err >&5
38335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); } && {
38337 test -z "$ac_c_werror_flag" ||
38338 test ! -s conftest.err
38339 } && test -s conftest.$ac_objext; then
38342 cat >conftest.$ac_ext <<_ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h. */
38348 $ac_includes_default
38352 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) >= $ac_mid)];
38359 rm -f conftest.$ac_objext
38360 if { (ac_try="$ac_compile"
38361 case "(($ac_try" in
38362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38363 *) ac_try_echo=$ac_try;;
38365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38366 $as_echo "$ac_try_echo") >&5
38367 (eval "$ac_compile") 2>conftest.er1
38369 grep -v '^ *+' conftest.er1 >conftest.err
38371 cat conftest.err >&5
38372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } && {
38374 test -z "$ac_c_werror_flag" ||
38375 test ! -s conftest.err
38376 } && test -s conftest.$ac_objext; then
38377 ac_lo=$ac_mid; break
38379 $as_echo "$as_me: failed program was:" >&5
38380 sed 's/^/| /' conftest.$ac_ext >&5
38382 ac_hi=`expr '(' $ac_mid ')' - 1`
38383 if test $ac_mid -le $ac_hi; then
38387 ac_mid=`expr 2 '*' $ac_mid`
38390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38393 $as_echo "$as_me: failed program was:" >&5
38394 sed 's/^/| /' conftest.$ac_ext >&5
38399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38403 # Binary search between lo and hi bounds.
38404 while test "x$ac_lo" != "x$ac_hi"; do
38405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38406 cat >conftest.$ac_ext <<_ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h. */
38412 $ac_includes_default
38416 static int test_array [1 - 2 * !(((long int) (sizeof (int *))) <= $ac_mid)];
38423 rm -f conftest.$ac_objext
38424 if { (ac_try="$ac_compile"
38425 case "(($ac_try" in
38426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38427 *) ac_try_echo=$ac_try;;
38429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38430 $as_echo "$ac_try_echo") >&5
38431 (eval "$ac_compile") 2>conftest.er1
38433 grep -v '^ *+' conftest.er1 >conftest.err
38435 cat conftest.err >&5
38436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } && {
38438 test -z "$ac_c_werror_flag" ||
38439 test ! -s conftest.err
38440 } && test -s conftest.$ac_objext; then
38443 $as_echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38446 ac_lo=`expr '(' $ac_mid ')' + 1`
38449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38452 ?*) ac_cv_sizeof_int_p=$ac_lo;;
38453 '') if test "$ac_cv_type_int_p" = yes; then
38454 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38456 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38457 See \`config.log' for more details." >&5
38458 $as_echo "$as_me: error: cannot compute sizeof (int *)
38459 See \`config.log' for more details." >&2;}
38460 { (exit 77); exit 77; }; }; }
38462 ac_cv_sizeof_int_p=0
38466 cat >conftest.$ac_ext <<_ACEOF
38469 cat confdefs.h >>conftest.$ac_ext
38470 cat >>conftest.$ac_ext <<_ACEOF
38471 /* end confdefs.h. */
38472 $ac_includes_default
38473 static long int longval () { return (long int) (sizeof (int *)); }
38474 static unsigned long int ulongval () { return (long int) (sizeof (int *)); }
38476 #include <stdlib.h>
38481 FILE *f = fopen ("conftest.val", "w");
38484 if (((long int) (sizeof (int *))) < 0)
38486 long int i = longval ();
38487 if (i != ((long int) (sizeof (int *))))
38489 fprintf (f, "%ld", i);
38493 unsigned long int i = ulongval ();
38494 if (i != ((long int) (sizeof (int *))))
38496 fprintf (f, "%lu", i);
38498 /* Do not output a trailing newline, as this causes \r\n confusion
38499 on some platforms. */
38500 return ferror (f) || fclose (f) != 0;
38506 rm -f conftest$ac_exeext
38507 if { (ac_try="$ac_link"
38508 case "(($ac_try" in
38509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38510 *) ac_try_echo=$ac_try;;
38512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38513 $as_echo "$ac_try_echo") >&5
38514 (eval "$ac_link") 2>&5
38516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38518 { (case "(($ac_try" in
38519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38520 *) ac_try_echo=$ac_try;;
38522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38523 $as_echo "$ac_try_echo") >&5
38524 (eval "$ac_try") 2>&5
38526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38528 ac_cv_sizeof_int_p=`cat conftest.val`
38530 $as_echo "$as_me: program exited with status $ac_status" >&5
38531 $as_echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38534 ( exit $ac_status )
38535 if test "$ac_cv_type_int_p" = yes; then
38536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
38537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38538 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
38539 See \`config.log' for more details." >&5
38540 $as_echo "$as_me: error: cannot compute sizeof (int *)
38541 See \`config.log' for more details." >&2;}
38542 { (exit 77); exit 77; }; }; }
38544 ac_cv_sizeof_int_p=0
38547 rm -rf conftest.dSYM
38548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38552 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
38553 $as_echo "$ac_cv_sizeof_int_p" >&6; }
38557 cat >>confdefs.h <<_ACEOF
38558 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
38563 { $as_echo "$as_me:$LINENO: checking for u_int type" >&5
38564 $as_echo_n "checking for u_int type... " >&6; }
38565 if test "${ac_cv_have_u_int+set}" = set; then
38566 $as_echo_n "(cached) " >&6
38569 cat >conftest.$ac_ext <<_ACEOF
38572 cat confdefs.h >>conftest.$ac_ext
38573 cat >>conftest.$ac_ext <<_ACEOF
38574 /* end confdefs.h. */
38576 #include <sys/types.h>
38588 rm -f conftest.$ac_objext
38589 if { (ac_try="$ac_compile"
38590 case "(($ac_try" in
38591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592 *) ac_try_echo=$ac_try;;
38594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38595 $as_echo "$ac_try_echo") >&5
38596 (eval "$ac_compile") 2>conftest.er1
38598 grep -v '^ *+' conftest.er1 >conftest.err
38600 cat conftest.err >&5
38601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); } && {
38603 test -z "$ac_c_werror_flag" ||
38604 test ! -s conftest.err
38605 } && test -s conftest.$ac_objext; then
38607 ac_cv_have_u_int="yes"
38610 $as_echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38614 ac_cv_have_u_int="no"
38619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38623 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
38624 $as_echo "$ac_cv_have_u_int" >&6; }
38625 if test "x$ac_cv_have_u_int" = "xyes" ; then
38626 cat >>confdefs.h <<\_ACEOF
38627 #define HAVE_U_INT 1
38633 { $as_echo "$as_me:$LINENO: checking for intmax_t type" >&5
38634 $as_echo_n "checking for intmax_t type... " >&6; }
38635 if test "${ac_cv_have_intmax_t+set}" = set; then
38636 $as_echo_n "(cached) " >&6
38639 cat >conftest.$ac_ext <<_ACEOF
38642 cat confdefs.h >>conftest.$ac_ext
38643 cat >>conftest.$ac_ext <<_ACEOF
38644 /* end confdefs.h. */
38646 #include <sys/types.h>
38658 rm -f conftest.$ac_objext
38659 if { (ac_try="$ac_compile"
38660 case "(($ac_try" in
38661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38662 *) ac_try_echo=$ac_try;;
38664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38665 $as_echo "$ac_try_echo") >&5
38666 (eval "$ac_compile") 2>conftest.er1
38668 grep -v '^ *+' conftest.er1 >conftest.err
38670 cat conftest.err >&5
38671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); } && {
38673 test -z "$ac_c_werror_flag" ||
38674 test ! -s conftest.err
38675 } && test -s conftest.$ac_objext; then
38677 ac_cv_have_intmax_t="yes"
38680 $as_echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38684 cat >conftest.$ac_ext <<_ACEOF
38687 cat confdefs.h >>conftest.$ac_ext
38688 cat >>conftest.$ac_ext <<_ACEOF
38689 /* end confdefs.h. */
38691 #include <stdint.h>
38703 rm -f conftest.$ac_objext
38704 if { (ac_try="$ac_compile"
38705 case "(($ac_try" in
38706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38707 *) ac_try_echo=$ac_try;;
38709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38710 $as_echo "$ac_try_echo") >&5
38711 (eval "$ac_compile") 2>conftest.er1
38713 grep -v '^ *+' conftest.er1 >conftest.err
38715 cat conftest.err >&5
38716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717 (exit $ac_status); } && {
38718 test -z "$ac_c_werror_flag" ||
38719 test ! -s conftest.err
38720 } && test -s conftest.$ac_objext; then
38722 ac_cv_have_intmax_t="yes"
38725 $as_echo "$as_me: failed program was:" >&5
38726 sed 's/^/| /' conftest.$ac_ext >&5
38729 ac_cv_have_intmax_t="no"
38734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
38744 $as_echo "$ac_cv_have_intmax_t" >&6; }
38745 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
38746 cat >>confdefs.h <<\_ACEOF
38747 #define HAVE_INTMAX_T 1
38753 { $as_echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
38754 $as_echo_n "checking for u_intmax_t type... " >&6; }
38755 if test "${ac_cv_have_u_intmax_t+set}" = set; then
38756 $as_echo_n "(cached) " >&6
38759 cat >conftest.$ac_ext <<_ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h. */
38766 #include <sys/types.h>
38772 u_intmax_t a; a = 1;
38778 rm -f conftest.$ac_objext
38779 if { (ac_try="$ac_compile"
38780 case "(($ac_try" in
38781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38782 *) ac_try_echo=$ac_try;;
38784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38785 $as_echo "$ac_try_echo") >&5
38786 (eval "$ac_compile") 2>conftest.er1
38788 grep -v '^ *+' conftest.er1 >conftest.err
38790 cat conftest.err >&5
38791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); } && {
38793 test -z "$ac_c_werror_flag" ||
38794 test ! -s conftest.err
38795 } && test -s conftest.$ac_objext; then
38797 ac_cv_have_u_intmax_t="yes"
38800 $as_echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38804 cat >conftest.$ac_ext <<_ACEOF
38807 cat confdefs.h >>conftest.$ac_ext
38808 cat >>conftest.$ac_ext <<_ACEOF
38809 /* end confdefs.h. */
38811 #include <stdint.h>
38817 u_intmax_t a; a = 1;
38823 rm -f conftest.$ac_objext
38824 if { (ac_try="$ac_compile"
38825 case "(($ac_try" in
38826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827 *) ac_try_echo=$ac_try;;
38829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38830 $as_echo "$ac_try_echo") >&5
38831 (eval "$ac_compile") 2>conftest.er1
38833 grep -v '^ *+' conftest.er1 >conftest.err
38835 cat conftest.err >&5
38836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); } && {
38838 test -z "$ac_c_werror_flag" ||
38839 test ! -s conftest.err
38840 } && test -s conftest.$ac_objext; then
38842 ac_cv_have_u_intmax_t="yes"
38845 $as_echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38849 ac_cv_have_u_intmax_t="no"
38854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
38864 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
38865 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
38866 cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_U_INTMAX_T 1
38873 { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
38874 $as_echo_n "checking for intXX_t types... " >&6; }
38875 if test "${ac_cv_have_intxx_t+set}" = set; then
38876 $as_echo_n "(cached) " >&6
38879 cat >conftest.$ac_ext <<_ACEOF
38882 cat confdefs.h >>conftest.$ac_ext
38883 cat >>conftest.$ac_ext <<_ACEOF
38884 /* end confdefs.h. */
38886 #include <sys/types.h>
38892 int8_t a; int16_t b; int32_t c; a = b = c = 1;
38898 rm -f conftest.$ac_objext
38899 if { (ac_try="$ac_compile"
38900 case "(($ac_try" in
38901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38902 *) ac_try_echo=$ac_try;;
38904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38905 $as_echo "$ac_try_echo") >&5
38906 (eval "$ac_compile") 2>conftest.er1
38908 grep -v '^ *+' conftest.er1 >conftest.err
38910 cat conftest.err >&5
38911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); } && {
38913 test -z "$ac_c_werror_flag" ||
38914 test ! -s conftest.err
38915 } && test -s conftest.$ac_objext; then
38917 ac_cv_have_intxx_t="yes"
38920 $as_echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38924 ac_cv_have_intxx_t="no"
38929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38933 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
38934 $as_echo "$ac_cv_have_intxx_t" >&6; }
38935 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
38936 cat >>confdefs.h <<\_ACEOF
38937 #define HAVE_INTXX_T 1
38943 { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
38944 $as_echo_n "checking for int64_t type... " >&6; }
38945 if test "${ac_cv_have_int64_t+set}" = set; then
38946 $as_echo_n "(cached) " >&6
38949 cat >conftest.$ac_ext <<_ACEOF
38952 cat confdefs.h >>conftest.$ac_ext
38953 cat >>conftest.$ac_ext <<_ACEOF
38954 /* end confdefs.h. */
38956 #include <sys/types.h>
38968 rm -f conftest.$ac_objext
38969 if { (ac_try="$ac_compile"
38970 case "(($ac_try" in
38971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38972 *) ac_try_echo=$ac_try;;
38974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38975 $as_echo "$ac_try_echo") >&5
38976 (eval "$ac_compile") 2>conftest.er1
38978 grep -v '^ *+' conftest.er1 >conftest.err
38980 cat conftest.err >&5
38981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982 (exit $ac_status); } && {
38983 test -z "$ac_c_werror_flag" ||
38984 test ! -s conftest.err
38985 } && test -s conftest.$ac_objext; then
38987 ac_cv_have_int64_t="yes"
38990 $as_echo "$as_me: failed program was:" >&5
38991 sed 's/^/| /' conftest.$ac_ext >&5
38994 ac_cv_have_int64_t="no"
38999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39003 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
39004 $as_echo "$ac_cv_have_int64_t" >&6; }
39005 if test "x$ac_cv_have_int64_t" = "xyes" ; then
39006 cat >>confdefs.h <<\_ACEOF
39007 #define HAVE_INT64_T 1
39013 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
39014 $as_echo_n "checking for u_intXX_t types... " >&6; }
39015 if test "${ac_cv_have_u_intxx_t+set}" = set; then
39016 $as_echo_n "(cached) " >&6
39019 cat >conftest.$ac_ext <<_ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h. */
39026 #include <sys/types.h>
39032 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
39038 rm -f conftest.$ac_objext
39039 if { (ac_try="$ac_compile"
39040 case "(($ac_try" in
39041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042 *) ac_try_echo=$ac_try;;
39044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39045 $as_echo "$ac_try_echo") >&5
39046 (eval "$ac_compile") 2>conftest.er1
39048 grep -v '^ *+' conftest.er1 >conftest.err
39050 cat conftest.err >&5
39051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); } && {
39053 test -z "$ac_c_werror_flag" ||
39054 test ! -s conftest.err
39055 } && test -s conftest.$ac_objext; then
39057 ac_cv_have_u_intxx_t="yes"
39060 $as_echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39064 ac_cv_have_u_intxx_t="no"
39069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39073 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
39074 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
39075 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
39076 cat >>confdefs.h <<\_ACEOF
39077 #define HAVE_U_INTXX_T 1
39083 { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
39084 $as_echo_n "checking for u_int64_t types... " >&6; }
39085 if test "${ac_cv_have_u_int64_t+set}" = set; then
39086 $as_echo_n "(cached) " >&6
39089 cat >conftest.$ac_ext <<_ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h. */
39096 #include <sys/types.h>
39102 u_int64_t a; a = 1;
39108 rm -f conftest.$ac_objext
39109 if { (ac_try="$ac_compile"
39110 case "(($ac_try" in
39111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39112 *) ac_try_echo=$ac_try;;
39114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39115 $as_echo "$ac_try_echo") >&5
39116 (eval "$ac_compile") 2>conftest.er1
39118 grep -v '^ *+' conftest.er1 >conftest.err
39120 cat conftest.err >&5
39121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122 (exit $ac_status); } && {
39123 test -z "$ac_c_werror_flag" ||
39124 test ! -s conftest.err
39125 } && test -s conftest.$ac_objext; then
39127 ac_cv_have_u_int64_t="yes"
39130 $as_echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39134 ac_cv_have_u_int64_t="no"
39139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39143 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
39144 $as_echo "$ac_cv_have_u_int64_t" >&6; }
39145 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
39146 cat >>confdefs.h <<\_ACEOF
39147 #define HAVE_U_INT64_T 1
39153 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
39154 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39156 { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
39157 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
39158 cat >conftest.$ac_ext <<_ACEOF
39161 cat confdefs.h >>conftest.$ac_ext
39162 cat >>conftest.$ac_ext <<_ACEOF
39163 /* end confdefs.h. */
39165 #include <sys/bitypes.h>
39171 int8_t a; int16_t b; int32_t c;
39172 u_int8_t e; u_int16_t f; u_int32_t g;
39173 a = b = c = e = f = g = 1;
39179 rm -f conftest.$ac_objext
39180 if { (ac_try="$ac_compile"
39181 case "(($ac_try" in
39182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39183 *) ac_try_echo=$ac_try;;
39185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39186 $as_echo "$ac_try_echo") >&5
39187 (eval "$ac_compile") 2>conftest.er1
39189 grep -v '^ *+' conftest.er1 >conftest.err
39191 cat conftest.err >&5
39192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); } && {
39194 test -z "$ac_c_werror_flag" ||
39195 test ! -s conftest.err
39196 } && test -s conftest.$ac_objext; then
39198 cat >>confdefs.h <<\_ACEOF
39199 #define HAVE_U_INTXX_T 1
39202 cat >>confdefs.h <<\_ACEOF
39203 #define HAVE_INTXX_T 1
39206 cat >>confdefs.h <<\_ACEOF
39207 #define HAVE_SYS_BITYPES_H 1
39210 { $as_echo "$as_me:$LINENO: result: yes" >&5
39211 $as_echo "yes" >&6; }
39214 $as_echo "$as_me: failed program was:" >&5
39215 sed 's/^/| /' conftest.$ac_ext >&5
39218 { $as_echo "$as_me:$LINENO: result: no" >&5
39219 $as_echo "no" >&6; }
39224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39227 if test -z "$have_u_intxx_t" ; then
39228 { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
39229 $as_echo_n "checking for uintXX_t types... " >&6; }
39230 if test "${ac_cv_have_uintxx_t+set}" = set; then
39231 $as_echo_n "(cached) " >&6
39234 cat >conftest.$ac_ext <<_ACEOF
39237 cat confdefs.h >>conftest.$ac_ext
39238 cat >>conftest.$ac_ext <<_ACEOF
39239 /* end confdefs.h. */
39241 #include <sys/types.h>
39247 uint8_t a; uint16_t b;
39248 uint32_t c; a = b = c = 1;
39254 rm -f conftest.$ac_objext
39255 if { (ac_try="$ac_compile"
39256 case "(($ac_try" in
39257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39258 *) ac_try_echo=$ac_try;;
39260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39261 $as_echo "$ac_try_echo") >&5
39262 (eval "$ac_compile") 2>conftest.er1
39264 grep -v '^ *+' conftest.er1 >conftest.err
39266 cat conftest.err >&5
39267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); } && {
39269 test -z "$ac_c_werror_flag" ||
39270 test ! -s conftest.err
39271 } && test -s conftest.$ac_objext; then
39273 ac_cv_have_uintxx_t="yes"
39276 $as_echo "$as_me: failed program was:" >&5
39277 sed 's/^/| /' conftest.$ac_ext >&5
39280 ac_cv_have_uintxx_t="no"
39285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39289 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
39290 $as_echo "$ac_cv_have_uintxx_t" >&6; }
39291 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
39292 cat >>confdefs.h <<\_ACEOF
39293 #define HAVE_UINTXX_T 1
39299 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
39300 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39302 { $as_echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
39303 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
39304 cat >conftest.$ac_ext <<_ACEOF
39307 cat confdefs.h >>conftest.$ac_ext
39308 cat >>conftest.$ac_ext <<_ACEOF
39309 /* end confdefs.h. */
39311 #include <sys/bitypes.h>
39317 int64_t a; u_int64_t b;
39324 rm -f conftest.$ac_objext
39325 if { (ac_try="$ac_compile"
39326 case "(($ac_try" in
39327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328 *) ac_try_echo=$ac_try;;
39330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39331 $as_echo "$ac_try_echo") >&5
39332 (eval "$ac_compile") 2>conftest.er1
39334 grep -v '^ *+' conftest.er1 >conftest.err
39336 cat conftest.err >&5
39337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338 (exit $ac_status); } && {
39339 test -z "$ac_c_werror_flag" ||
39340 test ! -s conftest.err
39341 } && test -s conftest.$ac_objext; then
39343 cat >>confdefs.h <<\_ACEOF
39344 #define HAVE_U_INT64_T 1
39347 cat >>confdefs.h <<\_ACEOF
39348 #define HAVE_INT64_T 1
39351 { $as_echo "$as_me:$LINENO: result: yes" >&5
39352 $as_echo "yes" >&6; }
39355 $as_echo "$as_me: failed program was:" >&5
39356 sed 's/^/| /' conftest.$ac_ext >&5
39359 { $as_echo "$as_me:$LINENO: result: no" >&5
39360 $as_echo "no" >&6; }
39365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39368 if (test -z "$have_uintxx_t" && \
39369 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
39371 { $as_echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
39372 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
39373 cat >conftest.$ac_ext <<_ACEOF
39376 cat confdefs.h >>conftest.$ac_ext
39377 cat >>conftest.$ac_ext <<_ACEOF
39378 /* end confdefs.h. */
39380 #include <sys/bitypes.h>
39386 uint8_t a; uint16_t b;
39387 uint32_t c; a = b = c = 1;
39393 rm -f conftest.$ac_objext
39394 if { (ac_try="$ac_compile"
39395 case "(($ac_try" in
39396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39397 *) ac_try_echo=$ac_try;;
39399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39400 $as_echo "$ac_try_echo") >&5
39401 (eval "$ac_compile") 2>conftest.er1
39403 grep -v '^ *+' conftest.er1 >conftest.err
39405 cat conftest.err >&5
39406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); } && {
39408 test -z "$ac_c_werror_flag" ||
39409 test ! -s conftest.err
39410 } && test -s conftest.$ac_objext; then
39412 cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_UINTXX_T 1
39416 { $as_echo "$as_me:$LINENO: result: yes" >&5
39417 $as_echo "yes" >&6; }
39420 $as_echo "$as_me: failed program was:" >&5
39421 sed 's/^/| /' conftest.$ac_ext >&5
39424 { $as_echo "$as_me:$LINENO: result: no" >&5
39425 $as_echo "no" >&6; }
39430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39464 $as_echo_n "checking for $ac_func... " >&6; }
39465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39466 $as_echo_n "(cached) " >&6
39468 cat >conftest.$ac_ext <<_ACEOF
39471 cat confdefs.h >>conftest.$ac_ext
39472 cat >>conftest.$ac_ext <<_ACEOF
39473 /* end confdefs.h. */
39474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39476 #define $ac_func innocuous_$ac_func
39478 /* System header to define __stub macros and hopefully few prototypes,
39479 which can conflict with char $ac_func (); below.
39480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39481 <limits.h> exists even on freestanding compilers. */
39484 # include <limits.h>
39486 # include <assert.h>
39491 /* Override any GCC internal prototype to avoid an error.
39492 Use char because int might match the return type of a GCC
39493 builtin and then its argument prototype would still apply. */
39498 /* The GNU C library defines this for functions which it implements
39499 to always fail with ENOSYS. Some functions are actually named
39500 something starting with __ and the normal name is an alias. */
39501 #if defined __stub_$ac_func || defined __stub___$ac_func
39508 return $ac_func ();
39513 rm -f conftest.$ac_objext conftest$ac_exeext
39514 if { (ac_try="$ac_link"
39515 case "(($ac_try" in
39516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39517 *) ac_try_echo=$ac_try;;
39519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39520 $as_echo "$ac_try_echo") >&5
39521 (eval "$ac_link") 2>conftest.er1
39523 grep -v '^ *+' conftest.er1 >conftest.err
39525 cat conftest.err >&5
39526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); } && {
39528 test -z "$ac_c_werror_flag" ||
39529 test ! -s conftest.err
39530 } && test -s conftest$ac_exeext && {
39531 test "$cross_compiling" = yes ||
39532 $as_test_x conftest$ac_exeext
39534 eval "$as_ac_var=yes"
39536 $as_echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39539 eval "$as_ac_var=no"
39542 rm -rf conftest.dSYM
39543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39544 conftest$ac_exeext conftest.$ac_ext
39546 ac_res=`eval 'as_val=${'$as_ac_var'}
39547 $as_echo "$as_val"'`
39548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39549 $as_echo "$ac_res" >&6; }
39550 as_val=`eval 'as_val=${'$as_ac_var'}
39551 $as_echo "$as_val"'`
39552 if test "x$as_val" = x""yes; then
39553 cat >>confdefs.h <<_ACEOF
39554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39558 echo 'configure: cannot find needed function.'; exit 1
39565 for ac_func in fchdir
39567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39569 $as_echo_n "checking for $ac_func... " >&6; }
39570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39571 $as_echo_n "(cached) " >&6
39573 cat >conftest.$ac_ext <<_ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h. */
39579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39581 #define $ac_func innocuous_$ac_func
39583 /* System header to define __stub macros and hopefully few prototypes,
39584 which can conflict with char $ac_func (); below.
39585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39586 <limits.h> exists even on freestanding compilers. */
39589 # include <limits.h>
39591 # include <assert.h>
39596 /* Override any GCC internal prototype to avoid an error.
39597 Use char because int might match the return type of a GCC
39598 builtin and then its argument prototype would still apply. */
39603 /* The GNU C library defines this for functions which it implements
39604 to always fail with ENOSYS. Some functions are actually named
39605 something starting with __ and the normal name is an alias. */
39606 #if defined __stub_$ac_func || defined __stub___$ac_func
39613 return $ac_func ();
39618 rm -f conftest.$ac_objext conftest$ac_exeext
39619 if { (ac_try="$ac_link"
39620 case "(($ac_try" in
39621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39622 *) ac_try_echo=$ac_try;;
39624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39625 $as_echo "$ac_try_echo") >&5
39626 (eval "$ac_link") 2>conftest.er1
39628 grep -v '^ *+' conftest.er1 >conftest.err
39630 cat conftest.err >&5
39631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); } && {
39633 test -z "$ac_c_werror_flag" ||
39634 test ! -s conftest.err
39635 } && test -s conftest$ac_exeext && {
39636 test "$cross_compiling" = yes ||
39637 $as_test_x conftest$ac_exeext
39639 eval "$as_ac_var=yes"
39641 $as_echo "$as_me: failed program was:" >&5
39642 sed 's/^/| /' conftest.$ac_ext >&5
39644 eval "$as_ac_var=no"
39647 rm -rf conftest.dSYM
39648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39649 conftest$ac_exeext conftest.$ac_ext
39651 ac_res=`eval 'as_val=${'$as_ac_var'}
39652 $as_echo "$as_val"'`
39653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39654 $as_echo "$ac_res" >&6; }
39655 as_val=`eval 'as_val=${'$as_ac_var'}
39656 $as_echo "$as_val"'`
39657 if test "x$as_val" = x""yes; then
39658 cat >>confdefs.h <<_ACEOF
39659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39661 cat >>confdefs.h <<\_ACEOF
39662 #define HAVE_FCHDIR 1
39669 for ac_func in strtoll
39671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39672 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39673 $as_echo_n "checking for $ac_func... " >&6; }
39674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39675 $as_echo_n "(cached) " >&6
39677 cat >conftest.$ac_ext <<_ACEOF
39680 cat confdefs.h >>conftest.$ac_ext
39681 cat >>conftest.$ac_ext <<_ACEOF
39682 /* end confdefs.h. */
39683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39685 #define $ac_func innocuous_$ac_func
39687 /* System header to define __stub macros and hopefully few prototypes,
39688 which can conflict with char $ac_func (); below.
39689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39690 <limits.h> exists even on freestanding compilers. */
39693 # include <limits.h>
39695 # include <assert.h>
39700 /* Override any GCC internal prototype to avoid an error.
39701 Use char because int might match the return type of a GCC
39702 builtin and then its argument prototype would still apply. */
39707 /* The GNU C library defines this for functions which it implements
39708 to always fail with ENOSYS. Some functions are actually named
39709 something starting with __ and the normal name is an alias. */
39710 #if defined __stub_$ac_func || defined __stub___$ac_func
39717 return $ac_func ();
39722 rm -f conftest.$ac_objext conftest$ac_exeext
39723 if { (ac_try="$ac_link"
39724 case "(($ac_try" in
39725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39726 *) ac_try_echo=$ac_try;;
39728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39729 $as_echo "$ac_try_echo") >&5
39730 (eval "$ac_link") 2>conftest.er1
39732 grep -v '^ *+' conftest.er1 >conftest.err
39734 cat conftest.err >&5
39735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } && {
39737 test -z "$ac_c_werror_flag" ||
39738 test ! -s conftest.err
39739 } && test -s conftest$ac_exeext && {
39740 test "$cross_compiling" = yes ||
39741 $as_test_x conftest$ac_exeext
39743 eval "$as_ac_var=yes"
39745 $as_echo "$as_me: failed program was:" >&5
39746 sed 's/^/| /' conftest.$ac_ext >&5
39748 eval "$as_ac_var=no"
39751 rm -rf conftest.dSYM
39752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39753 conftest$ac_exeext conftest.$ac_ext
39755 ac_res=`eval 'as_val=${'$as_ac_var'}
39756 $as_echo "$as_val"'`
39757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39758 $as_echo "$ac_res" >&6; }
39759 as_val=`eval 'as_val=${'$as_ac_var'}
39760 $as_echo "$as_val"'`
39761 if test "x$as_val" = x""yes; then
39762 cat >>confdefs.h <<_ACEOF
39763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39765 cat >>confdefs.h <<\_ACEOF
39766 #define HAVE_STRTOLL 1
39773 for ac_func in posix_fadvise
39775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39777 $as_echo_n "checking for $ac_func... " >&6; }
39778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39779 $as_echo_n "(cached) " >&6
39781 cat >conftest.$ac_ext <<_ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h. */
39787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39789 #define $ac_func innocuous_$ac_func
39791 /* System header to define __stub macros and hopefully few prototypes,
39792 which can conflict with char $ac_func (); below.
39793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39794 <limits.h> exists even on freestanding compilers. */
39797 # include <limits.h>
39799 # include <assert.h>
39804 /* Override any GCC internal prototype to avoid an error.
39805 Use char because int might match the return type of a GCC
39806 builtin and then its argument prototype would still apply. */
39811 /* The GNU C library defines this for functions which it implements
39812 to always fail with ENOSYS. Some functions are actually named
39813 something starting with __ and the normal name is an alias. */
39814 #if defined __stub_$ac_func || defined __stub___$ac_func
39821 return $ac_func ();
39826 rm -f conftest.$ac_objext conftest$ac_exeext
39827 if { (ac_try="$ac_link"
39828 case "(($ac_try" in
39829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830 *) ac_try_echo=$ac_try;;
39832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39833 $as_echo "$ac_try_echo") >&5
39834 (eval "$ac_link") 2>conftest.er1
39836 grep -v '^ *+' conftest.er1 >conftest.err
39838 cat conftest.err >&5
39839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); } && {
39841 test -z "$ac_c_werror_flag" ||
39842 test ! -s conftest.err
39843 } && test -s conftest$ac_exeext && {
39844 test "$cross_compiling" = yes ||
39845 $as_test_x conftest$ac_exeext
39847 eval "$as_ac_var=yes"
39849 $as_echo "$as_me: failed program was:" >&5
39850 sed 's/^/| /' conftest.$ac_ext >&5
39852 eval "$as_ac_var=no"
39855 rm -rf conftest.dSYM
39856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39857 conftest$ac_exeext conftest.$ac_ext
39859 ac_res=`eval 'as_val=${'$as_ac_var'}
39860 $as_echo "$as_val"'`
39861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39862 $as_echo "$ac_res" >&6; }
39863 as_val=`eval 'as_val=${'$as_ac_var'}
39864 $as_echo "$as_val"'`
39865 if test "x$as_val" = x""yes; then
39866 cat >>confdefs.h <<_ACEOF
39867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39874 for ac_func in fdatasync
39876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39878 $as_echo_n "checking for $ac_func... " >&6; }
39879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39880 $as_echo_n "(cached) " >&6
39882 cat >conftest.$ac_ext <<_ACEOF
39885 cat confdefs.h >>conftest.$ac_ext
39886 cat >>conftest.$ac_ext <<_ACEOF
39887 /* end confdefs.h. */
39888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39890 #define $ac_func innocuous_$ac_func
39892 /* System header to define __stub macros and hopefully few prototypes,
39893 which can conflict with char $ac_func (); below.
39894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39895 <limits.h> exists even on freestanding compilers. */
39898 # include <limits.h>
39900 # include <assert.h>
39905 /* Override any GCC internal prototype to avoid an error.
39906 Use char because int might match the return type of a GCC
39907 builtin and then its argument prototype would still apply. */
39912 /* The GNU C library defines this for functions which it implements
39913 to always fail with ENOSYS. Some functions are actually named
39914 something starting with __ and the normal name is an alias. */
39915 #if defined __stub_$ac_func || defined __stub___$ac_func
39922 return $ac_func ();
39927 rm -f conftest.$ac_objext conftest$ac_exeext
39928 if { (ac_try="$ac_link"
39929 case "(($ac_try" in
39930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39931 *) ac_try_echo=$ac_try;;
39933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39934 $as_echo "$ac_try_echo") >&5
39935 (eval "$ac_link") 2>conftest.er1
39937 grep -v '^ *+' conftest.er1 >conftest.err
39939 cat conftest.err >&5
39940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } && {
39942 test -z "$ac_c_werror_flag" ||
39943 test ! -s conftest.err
39944 } && test -s conftest$ac_exeext && {
39945 test "$cross_compiling" = yes ||
39946 $as_test_x conftest$ac_exeext
39948 eval "$as_ac_var=yes"
39950 $as_echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39953 eval "$as_ac_var=no"
39956 rm -rf conftest.dSYM
39957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39958 conftest$ac_exeext conftest.$ac_ext
39960 ac_res=`eval 'as_val=${'$as_ac_var'}
39961 $as_echo "$as_val"'`
39962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39963 $as_echo "$ac_res" >&6; }
39964 as_val=`eval 'as_val=${'$as_ac_var'}
39965 $as_echo "$as_val"'`
39966 if test "x$as_val" = x""yes; then
39967 cat >>confdefs.h <<_ACEOF
39968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39976 for ac_func in chflags
39978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39979 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39980 $as_echo_n "checking for $ac_func... " >&6; }
39981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39982 $as_echo_n "(cached) " >&6
39984 cat >conftest.$ac_ext <<_ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h. */
39990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39992 #define $ac_func innocuous_$ac_func
39994 /* System header to define __stub macros and hopefully few prototypes,
39995 which can conflict with char $ac_func (); below.
39996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39997 <limits.h> exists even on freestanding compilers. */
40000 # include <limits.h>
40002 # include <assert.h>
40007 /* Override any GCC internal prototype to avoid an error.
40008 Use char because int might match the return type of a GCC
40009 builtin and then its argument prototype would still apply. */
40014 /* The GNU C library defines this for functions which it implements
40015 to always fail with ENOSYS. Some functions are actually named
40016 something starting with __ and the normal name is an alias. */
40017 #if defined __stub_$ac_func || defined __stub___$ac_func
40024 return $ac_func ();
40029 rm -f conftest.$ac_objext conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033 *) ac_try_echo=$ac_try;;
40035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40036 $as_echo "$ac_try_echo") >&5
40037 (eval "$ac_link") 2>conftest.er1
40039 grep -v '^ *+' conftest.er1 >conftest.err
40041 cat conftest.err >&5
40042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40043 (exit $ac_status); } && {
40044 test -z "$ac_c_werror_flag" ||
40045 test ! -s conftest.err
40046 } && test -s conftest$ac_exeext && {
40047 test "$cross_compiling" = yes ||
40048 $as_test_x conftest$ac_exeext
40050 eval "$as_ac_var=yes"
40052 $as_echo "$as_me: failed program was:" >&5
40053 sed 's/^/| /' conftest.$ac_ext >&5
40055 eval "$as_ac_var=no"
40058 rm -rf conftest.dSYM
40059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40060 conftest$ac_exeext conftest.$ac_ext
40062 ac_res=`eval 'as_val=${'$as_ac_var'}
40063 $as_echo "$as_val"'`
40064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40065 $as_echo "$ac_res" >&6; }
40066 as_val=`eval 'as_val=${'$as_ac_var'}
40067 $as_echo "$as_val"'`
40068 if test "x$as_val" = x""yes; then
40069 cat >>confdefs.h <<_ACEOF
40070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40081 for ac_func in snprintf vsnprintf gethostid fseeko
40083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40085 $as_echo_n "checking for $ac_func... " >&6; }
40086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40087 $as_echo_n "(cached) " >&6
40089 cat >conftest.$ac_ext <<_ACEOF
40092 cat confdefs.h >>conftest.$ac_ext
40093 cat >>conftest.$ac_ext <<_ACEOF
40094 /* end confdefs.h. */
40095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40097 #define $ac_func innocuous_$ac_func
40099 /* System header to define __stub macros and hopefully few prototypes,
40100 which can conflict with char $ac_func (); below.
40101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40102 <limits.h> exists even on freestanding compilers. */
40105 # include <limits.h>
40107 # include <assert.h>
40112 /* Override any GCC internal prototype to avoid an error.
40113 Use char because int might match the return type of a GCC
40114 builtin and then its argument prototype would still apply. */
40119 /* The GNU C library defines this for functions which it implements
40120 to always fail with ENOSYS. Some functions are actually named
40121 something starting with __ and the normal name is an alias. */
40122 #if defined __stub_$ac_func || defined __stub___$ac_func
40129 return $ac_func ();
40134 rm -f conftest.$ac_objext conftest$ac_exeext
40135 if { (ac_try="$ac_link"
40136 case "(($ac_try" in
40137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40138 *) ac_try_echo=$ac_try;;
40140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40141 $as_echo "$ac_try_echo") >&5
40142 (eval "$ac_link") 2>conftest.er1
40144 grep -v '^ *+' conftest.er1 >conftest.err
40146 cat conftest.err >&5
40147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148 (exit $ac_status); } && {
40149 test -z "$ac_c_werror_flag" ||
40150 test ! -s conftest.err
40151 } && test -s conftest$ac_exeext && {
40152 test "$cross_compiling" = yes ||
40153 $as_test_x conftest$ac_exeext
40155 eval "$as_ac_var=yes"
40157 $as_echo "$as_me: failed program was:" >&5
40158 sed 's/^/| /' conftest.$ac_ext >&5
40160 eval "$as_ac_var=no"
40163 rm -rf conftest.dSYM
40164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40165 conftest$ac_exeext conftest.$ac_ext
40167 ac_res=`eval 'as_val=${'$as_ac_var'}
40168 $as_echo "$as_val"'`
40169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40170 $as_echo "$ac_res" >&6; }
40171 as_val=`eval 'as_val=${'$as_ac_var'}
40172 $as_echo "$as_val"'`
40173 if test "x$as_val" = x""yes; then
40174 cat >>confdefs.h <<_ACEOF
40175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40182 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
40183 $as_echo_n "checking for va_copy... " >&6; }
40184 if test "${ba_cv_va_copy+set}" = set; then
40185 $as_echo_n "(cached) " >&6
40188 cat >conftest.$ac_ext <<_ACEOF
40191 cat confdefs.h >>conftest.$ac_ext
40192 cat >>conftest.$ac_ext <<_ACEOF
40193 /* end confdefs.h. */
40195 #include <stdarg.h>
40196 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
40197 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
40203 call_use_va_copy(1,2,3)
40209 rm -f conftest.$ac_objext conftest$ac_exeext
40210 if { (ac_try="$ac_link"
40211 case "(($ac_try" in
40212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40213 *) ac_try_echo=$ac_try;;
40215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40216 $as_echo "$ac_try_echo") >&5
40217 (eval "$ac_link") 2>conftest.er1
40219 grep -v '^ *+' conftest.er1 >conftest.err
40221 cat conftest.err >&5
40222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); } && {
40224 test -z "$ac_c_werror_flag" ||
40225 test ! -s conftest.err
40226 } && test -s conftest$ac_exeext && {
40227 test "$cross_compiling" = yes ||
40228 $as_test_x conftest$ac_exeext
40234 $as_echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40243 rm -rf conftest.dSYM
40244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40245 conftest$ac_exeext conftest.$ac_ext
40249 { $as_echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
40250 $as_echo "$ba_cv_va_copy" >&6; }
40251 test $ba_cv_va_copy = yes &&
40252 cat >>confdefs.h <<\_ACEOF
40253 #define HAVE_VA_COPY 1
40261 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
40263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40265 $as_echo_n "checking for $ac_func... " >&6; }
40266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40267 $as_echo_n "(cached) " >&6
40269 cat >conftest.$ac_ext <<_ACEOF
40272 cat confdefs.h >>conftest.$ac_ext
40273 cat >>conftest.$ac_ext <<_ACEOF
40274 /* end confdefs.h. */
40275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40277 #define $ac_func innocuous_$ac_func
40279 /* System header to define __stub macros and hopefully few prototypes,
40280 which can conflict with char $ac_func (); below.
40281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40282 <limits.h> exists even on freestanding compilers. */
40285 # include <limits.h>
40287 # include <assert.h>
40292 /* Override any GCC internal prototype to avoid an error.
40293 Use char because int might match the return type of a GCC
40294 builtin and then its argument prototype would still apply. */
40299 /* The GNU C library defines this for functions which it implements
40300 to always fail with ENOSYS. Some functions are actually named
40301 something starting with __ and the normal name is an alias. */
40302 #if defined __stub_$ac_func || defined __stub___$ac_func
40309 return $ac_func ();
40314 rm -f conftest.$ac_objext conftest$ac_exeext
40315 if { (ac_try="$ac_link"
40316 case "(($ac_try" in
40317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40318 *) ac_try_echo=$ac_try;;
40320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40321 $as_echo "$ac_try_echo") >&5
40322 (eval "$ac_link") 2>conftest.er1
40324 grep -v '^ *+' conftest.er1 >conftest.err
40326 cat conftest.err >&5
40327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); } && {
40329 test -z "$ac_c_werror_flag" ||
40330 test ! -s conftest.err
40331 } && test -s conftest$ac_exeext && {
40332 test "$cross_compiling" = yes ||
40333 $as_test_x conftest$ac_exeext
40335 eval "$as_ac_var=yes"
40337 $as_echo "$as_me: failed program was:" >&5
40338 sed 's/^/| /' conftest.$ac_ext >&5
40340 eval "$as_ac_var=no"
40343 rm -rf conftest.dSYM
40344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40345 conftest$ac_exeext conftest.$ac_ext
40347 ac_res=`eval 'as_val=${'$as_ac_var'}
40348 $as_echo "$as_val"'`
40349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40350 $as_echo "$ac_res" >&6; }
40351 as_val=`eval 'as_val=${'$as_ac_var'}
40352 $as_echo "$as_val"'`
40353 if test "x$as_val" = x""yes; then
40354 cat >>confdefs.h <<_ACEOF
40355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40362 # If resolver functions are not in libc check for -lnsl or -lresolv.
40363 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
40364 $as_echo_n "checking for gethostbyname_r... " >&6; }
40365 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
40366 $as_echo_n "(cached) " >&6
40368 cat >conftest.$ac_ext <<_ACEOF
40371 cat confdefs.h >>conftest.$ac_ext
40372 cat >>conftest.$ac_ext <<_ACEOF
40373 /* end confdefs.h. */
40374 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
40375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40376 #define gethostbyname_r innocuous_gethostbyname_r
40378 /* System header to define __stub macros and hopefully few prototypes,
40379 which can conflict with char gethostbyname_r (); below.
40380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40381 <limits.h> exists even on freestanding compilers. */
40384 # include <limits.h>
40386 # include <assert.h>
40389 #undef gethostbyname_r
40391 /* Override any GCC internal prototype to avoid an error.
40392 Use char because int might match the return type of a GCC
40393 builtin and then its argument prototype would still apply. */
40397 char gethostbyname_r ();
40398 /* The GNU C library defines this for functions which it implements
40399 to always fail with ENOSYS. Some functions are actually named
40400 something starting with __ and the normal name is an alias. */
40401 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
40408 return gethostbyname_r ();
40413 rm -f conftest.$ac_objext conftest$ac_exeext
40414 if { (ac_try="$ac_link"
40415 case "(($ac_try" in
40416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40417 *) ac_try_echo=$ac_try;;
40419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40420 $as_echo "$ac_try_echo") >&5
40421 (eval "$ac_link") 2>conftest.er1
40423 grep -v '^ *+' conftest.er1 >conftest.err
40425 cat conftest.err >&5
40426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); } && {
40428 test -z "$ac_c_werror_flag" ||
40429 test ! -s conftest.err
40430 } && test -s conftest$ac_exeext && {
40431 test "$cross_compiling" = yes ||
40432 $as_test_x conftest$ac_exeext
40434 ac_cv_func_gethostbyname_r=yes
40436 $as_echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40439 ac_cv_func_gethostbyname_r=no
40442 rm -rf conftest.dSYM
40443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40444 conftest$ac_exeext conftest.$ac_ext
40446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
40447 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
40448 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
40449 { $as_echo "$as_me:$LINENO: result: using libc's resolver" >&5
40450 $as_echo "using libc's resolver" >&6; }
40453 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
40454 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
40455 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
40456 $as_echo_n "(cached) " >&6
40458 ac_check_lib_save_LIBS=$LIBS
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40467 /* Override any GCC internal prototype to avoid an error.
40468 Use char because int might match the return type of a GCC
40469 builtin and then its argument prototype would still apply. */
40473 char gethostbyname_r ();
40477 return gethostbyname_r ();
40482 rm -f conftest.$ac_objext conftest$ac_exeext
40483 if { (ac_try="$ac_link"
40484 case "(($ac_try" in
40485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486 *) ac_try_echo=$ac_try;;
40488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40489 $as_echo "$ac_try_echo") >&5
40490 (eval "$ac_link") 2>conftest.er1
40492 grep -v '^ *+' conftest.er1 >conftest.err
40494 cat conftest.err >&5
40495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496 (exit $ac_status); } && {
40497 test -z "$ac_c_werror_flag" ||
40498 test ! -s conftest.err
40499 } && test -s conftest$ac_exeext && {
40500 test "$cross_compiling" = yes ||
40501 $as_test_x conftest$ac_exeext
40503 ac_cv_lib_nsl_gethostbyname_r=yes
40505 $as_echo "$as_me: failed program was:" >&5
40506 sed 's/^/| /' conftest.$ac_ext >&5
40508 ac_cv_lib_nsl_gethostbyname_r=no
40511 rm -rf conftest.dSYM
40512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40513 conftest$ac_exeext conftest.$ac_ext
40514 LIBS=$ac_check_lib_save_LIBS
40516 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
40517 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
40518 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
40519 cat >>confdefs.h <<_ACEOF
40520 #define HAVE_LIBNSL 1
40528 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
40529 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
40530 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
40531 $as_echo_n "(cached) " >&6
40533 ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lresolv $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h. */
40542 /* Override any GCC internal prototype to avoid an error.
40543 Use char because int might match the return type of a GCC
40544 builtin and then its argument prototype would still apply. */
40548 char gethostbyname_r ();
40552 return gethostbyname_r ();
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561 *) ac_try_echo=$ac_try;;
40563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40564 $as_echo "$ac_try_echo") >&5
40565 (eval "$ac_link") 2>conftest.er1
40567 grep -v '^ *+' conftest.er1 >conftest.err
40569 cat conftest.err >&5
40570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571 (exit $ac_status); } && {
40572 test -z "$ac_c_werror_flag" ||
40573 test ! -s conftest.err
40574 } && test -s conftest$ac_exeext && {
40575 test "$cross_compiling" = yes ||
40576 $as_test_x conftest$ac_exeext
40578 ac_cv_lib_resolv_gethostbyname_r=yes
40580 $as_echo "$as_me: failed program was:" >&5
40581 sed 's/^/| /' conftest.$ac_ext >&5
40583 ac_cv_lib_resolv_gethostbyname_r=no
40586 rm -rf conftest.dSYM
40587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40588 conftest$ac_exeext conftest.$ac_ext
40589 LIBS=$ac_check_lib_save_LIBS
40591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
40592 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
40593 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then
40594 cat >>confdefs.h <<_ACEOF
40595 #define HAVE_LIBRESOLV 1
40598 LIBS="-lresolv $LIBS"
40606 for ac_func in inet_pton
40608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40609 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40610 $as_echo_n "checking for $ac_func... " >&6; }
40611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40612 $as_echo_n "(cached) " >&6
40614 cat >conftest.$ac_ext <<_ACEOF
40617 cat confdefs.h >>conftest.$ac_ext
40618 cat >>conftest.$ac_ext <<_ACEOF
40619 /* end confdefs.h. */
40620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40622 #define $ac_func innocuous_$ac_func
40624 /* System header to define __stub macros and hopefully few prototypes,
40625 which can conflict with char $ac_func (); below.
40626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40627 <limits.h> exists even on freestanding compilers. */
40630 # include <limits.h>
40632 # include <assert.h>
40637 /* Override any GCC internal prototype to avoid an error.
40638 Use char because int might match the return type of a GCC
40639 builtin and then its argument prototype would still apply. */
40644 /* The GNU C library defines this for functions which it implements
40645 to always fail with ENOSYS. Some functions are actually named
40646 something starting with __ and the normal name is an alias. */
40647 #if defined __stub_$ac_func || defined __stub___$ac_func
40654 return $ac_func ();
40659 rm -f conftest.$ac_objext conftest$ac_exeext
40660 if { (ac_try="$ac_link"
40661 case "(($ac_try" in
40662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40663 *) ac_try_echo=$ac_try;;
40665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40666 $as_echo "$ac_try_echo") >&5
40667 (eval "$ac_link") 2>conftest.er1
40669 grep -v '^ *+' conftest.er1 >conftest.err
40671 cat conftest.err >&5
40672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673 (exit $ac_status); } && {
40674 test -z "$ac_c_werror_flag" ||
40675 test ! -s conftest.err
40676 } && test -s conftest$ac_exeext && {
40677 test "$cross_compiling" = yes ||
40678 $as_test_x conftest$ac_exeext
40680 eval "$as_ac_var=yes"
40682 $as_echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40685 eval "$as_ac_var=no"
40688 rm -rf conftest.dSYM
40689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40690 conftest$ac_exeext conftest.$ac_ext
40692 ac_res=`eval 'as_val=${'$as_ac_var'}
40693 $as_echo "$as_val"'`
40694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40695 $as_echo "$ac_res" >&6; }
40696 as_val=`eval 'as_val=${'$as_ac_var'}
40697 $as_echo "$as_val"'`
40698 if test "x$as_val" = x""yes; then
40699 cat >>confdefs.h <<_ACEOF
40700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40702 cat >>confdefs.h <<\_ACEOF
40703 #define HAVE_INET_PTON 1
40710 for ac_func in inet_ntop
40712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40713 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40714 $as_echo_n "checking for $ac_func... " >&6; }
40715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40716 $as_echo_n "(cached) " >&6
40718 cat >conftest.$ac_ext <<_ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h. */
40724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40726 #define $ac_func innocuous_$ac_func
40728 /* System header to define __stub macros and hopefully few prototypes,
40729 which can conflict with char $ac_func (); below.
40730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40731 <limits.h> exists even on freestanding compilers. */
40734 # include <limits.h>
40736 # include <assert.h>
40741 /* Override any GCC internal prototype to avoid an error.
40742 Use char because int might match the return type of a GCC
40743 builtin and then its argument prototype would still apply. */
40748 /* The GNU C library defines this for functions which it implements
40749 to always fail with ENOSYS. Some functions are actually named
40750 something starting with __ and the normal name is an alias. */
40751 #if defined __stub_$ac_func || defined __stub___$ac_func
40758 return $ac_func ();
40763 rm -f conftest.$ac_objext conftest$ac_exeext
40764 if { (ac_try="$ac_link"
40765 case "(($ac_try" in
40766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40767 *) ac_try_echo=$ac_try;;
40769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40770 $as_echo "$ac_try_echo") >&5
40771 (eval "$ac_link") 2>conftest.er1
40773 grep -v '^ *+' conftest.er1 >conftest.err
40775 cat conftest.err >&5
40776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); } && {
40778 test -z "$ac_c_werror_flag" ||
40779 test ! -s conftest.err
40780 } && test -s conftest$ac_exeext && {
40781 test "$cross_compiling" = yes ||
40782 $as_test_x conftest$ac_exeext
40784 eval "$as_ac_var=yes"
40786 $as_echo "$as_me: failed program was:" >&5
40787 sed 's/^/| /' conftest.$ac_ext >&5
40789 eval "$as_ac_var=no"
40792 rm -rf conftest.dSYM
40793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40794 conftest$ac_exeext conftest.$ac_ext
40796 ac_res=`eval 'as_val=${'$as_ac_var'}
40797 $as_echo "$as_val"'`
40798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40799 $as_echo "$ac_res" >&6; }
40800 as_val=`eval 'as_val=${'$as_ac_var'}
40801 $as_echo "$as_val"'`
40802 if test "x$as_val" = x""yes; then
40803 cat >>confdefs.h <<_ACEOF
40804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40806 cat >>confdefs.h <<\_ACEOF
40807 #define HAVE_INET_NTOP 1
40814 for ac_func in gethostbyname2
40816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40818 $as_echo_n "checking for $ac_func... " >&6; }
40819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40820 $as_echo_n "(cached) " >&6
40822 cat >conftest.$ac_ext <<_ACEOF
40825 cat confdefs.h >>conftest.$ac_ext
40826 cat >>conftest.$ac_ext <<_ACEOF
40827 /* end confdefs.h. */
40828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40830 #define $ac_func innocuous_$ac_func
40832 /* System header to define __stub macros and hopefully few prototypes,
40833 which can conflict with char $ac_func (); below.
40834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40835 <limits.h> exists even on freestanding compilers. */
40838 # include <limits.h>
40840 # include <assert.h>
40845 /* Override any GCC internal prototype to avoid an error.
40846 Use char because int might match the return type of a GCC
40847 builtin and then its argument prototype would still apply. */
40852 /* The GNU C library defines this for functions which it implements
40853 to always fail with ENOSYS. Some functions are actually named
40854 something starting with __ and the normal name is an alias. */
40855 #if defined __stub_$ac_func || defined __stub___$ac_func
40862 return $ac_func ();
40867 rm -f conftest.$ac_objext conftest$ac_exeext
40868 if { (ac_try="$ac_link"
40869 case "(($ac_try" in
40870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40871 *) ac_try_echo=$ac_try;;
40873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40874 $as_echo "$ac_try_echo") >&5
40875 (eval "$ac_link") 2>conftest.er1
40877 grep -v '^ *+' conftest.er1 >conftest.err
40879 cat conftest.err >&5
40880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881 (exit $ac_status); } && {
40882 test -z "$ac_c_werror_flag" ||
40883 test ! -s conftest.err
40884 } && test -s conftest$ac_exeext && {
40885 test "$cross_compiling" = yes ||
40886 $as_test_x conftest$ac_exeext
40888 eval "$as_ac_var=yes"
40890 $as_echo "$as_me: failed program was:" >&5
40891 sed 's/^/| /' conftest.$ac_ext >&5
40893 eval "$as_ac_var=no"
40896 rm -rf conftest.dSYM
40897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40898 conftest$ac_exeext conftest.$ac_ext
40900 ac_res=`eval 'as_val=${'$as_ac_var'}
40901 $as_echo "$as_val"'`
40902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40903 $as_echo "$ac_res" >&6; }
40904 as_val=`eval 'as_val=${'$as_ac_var'}
40905 $as_echo "$as_val"'`
40906 if test "x$as_val" = x""yes; then
40907 cat >>confdefs.h <<_ACEOF
40908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40910 cat >>confdefs.h <<\_ACEOF
40911 #define HAVE_GETHOSTBYNAME2 1
40918 { $as_echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
40919 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
40920 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
40921 $as_echo_n "(cached) " >&6
40924 cat >conftest.$ac_ext <<_ACEOF
40927 cat confdefs.h >>conftest.$ac_ext
40928 cat >>conftest.$ac_ext <<_ACEOF
40929 /* end confdefs.h. */
40931 #include <sys/socket.h>
40937 struct sockaddr s; s.sa_len;
40943 rm -f conftest.$ac_objext
40944 if { (ac_try="$ac_compile"
40945 case "(($ac_try" in
40946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40947 *) ac_try_echo=$ac_try;;
40949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40950 $as_echo "$ac_try_echo") >&5
40951 (eval "$ac_compile") 2>conftest.er1
40953 grep -v '^ *+' conftest.er1 >conftest.err
40955 cat conftest.err >&5
40956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40957 (exit $ac_status); } && {
40958 test -z "$ac_c_werror_flag" ||
40959 test ! -s conftest.err
40960 } && test -s conftest.$ac_objext; then
40962 ac_cv_struct_sockaddr_sa_len=yes
40965 $as_echo "$as_me: failed program was:" >&5
40966 sed 's/^/| /' conftest.$ac_ext >&5
40968 ac_cv_struct_sockaddr_sa_len=no
40973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40977 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
40978 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
40980 if test $ac_cv_struct_sockaddr_sa_len = yes; then
40982 cat >>confdefs.h <<\_ACEOF
40983 #define HAVE_SA_LEN 1
40989 for ac_func in strftime
40991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40993 $as_echo_n "checking for $ac_func... " >&6; }
40994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40995 $as_echo_n "(cached) " >&6
40997 cat >conftest.$ac_ext <<_ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h. */
41003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41005 #define $ac_func innocuous_$ac_func
41007 /* System header to define __stub macros and hopefully few prototypes,
41008 which can conflict with char $ac_func (); below.
41009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41010 <limits.h> exists even on freestanding compilers. */
41013 # include <limits.h>
41015 # include <assert.h>
41020 /* Override any GCC internal prototype to avoid an error.
41021 Use char because int might match the return type of a GCC
41022 builtin and then its argument prototype would still apply. */
41027 /* The GNU C library defines this for functions which it implements
41028 to always fail with ENOSYS. Some functions are actually named
41029 something starting with __ and the normal name is an alias. */
41030 #if defined __stub_$ac_func || defined __stub___$ac_func
41037 return $ac_func ();
41042 rm -f conftest.$ac_objext conftest$ac_exeext
41043 if { (ac_try="$ac_link"
41044 case "(($ac_try" in
41045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41046 *) ac_try_echo=$ac_try;;
41048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41049 $as_echo "$ac_try_echo") >&5
41050 (eval "$ac_link") 2>conftest.er1
41052 grep -v '^ *+' conftest.er1 >conftest.err
41054 cat conftest.err >&5
41055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } && {
41057 test -z "$ac_c_werror_flag" ||
41058 test ! -s conftest.err
41059 } && test -s conftest$ac_exeext && {
41060 test "$cross_compiling" = yes ||
41061 $as_test_x conftest$ac_exeext
41063 eval "$as_ac_var=yes"
41065 $as_echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41068 eval "$as_ac_var=no"
41071 rm -rf conftest.dSYM
41072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41073 conftest$ac_exeext conftest.$ac_ext
41075 ac_res=`eval 'as_val=${'$as_ac_var'}
41076 $as_echo "$as_val"'`
41077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41078 $as_echo "$ac_res" >&6; }
41079 as_val=`eval 'as_val=${'$as_ac_var'}
41080 $as_echo "$as_val"'`
41081 if test "x$as_val" = x""yes; then
41082 cat >>confdefs.h <<_ACEOF
41083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41087 # strftime is in -lintl on SCO UNIX.
41088 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41089 $as_echo_n "checking for strftime in -lintl... " >&6; }
41090 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41091 $as_echo_n "(cached) " >&6
41093 ac_check_lib_save_LIBS=$LIBS
41094 LIBS="-lintl $LIBS"
41095 cat >conftest.$ac_ext <<_ACEOF
41098 cat confdefs.h >>conftest.$ac_ext
41099 cat >>conftest.$ac_ext <<_ACEOF
41100 /* end confdefs.h. */
41102 /* Override any GCC internal prototype to avoid an error.
41103 Use char because int might match the return type of a GCC
41104 builtin and then its argument prototype would still apply. */
41112 return strftime ();
41117 rm -f conftest.$ac_objext conftest$ac_exeext
41118 if { (ac_try="$ac_link"
41119 case "(($ac_try" in
41120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41121 *) ac_try_echo=$ac_try;;
41123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41124 $as_echo "$ac_try_echo") >&5
41125 (eval "$ac_link") 2>conftest.er1
41127 grep -v '^ *+' conftest.er1 >conftest.err
41129 cat conftest.err >&5
41130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131 (exit $ac_status); } && {
41132 test -z "$ac_c_werror_flag" ||
41133 test ! -s conftest.err
41134 } && test -s conftest$ac_exeext && {
41135 test "$cross_compiling" = yes ||
41136 $as_test_x conftest$ac_exeext
41138 ac_cv_lib_intl_strftime=yes
41140 $as_echo "$as_me: failed program was:" >&5
41141 sed 's/^/| /' conftest.$ac_ext >&5
41143 ac_cv_lib_intl_strftime=no
41146 rm -rf conftest.dSYM
41147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41148 conftest$ac_exeext conftest.$ac_ext
41149 LIBS=$ac_check_lib_save_LIBS
41151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41152 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
41153 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
41154 cat >>confdefs.h <<\_ACEOF
41155 #define HAVE_STRFTIME 1
41158 LIBS="-lintl $LIBS"
41165 for ac_func in vprintf
41167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41169 $as_echo_n "checking for $ac_func... " >&6; }
41170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41171 $as_echo_n "(cached) " >&6
41173 cat >conftest.$ac_ext <<_ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h. */
41179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41181 #define $ac_func innocuous_$ac_func
41183 /* System header to define __stub macros and hopefully few prototypes,
41184 which can conflict with char $ac_func (); below.
41185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41186 <limits.h> exists even on freestanding compilers. */
41189 # include <limits.h>
41191 # include <assert.h>
41196 /* Override any GCC internal prototype to avoid an error.
41197 Use char because int might match the return type of a GCC
41198 builtin and then its argument prototype would still apply. */
41203 /* The GNU C library defines this for functions which it implements
41204 to always fail with ENOSYS. Some functions are actually named
41205 something starting with __ and the normal name is an alias. */
41206 #if defined __stub_$ac_func || defined __stub___$ac_func
41213 return $ac_func ();
41218 rm -f conftest.$ac_objext conftest$ac_exeext
41219 if { (ac_try="$ac_link"
41220 case "(($ac_try" in
41221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41222 *) ac_try_echo=$ac_try;;
41224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41225 $as_echo "$ac_try_echo") >&5
41226 (eval "$ac_link") 2>conftest.er1
41228 grep -v '^ *+' conftest.er1 >conftest.err
41230 cat conftest.err >&5
41231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); } && {
41233 test -z "$ac_c_werror_flag" ||
41234 test ! -s conftest.err
41235 } && test -s conftest$ac_exeext && {
41236 test "$cross_compiling" = yes ||
41237 $as_test_x conftest$ac_exeext
41239 eval "$as_ac_var=yes"
41241 $as_echo "$as_me: failed program was:" >&5
41242 sed 's/^/| /' conftest.$ac_ext >&5
41244 eval "$as_ac_var=no"
41247 rm -rf conftest.dSYM
41248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41249 conftest$ac_exeext conftest.$ac_ext
41251 ac_res=`eval 'as_val=${'$as_ac_var'}
41252 $as_echo "$as_val"'`
41253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41254 $as_echo "$ac_res" >&6; }
41255 as_val=`eval 'as_val=${'$as_ac_var'}
41256 $as_echo "$as_val"'`
41257 if test "x$as_val" = x""yes; then
41258 cat >>confdefs.h <<_ACEOF
41259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41262 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
41263 $as_echo_n "checking for _doprnt... " >&6; }
41264 if test "${ac_cv_func__doprnt+set}" = set; then
41265 $as_echo_n "(cached) " >&6
41267 cat >conftest.$ac_ext <<_ACEOF
41270 cat confdefs.h >>conftest.$ac_ext
41271 cat >>conftest.$ac_ext <<_ACEOF
41272 /* end confdefs.h. */
41273 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41275 #define _doprnt innocuous__doprnt
41277 /* System header to define __stub macros and hopefully few prototypes,
41278 which can conflict with char _doprnt (); below.
41279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41280 <limits.h> exists even on freestanding compilers. */
41283 # include <limits.h>
41285 # include <assert.h>
41290 /* Override any GCC internal prototype to avoid an error.
41291 Use char because int might match the return type of a GCC
41292 builtin and then its argument prototype would still apply. */
41297 /* The GNU C library defines this for functions which it implements
41298 to always fail with ENOSYS. Some functions are actually named
41299 something starting with __ and the normal name is an alias. */
41300 #if defined __stub__doprnt || defined __stub____doprnt
41312 rm -f conftest.$ac_objext conftest$ac_exeext
41313 if { (ac_try="$ac_link"
41314 case "(($ac_try" in
41315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41316 *) ac_try_echo=$ac_try;;
41318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41319 $as_echo "$ac_try_echo") >&5
41320 (eval "$ac_link") 2>conftest.er1
41322 grep -v '^ *+' conftest.er1 >conftest.err
41324 cat conftest.err >&5
41325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326 (exit $ac_status); } && {
41327 test -z "$ac_c_werror_flag" ||
41328 test ! -s conftest.err
41329 } && test -s conftest$ac_exeext && {
41330 test "$cross_compiling" = yes ||
41331 $as_test_x conftest$ac_exeext
41333 ac_cv_func__doprnt=yes
41335 $as_echo "$as_me: failed program was:" >&5
41336 sed 's/^/| /' conftest.$ac_ext >&5
41338 ac_cv_func__doprnt=no
41341 rm -rf conftest.dSYM
41342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41343 conftest$ac_exeext conftest.$ac_ext
41345 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41346 $as_echo "$ac_cv_func__doprnt" >&6; }
41347 if test "x$ac_cv_func__doprnt" = x""yes; then
41349 cat >>confdefs.h <<\_ACEOF
41350 #define HAVE_DOPRNT 1
41359 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
41360 # for constant arguments. Useless!
41361 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
41362 $as_echo_n "checking for working alloca.h... " >&6; }
41363 if test "${ac_cv_working_alloca_h+set}" = set; then
41364 $as_echo_n "(cached) " >&6
41366 cat >conftest.$ac_ext <<_ACEOF
41369 cat confdefs.h >>conftest.$ac_ext
41370 cat >>conftest.$ac_ext <<_ACEOF
41371 /* end confdefs.h. */
41372 #include <alloca.h>
41376 char *p = (char *) alloca (2 * sizeof (int));
41382 rm -f conftest.$ac_objext conftest$ac_exeext
41383 if { (ac_try="$ac_link"
41384 case "(($ac_try" in
41385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41386 *) ac_try_echo=$ac_try;;
41388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41389 $as_echo "$ac_try_echo") >&5
41390 (eval "$ac_link") 2>conftest.er1
41392 grep -v '^ *+' conftest.er1 >conftest.err
41394 cat conftest.err >&5
41395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396 (exit $ac_status); } && {
41397 test -z "$ac_c_werror_flag" ||
41398 test ! -s conftest.err
41399 } && test -s conftest$ac_exeext && {
41400 test "$cross_compiling" = yes ||
41401 $as_test_x conftest$ac_exeext
41403 ac_cv_working_alloca_h=yes
41405 $as_echo "$as_me: failed program was:" >&5
41406 sed 's/^/| /' conftest.$ac_ext >&5
41408 ac_cv_working_alloca_h=no
41411 rm -rf conftest.dSYM
41412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41413 conftest$ac_exeext conftest.$ac_ext
41415 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
41416 $as_echo "$ac_cv_working_alloca_h" >&6; }
41417 if test $ac_cv_working_alloca_h = yes; then
41419 cat >>confdefs.h <<\_ACEOF
41420 #define HAVE_ALLOCA_H 1
41425 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
41426 $as_echo_n "checking for alloca... " >&6; }
41427 if test "${ac_cv_func_alloca_works+set}" = set; then
41428 $as_echo_n "(cached) " >&6
41430 cat >conftest.$ac_ext <<_ACEOF
41433 cat confdefs.h >>conftest.$ac_ext
41434 cat >>conftest.$ac_ext <<_ACEOF
41435 /* end confdefs.h. */
41437 # define alloca __builtin_alloca
41440 # include <malloc.h>
41441 # define alloca _alloca
41443 # ifdef HAVE_ALLOCA_H
41444 # include <alloca.h>
41449 # ifndef alloca /* predefined by HP cc +Olibcalls */
41460 char *p = (char *) alloca (1);
41466 rm -f conftest.$ac_objext conftest$ac_exeext
41467 if { (ac_try="$ac_link"
41468 case "(($ac_try" in
41469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470 *) ac_try_echo=$ac_try;;
41472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41473 $as_echo "$ac_try_echo") >&5
41474 (eval "$ac_link") 2>conftest.er1
41476 grep -v '^ *+' conftest.er1 >conftest.err
41478 cat conftest.err >&5
41479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480 (exit $ac_status); } && {
41481 test -z "$ac_c_werror_flag" ||
41482 test ! -s conftest.err
41483 } && test -s conftest$ac_exeext && {
41484 test "$cross_compiling" = yes ||
41485 $as_test_x conftest$ac_exeext
41487 ac_cv_func_alloca_works=yes
41489 $as_echo "$as_me: failed program was:" >&5
41490 sed 's/^/| /' conftest.$ac_ext >&5
41492 ac_cv_func_alloca_works=no
41495 rm -rf conftest.dSYM
41496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41497 conftest$ac_exeext conftest.$ac_ext
41499 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
41500 $as_echo "$ac_cv_func_alloca_works" >&6; }
41502 if test $ac_cv_func_alloca_works = yes; then
41504 cat >>confdefs.h <<\_ACEOF
41505 #define HAVE_ALLOCA 1
41509 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
41510 # that cause trouble. Some versions do not even contain alloca or
41511 # contain a buggy version. If you still want to use their alloca,
41512 # use ar to extract alloca.o from them instead of compiling alloca.c.
41514 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
41516 cat >>confdefs.h <<\_ACEOF
41521 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
41522 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
41523 if test "${ac_cv_os_cray+set}" = set; then
41524 $as_echo_n "(cached) " >&6
41526 cat >conftest.$ac_ext <<_ACEOF
41529 cat confdefs.h >>conftest.$ac_ext
41530 cat >>conftest.$ac_ext <<_ACEOF
41531 /* end confdefs.h. */
41532 #if defined CRAY && ! defined CRAY2
41539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41540 $EGREP "webecray" >/dev/null 2>&1; then
41548 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
41549 $as_echo "$ac_cv_os_cray" >&6; }
41550 if test $ac_cv_os_cray = yes; then
41551 for ac_func in _getb67 GETB67 getb67; do
41552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41554 $as_echo_n "checking for $ac_func... " >&6; }
41555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41556 $as_echo_n "(cached) " >&6
41558 cat >conftest.$ac_ext <<_ACEOF
41561 cat confdefs.h >>conftest.$ac_ext
41562 cat >>conftest.$ac_ext <<_ACEOF
41563 /* end confdefs.h. */
41564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41566 #define $ac_func innocuous_$ac_func
41568 /* System header to define __stub macros and hopefully few prototypes,
41569 which can conflict with char $ac_func (); below.
41570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41571 <limits.h> exists even on freestanding compilers. */
41574 # include <limits.h>
41576 # include <assert.h>
41581 /* Override any GCC internal prototype to avoid an error.
41582 Use char because int might match the return type of a GCC
41583 builtin and then its argument prototype would still apply. */
41588 /* The GNU C library defines this for functions which it implements
41589 to always fail with ENOSYS. Some functions are actually named
41590 something starting with __ and the normal name is an alias. */
41591 #if defined __stub_$ac_func || defined __stub___$ac_func
41598 return $ac_func ();
41603 rm -f conftest.$ac_objext conftest$ac_exeext
41604 if { (ac_try="$ac_link"
41605 case "(($ac_try" in
41606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41607 *) ac_try_echo=$ac_try;;
41609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41610 $as_echo "$ac_try_echo") >&5
41611 (eval "$ac_link") 2>conftest.er1
41613 grep -v '^ *+' conftest.er1 >conftest.err
41615 cat conftest.err >&5
41616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); } && {
41618 test -z "$ac_c_werror_flag" ||
41619 test ! -s conftest.err
41620 } && test -s conftest$ac_exeext && {
41621 test "$cross_compiling" = yes ||
41622 $as_test_x conftest$ac_exeext
41624 eval "$as_ac_var=yes"
41626 $as_echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41629 eval "$as_ac_var=no"
41632 rm -rf conftest.dSYM
41633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41634 conftest$ac_exeext conftest.$ac_ext
41636 ac_res=`eval 'as_val=${'$as_ac_var'}
41637 $as_echo "$as_val"'`
41638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41639 $as_echo "$ac_res" >&6; }
41640 as_val=`eval 'as_val=${'$as_ac_var'}
41641 $as_echo "$as_val"'`
41642 if test "x$as_val" = x""yes; then
41644 cat >>confdefs.h <<_ACEOF
41645 #define CRAY_STACKSEG_END $ac_func
41654 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
41655 $as_echo_n "checking stack direction for C alloca... " >&6; }
41656 if test "${ac_cv_c_stack_direction+set}" = set; then
41657 $as_echo_n "(cached) " >&6
41659 if test "$cross_compiling" = yes; then
41660 ac_cv_c_stack_direction=0
41662 cat >conftest.$ac_ext <<_ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h. */
41668 $ac_includes_default
41670 find_stack_direction ()
41672 static char *addr = 0;
41677 return find_stack_direction ();
41680 return (&dummy > addr) ? 1 : -1;
41686 return find_stack_direction () < 0;
41689 rm -f conftest$ac_exeext
41690 if { (ac_try="$ac_link"
41691 case "(($ac_try" in
41692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41693 *) ac_try_echo=$ac_try;;
41695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41696 $as_echo "$ac_try_echo") >&5
41697 (eval "$ac_link") 2>&5
41699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41701 { (case "(($ac_try" in
41702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41703 *) ac_try_echo=$ac_try;;
41705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41706 $as_echo "$ac_try_echo") >&5
41707 (eval "$ac_try") 2>&5
41709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; }; then
41711 ac_cv_c_stack_direction=1
41713 $as_echo "$as_me: program exited with status $ac_status" >&5
41714 $as_echo "$as_me: failed program was:" >&5
41715 sed 's/^/| /' conftest.$ac_ext >&5
41717 ( exit $ac_status )
41718 ac_cv_c_stack_direction=-1
41720 rm -rf conftest.dSYM
41721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
41727 $as_echo "$ac_cv_c_stack_direction" >&6; }
41729 cat >>confdefs.h <<_ACEOF
41730 #define STACK_DIRECTION $ac_cv_c_stack_direction
41736 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
41737 # -lseq on Dynix/PTX, -lgen on Unixware.
41738 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
41739 $as_echo_n "checking for library containing getmntent... " >&6; }
41740 if test "${ac_cv_search_getmntent+set}" = set; then
41741 $as_echo_n "(cached) " >&6
41743 ac_func_search_save_LIBS=$LIBS
41744 cat >conftest.$ac_ext <<_ACEOF
41747 cat confdefs.h >>conftest.$ac_ext
41748 cat >>conftest.$ac_ext <<_ACEOF
41749 /* end confdefs.h. */
41751 /* Override any GCC internal prototype to avoid an error.
41752 Use char because int might match the return type of a GCC
41753 builtin and then its argument prototype would still apply. */
41761 return getmntent ();
41766 for ac_lib in '' sun seq gen; do
41767 if test -z "$ac_lib"; then
41768 ac_res="none required"
41771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
41773 rm -f conftest.$ac_objext conftest$ac_exeext
41774 if { (ac_try="$ac_link"
41775 case "(($ac_try" in
41776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41777 *) ac_try_echo=$ac_try;;
41779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41780 $as_echo "$ac_try_echo") >&5
41781 (eval "$ac_link") 2>conftest.er1
41783 grep -v '^ *+' conftest.er1 >conftest.err
41785 cat conftest.err >&5
41786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); } && {
41788 test -z "$ac_c_werror_flag" ||
41789 test ! -s conftest.err
41790 } && test -s conftest$ac_exeext && {
41791 test "$cross_compiling" = yes ||
41792 $as_test_x conftest$ac_exeext
41794 ac_cv_search_getmntent=$ac_res
41796 $as_echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41802 rm -rf conftest.dSYM
41803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41805 if test "${ac_cv_search_getmntent+set}" = set; then
41809 if test "${ac_cv_search_getmntent+set}" = set; then
41812 ac_cv_search_getmntent=no
41814 rm conftest.$ac_ext
41815 LIBS=$ac_func_search_save_LIBS
41817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
41818 $as_echo "$ac_cv_search_getmntent" >&6; }
41819 ac_res=$ac_cv_search_getmntent
41820 if test "$ac_res" != no; then
41821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41822 ac_cv_func_getmntent=yes
41824 cat >>confdefs.h <<\_ACEOF
41825 #define HAVE_GETMNTENT 1
41829 ac_cv_func_getmntent=no
41834 for ac_func in getmntinfo
41836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41838 $as_echo_n "checking for $ac_func... " >&6; }
41839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41840 $as_echo_n "(cached) " >&6
41842 cat >conftest.$ac_ext <<_ACEOF
41845 cat confdefs.h >>conftest.$ac_ext
41846 cat >>conftest.$ac_ext <<_ACEOF
41847 /* end confdefs.h. */
41848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41850 #define $ac_func innocuous_$ac_func
41852 /* System header to define __stub macros and hopefully few prototypes,
41853 which can conflict with char $ac_func (); below.
41854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41855 <limits.h> exists even on freestanding compilers. */
41858 # include <limits.h>
41860 # include <assert.h>
41865 /* Override any GCC internal prototype to avoid an error.
41866 Use char because int might match the return type of a GCC
41867 builtin and then its argument prototype would still apply. */
41872 /* The GNU C library defines this for functions which it implements
41873 to always fail with ENOSYS. Some functions are actually named
41874 something starting with __ and the normal name is an alias. */
41875 #if defined __stub_$ac_func || defined __stub___$ac_func
41882 return $ac_func ();
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (ac_try="$ac_link"
41889 case "(($ac_try" in
41890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41891 *) ac_try_echo=$ac_try;;
41893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41894 $as_echo "$ac_try_echo") >&5
41895 (eval "$ac_link") 2>conftest.er1
41897 grep -v '^ *+' conftest.er1 >conftest.err
41899 cat conftest.err >&5
41900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901 (exit $ac_status); } && {
41902 test -z "$ac_c_werror_flag" ||
41903 test ! -s conftest.err
41904 } && test -s conftest$ac_exeext && {
41905 test "$cross_compiling" = yes ||
41906 $as_test_x conftest$ac_exeext
41908 eval "$as_ac_var=yes"
41910 $as_echo "$as_me: failed program was:" >&5
41911 sed 's/^/| /' conftest.$ac_ext >&5
41913 eval "$as_ac_var=no"
41916 rm -rf conftest.dSYM
41917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41918 conftest$ac_exeext conftest.$ac_ext
41920 ac_res=`eval 'as_val=${'$as_ac_var'}
41921 $as_echo "$as_val"'`
41922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41923 $as_echo "$ac_res" >&6; }
41924 as_val=`eval 'as_val=${'$as_ac_var'}
41925 $as_echo "$as_val"'`
41926 if test "x$as_val" = x""yes; then
41927 cat >>confdefs.h <<_ACEOF
41928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41930 cat >>confdefs.h <<\_ACEOF
41931 #define HAVE_GETMNTINFO 1
41937 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
41938 $as_echo_n "checking whether closedir returns void... " >&6; }
41939 if test "${ac_cv_func_closedir_void+set}" = set; then
41940 $as_echo_n "(cached) " >&6
41942 if test "$cross_compiling" = yes; then
41943 ac_cv_func_closedir_void=yes
41945 cat >conftest.$ac_ext <<_ACEOF
41948 cat confdefs.h >>conftest.$ac_ext
41949 cat >>conftest.$ac_ext <<_ACEOF
41950 /* end confdefs.h. */
41951 $ac_includes_default
41952 #include <$ac_header_dirent>
41953 #ifndef __cplusplus
41960 return closedir (opendir (".")) != 0;
41965 rm -f conftest$ac_exeext
41966 if { (ac_try="$ac_link"
41967 case "(($ac_try" in
41968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969 *) ac_try_echo=$ac_try;;
41971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41972 $as_echo "$ac_try_echo") >&5
41973 (eval "$ac_link") 2>&5
41975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41977 { (case "(($ac_try" in
41978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41979 *) ac_try_echo=$ac_try;;
41981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41982 $as_echo "$ac_try_echo") >&5
41983 (eval "$ac_try") 2>&5
41985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986 (exit $ac_status); }; }; then
41987 ac_cv_func_closedir_void=no
41989 $as_echo "$as_me: program exited with status $ac_status" >&5
41990 $as_echo "$as_me: failed program was:" >&5
41991 sed 's/^/| /' conftest.$ac_ext >&5
41993 ( exit $ac_status )
41994 ac_cv_func_closedir_void=yes
41996 rm -rf conftest.dSYM
41997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
42003 $as_echo "$ac_cv_func_closedir_void" >&6; }
42004 if test $ac_cv_func_closedir_void = yes; then
42006 cat >>confdefs.h <<\_ACEOF
42007 #define CLOSEDIR_VOID 1
42012 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42013 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42014 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42015 $as_echo_n "(cached) " >&6
42017 if test "$cross_compiling" = yes; then
42018 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42019 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42020 { (exit 1); exit 1; }; }
42022 cat >conftest.$ac_ext <<_ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h. */
42028 $ac_includes_default
42032 /* If this system has a BSD-style setpgrp which takes arguments,
42033 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42034 exit successfully. */
42035 return setpgrp (1,1) != -1;
42040 rm -f conftest$ac_exeext
42041 if { (ac_try="$ac_link"
42042 case "(($ac_try" in
42043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42044 *) ac_try_echo=$ac_try;;
42046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42047 $as_echo "$ac_try_echo") >&5
42048 (eval "$ac_link") 2>&5
42050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42052 { (case "(($ac_try" in
42053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42054 *) ac_try_echo=$ac_try;;
42056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42057 $as_echo "$ac_try_echo") >&5
42058 (eval "$ac_try") 2>&5
42060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); }; }; then
42062 ac_cv_func_setpgrp_void=no
42064 $as_echo "$as_me: program exited with status $ac_status" >&5
42065 $as_echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42068 ( exit $ac_status )
42069 ac_cv_func_setpgrp_void=yes
42071 rm -rf conftest.dSYM
42072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42077 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42078 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42079 if test $ac_cv_func_setpgrp_void = yes; then
42081 cat >>confdefs.h <<\_ACEOF
42082 #define SETPGRP_VOID 1
42086 # AC_FUNC_FNMATCH dnl use local version
42088 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
42089 $as_echo_n "checking for gettext in -lintl... " >&6; }
42090 if test "${ac_cv_lib_intl_gettext+set}" = set; then
42091 $as_echo_n "(cached) " >&6
42093 ac_check_lib_save_LIBS=$LIBS
42094 LIBS="-lintl $LIBS"
42095 cat >conftest.$ac_ext <<_ACEOF
42098 cat confdefs.h >>conftest.$ac_ext
42099 cat >>conftest.$ac_ext <<_ACEOF
42100 /* end confdefs.h. */
42102 /* Override any GCC internal prototype to avoid an error.
42103 Use char because int might match the return type of a GCC
42104 builtin and then its argument prototype would still apply. */
42117 rm -f conftest.$ac_objext conftest$ac_exeext
42118 if { (ac_try="$ac_link"
42119 case "(($ac_try" in
42120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42121 *) ac_try_echo=$ac_try;;
42123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42124 $as_echo "$ac_try_echo") >&5
42125 (eval "$ac_link") 2>conftest.er1
42127 grep -v '^ *+' conftest.er1 >conftest.err
42129 cat conftest.err >&5
42130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131 (exit $ac_status); } && {
42132 test -z "$ac_c_werror_flag" ||
42133 test ! -s conftest.err
42134 } && test -s conftest$ac_exeext && {
42135 test "$cross_compiling" = yes ||
42136 $as_test_x conftest$ac_exeext
42138 ac_cv_lib_intl_gettext=yes
42140 $as_echo "$as_me: failed program was:" >&5
42141 sed 's/^/| /' conftest.$ac_ext >&5
42143 ac_cv_lib_intl_gettext=no
42146 rm -rf conftest.dSYM
42147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42148 conftest$ac_exeext conftest.$ac_ext
42149 LIBS=$ac_check_lib_save_LIBS
42151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
42152 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
42153 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
42154 LIBS="$LIBS -lintl"
42159 { $as_echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
42160 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
42161 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
42162 $as_echo_n "(cached) " >&6
42164 ac_check_lib_save_LIBS=$LIBS
42166 cat >conftest.$ac_ext <<_ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h. */
42173 /* Override any GCC internal prototype to avoid an error.
42174 Use char because int might match the return type of a GCC
42175 builtin and then its argument prototype would still apply. */
42183 return getpwnam ();
42188 rm -f conftest.$ac_objext conftest$ac_exeext
42189 if { (ac_try="$ac_link"
42190 case "(($ac_try" in
42191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42192 *) ac_try_echo=$ac_try;;
42194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42195 $as_echo "$ac_try_echo") >&5
42196 (eval "$ac_link") 2>conftest.er1
42198 grep -v '^ *+' conftest.er1 >conftest.err
42200 cat conftest.err >&5
42201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42202 (exit $ac_status); } && {
42203 test -z "$ac_c_werror_flag" ||
42204 test ! -s conftest.err
42205 } && test -s conftest$ac_exeext && {
42206 test "$cross_compiling" = yes ||
42207 $as_test_x conftest$ac_exeext
42209 ac_cv_lib_sun_getpwnam=yes
42211 $as_echo "$as_me: failed program was:" >&5
42212 sed 's/^/| /' conftest.$ac_ext >&5
42214 ac_cv_lib_sun_getpwnam=no
42217 rm -rf conftest.dSYM
42218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42219 conftest$ac_exeext conftest.$ac_ext
42220 LIBS=$ac_check_lib_save_LIBS
42222 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
42223 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
42224 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then
42225 cat >>confdefs.h <<_ACEOF
42226 #define HAVE_LIBSUN 1
42235 for ac_header in zlib.h
42237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42240 $as_echo_n "checking for $ac_header... " >&6; }
42241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42242 $as_echo_n "(cached) " >&6
42244 ac_res=`eval 'as_val=${'$as_ac_Header'}
42245 $as_echo "$as_val"'`
42246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42247 $as_echo "$ac_res" >&6; }
42249 # Is the header compilable?
42250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42251 $as_echo_n "checking $ac_header usability... " >&6; }
42252 cat >conftest.$ac_ext <<_ACEOF
42255 cat confdefs.h >>conftest.$ac_ext
42256 cat >>conftest.$ac_ext <<_ACEOF
42257 /* end confdefs.h. */
42258 $ac_includes_default
42259 #include <$ac_header>
42261 rm -f conftest.$ac_objext
42262 if { (ac_try="$ac_compile"
42263 case "(($ac_try" in
42264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42265 *) ac_try_echo=$ac_try;;
42267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42268 $as_echo "$ac_try_echo") >&5
42269 (eval "$ac_compile") 2>conftest.er1
42271 grep -v '^ *+' conftest.er1 >conftest.err
42273 cat conftest.err >&5
42274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275 (exit $ac_status); } && {
42276 test -z "$ac_c_werror_flag" ||
42277 test ! -s conftest.err
42278 } && test -s conftest.$ac_objext; then
42279 ac_header_compiler=yes
42281 $as_echo "$as_me: failed program was:" >&5
42282 sed 's/^/| /' conftest.$ac_ext >&5
42284 ac_header_compiler=no
42287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42289 $as_echo "$ac_header_compiler" >&6; }
42291 # Is the header present?
42292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42293 $as_echo_n "checking $ac_header presence... " >&6; }
42294 cat >conftest.$ac_ext <<_ACEOF
42297 cat confdefs.h >>conftest.$ac_ext
42298 cat >>conftest.$ac_ext <<_ACEOF
42299 /* end confdefs.h. */
42300 #include <$ac_header>
42302 if { (ac_try="$ac_cpp conftest.$ac_ext"
42303 case "(($ac_try" in
42304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42305 *) ac_try_echo=$ac_try;;
42307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42308 $as_echo "$ac_try_echo") >&5
42309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42311 grep -v '^ *+' conftest.er1 >conftest.err
42313 cat conftest.err >&5
42314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); } >/dev/null && {
42316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42317 test ! -s conftest.err
42319 ac_header_preproc=yes
42321 $as_echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42324 ac_header_preproc=no
42327 rm -f conftest.err conftest.$ac_ext
42328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42329 $as_echo "$ac_header_preproc" >&6; }
42331 # So? What about this header?
42332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42338 ac_header_preproc=yes
42341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42357 $as_echo_n "checking for $ac_header... " >&6; }
42358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42359 $as_echo_n "(cached) " >&6
42361 eval "$as_ac_Header=\$ac_header_preproc"
42363 ac_res=`eval 'as_val=${'$as_ac_Header'}
42364 $as_echo "$as_val"'`
42365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42366 $as_echo "$ac_res" >&6; }
42369 as_val=`eval 'as_val=${'$as_ac_Header'}
42370 $as_echo "$as_val"'`
42371 if test "x$as_val" = x""yes; then
42372 cat >>confdefs.h <<_ACEOF
42373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42380 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
42381 $as_echo_n "checking for deflate in -lz... " >&6; }
42382 if test "${ac_cv_lib_z_deflate+set}" = set; then
42383 $as_echo_n "(cached) " >&6
42385 ac_check_lib_save_LIBS=$LIBS
42387 cat >conftest.$ac_ext <<_ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h. */
42394 /* Override any GCC internal prototype to avoid an error.
42395 Use char because int might match the return type of a GCC
42396 builtin and then its argument prototype would still apply. */
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (ac_try="$ac_link"
42411 case "(($ac_try" in
42412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42413 *) ac_try_echo=$ac_try;;
42415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42416 $as_echo "$ac_try_echo") >&5
42417 (eval "$ac_link") 2>conftest.er1
42419 grep -v '^ *+' conftest.er1 >conftest.err
42421 cat conftest.err >&5
42422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42423 (exit $ac_status); } && {
42424 test -z "$ac_c_werror_flag" ||
42425 test ! -s conftest.err
42426 } && test -s conftest$ac_exeext && {
42427 test "$cross_compiling" = yes ||
42428 $as_test_x conftest$ac_exeext
42430 ac_cv_lib_z_deflate=yes
42432 $as_echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42435 ac_cv_lib_z_deflate=no
42438 rm -rf conftest.dSYM
42439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42440 conftest$ac_exeext conftest.$ac_ext
42441 LIBS=$ac_check_lib_save_LIBS
42443 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
42444 $as_echo "$ac_cv_lib_z_deflate" >&6; }
42445 if test "x$ac_cv_lib_z_deflate" = x""yes; then
42450 if test x$ZLIBS = x-lz; then
42451 cat >>confdefs.h <<\_ACEOF
42452 #define HAVE_LIBZ 1
42460 # Check whether --enable-acl was given.
42461 if test "${enable_acl+set}" = set; then
42462 enableval=$enable_acl;
42463 if test x$enableval = xyes; then
42465 elif test x$enableval = xno; then
42474 have_extended_acl=no
42475 if test x$support_acl = xyes -o x$support_acl = xauto; then
42476 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42477 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42478 $as_echo_n "checking for sys/acl.h... " >&6; }
42479 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42480 $as_echo_n "(cached) " >&6
42482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42483 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42485 # Is the header compilable?
42486 { $as_echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
42487 $as_echo_n "checking sys/acl.h usability... " >&6; }
42488 cat >conftest.$ac_ext <<_ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h. */
42494 $ac_includes_default
42495 #include <sys/acl.h>
42497 rm -f conftest.$ac_objext
42498 if { (ac_try="$ac_compile"
42499 case "(($ac_try" in
42500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42501 *) ac_try_echo=$ac_try;;
42503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42504 $as_echo "$ac_try_echo") >&5
42505 (eval "$ac_compile") 2>conftest.er1
42507 grep -v '^ *+' conftest.er1 >conftest.err
42509 cat conftest.err >&5
42510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511 (exit $ac_status); } && {
42512 test -z "$ac_c_werror_flag" ||
42513 test ! -s conftest.err
42514 } && test -s conftest.$ac_objext; then
42515 ac_header_compiler=yes
42517 $as_echo "$as_me: failed program was:" >&5
42518 sed 's/^/| /' conftest.$ac_ext >&5
42520 ac_header_compiler=no
42523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42524 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42525 $as_echo "$ac_header_compiler" >&6; }
42527 # Is the header present?
42528 { $as_echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
42529 $as_echo_n "checking sys/acl.h presence... " >&6; }
42530 cat >conftest.$ac_ext <<_ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h. */
42536 #include <sys/acl.h>
42538 if { (ac_try="$ac_cpp conftest.$ac_ext"
42539 case "(($ac_try" in
42540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42541 *) ac_try_echo=$ac_try;;
42543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42544 $as_echo "$ac_try_echo") >&5
42545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42547 grep -v '^ *+' conftest.er1 >conftest.err
42549 cat conftest.err >&5
42550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42551 (exit $ac_status); } >/dev/null && {
42552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42553 test ! -s conftest.err
42555 ac_header_preproc=yes
42557 $as_echo "$as_me: failed program was:" >&5
42558 sed 's/^/| /' conftest.$ac_ext >&5
42560 ac_header_preproc=no
42563 rm -f conftest.err conftest.$ac_ext
42564 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42565 $as_echo "$ac_header_preproc" >&6; }
42567 # So? What about this header?
42568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42570 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42571 $as_echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42572 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
42573 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
42574 ac_header_preproc=yes
42577 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
42578 $as_echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
42579 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
42580 $as_echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
42581 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
42582 $as_echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
42583 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
42584 $as_echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
42585 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
42586 $as_echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
42587 { $as_echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
42588 $as_echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
42592 { $as_echo "$as_me:$LINENO: checking for sys/acl.h" >&5
42593 $as_echo_n "checking for sys/acl.h... " >&6; }
42594 if test "${ac_cv_header_sys_acl_h+set}" = set; then
42595 $as_echo_n "(cached) " >&6
42597 ac_cv_header_sys_acl_h=$ac_header_preproc
42599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
42600 $as_echo "$ac_cv_header_sys_acl_h" >&6; }
42603 if test "x$ac_cv_header_sys_acl_h" = x""yes; then
42605 cat >>confdefs.h <<\_ACEOF
42606 #define HAVE_SYS_ACL_H 1
42612 { $as_echo "$as_me:$LINENO: checking for acl_get_file" >&5
42613 $as_echo_n "checking for acl_get_file... " >&6; }
42614 if test "${ac_cv_func_acl_get_file+set}" = set; then
42615 $as_echo_n "(cached) " >&6
42617 cat >conftest.$ac_ext <<_ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h. */
42623 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
42624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42625 #define acl_get_file innocuous_acl_get_file
42627 /* System header to define __stub macros and hopefully few prototypes,
42628 which can conflict with char acl_get_file (); below.
42629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42630 <limits.h> exists even on freestanding compilers. */
42633 # include <limits.h>
42635 # include <assert.h>
42638 #undef acl_get_file
42640 /* Override any GCC internal prototype to avoid an error.
42641 Use char because int might match the return type of a GCC
42642 builtin and then its argument prototype would still apply. */
42646 char acl_get_file ();
42647 /* The GNU C library defines this for functions which it implements
42648 to always fail with ENOSYS. Some functions are actually named
42649 something starting with __ and the normal name is an alias. */
42650 #if defined __stub_acl_get_file || defined __stub___acl_get_file
42657 return acl_get_file ();
42662 rm -f conftest.$ac_objext conftest$ac_exeext
42663 if { (ac_try="$ac_link"
42664 case "(($ac_try" in
42665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42666 *) ac_try_echo=$ac_try;;
42668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42669 $as_echo "$ac_try_echo") >&5
42670 (eval "$ac_link") 2>conftest.er1
42672 grep -v '^ *+' conftest.er1 >conftest.err
42674 cat conftest.err >&5
42675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676 (exit $ac_status); } && {
42677 test -z "$ac_c_werror_flag" ||
42678 test ! -s conftest.err
42679 } && test -s conftest$ac_exeext && {
42680 test "$cross_compiling" = yes ||
42681 $as_test_x conftest$ac_exeext
42683 ac_cv_func_acl_get_file=yes
42685 $as_echo "$as_me: failed program was:" >&5
42686 sed 's/^/| /' conftest.$ac_ext >&5
42688 ac_cv_func_acl_get_file=no
42691 rm -rf conftest.dSYM
42692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42693 conftest$ac_exeext conftest.$ac_ext
42695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
42696 $as_echo "$ac_cv_func_acl_get_file" >&6; }
42697 if test "x$ac_cv_func_acl_get_file" = x""yes; then
42703 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
42704 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
42705 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
42706 $as_echo_n "(cached) " >&6
42708 ac_check_lib_save_LIBS=$LIBS
42710 cat >conftest.$ac_ext <<_ACEOF
42713 cat confdefs.h >>conftest.$ac_ext
42714 cat >>conftest.$ac_ext <<_ACEOF
42715 /* end confdefs.h. */
42717 /* Override any GCC internal prototype to avoid an error.
42718 Use char because int might match the return type of a GCC
42719 builtin and then its argument prototype would still apply. */
42723 char acl_get_file ();
42727 return acl_get_file ();
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (ac_try="$ac_link"
42734 case "(($ac_try" in
42735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42736 *) ac_try_echo=$ac_try;;
42738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42739 $as_echo "$ac_try_echo") >&5
42740 (eval "$ac_link") 2>conftest.er1
42742 grep -v '^ *+' conftest.er1 >conftest.err
42744 cat conftest.err >&5
42745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746 (exit $ac_status); } && {
42747 test -z "$ac_c_werror_flag" ||
42748 test ! -s conftest.err
42749 } && test -s conftest$ac_exeext && {
42750 test "$cross_compiling" = yes ||
42751 $as_test_x conftest$ac_exeext
42753 ac_cv_lib_acl_acl_get_file=yes
42755 $as_echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42758 ac_cv_lib_acl_acl_get_file=no
42761 rm -rf conftest.dSYM
42762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42763 conftest$ac_exeext conftest.$ac_ext
42764 LIBS=$ac_check_lib_save_LIBS
42766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
42767 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
42768 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
42771 if test $have_afs = yes; then
42772 if test -d /usr/lib64/; then
42773 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
42775 FDLIBS="-L/usr/lib -lacl $FDLIBS"
42778 FDLIBS="-lacl $FDLIBS"
42783 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
42784 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
42785 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
42786 $as_echo_n "(cached) " >&6
42788 ac_check_lib_save_LIBS=$LIBS
42789 LIBS="-lpacl $LIBS"
42790 cat >conftest.$ac_ext <<_ACEOF
42793 cat confdefs.h >>conftest.$ac_ext
42794 cat >>conftest.$ac_ext <<_ACEOF
42795 /* end confdefs.h. */
42797 /* Override any GCC internal prototype to avoid an error.
42798 Use char because int might match the return type of a GCC
42799 builtin and then its argument prototype would still apply. */
42803 char acl_get_file ();
42807 return acl_get_file ();
42812 rm -f conftest.$ac_objext conftest$ac_exeext
42813 if { (ac_try="$ac_link"
42814 case "(($ac_try" in
42815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42816 *) ac_try_echo=$ac_try;;
42818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42819 $as_echo "$ac_try_echo") >&5
42820 (eval "$ac_link") 2>conftest.er1
42822 grep -v '^ *+' conftest.er1 >conftest.err
42824 cat conftest.err >&5
42825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826 (exit $ac_status); } && {
42827 test -z "$ac_c_werror_flag" ||
42828 test ! -s conftest.err
42829 } && test -s conftest$ac_exeext && {
42830 test "$cross_compiling" = yes ||
42831 $as_test_x conftest$ac_exeext
42833 ac_cv_lib_pacl_acl_get_file=yes
42835 $as_echo "$as_me: failed program was:" >&5
42836 sed 's/^/| /' conftest.$ac_ext >&5
42838 ac_cv_lib_pacl_acl_get_file=no
42841 rm -rf conftest.dSYM
42842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42843 conftest$ac_exeext conftest.$ac_ext
42844 LIBS=$ac_check_lib_save_LIBS
42846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
42847 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
42848 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then
42851 FDLIBS="-lpacl $FDLIBS"
42855 { $as_echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
42856 $as_echo_n "checking for acltotext in -lsec... " >&6; }
42857 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
42858 $as_echo_n "(cached) " >&6
42860 ac_check_lib_save_LIBS=$LIBS
42862 cat >conftest.$ac_ext <<_ACEOF
42865 cat confdefs.h >>conftest.$ac_ext
42866 cat >>conftest.$ac_ext <<_ACEOF
42867 /* end confdefs.h. */
42869 /* Override any GCC internal prototype to avoid an error.
42870 Use char because int might match the return type of a GCC
42871 builtin and then its argument prototype would still apply. */
42879 return acltotext ();
42884 rm -f conftest.$ac_objext conftest$ac_exeext
42885 if { (ac_try="$ac_link"
42886 case "(($ac_try" in
42887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888 *) ac_try_echo=$ac_try;;
42890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42891 $as_echo "$ac_try_echo") >&5
42892 (eval "$ac_link") 2>conftest.er1
42894 grep -v '^ *+' conftest.er1 >conftest.err
42896 cat conftest.err >&5
42897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898 (exit $ac_status); } && {
42899 test -z "$ac_c_werror_flag" ||
42900 test ! -s conftest.err
42901 } && test -s conftest$ac_exeext && {
42902 test "$cross_compiling" = yes ||
42903 $as_test_x conftest$ac_exeext
42905 ac_cv_lib_sec_acltotext=yes
42907 $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42910 ac_cv_lib_sec_acltotext=no
42913 rm -rf conftest.dSYM
42914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42915 conftest$ac_exeext conftest.$ac_ext
42916 LIBS=$ac_check_lib_save_LIBS
42918 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
42919 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
42920 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then
42923 FDLIBS="-lsec $FDLIBS"
42925 { $as_echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
42926 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
42927 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
42928 $as_echo_n "(cached) " >&6
42930 ac_check_lib_save_LIBS=$LIBS
42932 cat >conftest.$ac_ext <<_ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h. */
42939 /* Override any GCC internal prototype to avoid an error.
42940 Use char because int might match the return type of a GCC
42941 builtin and then its argument prototype would still apply. */
42945 char acl_totext ();
42949 return acl_totext ();
42954 rm -f conftest.$ac_objext conftest$ac_exeext
42955 if { (ac_try="$ac_link"
42956 case "(($ac_try" in
42957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42958 *) ac_try_echo=$ac_try;;
42960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42961 $as_echo "$ac_try_echo") >&5
42962 (eval "$ac_link") 2>conftest.er1
42964 grep -v '^ *+' conftest.er1 >conftest.err
42966 cat conftest.err >&5
42967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); } && {
42969 test -z "$ac_c_werror_flag" ||
42970 test ! -s conftest.err
42971 } && test -s conftest$ac_exeext && {
42972 test "$cross_compiling" = yes ||
42973 $as_test_x conftest$ac_exeext
42975 ac_cv_lib_sec_acl_totext=yes
42977 $as_echo "$as_me: failed program was:" >&5
42978 sed 's/^/| /' conftest.$ac_ext >&5
42980 ac_cv_lib_sec_acl_totext=no
42983 rm -rf conftest.dSYM
42984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42985 conftest$ac_exeext conftest.$ac_ext
42986 LIBS=$ac_check_lib_save_LIBS
42988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
42989 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
42990 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then
42992 have_extended_acl=yes
43014 if test $have_acl = no -a \
43015 x${HAVE_OSF1_OS_TRUE} = x; then
43016 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
43017 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
43018 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
43019 if test $? = 0; then
43021 cat >>confdefs.h <<\_ACEOF
43022 #define HAVE_ACL_TYPE_DEFAULT_DIR 1
43025 { $as_echo "$as_me:$LINENO: result: yes" >&5
43026 $as_echo "yes" >&6; }
43028 { $as_echo "$as_me:$LINENO: result: no" >&5
43029 $as_echo "no" >&6; }
43033 if test $have_acl = yes -a \
43034 x${HAVE_DARWIN_OS_TRUE} = x; then
43035 { $as_echo "$as_me:$LINENO: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
43036 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
43037 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
43038 if test $? = 0; then
43040 cat >>confdefs.h <<\_ACEOF
43041 #define HAVE_ACL_TYPE_EXTENDED 1
43044 { $as_echo "$as_me:$LINENO: result: yes" >&5
43045 $as_echo "yes" >&6; }
43047 { $as_echo "$as_me:$LINENO: result: no" >&5
43048 $as_echo "no" >&6; }
43052 if test x$support_acl = xyes -a $have_acl != yes; then
43053 { { $as_echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
43054 please either load the acl libraries or rerun configure without --enable-acl" >&5
43055 $as_echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
43056 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
43057 { (exit 1); exit 1; }; }
43059 if test $have_acl = yes; then
43061 cat >>confdefs.h <<\_ACEOF
43067 if test $have_extended_acl = yes; then
43069 cat >>confdefs.h <<\_ACEOF
43070 #define HAVE_EXTENDED_ACL 1
43078 # Check whether --enable-xattr was given.
43079 if test "${enable_xattr+set}" = set; then
43080 enableval=$enable_xattr;
43081 if test x$enableval = xyes; then
43083 elif test x$enableval = xno; then
43092 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
43093 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43094 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43095 $as_echo_n "checking for sys/extattr.h... " >&6; }
43096 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43097 $as_echo_n "(cached) " >&6
43099 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43100 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43102 # Is the header compilable?
43103 { $as_echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
43104 $as_echo_n "checking sys/extattr.h usability... " >&6; }
43105 cat >conftest.$ac_ext <<_ACEOF
43108 cat confdefs.h >>conftest.$ac_ext
43109 cat >>conftest.$ac_ext <<_ACEOF
43110 /* end confdefs.h. */
43111 $ac_includes_default
43112 #include <sys/extattr.h>
43114 rm -f conftest.$ac_objext
43115 if { (ac_try="$ac_compile"
43116 case "(($ac_try" in
43117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43118 *) ac_try_echo=$ac_try;;
43120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43121 $as_echo "$ac_try_echo") >&5
43122 (eval "$ac_compile") 2>conftest.er1
43124 grep -v '^ *+' conftest.er1 >conftest.err
43126 cat conftest.err >&5
43127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128 (exit $ac_status); } && {
43129 test -z "$ac_c_werror_flag" ||
43130 test ! -s conftest.err
43131 } && test -s conftest.$ac_objext; then
43132 ac_header_compiler=yes
43134 $as_echo "$as_me: failed program was:" >&5
43135 sed 's/^/| /' conftest.$ac_ext >&5
43137 ac_header_compiler=no
43140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43142 $as_echo "$ac_header_compiler" >&6; }
43144 # Is the header present?
43145 { $as_echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
43146 $as_echo_n "checking sys/extattr.h presence... " >&6; }
43147 cat >conftest.$ac_ext <<_ACEOF
43150 cat confdefs.h >>conftest.$ac_ext
43151 cat >>conftest.$ac_ext <<_ACEOF
43152 /* end confdefs.h. */
43153 #include <sys/extattr.h>
43155 if { (ac_try="$ac_cpp conftest.$ac_ext"
43156 case "(($ac_try" in
43157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43158 *) ac_try_echo=$ac_try;;
43160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43161 $as_echo "$ac_try_echo") >&5
43162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43164 grep -v '^ *+' conftest.er1 >conftest.err
43166 cat conftest.err >&5
43167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168 (exit $ac_status); } >/dev/null && {
43169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43170 test ! -s conftest.err
43172 ac_header_preproc=yes
43174 $as_echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43177 ac_header_preproc=no
43180 rm -f conftest.err conftest.$ac_ext
43181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43182 $as_echo "$ac_header_preproc" >&6; }
43184 # So? What about this header?
43185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43187 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43188 $as_echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43189 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
43190 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
43191 ac_header_preproc=yes
43194 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
43195 $as_echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
43196 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
43197 $as_echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
43198 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
43199 $as_echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
43200 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
43201 $as_echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43202 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
43203 $as_echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
43204 { $as_echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
43205 $as_echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
43209 { $as_echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
43210 $as_echo_n "checking for sys/extattr.h... " >&6; }
43211 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
43212 $as_echo_n "(cached) " >&6
43214 ac_cv_header_sys_extattr_h=$ac_header_preproc
43216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
43217 $as_echo "$ac_cv_header_sys_extattr_h" >&6; }
43220 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then
43222 cat >>confdefs.h <<\_ACEOF
43223 #define HAVE_SYS_EXTATTR_H 1
43229 if test "${ac_cv_header_libutil_h+set}" = set; then
43230 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43231 $as_echo_n "checking for libutil.h... " >&6; }
43232 if test "${ac_cv_header_libutil_h+set}" = set; then
43233 $as_echo_n "(cached) " >&6
43235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43236 $as_echo "$ac_cv_header_libutil_h" >&6; }
43238 # Is the header compilable?
43239 { $as_echo "$as_me:$LINENO: checking libutil.h usability" >&5
43240 $as_echo_n "checking libutil.h usability... " >&6; }
43241 cat >conftest.$ac_ext <<_ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h. */
43247 $ac_includes_default
43248 #include <libutil.h>
43250 rm -f conftest.$ac_objext
43251 if { (ac_try="$ac_compile"
43252 case "(($ac_try" in
43253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43254 *) ac_try_echo=$ac_try;;
43256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43257 $as_echo "$ac_try_echo") >&5
43258 (eval "$ac_compile") 2>conftest.er1
43260 grep -v '^ *+' conftest.er1 >conftest.err
43262 cat conftest.err >&5
43263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); } && {
43265 test -z "$ac_c_werror_flag" ||
43266 test ! -s conftest.err
43267 } && test -s conftest.$ac_objext; then
43268 ac_header_compiler=yes
43270 $as_echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43273 ac_header_compiler=no
43276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43278 $as_echo "$ac_header_compiler" >&6; }
43280 # Is the header present?
43281 { $as_echo "$as_me:$LINENO: checking libutil.h presence" >&5
43282 $as_echo_n "checking libutil.h presence... " >&6; }
43283 cat >conftest.$ac_ext <<_ACEOF
43286 cat confdefs.h >>conftest.$ac_ext
43287 cat >>conftest.$ac_ext <<_ACEOF
43288 /* end confdefs.h. */
43289 #include <libutil.h>
43291 if { (ac_try="$ac_cpp conftest.$ac_ext"
43292 case "(($ac_try" in
43293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43294 *) ac_try_echo=$ac_try;;
43296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43297 $as_echo "$ac_try_echo") >&5
43298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43300 grep -v '^ *+' conftest.er1 >conftest.err
43302 cat conftest.err >&5
43303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); } >/dev/null && {
43305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43306 test ! -s conftest.err
43308 ac_header_preproc=yes
43310 $as_echo "$as_me: failed program was:" >&5
43311 sed 's/^/| /' conftest.$ac_ext >&5
43313 ac_header_preproc=no
43316 rm -f conftest.err conftest.$ac_ext
43317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43318 $as_echo "$ac_header_preproc" >&6; }
43320 # So? What about this header?
43321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43323 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
43324 $as_echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43325 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
43326 $as_echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
43327 ac_header_preproc=yes
43330 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
43331 $as_echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
43332 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
43333 $as_echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
43334 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
43335 $as_echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
43336 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
43337 $as_echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
43338 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
43339 $as_echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
43340 { $as_echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
43341 $as_echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
43345 { $as_echo "$as_me:$LINENO: checking for libutil.h" >&5
43346 $as_echo_n "checking for libutil.h... " >&6; }
43347 if test "${ac_cv_header_libutil_h+set}" = set; then
43348 $as_echo_n "(cached) " >&6
43350 ac_cv_header_libutil_h=$ac_header_preproc
43352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
43353 $as_echo "$ac_cv_header_libutil_h" >&6; }
43356 if test "x$ac_cv_header_libutil_h" = x""yes; then
43358 cat >>confdefs.h <<\_ACEOF
43359 #define HAVE_LIBUTIL_H 1
43368 for ac_func in extattr_get_link extattr_set_link extattr_list_link
43370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43371 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43372 $as_echo_n "checking for $ac_func... " >&6; }
43373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43374 $as_echo_n "(cached) " >&6
43376 cat >conftest.$ac_ext <<_ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h. */
43382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43384 #define $ac_func innocuous_$ac_func
43386 /* System header to define __stub macros and hopefully few prototypes,
43387 which can conflict with char $ac_func (); below.
43388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43389 <limits.h> exists even on freestanding compilers. */
43392 # include <limits.h>
43394 # include <assert.h>
43399 /* Override any GCC internal prototype to avoid an error.
43400 Use char because int might match the return type of a GCC
43401 builtin and then its argument prototype would still apply. */
43406 /* The GNU C library defines this for functions which it implements
43407 to always fail with ENOSYS. Some functions are actually named
43408 something starting with __ and the normal name is an alias. */
43409 #if defined __stub_$ac_func || defined __stub___$ac_func
43416 return $ac_func ();
43421 rm -f conftest.$ac_objext conftest$ac_exeext
43422 if { (ac_try="$ac_link"
43423 case "(($ac_try" in
43424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43425 *) ac_try_echo=$ac_try;;
43427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43428 $as_echo "$ac_try_echo") >&5
43429 (eval "$ac_link") 2>conftest.er1
43431 grep -v '^ *+' conftest.er1 >conftest.err
43433 cat conftest.err >&5
43434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); } && {
43436 test -z "$ac_c_werror_flag" ||
43437 test ! -s conftest.err
43438 } && test -s conftest$ac_exeext && {
43439 test "$cross_compiling" = yes ||
43440 $as_test_x conftest$ac_exeext
43442 eval "$as_ac_var=yes"
43444 $as_echo "$as_me: failed program was:" >&5
43445 sed 's/^/| /' conftest.$ac_ext >&5
43447 eval "$as_ac_var=no"
43450 rm -rf conftest.dSYM
43451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43452 conftest$ac_exeext conftest.$ac_ext
43454 ac_res=`eval 'as_val=${'$as_ac_var'}
43455 $as_echo "$as_val"'`
43456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43457 $as_echo "$ac_res" >&6; }
43458 as_val=`eval 'as_val=${'$as_ac_var'}
43459 $as_echo "$as_val"'`
43460 if test "x$as_val" = x""yes; then
43461 cat >>confdefs.h <<_ACEOF
43462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43467 cat >>confdefs.h <<\_ACEOF
43468 #define HAVE_EXTATTR_GET_LINK 1
43472 cat >>confdefs.h <<\_ACEOF
43473 #define HAVE_EXTATTR_SET_LINK 1
43477 cat >>confdefs.h <<\_ACEOF
43478 #define HAVE_EXTATTR_LIST_LINK 1
43487 if test $have_xattr = no; then
43491 for ac_func in extattr_get_file extattr_set_file extattr_list_file
43493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43494 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43495 $as_echo_n "checking for $ac_func... " >&6; }
43496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43497 $as_echo_n "(cached) " >&6
43499 cat >conftest.$ac_ext <<_ACEOF
43502 cat confdefs.h >>conftest.$ac_ext
43503 cat >>conftest.$ac_ext <<_ACEOF
43504 /* end confdefs.h. */
43505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43507 #define $ac_func innocuous_$ac_func
43509 /* System header to define __stub macros and hopefully few prototypes,
43510 which can conflict with char $ac_func (); below.
43511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43512 <limits.h> exists even on freestanding compilers. */
43515 # include <limits.h>
43517 # include <assert.h>
43522 /* Override any GCC internal prototype to avoid an error.
43523 Use char because int might match the return type of a GCC
43524 builtin and then its argument prototype would still apply. */
43529 /* The GNU C library defines this for functions which it implements
43530 to always fail with ENOSYS. Some functions are actually named
43531 something starting with __ and the normal name is an alias. */
43532 #if defined __stub_$ac_func || defined __stub___$ac_func
43539 return $ac_func ();
43544 rm -f conftest.$ac_objext conftest$ac_exeext
43545 if { (ac_try="$ac_link"
43546 case "(($ac_try" in
43547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43548 *) ac_try_echo=$ac_try;;
43550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43551 $as_echo "$ac_try_echo") >&5
43552 (eval "$ac_link") 2>conftest.er1
43554 grep -v '^ *+' conftest.er1 >conftest.err
43556 cat conftest.err >&5
43557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43558 (exit $ac_status); } && {
43559 test -z "$ac_c_werror_flag" ||
43560 test ! -s conftest.err
43561 } && test -s conftest$ac_exeext && {
43562 test "$cross_compiling" = yes ||
43563 $as_test_x conftest$ac_exeext
43565 eval "$as_ac_var=yes"
43567 $as_echo "$as_me: failed program was:" >&5
43568 sed 's/^/| /' conftest.$ac_ext >&5
43570 eval "$as_ac_var=no"
43573 rm -rf conftest.dSYM
43574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43575 conftest$ac_exeext conftest.$ac_ext
43577 ac_res=`eval 'as_val=${'$as_ac_var'}
43578 $as_echo "$as_val"'`
43579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43580 $as_echo "$ac_res" >&6; }
43581 as_val=`eval 'as_val=${'$as_ac_var'}
43582 $as_echo "$as_val"'`
43583 if test "x$as_val" = x""yes; then
43584 cat >>confdefs.h <<_ACEOF
43585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43590 cat >>confdefs.h <<\_ACEOF
43591 #define HAVE_EXTATTR_GET_FILE 1
43595 cat >>confdefs.h <<\_ACEOF
43596 #define HAVE_EXTATTR_SET_FILE 1
43600 cat >>confdefs.h <<\_ACEOF
43601 #define HAVE_EXTATTR_LIST_FILE 1
43611 if test $have_xattr = yes; then
43612 have_extattr_string_in_libc=no
43615 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
43617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43619 $as_echo_n "checking for $ac_func... " >&6; }
43620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43621 $as_echo_n "(cached) " >&6
43623 cat >conftest.$ac_ext <<_ACEOF
43626 cat confdefs.h >>conftest.$ac_ext
43627 cat >>conftest.$ac_ext <<_ACEOF
43628 /* end confdefs.h. */
43629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43631 #define $ac_func innocuous_$ac_func
43633 /* System header to define __stub macros and hopefully few prototypes,
43634 which can conflict with char $ac_func (); below.
43635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43636 <limits.h> exists even on freestanding compilers. */
43639 # include <limits.h>
43641 # include <assert.h>
43646 /* Override any GCC internal prototype to avoid an error.
43647 Use char because int might match the return type of a GCC
43648 builtin and then its argument prototype would still apply. */
43653 /* The GNU C library defines this for functions which it implements
43654 to always fail with ENOSYS. Some functions are actually named
43655 something starting with __ and the normal name is an alias. */
43656 #if defined __stub_$ac_func || defined __stub___$ac_func
43663 return $ac_func ();
43668 rm -f conftest.$ac_objext conftest$ac_exeext
43669 if { (ac_try="$ac_link"
43670 case "(($ac_try" in
43671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43672 *) ac_try_echo=$ac_try;;
43674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43675 $as_echo "$ac_try_echo") >&5
43676 (eval "$ac_link") 2>conftest.er1
43678 grep -v '^ *+' conftest.er1 >conftest.err
43680 cat conftest.err >&5
43681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43682 (exit $ac_status); } && {
43683 test -z "$ac_c_werror_flag" ||
43684 test ! -s conftest.err
43685 } && test -s conftest$ac_exeext && {
43686 test "$cross_compiling" = yes ||
43687 $as_test_x conftest$ac_exeext
43689 eval "$as_ac_var=yes"
43691 $as_echo "$as_me: failed program was:" >&5
43692 sed 's/^/| /' conftest.$ac_ext >&5
43694 eval "$as_ac_var=no"
43697 rm -rf conftest.dSYM
43698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43699 conftest$ac_exeext conftest.$ac_ext
43701 ac_res=`eval 'as_val=${'$as_ac_var'}
43702 $as_echo "$as_val"'`
43703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43704 $as_echo "$ac_res" >&6; }
43705 as_val=`eval 'as_val=${'$as_ac_var'}
43706 $as_echo "$as_val"'`
43707 if test "x$as_val" = x""yes; then
43708 cat >>confdefs.h <<_ACEOF
43709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43712 have_extattr_string_in_libc=yes
43714 cat >>confdefs.h <<\_ACEOF
43715 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43719 cat >>confdefs.h <<\_ACEOF
43720 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43729 if test $have_extattr_string_in_libc = no; then
43730 { $as_echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
43731 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
43732 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
43733 $as_echo_n "(cached) " >&6
43735 ac_check_lib_save_LIBS=$LIBS
43736 LIBS="-lutil $LIBS"
43737 cat >conftest.$ac_ext <<_ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h. */
43744 /* Override any GCC internal prototype to avoid an error.
43745 Use char because int might match the return type of a GCC
43746 builtin and then its argument prototype would still apply. */
43750 char extattr_namespace_to_string extattr_string_to_namespace ();
43754 return extattr_namespace_to_string extattr_string_to_namespace ();
43759 rm -f conftest.$ac_objext conftest$ac_exeext
43760 if { (ac_try="$ac_link"
43761 case "(($ac_try" in
43762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43763 *) ac_try_echo=$ac_try;;
43765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43766 $as_echo "$ac_try_echo") >&5
43767 (eval "$ac_link") 2>conftest.er1
43769 grep -v '^ *+' conftest.er1 >conftest.err
43771 cat conftest.err >&5
43772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43773 (exit $ac_status); } && {
43774 test -z "$ac_c_werror_flag" ||
43775 test ! -s conftest.err
43776 } && test -s conftest$ac_exeext && {
43777 test "$cross_compiling" = yes ||
43778 $as_test_x conftest$ac_exeext
43780 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
43782 $as_echo "$as_me: failed program was:" >&5
43783 sed 's/^/| /' conftest.$ac_ext >&5
43785 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
43788 rm -rf conftest.dSYM
43789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43790 conftest$ac_exeext conftest.$ac_ext
43791 LIBS=$ac_check_lib_save_LIBS
43793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
43794 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
43795 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then
43798 cat >>confdefs.h <<\_ACEOF
43799 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
43803 cat >>confdefs.h <<\_ACEOF
43804 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
43807 FDLIBS="-lutil $FDLIBS"
43815 if test $have_xattr = no; then
43816 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43817 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43818 $as_echo_n "checking for sys/xattr.h... " >&6; }
43819 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43820 $as_echo_n "(cached) " >&6
43822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43823 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43825 # Is the header compilable?
43826 { $as_echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
43827 $as_echo_n "checking sys/xattr.h usability... " >&6; }
43828 cat >conftest.$ac_ext <<_ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h. */
43834 $ac_includes_default
43835 #include <sys/xattr.h>
43837 rm -f conftest.$ac_objext
43838 if { (ac_try="$ac_compile"
43839 case "(($ac_try" in
43840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43841 *) ac_try_echo=$ac_try;;
43843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43844 $as_echo "$ac_try_echo") >&5
43845 (eval "$ac_compile") 2>conftest.er1
43847 grep -v '^ *+' conftest.er1 >conftest.err
43849 cat conftest.err >&5
43850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851 (exit $ac_status); } && {
43852 test -z "$ac_c_werror_flag" ||
43853 test ! -s conftest.err
43854 } && test -s conftest.$ac_objext; then
43855 ac_header_compiler=yes
43857 $as_echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43860 ac_header_compiler=no
43863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43865 $as_echo "$ac_header_compiler" >&6; }
43867 # Is the header present?
43868 { $as_echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
43869 $as_echo_n "checking sys/xattr.h presence... " >&6; }
43870 cat >conftest.$ac_ext <<_ACEOF
43873 cat confdefs.h >>conftest.$ac_ext
43874 cat >>conftest.$ac_ext <<_ACEOF
43875 /* end confdefs.h. */
43876 #include <sys/xattr.h>
43878 if { (ac_try="$ac_cpp conftest.$ac_ext"
43879 case "(($ac_try" in
43880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43881 *) ac_try_echo=$ac_try;;
43883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43884 $as_echo "$ac_try_echo") >&5
43885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43887 grep -v '^ *+' conftest.er1 >conftest.err
43889 cat conftest.err >&5
43890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 (exit $ac_status); } >/dev/null && {
43892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43893 test ! -s conftest.err
43895 ac_header_preproc=yes
43897 $as_echo "$as_me: failed program was:" >&5
43898 sed 's/^/| /' conftest.$ac_ext >&5
43900 ac_header_preproc=no
43903 rm -f conftest.err conftest.$ac_ext
43904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43905 $as_echo "$ac_header_preproc" >&6; }
43907 # So? What about this header?
43908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43910 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43911 $as_echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43912 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
43913 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
43914 ac_header_preproc=yes
43917 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
43918 $as_echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
43919 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
43920 $as_echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
43921 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
43922 $as_echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
43923 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
43924 $as_echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
43925 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
43926 $as_echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
43927 { $as_echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
43928 $as_echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
43932 { $as_echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
43933 $as_echo_n "checking for sys/xattr.h... " >&6; }
43934 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
43935 $as_echo_n "(cached) " >&6
43937 ac_cv_header_sys_xattr_h=$ac_header_preproc
43939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
43940 $as_echo "$ac_cv_header_sys_xattr_h" >&6; }
43943 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then
43945 cat >>confdefs.h <<\_ACEOF
43946 #define HAVE_SYS_XATTR_H 1
43955 for ac_func in llistxattr lgetxattr lsetxattr
43957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43958 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43959 $as_echo_n "checking for $ac_func... " >&6; }
43960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43961 $as_echo_n "(cached) " >&6
43963 cat >conftest.$ac_ext <<_ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h. */
43969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43971 #define $ac_func innocuous_$ac_func
43973 /* System header to define __stub macros and hopefully few prototypes,
43974 which can conflict with char $ac_func (); below.
43975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43976 <limits.h> exists even on freestanding compilers. */
43979 # include <limits.h>
43981 # include <assert.h>
43986 /* Override any GCC internal prototype to avoid an error.
43987 Use char because int might match the return type of a GCC
43988 builtin and then its argument prototype would still apply. */
43993 /* The GNU C library defines this for functions which it implements
43994 to always fail with ENOSYS. Some functions are actually named
43995 something starting with __ and the normal name is an alias. */
43996 #if defined __stub_$ac_func || defined __stub___$ac_func
44003 return $ac_func ();
44008 rm -f conftest.$ac_objext conftest$ac_exeext
44009 if { (ac_try="$ac_link"
44010 case "(($ac_try" in
44011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44012 *) ac_try_echo=$ac_try;;
44014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44015 $as_echo "$ac_try_echo") >&5
44016 (eval "$ac_link") 2>conftest.er1
44018 grep -v '^ *+' conftest.er1 >conftest.err
44020 cat conftest.err >&5
44021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44022 (exit $ac_status); } && {
44023 test -z "$ac_c_werror_flag" ||
44024 test ! -s conftest.err
44025 } && test -s conftest$ac_exeext && {
44026 test "$cross_compiling" = yes ||
44027 $as_test_x conftest$ac_exeext
44029 eval "$as_ac_var=yes"
44031 $as_echo "$as_me: failed program was:" >&5
44032 sed 's/^/| /' conftest.$ac_ext >&5
44034 eval "$as_ac_var=no"
44037 rm -rf conftest.dSYM
44038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44039 conftest$ac_exeext conftest.$ac_ext
44041 ac_res=`eval 'as_val=${'$as_ac_var'}
44042 $as_echo "$as_val"'`
44043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44044 $as_echo "$ac_res" >&6; }
44045 as_val=`eval 'as_val=${'$as_ac_var'}
44046 $as_echo "$as_val"'`
44047 if test "x$as_val" = x""yes; then
44048 cat >>confdefs.h <<_ACEOF
44049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44054 cat >>confdefs.h <<\_ACEOF
44055 #define HAVE_LLISTXATTR 1
44059 cat >>confdefs.h <<\_ACEOF
44060 #define HAVE_LGETXATTR 1
44064 cat >>confdefs.h <<\_ACEOF
44065 #define HAVE_LSETXATTR 1
44074 if test $have_xattr = no; then
44078 for ac_func in listxattr getxattr setxattr
44080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44081 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44082 $as_echo_n "checking for $ac_func... " >&6; }
44083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44084 $as_echo_n "(cached) " >&6
44086 cat >conftest.$ac_ext <<_ACEOF
44089 cat confdefs.h >>conftest.$ac_ext
44090 cat >>conftest.$ac_ext <<_ACEOF
44091 /* end confdefs.h. */
44092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44094 #define $ac_func innocuous_$ac_func
44096 /* System header to define __stub macros and hopefully few prototypes,
44097 which can conflict with char $ac_func (); below.
44098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44099 <limits.h> exists even on freestanding compilers. */
44102 # include <limits.h>
44104 # include <assert.h>
44109 /* Override any GCC internal prototype to avoid an error.
44110 Use char because int might match the return type of a GCC
44111 builtin and then its argument prototype would still apply. */
44116 /* The GNU C library defines this for functions which it implements
44117 to always fail with ENOSYS. Some functions are actually named
44118 something starting with __ and the normal name is an alias. */
44119 #if defined __stub_$ac_func || defined __stub___$ac_func
44126 return $ac_func ();
44131 rm -f conftest.$ac_objext conftest$ac_exeext
44132 if { (ac_try="$ac_link"
44133 case "(($ac_try" in
44134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44135 *) ac_try_echo=$ac_try;;
44137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44138 $as_echo "$ac_try_echo") >&5
44139 (eval "$ac_link") 2>conftest.er1
44141 grep -v '^ *+' conftest.er1 >conftest.err
44143 cat conftest.err >&5
44144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145 (exit $ac_status); } && {
44146 test -z "$ac_c_werror_flag" ||
44147 test ! -s conftest.err
44148 } && test -s conftest$ac_exeext && {
44149 test "$cross_compiling" = yes ||
44150 $as_test_x conftest$ac_exeext
44152 eval "$as_ac_var=yes"
44154 $as_echo "$as_me: failed program was:" >&5
44155 sed 's/^/| /' conftest.$ac_ext >&5
44157 eval "$as_ac_var=no"
44160 rm -rf conftest.dSYM
44161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44162 conftest$ac_exeext conftest.$ac_ext
44164 ac_res=`eval 'as_val=${'$as_ac_var'}
44165 $as_echo "$as_val"'`
44166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44167 $as_echo "$ac_res" >&6; }
44168 as_val=`eval 'as_val=${'$as_ac_var'}
44169 $as_echo "$as_val"'`
44170 if test "x$as_val" = x""yes; then
44171 cat >>confdefs.h <<_ACEOF
44172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44177 cat >>confdefs.h <<\_ACEOF
44178 #define HAVE_LISTXATTR 1
44182 cat >>confdefs.h <<\_ACEOF
44183 #define HAVE_GETXATTR 1
44187 cat >>confdefs.h <<\_ACEOF
44188 #define HAVE_SETXATTR 1
44199 if test $have_xattr = no; then
44200 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44201 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44202 $as_echo_n "checking for sys/attr.h... " >&6; }
44203 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44204 $as_echo_n "(cached) " >&6
44206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44207 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44209 # Is the header compilable?
44210 { $as_echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
44211 $as_echo_n "checking sys/attr.h usability... " >&6; }
44212 cat >conftest.$ac_ext <<_ACEOF
44215 cat confdefs.h >>conftest.$ac_ext
44216 cat >>conftest.$ac_ext <<_ACEOF
44217 /* end confdefs.h. */
44218 $ac_includes_default
44219 #include <sys/attr.h>
44221 rm -f conftest.$ac_objext
44222 if { (ac_try="$ac_compile"
44223 case "(($ac_try" in
44224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44225 *) ac_try_echo=$ac_try;;
44227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44228 $as_echo "$ac_try_echo") >&5
44229 (eval "$ac_compile") 2>conftest.er1
44231 grep -v '^ *+' conftest.er1 >conftest.err
44233 cat conftest.err >&5
44234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); } && {
44236 test -z "$ac_c_werror_flag" ||
44237 test ! -s conftest.err
44238 } && test -s conftest.$ac_objext; then
44239 ac_header_compiler=yes
44241 $as_echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44244 ac_header_compiler=no
44247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44249 $as_echo "$ac_header_compiler" >&6; }
44251 # Is the header present?
44252 { $as_echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
44253 $as_echo_n "checking sys/attr.h presence... " >&6; }
44254 cat >conftest.$ac_ext <<_ACEOF
44257 cat confdefs.h >>conftest.$ac_ext
44258 cat >>conftest.$ac_ext <<_ACEOF
44259 /* end confdefs.h. */
44260 #include <sys/attr.h>
44262 if { (ac_try="$ac_cpp conftest.$ac_ext"
44263 case "(($ac_try" in
44264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44265 *) ac_try_echo=$ac_try;;
44267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44268 $as_echo "$ac_try_echo") >&5
44269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44271 grep -v '^ *+' conftest.er1 >conftest.err
44273 cat conftest.err >&5
44274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44275 (exit $ac_status); } >/dev/null && {
44276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44277 test ! -s conftest.err
44279 ac_header_preproc=yes
44281 $as_echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44284 ac_header_preproc=no
44287 rm -f conftest.err conftest.$ac_ext
44288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44289 $as_echo "$ac_header_preproc" >&6; }
44291 # So? What about this header?
44292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44294 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44295 $as_echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44296 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
44297 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
44298 ac_header_preproc=yes
44301 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
44302 $as_echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
44303 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
44304 $as_echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
44305 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
44306 $as_echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
44307 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
44308 $as_echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
44309 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
44310 $as_echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
44311 { $as_echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
44312 $as_echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
44316 { $as_echo "$as_me:$LINENO: checking for sys/attr.h" >&5
44317 $as_echo_n "checking for sys/attr.h... " >&6; }
44318 if test "${ac_cv_header_sys_attr_h+set}" = set; then
44319 $as_echo_n "(cached) " >&6
44321 ac_cv_header_sys_attr_h=$ac_header_preproc
44323 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
44324 $as_echo "$ac_cv_header_sys_attr_h" >&6; }
44327 if test "x$ac_cv_header_sys_attr_h" = x""yes; then
44329 cat >>confdefs.h <<\_ACEOF
44330 #define HAVE_SYS_ATTR_H 1
44336 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44337 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44338 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44339 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44340 $as_echo_n "(cached) " >&6
44342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44343 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44345 # Is the header compilable?
44346 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
44347 $as_echo_n "checking sys/nvpair.h usability... " >&6; }
44348 cat >conftest.$ac_ext <<_ACEOF
44351 cat confdefs.h >>conftest.$ac_ext
44352 cat >>conftest.$ac_ext <<_ACEOF
44353 /* end confdefs.h. */
44354 $ac_includes_default
44355 #include <sys/nvpair.h>
44357 rm -f conftest.$ac_objext
44358 if { (ac_try="$ac_compile"
44359 case "(($ac_try" in
44360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44361 *) ac_try_echo=$ac_try;;
44363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44364 $as_echo "$ac_try_echo") >&5
44365 (eval "$ac_compile") 2>conftest.er1
44367 grep -v '^ *+' conftest.er1 >conftest.err
44369 cat conftest.err >&5
44370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44371 (exit $ac_status); } && {
44372 test -z "$ac_c_werror_flag" ||
44373 test ! -s conftest.err
44374 } && test -s conftest.$ac_objext; then
44375 ac_header_compiler=yes
44377 $as_echo "$as_me: failed program was:" >&5
44378 sed 's/^/| /' conftest.$ac_ext >&5
44380 ac_header_compiler=no
44383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44385 $as_echo "$ac_header_compiler" >&6; }
44387 # Is the header present?
44388 { $as_echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
44389 $as_echo_n "checking sys/nvpair.h presence... " >&6; }
44390 cat >conftest.$ac_ext <<_ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h. */
44396 #include <sys/nvpair.h>
44398 if { (ac_try="$ac_cpp conftest.$ac_ext"
44399 case "(($ac_try" in
44400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44401 *) ac_try_echo=$ac_try;;
44403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44404 $as_echo "$ac_try_echo") >&5
44405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44407 grep -v '^ *+' conftest.er1 >conftest.err
44409 cat conftest.err >&5
44410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44411 (exit $ac_status); } >/dev/null && {
44412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44413 test ! -s conftest.err
44415 ac_header_preproc=yes
44417 $as_echo "$as_me: failed program was:" >&5
44418 sed 's/^/| /' conftest.$ac_ext >&5
44420 ac_header_preproc=no
44423 rm -f conftest.err conftest.$ac_ext
44424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44425 $as_echo "$ac_header_preproc" >&6; }
44427 # So? What about this header?
44428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44430 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
44431 $as_echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44432 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
44433 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
44434 ac_header_preproc=yes
44437 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
44438 $as_echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
44439 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
44440 $as_echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
44441 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
44442 $as_echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
44443 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
44444 $as_echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
44445 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
44446 $as_echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
44447 { $as_echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
44448 $as_echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
44452 { $as_echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
44453 $as_echo_n "checking for sys/nvpair.h... " >&6; }
44454 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
44455 $as_echo_n "(cached) " >&6
44457 ac_cv_header_sys_nvpair_h=$ac_header_preproc
44459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
44460 $as_echo "$ac_cv_header_sys_nvpair_h" >&6; }
44463 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then
44465 cat >>confdefs.h <<\_ACEOF
44466 #define HAVE_SYS_NVPAIR_H 1
44472 if test "${ac_cv_header_attr_h+set}" = set; then
44473 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44474 $as_echo_n "checking for attr.h... " >&6; }
44475 if test "${ac_cv_header_attr_h+set}" = set; then
44476 $as_echo_n "(cached) " >&6
44478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44479 $as_echo "$ac_cv_header_attr_h" >&6; }
44481 # Is the header compilable?
44482 { $as_echo "$as_me:$LINENO: checking attr.h usability" >&5
44483 $as_echo_n "checking attr.h usability... " >&6; }
44484 cat >conftest.$ac_ext <<_ACEOF
44487 cat confdefs.h >>conftest.$ac_ext
44488 cat >>conftest.$ac_ext <<_ACEOF
44489 /* end confdefs.h. */
44490 $ac_includes_default
44493 rm -f conftest.$ac_objext
44494 if { (ac_try="$ac_compile"
44495 case "(($ac_try" in
44496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44497 *) ac_try_echo=$ac_try;;
44499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44500 $as_echo "$ac_try_echo") >&5
44501 (eval "$ac_compile") 2>conftest.er1
44503 grep -v '^ *+' conftest.er1 >conftest.err
44505 cat conftest.err >&5
44506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507 (exit $ac_status); } && {
44508 test -z "$ac_c_werror_flag" ||
44509 test ! -s conftest.err
44510 } && test -s conftest.$ac_objext; then
44511 ac_header_compiler=yes
44513 $as_echo "$as_me: failed program was:" >&5
44514 sed 's/^/| /' conftest.$ac_ext >&5
44516 ac_header_compiler=no
44519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44520 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44521 $as_echo "$ac_header_compiler" >&6; }
44523 # Is the header present?
44524 { $as_echo "$as_me:$LINENO: checking attr.h presence" >&5
44525 $as_echo_n "checking attr.h presence... " >&6; }
44526 cat >conftest.$ac_ext <<_ACEOF
44529 cat confdefs.h >>conftest.$ac_ext
44530 cat >>conftest.$ac_ext <<_ACEOF
44531 /* end confdefs.h. */
44534 if { (ac_try="$ac_cpp conftest.$ac_ext"
44535 case "(($ac_try" in
44536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44537 *) ac_try_echo=$ac_try;;
44539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44540 $as_echo "$ac_try_echo") >&5
44541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44543 grep -v '^ *+' conftest.er1 >conftest.err
44545 cat conftest.err >&5
44546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547 (exit $ac_status); } >/dev/null && {
44548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44549 test ! -s conftest.err
44551 ac_header_preproc=yes
44553 $as_echo "$as_me: failed program was:" >&5
44554 sed 's/^/| /' conftest.$ac_ext >&5
44556 ac_header_preproc=no
44559 rm -f conftest.err conftest.$ac_ext
44560 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44561 $as_echo "$ac_header_preproc" >&6; }
44563 # So? What about this header?
44564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44566 { $as_echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
44567 $as_echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44568 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
44569 $as_echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
44570 ac_header_preproc=yes
44573 { $as_echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
44574 $as_echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
44575 { $as_echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
44576 $as_echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
44577 { $as_echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
44578 $as_echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
44579 { $as_echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
44580 $as_echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
44581 { $as_echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
44582 $as_echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
44583 { $as_echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
44584 $as_echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
44588 { $as_echo "$as_me:$LINENO: checking for attr.h" >&5
44589 $as_echo_n "checking for attr.h... " >&6; }
44590 if test "${ac_cv_header_attr_h+set}" = set; then
44591 $as_echo_n "(cached) " >&6
44593 ac_cv_header_attr_h=$ac_header_preproc
44595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
44596 $as_echo "$ac_cv_header_attr_h" >&6; }
44599 if test "x$ac_cv_header_attr_h" = x""yes; then
44601 cat >>confdefs.h <<\_ACEOF
44602 #define HAVE_ATTR_H 1
44614 for ac_func in openat fstatat unlinkat fchownat futimesat
44616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44618 $as_echo_n "checking for $ac_func... " >&6; }
44619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44620 $as_echo_n "(cached) " >&6
44622 cat >conftest.$ac_ext <<_ACEOF
44625 cat confdefs.h >>conftest.$ac_ext
44626 cat >>conftest.$ac_ext <<_ACEOF
44627 /* end confdefs.h. */
44628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44630 #define $ac_func innocuous_$ac_func
44632 /* System header to define __stub macros and hopefully few prototypes,
44633 which can conflict with char $ac_func (); below.
44634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44635 <limits.h> exists even on freestanding compilers. */
44638 # include <limits.h>
44640 # include <assert.h>
44645 /* Override any GCC internal prototype to avoid an error.
44646 Use char because int might match the return type of a GCC
44647 builtin and then its argument prototype would still apply. */
44652 /* The GNU C library defines this for functions which it implements
44653 to always fail with ENOSYS. Some functions are actually named
44654 something starting with __ and the normal name is an alias. */
44655 #if defined __stub_$ac_func || defined __stub___$ac_func
44662 return $ac_func ();
44667 rm -f conftest.$ac_objext conftest$ac_exeext
44668 if { (ac_try="$ac_link"
44669 case "(($ac_try" in
44670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44671 *) ac_try_echo=$ac_try;;
44673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44674 $as_echo "$ac_try_echo") >&5
44675 (eval "$ac_link") 2>conftest.er1
44677 grep -v '^ *+' conftest.er1 >conftest.err
44679 cat conftest.err >&5
44680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44681 (exit $ac_status); } && {
44682 test -z "$ac_c_werror_flag" ||
44683 test ! -s conftest.err
44684 } && test -s conftest$ac_exeext && {
44685 test "$cross_compiling" = yes ||
44686 $as_test_x conftest$ac_exeext
44688 eval "$as_ac_var=yes"
44690 $as_echo "$as_me: failed program was:" >&5
44691 sed 's/^/| /' conftest.$ac_ext >&5
44693 eval "$as_ac_var=no"
44696 rm -rf conftest.dSYM
44697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44698 conftest$ac_exeext conftest.$ac_ext
44700 ac_res=`eval 'as_val=${'$as_ac_var'}
44701 $as_echo "$as_val"'`
44702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44703 $as_echo "$ac_res" >&6; }
44704 as_val=`eval 'as_val=${'$as_ac_var'}
44705 $as_echo "$as_val"'`
44706 if test "x$as_val" = x""yes; then
44707 cat >>confdefs.h <<_ACEOF
44708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44713 cat >>confdefs.h <<\_ACEOF
44714 #define HAVE_OPENAT 1
44718 cat >>confdefs.h <<\_ACEOF
44719 #define HAVE_FSTATAT 1
44723 cat >>confdefs.h <<\_ACEOF
44724 #define HAVE_UNLINKAT 1
44728 cat >>confdefs.h <<\_ACEOF
44729 #define HAVE_FCHOWNAT 1
44733 cat >>confdefs.h <<\_ACEOF
44734 #define HAVE_FUTIMESAT 1
44743 if test $have_xattr = yes; then
44744 { $as_echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
44745 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
44746 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
44747 $as_echo_n "(cached) " >&6
44749 ac_check_lib_save_LIBS=$LIBS
44750 LIBS="-lnvpair $LIBS"
44751 cat >conftest.$ac_ext <<_ACEOF
44754 cat confdefs.h >>conftest.$ac_ext
44755 cat >>conftest.$ac_ext <<_ACEOF
44756 /* end confdefs.h. */
44758 /* Override any GCC internal prototype to avoid an error.
44759 Use char because int might match the return type of a GCC
44760 builtin and then its argument prototype would still apply. */
44764 char nvlist_next_nvpair ();
44768 return nvlist_next_nvpair ();
44773 rm -f conftest.$ac_objext conftest$ac_exeext
44774 if { (ac_try="$ac_link"
44775 case "(($ac_try" in
44776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44777 *) ac_try_echo=$ac_try;;
44779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44780 $as_echo "$ac_try_echo") >&5
44781 (eval "$ac_link") 2>conftest.er1
44783 grep -v '^ *+' conftest.er1 >conftest.err
44785 cat conftest.err >&5
44786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44787 (exit $ac_status); } && {
44788 test -z "$ac_c_werror_flag" ||
44789 test ! -s conftest.err
44790 } && test -s conftest$ac_exeext && {
44791 test "$cross_compiling" = yes ||
44792 $as_test_x conftest$ac_exeext
44794 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
44796 $as_echo "$as_me: failed program was:" >&5
44797 sed 's/^/| /' conftest.$ac_ext >&5
44799 ac_cv_lib_nvpair_nvlist_next_nvpair=no
44802 rm -rf conftest.dSYM
44803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44804 conftest$ac_exeext conftest.$ac_ext
44805 LIBS=$ac_check_lib_save_LIBS
44807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
44808 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
44809 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then
44812 cat >>confdefs.h <<\_ACEOF
44813 #define HAVE_NVLIST_NEXT_NVPAIR 1
44816 FDLIBS="-lnvpair $FDLIBS"
44824 if test x$support_xattr = xyes -a $have_xattr != yes; then
44825 { { $as_echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
44826 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
44827 $as_echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
44828 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
44829 { (exit 1); exit 1; }; }
44831 if test $have_xattr = yes; then
44833 cat >>confdefs.h <<\_ACEOF
44834 #define HAVE_XATTR 1
44842 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
44843 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44844 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
44845 $as_echo_n "(cached) " >&6
44847 ac_check_lib_save_LIBS=$LIBS
44848 LIBS="-lpthread $LIBS"
44849 cat >conftest.$ac_ext <<_ACEOF
44852 cat confdefs.h >>conftest.$ac_ext
44853 cat >>conftest.$ac_ext <<_ACEOF
44854 /* end confdefs.h. */
44856 /* Override any GCC internal prototype to avoid an error.
44857 Use char because int might match the return type of a GCC
44858 builtin and then its argument prototype would still apply. */
44862 char pthread_create ();
44866 return pthread_create ();
44871 rm -f conftest.$ac_objext conftest$ac_exeext
44872 if { (ac_try="$ac_link"
44873 case "(($ac_try" in
44874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44875 *) ac_try_echo=$ac_try;;
44877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44878 $as_echo "$ac_try_echo") >&5
44879 (eval "$ac_link") 2>conftest.er1
44881 grep -v '^ *+' conftest.er1 >conftest.err
44883 cat conftest.err >&5
44884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885 (exit $ac_status); } && {
44886 test -z "$ac_c_werror_flag" ||
44887 test ! -s conftest.err
44888 } && test -s conftest$ac_exeext && {
44889 test "$cross_compiling" = yes ||
44890 $as_test_x conftest$ac_exeext
44892 ac_cv_lib_pthread_pthread_create=yes
44894 $as_echo "$as_me: failed program was:" >&5
44895 sed 's/^/| /' conftest.$ac_ext >&5
44897 ac_cv_lib_pthread_pthread_create=no
44900 rm -rf conftest.dSYM
44901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44902 conftest$ac_exeext conftest.$ac_ext
44903 LIBS=$ac_check_lib_save_LIBS
44905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
44906 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44907 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
44908 PTHREAD_LIB="-lpthread"
44911 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
44912 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
44913 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
44914 $as_echo_n "(cached) " >&6
44916 ac_check_lib_save_LIBS=$LIBS
44917 LIBS="-lpthreads $LIBS"
44918 cat >conftest.$ac_ext <<_ACEOF
44921 cat confdefs.h >>conftest.$ac_ext
44922 cat >>conftest.$ac_ext <<_ACEOF
44923 /* end confdefs.h. */
44925 /* Override any GCC internal prototype to avoid an error.
44926 Use char because int might match the return type of a GCC
44927 builtin and then its argument prototype would still apply. */
44931 char pthread_create ();
44935 return pthread_create ();
44940 rm -f conftest.$ac_objext conftest$ac_exeext
44941 if { (ac_try="$ac_link"
44942 case "(($ac_try" in
44943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44944 *) ac_try_echo=$ac_try;;
44946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44947 $as_echo "$ac_try_echo") >&5
44948 (eval "$ac_link") 2>conftest.er1
44950 grep -v '^ *+' conftest.er1 >conftest.err
44952 cat conftest.err >&5
44953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); } && {
44955 test -z "$ac_c_werror_flag" ||
44956 test ! -s conftest.err
44957 } && test -s conftest$ac_exeext && {
44958 test "$cross_compiling" = yes ||
44959 $as_test_x conftest$ac_exeext
44961 ac_cv_lib_pthreads_pthread_create=yes
44963 $as_echo "$as_me: failed program was:" >&5
44964 sed 's/^/| /' conftest.$ac_ext >&5
44966 ac_cv_lib_pthreads_pthread_create=no
44969 rm -rf conftest.dSYM
44970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44971 conftest$ac_exeext conftest.$ac_ext
44972 LIBS=$ac_check_lib_save_LIBS
44974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
44975 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
44976 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
44977 PTHREAD_LIB="-lpthreads"
44980 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
44981 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
44982 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
44983 $as_echo_n "(cached) " >&6
44985 ac_check_lib_save_LIBS=$LIBS
44987 cat >conftest.$ac_ext <<_ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h. */
44994 /* Override any GCC internal prototype to avoid an error.
44995 Use char because int might match the return type of a GCC
44996 builtin and then its argument prototype would still apply. */
45000 char pthread_create ();
45004 return pthread_create ();
45009 rm -f conftest.$ac_objext conftest$ac_exeext
45010 if { (ac_try="$ac_link"
45011 case "(($ac_try" in
45012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45013 *) ac_try_echo=$ac_try;;
45015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45016 $as_echo "$ac_try_echo") >&5
45017 (eval "$ac_link") 2>conftest.er1
45019 grep -v '^ *+' conftest.er1 >conftest.err
45021 cat conftest.err >&5
45022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023 (exit $ac_status); } && {
45024 test -z "$ac_c_werror_flag" ||
45025 test ! -s conftest.err
45026 } && test -s conftest$ac_exeext && {
45027 test "$cross_compiling" = yes ||
45028 $as_test_x conftest$ac_exeext
45030 ac_cv_lib_c_r_pthread_create=yes
45032 $as_echo "$as_me: failed program was:" >&5
45033 sed 's/^/| /' conftest.$ac_ext >&5
45035 ac_cv_lib_c_r_pthread_create=no
45038 rm -rf conftest.dSYM
45039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45040 conftest$ac_exeext conftest.$ac_ext
45041 LIBS=$ac_check_lib_save_LIBS
45043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
45044 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
45045 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
45046 PTHREAD_LIB="-lc_r"
45049 { $as_echo "$as_me:$LINENO: checking for pthread_create" >&5
45050 $as_echo_n "checking for pthread_create... " >&6; }
45051 if test "${ac_cv_func_pthread_create+set}" = set; then
45052 $as_echo_n "(cached) " >&6
45054 cat >conftest.$ac_ext <<_ACEOF
45057 cat confdefs.h >>conftest.$ac_ext
45058 cat >>conftest.$ac_ext <<_ACEOF
45059 /* end confdefs.h. */
45060 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
45061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45062 #define pthread_create innocuous_pthread_create
45064 /* System header to define __stub macros and hopefully few prototypes,
45065 which can conflict with char pthread_create (); below.
45066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45067 <limits.h> exists even on freestanding compilers. */
45070 # include <limits.h>
45072 # include <assert.h>
45075 #undef pthread_create
45077 /* Override any GCC internal prototype to avoid an error.
45078 Use char because int might match the return type of a GCC
45079 builtin and then its argument prototype would still apply. */
45083 char pthread_create ();
45084 /* The GNU C library defines this for functions which it implements
45085 to always fail with ENOSYS. Some functions are actually named
45086 something starting with __ and the normal name is an alias. */
45087 #if defined __stub_pthread_create || defined __stub___pthread_create
45094 return pthread_create ();
45099 rm -f conftest.$ac_objext conftest$ac_exeext
45100 if { (ac_try="$ac_link"
45101 case "(($ac_try" in
45102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45103 *) ac_try_echo=$ac_try;;
45105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45106 $as_echo "$ac_try_echo") >&5
45107 (eval "$ac_link") 2>conftest.er1
45109 grep -v '^ *+' conftest.er1 >conftest.err
45111 cat conftest.err >&5
45112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113 (exit $ac_status); } && {
45114 test -z "$ac_c_werror_flag" ||
45115 test ! -s conftest.err
45116 } && test -s conftest$ac_exeext && {
45117 test "$cross_compiling" = yes ||
45118 $as_test_x conftest$ac_exeext
45120 ac_cv_func_pthread_create=yes
45122 $as_echo "$as_me: failed program was:" >&5
45123 sed 's/^/| /' conftest.$ac_ext >&5
45125 ac_cv_func_pthread_create=no
45128 rm -rf conftest.dSYM
45129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45130 conftest$ac_exeext conftest.$ac_ext
45132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
45133 $as_echo "$ac_cv_func_pthread_create" >&6; }
45150 for ac_header in sys/prctl.h sys/capability.h
45152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45155 $as_echo_n "checking for $ac_header... " >&6; }
45156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45157 $as_echo_n "(cached) " >&6
45159 ac_res=`eval 'as_val=${'$as_ac_Header'}
45160 $as_echo "$as_val"'`
45161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45162 $as_echo "$ac_res" >&6; }
45164 # Is the header compilable?
45165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45166 $as_echo_n "checking $ac_header usability... " >&6; }
45167 cat >conftest.$ac_ext <<_ACEOF
45170 cat confdefs.h >>conftest.$ac_ext
45171 cat >>conftest.$ac_ext <<_ACEOF
45172 /* end confdefs.h. */
45173 $ac_includes_default
45174 #include <$ac_header>
45176 rm -f conftest.$ac_objext
45177 if { (ac_try="$ac_compile"
45178 case "(($ac_try" in
45179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45180 *) ac_try_echo=$ac_try;;
45182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45183 $as_echo "$ac_try_echo") >&5
45184 (eval "$ac_compile") 2>conftest.er1
45186 grep -v '^ *+' conftest.er1 >conftest.err
45188 cat conftest.err >&5
45189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45190 (exit $ac_status); } && {
45191 test -z "$ac_c_werror_flag" ||
45192 test ! -s conftest.err
45193 } && test -s conftest.$ac_objext; then
45194 ac_header_compiler=yes
45196 $as_echo "$as_me: failed program was:" >&5
45197 sed 's/^/| /' conftest.$ac_ext >&5
45199 ac_header_compiler=no
45202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45204 $as_echo "$ac_header_compiler" >&6; }
45206 # Is the header present?
45207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45208 $as_echo_n "checking $ac_header presence... " >&6; }
45209 cat >conftest.$ac_ext <<_ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h. */
45215 #include <$ac_header>
45217 if { (ac_try="$ac_cpp conftest.$ac_ext"
45218 case "(($ac_try" in
45219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45220 *) ac_try_echo=$ac_try;;
45222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45223 $as_echo "$ac_try_echo") >&5
45224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45226 grep -v '^ *+' conftest.er1 >conftest.err
45228 cat conftest.err >&5
45229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230 (exit $ac_status); } >/dev/null && {
45231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45232 test ! -s conftest.err
45234 ac_header_preproc=yes
45236 $as_echo "$as_me: failed program was:" >&5
45237 sed 's/^/| /' conftest.$ac_ext >&5
45239 ac_header_preproc=no
45242 rm -f conftest.err conftest.$ac_ext
45243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45244 $as_echo "$ac_header_preproc" >&6; }
45246 # So? What about this header?
45247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45253 ac_header_preproc=yes
45256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45259 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45263 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45272 $as_echo_n "checking for $ac_header... " >&6; }
45273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45274 $as_echo_n "(cached) " >&6
45276 eval "$as_ac_Header=\$ac_header_preproc"
45278 ac_res=`eval 'as_val=${'$as_ac_Header'}
45279 $as_echo "$as_val"'`
45280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45281 $as_echo "$ac_res" >&6; }
45284 as_val=`eval 'as_val=${'$as_ac_Header'}
45285 $as_echo "$as_val"'`
45286 if test "x$as_val" = x""yes; then
45287 cat >>confdefs.h <<_ACEOF
45288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45297 for ac_func in prctl setreuid
45299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45300 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45301 $as_echo_n "checking for $ac_func... " >&6; }
45302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45303 $as_echo_n "(cached) " >&6
45305 cat >conftest.$ac_ext <<_ACEOF
45308 cat confdefs.h >>conftest.$ac_ext
45309 cat >>conftest.$ac_ext <<_ACEOF
45310 /* end confdefs.h. */
45311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45313 #define $ac_func innocuous_$ac_func
45315 /* System header to define __stub macros and hopefully few prototypes,
45316 which can conflict with char $ac_func (); below.
45317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45318 <limits.h> exists even on freestanding compilers. */
45321 # include <limits.h>
45323 # include <assert.h>
45328 /* Override any GCC internal prototype to avoid an error.
45329 Use char because int might match the return type of a GCC
45330 builtin and then its argument prototype would still apply. */
45335 /* The GNU C library defines this for functions which it implements
45336 to always fail with ENOSYS. Some functions are actually named
45337 something starting with __ and the normal name is an alias. */
45338 #if defined __stub_$ac_func || defined __stub___$ac_func
45345 return $ac_func ();
45350 rm -f conftest.$ac_objext conftest$ac_exeext
45351 if { (ac_try="$ac_link"
45352 case "(($ac_try" in
45353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45354 *) ac_try_echo=$ac_try;;
45356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45357 $as_echo "$ac_try_echo") >&5
45358 (eval "$ac_link") 2>conftest.er1
45360 grep -v '^ *+' conftest.er1 >conftest.err
45362 cat conftest.err >&5
45363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45364 (exit $ac_status); } && {
45365 test -z "$ac_c_werror_flag" ||
45366 test ! -s conftest.err
45367 } && test -s conftest$ac_exeext && {
45368 test "$cross_compiling" = yes ||
45369 $as_test_x conftest$ac_exeext
45371 eval "$as_ac_var=yes"
45373 $as_echo "$as_me: failed program was:" >&5
45374 sed 's/^/| /' conftest.$ac_ext >&5
45376 eval "$as_ac_var=no"
45379 rm -rf conftest.dSYM
45380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45381 conftest$ac_exeext conftest.$ac_ext
45383 ac_res=`eval 'as_val=${'$as_ac_var'}
45384 $as_echo "$as_val"'`
45385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45386 $as_echo "$ac_res" >&6; }
45387 as_val=`eval 'as_val=${'$as_ac_var'}
45388 $as_echo "$as_val"'`
45389 if test "x$as_val" = x""yes; then
45390 cat >>confdefs.h <<_ACEOF
45391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45397 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
45398 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
45399 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
45400 $as_echo_n "(cached) " >&6
45402 ac_check_lib_save_LIBS=$LIBS
45404 cat >conftest.$ac_ext <<_ACEOF
45407 cat confdefs.h >>conftest.$ac_ext
45408 cat >>conftest.$ac_ext <<_ACEOF
45409 /* end confdefs.h. */
45411 /* Override any GCC internal prototype to avoid an error.
45412 Use char because int might match the return type of a GCC
45413 builtin and then its argument prototype would still apply. */
45417 char cap_set_proc ();
45421 return cap_set_proc ();
45426 rm -f conftest.$ac_objext conftest$ac_exeext
45427 if { (ac_try="$ac_link"
45428 case "(($ac_try" in
45429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45430 *) ac_try_echo=$ac_try;;
45432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45433 $as_echo "$ac_try_echo") >&5
45434 (eval "$ac_link") 2>conftest.er1
45436 grep -v '^ *+' conftest.er1 >conftest.err
45438 cat conftest.err >&5
45439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45440 (exit $ac_status); } && {
45441 test -z "$ac_c_werror_flag" ||
45442 test ! -s conftest.err
45443 } && test -s conftest$ac_exeext && {
45444 test "$cross_compiling" = yes ||
45445 $as_test_x conftest$ac_exeext
45447 ac_cv_lib_cap_cap_set_proc=yes
45449 $as_echo "$as_me: failed program was:" >&5
45450 sed 's/^/| /' conftest.$ac_ext >&5
45452 ac_cv_lib_cap_cap_set_proc=no
45455 rm -rf conftest.dSYM
45456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45457 conftest$ac_exeext conftest.$ac_ext
45458 LIBS=$ac_check_lib_save_LIBS
45460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
45461 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
45462 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then
45468 if test x$CAP_LIBS = x-lcap; then
45470 cat >>confdefs.h <<\_ACEOF
45471 #define HAVE_LIBCAP 1
45478 cat >>confdefs.h <<\_ACEOF
45483 CFLAGS=${CFLAGS--O}
45485 if test x$have_gcc = xyes ; then
45486 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45487 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
45489 LDFLAGS=${LDFLAGS--O}
45490 DB_LIBS="${SQL_LFLAGS}"
45491 CPPFLAGS="$CPPFLAGS"
45518 PFILES="platforms/Makefile"
45523 hostname=`uname -n | cut -d '.' -f 1`
45524 if test x${hostname} = x ; then
45525 hostname="localhost"
45527 ping -c 1 $hostname 2>/dev/null 1>/dev/null
45528 if test ! $? = 0; then
45529 hostname="localhost"
45532 case "$DISTNAME" in
45535 PSCMD="ps -e -o pid,comm"
45536 PFILES="${PFILES} \
45537 platforms/aix/Makefile"
45538 TAPEDRIVE="/dev/rmt0.1"
45542 PTHREAD_LIB="-lpthread -lexc"
45543 if test "${CC}" = "gcc" ; then
45550 TAPEDRIVE="/dev/nrmt0"
45553 DISTVER=`uname -a |awk '{print $3}'`
45554 TAPEDRIVE="/dev/nrmt0"
45555 PTHREAD_LIB="-pthread"
45556 CFLAGS="${CFLAGS} -pthread"
45557 PSCMD="ps -ax -o pid,command"
45560 PFILES="${PFILES} \
45561 platforms/bsdi/Makefile \
45562 platforms/bsdi/bacula-fd \
45563 platforms/bsdi/bacula-sd \
45564 platforms/bsdi/bacula-dir"
45565 largefile_support="yes"
45568 DISTVER=`uname -a |awk '{print $3}'`
45569 TAPEDRIVE="/dev/nrst0"
45571 WCFLAGS="-mwindows"
45572 WLDFLAGS="-mwindows"
45576 TAPEDRIVE="/dev/nst0"
45577 PSCMD="ps -e -o pid,command"
45579 PFILES="${PFILES} \
45580 platforms/darwin/Makefile"
45584 TAPEDRIVE="/dev/nst0"
45585 PSCMD="ps -e -o pid,command"
45587 PFILES="${PFILES} \
45588 platforms/osx/Makefile"
45591 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
45594 DISTVER=`cat /etc/debian_version`
45595 if test -f /etc/lsb-release ; then
45597 if test "x$DISTRIB_ID" != "x" ; then
45598 DISTNAME=$DISTRIB_ID
45600 if test "x$DISTRIB_RELEASE" != "x" ; then
45601 DISTVER=$DISTRIB_RELEASE
45604 if test "$DISTNAME" = "Ubuntu" ; then
45607 TAPEDRIVE="/dev/nst0"
45608 PSCMD="ps -e -o pid,command"
45609 if test "$DISTNAME" = "ubuntu" ; then
45610 PFILES="${PFILES} \
45611 platforms/ubuntu/Makefile \
45612 platforms/ubuntu/bacula-fd \
45613 platforms/ubuntu/bacula-sd \
45614 platforms/ubuntu/bacula-dir"
45616 PFILES="${PFILES} \
45617 platforms/debian/Makefile \
45618 platforms/debian/bacula-fd \
45619 platforms/debian/bacula-sd \
45620 platforms/debian/bacula-dir"
45624 DISTVER=`uname -a |awk '{print $3}'`
45625 VER=`echo $DISTVER | cut -c 1`
45626 if test x$VER = x4 ; then
45627 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
45628 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
45632 TAPEDRIVE="/dev/nrsa0"
45633 PSCMD="ps -ax -o pid,command"
45634 PFILES="${PFILES} \
45635 platforms/freebsd/Makefile \
45636 platforms/freebsd/bacula-fd \
45637 platforms/freebsd/bacula-sd \
45638 platforms/freebsd/bacula-dir"
45639 largefile_support="yes"
45642 PSCMD="UNIX95=1; ps -e -o pid,comm"
45643 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
45645 TAPEDRIVE="/dev/rmt/0hnb"
45646 PTHREAD_LIB="-lpthread"
45647 cat >>confdefs.h <<\_ACEOF
45648 #define _INCLUDE_LONGLONG 1
45654 TAPEDRIVE="/dev/rmt/0cbn"
45655 PSCMD="ps -e -o pid,comm"
45656 PFILES="${PFILES} \
45657 platforms/irix/Makefile \
45658 platforms/irix/bacula-fd \
45659 platforms/irix/bacula-sd \
45660 platforms/irix/bacula-dir"
45663 DISTVER=`uname -a |awk '{print $3}'`
45666 TAPEDRIVE="/dev/nrst0"
45667 PSCMD="ps -ax -o pid,command"
45668 PTHREAD_LIB="-pthread"
45669 CFLAGS="${CFLAGS} -pthread"
45672 DISTVER=`uname -a |awk '{print $3}'`
45675 TAPEDRIVE="/dev/nrst0"
45676 PSCMD="ps -ax -o pid,command"
45677 PTHREAD_LIB="-pthread"
45678 CFLAGS="${CFLAGS} -pthread"
45679 PFILES="${PFILES} \
45680 platforms/openbsd/Makefile \
45681 platforms/openbsd/bacula-fd \
45682 platforms/openbsd/bacula-sd \
45683 platforms/openbsd/bacula-dir"
45686 if test -f /etc/whitebox-release ; then
45687 f=/etc/whitebox-release
45689 f=/etc/redhat-release
45691 if test `cat $f | grep release |\
45692 cut -f 3 -d ' '`x = "Enterprise"x ; then
45693 DISTVER="Enterprise "`cat $f | grep release |\
45696 DISTVER=`cat /etc/redhat-release | grep release |\
45699 TAPEDRIVE="/dev/nst0"
45700 PSCMD="ps -e -o pid,command"
45701 PFILES="${PFILES} \
45702 platforms/redhat/Makefile \
45703 platforms/redhat/bacula-fd \
45704 platforms/redhat/bacula-sd \
45705 platforms/redhat/bacula-dir
45709 DISTVER=`cat /etc/mandrake-release | grep release |\
45711 TAPEDRIVE="/dev/nst0"
45712 PSCMD="ps -e -o pid,command"
45713 PFILES="${PFILES} \
45714 platforms/mandrake/Makefile \
45715 platforms/mandrake/bacula-fd \
45716 platforms/mandrake/bacula-sd \
45717 platforms/mandrake/bacula-dir \
45721 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
45722 TAPEDRIVE="/dev/nst0"
45723 PSCMD="ps -e -o pid,command"
45724 PFILES="${PFILES} \
45725 platforms/gentoo/Makefile \
45726 platforms/gentoo/bacula-init \
45727 platforms/gentoo/bacula-fd \
45728 platforms/gentoo/bacula-sd \
45729 platforms/gentoo/bacula-dir"
45732 DISTVER=`cat /etc/slackware-version`
45733 TAPEDRIVE="/dev/nst0"
45734 PSCMD="ps -e -o pid,command"
45735 PFILES="${PFILES} \
45736 platforms/slackware/Makefile \
45737 platforms/slackware/rc.bacula-fd \
45738 platforms/slackware/rc.bacula-sd \
45739 platforms/slackware/rc.bacula-dir\
45740 platforms/slackware/functions.bacula"
45744 TAPEDRIVE="/dev/rmt/0cbn"
45745 PSCMD="ps -e -o pid,comm"
45746 PFILES="${PFILES} \
45747 platforms/solaris/Makefile \
45748 platforms/solaris/bacula-fd \
45749 platforms/solaris/bacula-sd \
45750 platforms/solaris/bacula-dir"
45751 if test x$DISTVER = x5.6 ; then
45752 cat >>confdefs.h <<\_ACEOF
45753 #define HAVE_OLD_SOCKOPT 1
45757 LIBS="$LIBS -lresolv -lrt"
45760 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
45762 TAPEDRIVE="/dev/nst0"
45763 PSCMD="ps -e -o pid,command"
45764 PFILES="${PFILES} \
45765 platforms/suse/Makefile \
45766 platforms/suse/bacula-fd \
45767 platforms/suse/bacula-sd \
45768 platforms/suse/bacula-dir \
45769 platforms/suse/bacula"
45774 TAPEDRIVE="/dev/nst0"
45775 PSCMD="ps -e -o pid,command"
45776 PFILES="${PFILES} \
45777 platforms/suse/Makefile \
45778 platforms/suse/bacula-fd \
45779 platforms/suse/bacula-sd \
45780 platforms/suse/bacula-dir"
45784 TAPEDRIVE="/dev/nst0"
45787 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
45793 LIBS="$PTHREAD_LIB $LIBS"
45795 cat >>confdefs.h <<_ACEOF
45799 cat >>confdefs.h <<_ACEOF
45810 MCOMMON=./autoconf/Make.common
45813 if test "x${subsysdir}" = "x${sbindir}" ; then
45816 echo "You have set both --sbindir and --with-subsys-dir"
45817 echo " equal to: ${subsysdir} "
45818 echo "This is not permitted. Please reconfigure."
45820 echo "Aborting configuration ..."
45826 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
45828 ac_config_commands="$ac_config_commands default"
45830 cat >confcache <<\_ACEOF
45831 # This file is a shell script that caches the results of configure
45832 # tests run on this system so they can be shared between configure
45833 # scripts and configure runs, see configure's option --config-cache.
45834 # It is not useful on other systems. If it contains results you don't
45835 # want to keep, you may remove or edit it.
45837 # config.status only pays attention to the cache file if you give it
45838 # the --recheck option to rerun configure.
45840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45842 # following values.
45846 # The following way of writing the cache mishandles newlines in values,
45847 # but we know of no workaround that is simple, portable, and efficient.
45848 # So, we kill variables containing newlines.
45849 # Ultrix sh set writes to stderr and can't be redirected directly,
45850 # and sets the high bit in the cache file unless we assign to the vars.
45852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45853 eval ac_val=\$$ac_var
45857 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45861 _ | IFS | as_nl) ;; #(
45862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45863 *) $as_unset $ac_var ;;
45869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45870 *${as_nl}ac_space=\ *)
45871 # `set' does not quote correctly, so add quotes (double-quote
45872 # substitution turns \\\\ into \\, and sed turns \\ into \).
45875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45878 # `set' quotes correctly as required by POSIX, so do not add quotes.
45879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45893 if test -w "$cache_file"; then
45894 test "x$cache_file" != "x/dev/null" &&
45895 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45896 $as_echo "$as_me: updating cache $cache_file" >&6;}
45897 cat confcache >$cache_file
45899 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45900 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45906 # Let make expand exec_prefix.
45907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45909 DEFS=-DHAVE_CONFIG_H
45913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45914 # 1. Remove the extension, and $U if already installed.
45915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45916 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45918 # will be set to the directory where LIBOBJS objects are built.
45919 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45920 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45922 LIBOBJS=$ac_libobjs
45924 LTLIBOBJS=$ac_ltlibobjs
45928 : ${CONFIG_STATUS=./config.status}
45930 ac_clean_files_save=$ac_clean_files
45931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45932 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45933 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45934 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45936 # Generated by $as_me.
45937 # Run this file to recreate the current configuration.
45938 # Compiler output produced by configure, useful for debugging
45939 # configure, is in config.log if it exists.
45942 ac_cs_recheck=false
45944 SHELL=\${CONFIG_SHELL-$SHELL}
45947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45948 ## --------------------- ##
45949 ## M4sh Initialization. ##
45950 ## --------------------- ##
45952 # Be more Bourne compatible
45953 DUALCASE=1; export DUALCASE # for MKS sh
45954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45957 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45958 # is contrary to our usage. Disable this feature.
45959 alias -g '${1+"$@"}'='"$@"'
45960 setopt NO_GLOB_SUBST
45962 case `(set -o) 2>/dev/null` in
45963 *posix*) set -o posix ;;
45972 # Avoid depending upon Character Ranges.
45973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45976 as_cr_digits='0123456789'
45977 as_cr_alnum=$as_cr_Letters$as_cr_digits
45982 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45983 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45986 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45987 as_echo='printf %s\n'
45988 as_echo_n='printf %s'
45990 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45991 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45992 as_echo_n='/usr/ucb/echo -n'
45994 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45995 as_echo_n_body='eval
45999 expr "X$arg" : "X\\(.*\\)$as_nl";
46000 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46002 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46004 export as_echo_n_body
46005 as_echo_n='sh -c $as_echo_n_body as_echo'
46007 export as_echo_body
46008 as_echo='sh -c $as_echo_body as_echo'
46011 # The user is always right.
46012 if test "${PATH_SEPARATOR+set}" != set; then
46014 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46015 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46020 # Support unset when possible.
46021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46029 # We need space, tab and new line, in precisely that order. Quoting is
46030 # there to prevent editors from complaining about space-tab.
46031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
46032 # splitting by setting IFS to empty value.)
46035 # Find who we are. Look in the path if we contain no directory separator.
46037 *[\\/]* ) as_myself=$0 ;;
46038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46039 for as_dir in $PATH
46042 test -z "$as_dir" && as_dir=.
46043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46049 # We did not find ourselves, most probably we were run as `sh COMMAND'
46050 # in which case we are not to be found in the path.
46051 if test "x$as_myself" = x; then
46054 if test ! -f "$as_myself"; then
46055 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46056 { (exit 1); exit 1; }
46059 # Work around bugs in pre-3.0 UWIN ksh.
46060 for as_var in ENV MAIL MAILPATH
46061 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46073 # Required to use basename.
46074 if expr a : '\(a\)' >/dev/null 2>&1 &&
46075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46082 as_basename=basename
46088 # Name of the executable.
46089 as_me=`$as_basename -- "$0" ||
46090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46091 X"$0" : 'X\(//\)$' \| \
46092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46094 sed '/^.*\/\([^/][^/]*\)\/*$/{
46113 as_lineno_1=$LINENO
46114 as_lineno_2=$LINENO
46115 test "x$as_lineno_1" != "x$as_lineno_2" &&
46116 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46119 # uniformly replaced by the line number. The first 'sed' inserts a
46120 # line-number line after each line using $LINENO; the second 'sed'
46121 # does the real work. The second script uses 'N' to pair each
46122 # line-number line with the line containing $LINENO, and appends
46123 # trailing '-' during substitution so that $LINENO is not a special
46124 # case at line end.
46125 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46126 # scripts with optimization help from Paolo Bonzini. Blame Lee
46127 # E. McMahon (1931-1989) for sed's syntax. :-)
46139 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46142 ' >$as_me.lineno &&
46143 chmod +x "$as_me.lineno" ||
46144 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46145 { (exit 1); exit 1; }; }
46147 # Don't try to exec as it changes $[0], causing all sort of problems
46148 # (the dirname of $[0] is not the place where we might find the
46149 # original and so on. Autoconf is especially sensitive to this).
46150 . "./$as_me.lineno"
46151 # Exit status is that of the last command.
46156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46162 ECHO_C= ECHO_N= ECHO_T=
46163 case `echo -n x` in
46165 case `echo 'x\c'` in
46166 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
46172 if expr a : '\(a\)' >/dev/null 2>&1 &&
46173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46179 rm -f conf$$ conf$$.exe conf$$.file
46180 if test -d conf$$.dir; then
46181 rm -f conf$$.dir/conf$$.file
46184 mkdir conf$$.dir 2>/dev/null
46186 if (echo >conf$$.file) 2>/dev/null; then
46187 if ln -s conf$$.file conf$$ 2>/dev/null; then
46189 # ... but there are two gotchas:
46190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46192 # In both cases, we have to default to `cp -p'.
46193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46195 elif ln conf$$.file conf$$ 2>/dev/null; then
46203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46204 rmdir conf$$.dir 2>/dev/null
46206 if mkdir -p . 2>/dev/null; then
46209 test -d ./-p && rmdir ./-p
46213 if test -x / >/dev/null 2>&1; then
46214 as_test_x='test -x'
46216 if ls -dL / >/dev/null 2>&1; then
46223 if test -d "$1"; then
46229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46230 ???[sx]*):;;*)false;;esac;fi
46234 as_executable_p=$as_test_x
46236 # Sed expression to map a string onto a valid CPP name.
46237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46239 # Sed expression to map a string onto a valid variable name.
46240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46245 # Save the log message, to keep $[0] and so on meaningful, and to
46246 # report actual input values of CONFIG_FILES etc. instead of their
46247 # values after options handling.
46249 This file was extended by $as_me, which was
46250 generated by GNU Autoconf 2.63. Invocation command line was
46252 CONFIG_FILES = $CONFIG_FILES
46253 CONFIG_HEADERS = $CONFIG_HEADERS
46254 CONFIG_LINKS = $CONFIG_LINKS
46255 CONFIG_COMMANDS = $CONFIG_COMMANDS
46258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46263 case $ac_config_files in *"
46264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46267 case $ac_config_headers in *"
46268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46273 # Files that config.status was made for.
46274 config_files="$ac_config_files"
46275 config_headers="$ac_config_headers"
46276 config_commands="$ac_config_commands"
46280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46282 \`$as_me' instantiates files from templates according to the
46283 current configuration.
46285 Usage: $0 [OPTION]... [FILE]...
46287 -h, --help print this help, then exit
46288 -V, --version print version number and configuration settings, then exit
46289 -q, --quiet, --silent
46290 do not print progress messages
46291 -d, --debug don't remove temporary files
46292 --recheck update $as_me by reconfiguring in the same conditions
46293 --file=FILE[:TEMPLATE]
46294 instantiate the configuration file FILE
46295 --header=FILE[:TEMPLATE]
46296 instantiate the configuration header FILE
46298 Configuration files:
46301 Configuration headers:
46304 Configuration commands:
46307 Report bugs to <bug-autoconf@gnu.org>."
46310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46313 configured by $0, generated by GNU Autoconf 2.63,
46314 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46316 Copyright (C) 2008 Free Software Foundation, Inc.
46317 This config.status script is free software; the Free Software Foundation
46318 gives unlimited permission to copy, distribute and modify it."
46324 test -n "\$AWK" || AWK=awk
46327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46328 # The default lists apply if the user does not specify any file.
46334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46346 # Handling of the options.
46347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46350 $as_echo "$ac_cs_version"; exit ;;
46351 --debug | --debu | --deb | --de | --d | -d )
46353 --file | --fil | --fi | --f )
46356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46358 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46359 ac_need_defaults=false;;
46360 --header | --heade | --head | --hea )
46363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46365 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46366 ac_need_defaults=false;;
46368 # Conflict between --help and --header
46369 { $as_echo "$as_me: error: ambiguous option: $1
46370 Try \`$0 --help' for more information." >&2
46371 { (exit 1); exit 1; }; };;
46372 --help | --hel | -h )
46373 $as_echo "$ac_cs_usage"; exit ;;
46374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46378 # This is an error.
46379 -*) { $as_echo "$as_me: error: unrecognized option: $1
46380 Try \`$0 --help' for more information." >&2
46381 { (exit 1); exit 1; }; } ;;
46383 *) ac_config_targets="$ac_config_targets $1"
46384 ac_need_defaults=false ;;
46390 ac_configure_extra_args=
46392 if $ac_cs_silent; then
46394 ac_configure_extra_args="$ac_configure_extra_args --silent"
46398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46399 if \$ac_cs_recheck; then
46400 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46403 CONFIG_SHELL='$SHELL'
46404 export CONFIG_SHELL
46409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46414 ## Running $as_me. ##
46420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46426 # The HP-UX ksh and POSIX shell print the target directory to stdout
46427 # if CDPATH is set.
46428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46430 sed_quote_subst='$sed_quote_subst'
46431 double_quote_subst='$double_quote_subst'
46432 delay_variable_subst='$delay_variable_subst'
46433 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46434 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46435 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46436 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46437 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46438 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46439 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46440 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46441 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46442 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46443 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46444 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46445 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46446 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46447 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46448 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46449 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46450 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46451 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46452 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46453 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46454 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46455 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46456 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46457 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46458 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46459 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46460 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46461 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46462 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46463 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46464 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46465 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46466 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46467 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46468 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46469 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46470 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46471 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46472 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46473 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46474 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46475 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46476 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46477 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"`'
46478 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"`'
46479 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46480 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46481 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46482 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46483 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46484 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46485 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46486 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46487 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46488 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46489 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46490 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46491 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46492 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46493 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46494 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46495 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46496 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46497 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46498 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46499 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46500 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46501 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46502 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46503 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46504 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46505 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46506 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46507 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46508 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46509 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46510 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46511 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46512 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46513 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46514 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46515 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46516 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46517 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46518 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46519 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46520 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46521 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46522 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46523 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46524 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46525 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46526 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46527 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46528 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46529 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46530 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46531 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46532 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46533 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46534 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46535 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46536 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46537 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46538 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46539 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46540 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46541 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46542 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46543 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46544 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46545 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46546 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46547 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46548 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46549 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46550 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46551 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46552 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46553 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46554 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46555 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46556 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46557 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46558 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46559 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46560 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46561 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46562 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46563 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46564 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46565 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46566 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46567 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46568 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46569 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46570 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46571 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46572 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46573 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46574 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46575 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46576 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46577 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46578 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46579 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46580 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46581 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46582 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46583 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46584 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46585 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46586 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46587 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46588 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46589 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46590 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46591 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46592 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46593 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46594 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46595 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46596 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46597 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46598 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46599 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46600 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46601 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46602 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46603 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46606 LTCFLAGS='$LTCFLAGS'
46607 compiler='$compiler_DEFAULT'
46609 # Quote evaled strings.
46621 deplibs_check_method \
46630 lt_cv_sys_global_symbol_pipe \
46631 lt_cv_sys_global_symbol_to_cdecl \
46632 lt_cv_sys_global_symbol_to_c_name_address \
46633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46636 lt_prog_compiler_no_builtin_flag \
46637 lt_prog_compiler_wl \
46638 lt_prog_compiler_pic \
46639 lt_prog_compiler_static \
46640 lt_cv_prog_compiler_c_o \
46648 export_dynamic_flag_spec \
46649 whole_archive_flag_spec \
46650 compiler_needs_object \
46652 allow_undefined_flag \
46653 no_undefined_flag \
46654 hardcode_libdir_flag_spec \
46655 hardcode_libdir_flag_spec_ld \
46656 hardcode_libdir_separator \
46661 variables_saved_for_relink \
46663 library_names_spec \
46668 compiler_lib_search_dirs \
46673 compiler_lib_search_path \
46676 lt_prog_compiler_no_builtin_flag_CXX \
46677 lt_prog_compiler_wl_CXX \
46678 lt_prog_compiler_pic_CXX \
46679 lt_prog_compiler_static_CXX \
46680 lt_cv_prog_compiler_c_o_CXX \
46681 export_dynamic_flag_spec_CXX \
46682 whole_archive_flag_spec_CXX \
46683 compiler_needs_object_CXX \
46685 allow_undefined_flag_CXX \
46686 no_undefined_flag_CXX \
46687 hardcode_libdir_flag_spec_CXX \
46688 hardcode_libdir_flag_spec_ld_CXX \
46689 hardcode_libdir_separator_CXX \
46690 fix_srcfile_path_CXX \
46691 exclude_expsyms_CXX \
46692 include_expsyms_CXX \
46693 file_list_spec_CXX \
46694 compiler_lib_search_dirs_CXX \
46695 predep_objects_CXX \
46696 postdep_objects_CXX \
46699 compiler_lib_search_path_CXX; do
46700 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46701 *[\\\\\\\`\\"\\\$]*)
46702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46710 # Double-quote double-evaled strings.
46711 for var in reload_cmds \
46712 old_postinstall_cmds \
46713 old_postuninstall_cmds \
46715 extract_expsyms_cmds \
46716 old_archive_from_new_cmds \
46717 old_archive_from_expsyms_cmds \
46719 archive_expsym_cmds \
46721 module_expsym_cmds \
46722 export_symbols_cmds \
46725 postuninstall_cmds \
46727 sys_lib_search_path_spec \
46728 sys_lib_dlsearch_path_spec \
46729 old_archive_cmds_CXX \
46730 old_archive_from_new_cmds_CXX \
46731 old_archive_from_expsyms_cmds_CXX \
46733 archive_expsym_cmds_CXX \
46735 module_expsym_cmds_CXX \
46736 export_symbols_cmds_CXX \
46737 prelink_cmds_CXX; do
46738 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46739 *[\\\\\\\`\\"\\\$]*)
46740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46748 # Fix-up fallback echo if it was mangled by the above quoting rules.
46750 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46754 ac_aux_dir='$ac_aux_dir'
46755 xsi_shell='$xsi_shell'
46756 lt_shell_append='$lt_shell_append'
46758 # See if we are running on zsh, and set the options which allow our
46759 # commands through without removal of \ escapes INIT.
46760 if test -n "\${ZSH_VERSION+set}" ; then
46761 setopt NO_GLOB_SUBST
46767 TIMESTAMP='$TIMESTAMP'
46775 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46776 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
46778 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46779 # Capture the value of LINGUAS because we need it to compute CATALOGS.
46780 LINGUAS="${LINGUAS-%UNSET%}"
46785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46787 # Handling of arguments.
46788 for ac_config_target in $ac_config_targets
46790 case $ac_config_target in
46791 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
46792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46793 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46794 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
46795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46796 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
46797 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
46798 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
46799 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
46800 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
46801 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
46802 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
46803 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
46804 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
46805 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
46806 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
46807 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
46808 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
46809 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46810 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
46811 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
46812 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
46813 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
46814 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
46815 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
46816 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
46817 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
46818 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
46819 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
46820 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
46821 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
46822 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
46823 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
46824 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
46825 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
46826 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
46827 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
46828 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
46829 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
46830 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
46831 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
46832 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46833 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
46834 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
46835 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
46836 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
46837 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
46838 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
46839 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
46840 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
46841 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
46842 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
46843 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
46844 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
46845 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
46846 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
46847 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
46848 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
46849 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
46850 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
46851 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
46852 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
46853 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
46854 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
46855 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
46856 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
46857 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
46858 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
46859 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
46860 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
46861 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
46862 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
46863 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
46864 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
46865 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
46866 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
46867 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
46868 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
46869 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
46870 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
46871 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
46872 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
46873 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
46874 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
46875 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
46876 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
46877 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
46878 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
46879 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
46880 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
46881 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
46882 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
46883 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
46884 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
46885 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
46886 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
46887 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
46888 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
46889 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
46890 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
46891 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
46892 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
46893 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46894 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
46895 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
46896 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
46897 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
46898 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
46899 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
46900 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
46901 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
46902 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46904 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46905 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46906 { (exit 1); exit 1; }; };;
46911 # If the user did not use the arguments to specify the items to instantiate,
46912 # then the envvar interface is used. Set only those that are not.
46913 # We use the long form for the default assignment because of an extremely
46914 # bizarre bug on SunOS 4.1.3.
46915 if $ac_need_defaults; then
46916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46921 # Have a temporary directory for convenience. Make it in the build tree
46922 # simply because there is no reason against having it here, and in addition,
46923 # creating and moving files from /tmp can sometimes cause problems.
46924 # Hook for its removal unless debugging.
46925 # Note that there is a small window in which the directory will not be cleaned:
46926 # after its creation but before its name has been assigned to `$tmp'.
46930 trap 'exit_status=$?
46931 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46933 trap '{ (exit 1); exit 1; }' 1 2 13 15
46935 # Create a (secure) tmp directory for tmp files.
46938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46939 test -n "$tmp" && test -d "$tmp"
46942 tmp=./conf$$-$RANDOM
46943 (umask 077 && mkdir "$tmp")
46946 $as_echo "$as_me: cannot create a temporary directory in ." >&2
46947 { (exit 1); exit 1; }
46950 # Set up the scripts for CONFIG_FILES section.
46951 # No need to generate them if there are no CONFIG_FILES.
46952 # This happens for instance with `./config.status config.h'.
46953 if test -n "$CONFIG_FILES"; then
46955 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
46956 ac_cs_awk_getline=:
46957 ac_cs_awk_pipe_init=
46958 ac_cs_awk_read_file='
46959 while ((getline aline < (F[key])) > 0)
46962 ac_cs_awk_pipe_fini=
46964 ac_cs_awk_getline=false
46965 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
46966 ac_cs_awk_read_file='
46968 print "cat " F[key] " &&"
46969 '$ac_cs_awk_pipe_init
46970 # The final `:' finishes the AND list.
46971 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
46974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46978 ac_cs_awk_cr=$ac_cr
46981 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46984 # Create commands to substitute file output variables.
46986 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
46987 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
46988 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
46991 } >conf$$files.sh &&
46992 . ./conf$$files.sh ||
46993 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46994 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46995 { (exit 1); exit 1; }; }
46996 rm -f conf$$files.sh
46999 echo "cat >conf$$subs.awk <<_ACEOF" &&
47000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47002 } >conf$$subs.sh ||
47003 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47004 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47005 { (exit 1); exit 1; }; }
47006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47008 for ac_last_try in false false false false false :; do
47009 . ./conf$$subs.sh ||
47010 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47011 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47012 { (exit 1); exit 1; }; }
47014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47015 if test $ac_delim_n = $ac_delim_num; then
47017 elif $ac_last_try; then
47018 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47019 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47020 { (exit 1); exit 1; }; }
47022 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47025 rm -f conf$$subs.sh
47027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47028 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47032 s/^/S["/; s/!.*/"]=/
47042 s/\(.\{148\}\).*/\1/
47044 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47056 s/\(.\{148\}\).*/\1/
47058 s/["\\]/\\&/g; s/^/"/; s/$/"/
47062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47067 ' <conf$$subs.awk | sed '
47072 ' >>$CONFIG_STATUS || ac_write_fail=1
47073 rm -f conf$$subs.awk
47074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47076 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47077 for (key in S) S_is_set[key] = 1
47079 \$ac_cs_awk_pipe_init
47083 nfields = split(line, field, "@")
47085 len = length(field[1])
47086 for (i = 2; i < nfields; i++) {
47088 keylen = length(key)
47089 if (S_is_set[key]) {
47091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47092 len += length(value) + length(field[++i])
47097 if (nfields == 3 && !substed) {
47099 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
47100 \$ac_cs_awk_read_file
47106 \$ac_cs_awk_pipe_fini
47109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47110 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47111 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47114 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47115 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47116 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
47117 { (exit 1); exit 1; }; }
47120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
47121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47122 # trailing colons and then remove the whole line if VPATH becomes empty
47123 # (actually we leave an empty line to preserve line numbers).
47124 if test "x$srcdir" = x.; then
47125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47126 s/:*\$(srcdir):*/:/
47127 s/:*\${srcdir}:*/:/
47129 s/^\([^=]*=[ ]*\):*/\1/
47135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47136 fi # test -n "$CONFIG_FILES"
47138 # Set up the scripts for CONFIG_HEADERS section.
47139 # No need to generate them if there are no CONFIG_HEADERS.
47140 # This happens for instance with `./config.status Makefile'.
47141 if test -n "$CONFIG_HEADERS"; then
47142 cat >"$tmp/defines.awk" <<\_ACAWK ||
47146 # Transform confdefs.h into an awk script `defines.awk', embedded as
47147 # here-document in config.status, that substitutes the proper values into
47148 # config.h.in to produce config.h.
47150 # Create a delimiter string that does not exist in confdefs.h, to ease
47151 # handling of long lines.
47153 for ac_last_try in false false :; do
47154 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47155 if test -z "$ac_t"; then
47157 elif $ac_last_try; then
47158 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47159 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47160 { (exit 1); exit 1; }; }
47162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47166 # For the awk script, D is an array of macro values keyed by name,
47167 # likewise P contains macro parameters if any. Preserve backslash
47168 # newline sequences.
47170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47172 s/.\{148\}/&'"$ac_delim"'/g
47175 s/^[ ]*#[ ]*define[ ][ ]*/ /
47182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47184 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47189 D["\1"]=" \3\\\\\\n"\\/p
47191 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47196 s/.\{148\}/&'"$ac_delim"'/g
47201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47206 ' <confdefs.h | sed '
47207 s/'"$ac_delim"'/"\\\
47208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47211 for (key in D) D_is_set[key] = 1
47214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47216 split(line, arg, " ")
47217 if (arg[1] == "#") {
47221 defundef = substr(arg[1], 2)
47224 split(mac1, mac2, "(") #)
47226 prefix = substr(line, 1, index(line, defundef) - 1)
47227 if (D_is_set[macro]) {
47228 # Preserve the white space surrounding the "#".
47229 print prefix "define", macro P[macro] D[macro]
47232 # Replace #undef with comments. This is necessary, for example,
47233 # in the case of _POSIX_SOURCE, which is predefined and required
47234 # on some systems where configure will not decide to define it.
47235 if (defundef == "undef") {
47236 print "/*", prefix defundef, macro, "*/"
47244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47245 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47246 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47247 { (exit 1); exit 1; }; }
47248 fi # test -n "$CONFIG_HEADERS"
47251 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47256 :[FHLC]) ac_mode=$ac_tag; continue;;
47258 case $ac_mode$ac_tag in
47260 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47261 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47262 { (exit 1); exit 1; }; };;
47263 :[FH]-) ac_tag=-:-;;
47264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47281 -) ac_f="$tmp/stdin";;
47282 *) # Look for the file first in the build tree, then in the source tree
47283 # (if the path is not absolute). The absolute path cannot be DOS-style,
47284 # because $ac_f cannot contain `:'.
47288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47290 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47291 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47292 { (exit 1); exit 1; }; };;
47294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47295 ac_file_inputs="$ac_file_inputs '$ac_f'"
47298 # Let's still pretend it is `configure' which instantiates (i.e., don't
47299 # use $as_me), people would be surprised to read:
47300 # /* config.h. Generated by config.status. */
47301 configure_input='Generated from '`
47302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47304 if test x"$ac_file" != x-; then
47305 configure_input="$ac_file. $configure_input"
47306 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47307 $as_echo "$as_me: creating $ac_file" >&6;}
47309 # Neutralize special characters interpreted by sed in replacement strings.
47310 case $configure_input in #(
47311 *\&* | *\|* | *\\* )
47312 ac_sed_conf_input=`$as_echo "$configure_input" |
47313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47314 *) ac_sed_conf_input=$configure_input;;
47318 *:-:* | *:-) cat >"$tmp/stdin" \
47319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47321 { (exit 1); exit 1; }; } ;;
47326 ac_dir=`$as_dirname -- "$ac_file" ||
47327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47328 X"$ac_file" : 'X\(//\)[^/]' \| \
47329 X"$ac_file" : 'X\(//\)$' \| \
47330 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47331 $as_echo X"$ac_file" |
47332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47336 /^X\(\/\/\)[^/].*/{
47351 -*) as_dir=./$as_dir;;
47353 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47357 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47358 *) as_qdir=$as_dir;;
47360 as_dirs="'$as_qdir' $as_dirs"
47361 as_dir=`$as_dirname -- "$as_dir" ||
47362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47363 X"$as_dir" : 'X\(//\)[^/]' \| \
47364 X"$as_dir" : 'X\(//\)$' \| \
47365 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47366 $as_echo X"$as_dir" |
47367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47371 /^X\(\/\/\)[^/].*/{
47384 test -d "$as_dir" && break
47386 test -z "$as_dirs" || eval "mkdir $as_dirs"
47387 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47388 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47389 { (exit 1); exit 1; }; }; }
47393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47396 # A ".." for each directory in $ac_dir_suffix.
47397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47398 case $ac_top_builddir_sub in
47399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47403 ac_abs_top_builddir=$ac_pwd
47404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47405 # for backward compatibility:
47406 ac_top_builddir=$ac_top_build_prefix
47409 .) # We are building in place.
47411 ac_top_srcdir=$ac_top_builddir_sub
47412 ac_abs_top_srcdir=$ac_pwd ;;
47413 [\\/]* | ?:[\\/]* ) # Absolute name.
47414 ac_srcdir=$srcdir$ac_dir_suffix;
47415 ac_top_srcdir=$srcdir
47416 ac_abs_top_srcdir=$srcdir ;;
47417 *) # Relative name.
47418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47419 ac_top_srcdir=$ac_top_build_prefix$srcdir
47420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47433 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47438 # If the template does not know about datarootdir, expand it.
47439 # FIXME: This hack should be removed a few years after 2.60.
47440 ac_datarootdir_hack=; ac_datarootdir_seen=
47453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47454 *datarootdir*) ac_datarootdir_seen=yes;;
47455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47456 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47460 ac_datarootdir_hack='
47461 s&@datadir@&$datadir&g
47462 s&@docdir@&$docdir&g
47463 s&@infodir@&$infodir&g
47464 s&@localedir@&$localedir&g
47465 s&@mandir@&$mandir&g
47466 s&\\\${datarootdir}&$datarootdir&g' ;;
47470 # Neutralize VPATH when `$srcdir' = `.'.
47471 # Shell code in configure.ac might set extrasub.
47472 # FIXME: do we really want to maintain this feature?
47473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47474 ac_sed_extra="$ac_vpsub
47477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47480 s|@configure_input@|$ac_sed_conf_input|;t t
47481 s&@top_builddir@&$ac_top_builddir_sub&;t t
47482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47483 s&@srcdir@&$ac_srcdir&;t t
47484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47485 s&@top_srcdir@&$ac_top_srcdir&;t t
47486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47487 s&@builddir@&$ac_builddir&;t t
47488 s&@abs_builddir@&$ac_abs_builddir&;t t
47489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47490 s&@INSTALL@&$ac_INSTALL&;t t
47491 $ac_datarootdir_hack
47493 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
47494 if $ac_cs_awk_getline; then
47495 $AWK -f "$tmp/subs.awk"
47497 $AWK -f "$tmp/subs.awk" | $SHELL
47499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47501 { (exit 1); exit 1; }; }
47503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47504 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47506 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47507 which seems to be undefined. Please make sure it is defined." >&5
47508 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47509 which seems to be undefined. Please make sure it is defined." >&2;}
47513 -) cat "$tmp/out" && rm -f "$tmp/out";;
47514 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47518 { (exit 1); exit 1; }; }
47524 if test x"$ac_file" != x-; then
47526 $as_echo "/* $configure_input */" \
47527 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47528 } >"$tmp/config.h" \
47529 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47530 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47531 { (exit 1); exit 1; }; }
47532 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47533 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47537 mv "$tmp/config.h" "$ac_file" \
47538 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47540 { (exit 1); exit 1; }; }
47543 $as_echo "/* $configure_input */" \
47544 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47545 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47546 $as_echo "$as_me: error: could not create -" >&2;}
47547 { (exit 1); exit 1; }; }
47551 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47552 $as_echo "$as_me: executing $ac_file commands" >&6;}
47557 case $ac_file$ac_mode in
47560 # See if we are running on zsh, and set the options which allow our
47561 # commands through without removal of \ escapes.
47562 if test -n "${ZSH_VERSION+set}" ; then
47563 setopt NO_GLOB_SUBST
47566 cfgfile="${ofile}T"
47567 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47570 cat <<_LT_EOF >> "$cfgfile"
47573 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47574 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47576 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47578 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47579 # 2006, 2007, 2008 Free Software Foundation, Inc.
47580 # Written by Gordon Matzigkeit, 1996
47582 # This file is part of GNU Libtool.
47584 # GNU Libtool is free software; you can redistribute it and/or
47585 # modify it under the terms of the GNU General Public License as
47586 # published by the Free Software Foundation; either version 2 of
47587 # the License, or (at your option) any later version.
47589 # As a special exception to the GNU General Public License,
47590 # if you distribute this file as part of a program or library that
47591 # is built using GNU Libtool, you may include this file under the
47592 # same distribution terms that you use for the rest of that program.
47594 # GNU Libtool is distributed in the hope that it will be useful,
47595 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47596 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47597 # GNU General Public License for more details.
47599 # You should have received a copy of the GNU General Public License
47600 # along with GNU Libtool; see the file COPYING. If not, a copy
47601 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47602 # obtained by writing to the Free Software Foundation, Inc.,
47603 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47606 # The names of the tagged configurations supported by this script.
47607 available_tags="CXX "
47609 # ### BEGIN LIBTOOL CONFIG
47611 # Which release of libtool.m4 was used?
47612 macro_version=$macro_version
47613 macro_revision=$macro_revision
47615 # Whether or not to build shared libraries.
47616 build_libtool_libs=$enable_shared
47618 # Whether or not to build static libraries.
47619 build_old_libs=$enable_static
47621 # What type of objects to build.
47624 # Whether or not to optimize for fast installation.
47625 fast_install=$enable_fast_install
47628 host_alias=$host_alias
47632 # The build system.
47633 build_alias=$build_alias
47637 # A sed program that does not truncate output.
47640 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47641 Xsed="\$SED -e 1s/^X//"
47643 # A grep program that handles long lines.
47649 # A literal string matcher.
47652 # A BSD- or MS-compatible name lister.
47655 # Whether we need soft or hard links.
47658 # What is the maximum length of a command?
47659 max_cmd_len=$max_cmd_len
47661 # Object file suffix (normally "o").
47664 # Executable file suffix (normally "").
47667 # whether the shell understands "unset".
47670 # turn spaces into newlines.
47673 # turn newlines into spaces.
47676 # How to create reloadable object files.
47677 reload_flag=$lt_reload_flag
47678 reload_cmds=$lt_reload_cmds
47680 # An object symbol dumper.
47681 OBJDUMP=$lt_OBJDUMP
47683 # Method to check whether dependent libraries are shared objects.
47684 deplibs_check_method=$lt_deplibs_check_method
47686 # Command to use when deplibs_check_method == "file_magic".
47687 file_magic_cmd=$lt_file_magic_cmd
47691 AR_FLAGS=$lt_AR_FLAGS
47693 # A symbol stripping program.
47696 # Commands used to install an old-style archive.
47698 old_postinstall_cmds=$lt_old_postinstall_cmds
47699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47704 # LTCC compiler flags.
47705 LTCFLAGS=$lt_CFLAGS
47707 # Take the output of nm and produce a listing of raw symbols and C names.
47708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47710 # Transform the output of nm in a proper C declaration.
47711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47713 # Transform the output of nm in a C name address pair.
47714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47716 # Transform the output of nm in a C name address pair when lib prefix is needed.
47717 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47719 # The name of the directory that contains temporary libtool files.
47722 # Shell to use when invoking shell scripts.
47725 # An echo program that does not interpret backslashes.
47728 # Used to examine libraries when file_magic_cmd begins with "file".
47729 MAGIC_CMD=$MAGIC_CMD
47731 # Must we lock files when doing compilation?
47732 need_locks=$lt_need_locks
47734 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47735 DSYMUTIL=$lt_DSYMUTIL
47737 # Tool to change global to local symbols on Mac OS X.
47740 # Tool to manipulate fat objects and archives on Mac OS X.
47743 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47746 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47747 OTOOL64=$lt_OTOOL64
47749 # Old archive suffix (normally "a").
47752 # Shared library suffix (normally ".so").
47753 shrext_cmds=$lt_shrext_cmds
47755 # The commands to extract the exported symbol list from a shared archive.
47756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47758 # Variables whose values should be saved in libtool wrapper scripts and
47759 # restored at link time.
47760 variables_saved_for_relink=$lt_variables_saved_for_relink
47762 # Do we need the "lib" prefix for modules?
47763 need_lib_prefix=$need_lib_prefix
47765 # Do we need a version for libraries?
47766 need_version=$need_version
47768 # Library versioning type.
47769 version_type=$version_type
47771 # Shared library runtime path variable.
47772 runpath_var=$runpath_var
47774 # Shared library path variable.
47775 shlibpath_var=$shlibpath_var
47777 # Is shlibpath searched before the hard-coded library search path?
47778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47780 # Format of library name prefix.
47781 libname_spec=$lt_libname_spec
47783 # List of archive names. First name is the real one, the rest are links.
47784 # The last name is the one that the linker finds with -lNAME
47785 library_names_spec=$lt_library_names_spec
47787 # The coded name of the library, if different from the real name.
47788 soname_spec=$lt_soname_spec
47790 # Command to use after installation of a shared archive.
47791 postinstall_cmds=$lt_postinstall_cmds
47793 # Command to use after uninstallation of a shared archive.
47794 postuninstall_cmds=$lt_postuninstall_cmds
47796 # Commands used to finish a libtool library installation in a directory.
47797 finish_cmds=$lt_finish_cmds
47799 # As "finish_cmds", except a single script fragment to be evaled but
47801 finish_eval=$lt_finish_eval
47803 # Whether we should hardcode library paths into libraries.
47804 hardcode_into_libs=$hardcode_into_libs
47806 # Compile-time system search path for libraries.
47807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47809 # Run-time system search path for libraries.
47810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47812 # Whether dlopen is supported.
47813 dlopen_support=$enable_dlopen
47815 # Whether dlopen of programs is supported.
47816 dlopen_self=$enable_dlopen_self
47818 # Whether dlopen of statically linked programs is supported.
47819 dlopen_self_static=$enable_dlopen_self_static
47821 # Commands to strip libraries.
47822 old_striplib=$lt_old_striplib
47823 striplib=$lt_striplib
47826 # The linker used to build libraries.
47829 # Commands used to build an old-style archive.
47830 old_archive_cmds=$lt_old_archive_cmds
47832 # A language specific compiler.
47835 # Is the compiler the GNU compiler?
47838 # Compiler flag to turn off builtin functions.
47839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47841 # How to pass a linker flag through the compiler.
47842 wl=$lt_lt_prog_compiler_wl
47844 # Additional compiler flags for building library objects.
47845 pic_flag=$lt_lt_prog_compiler_pic
47847 # Compiler flag to prevent dynamic linking.
47848 link_static_flag=$lt_lt_prog_compiler_static
47850 # Does compiler simultaneously support -c and -o options?
47851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47853 # Whether or not to add -lc for building shared libraries.
47854 build_libtool_need_lc=$archive_cmds_need_lc
47856 # Whether or not to disallow shared libs when runtime libs are static.
47857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47859 # Compiler flag to allow reflexive dlopens.
47860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47862 # Compiler flag to generate shared objects directly from archives.
47863 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47865 # Whether the compiler copes with passing no objects directly.
47866 compiler_needs_object=$lt_compiler_needs_object
47868 # Create an old-style archive from a shared archive.
47869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47871 # Create a temporary old-style archive to link instead of a shared archive.
47872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47874 # Commands used to build a shared archive.
47875 archive_cmds=$lt_archive_cmds
47876 archive_expsym_cmds=$lt_archive_expsym_cmds
47878 # Commands used to build a loadable module if different from building
47879 # a shared archive.
47880 module_cmds=$lt_module_cmds
47881 module_expsym_cmds=$lt_module_expsym_cmds
47883 # Whether we are building with GNU ld or not.
47884 with_gnu_ld=$lt_with_gnu_ld
47886 # Flag that allows shared libraries with undefined symbols to be built.
47887 allow_undefined_flag=$lt_allow_undefined_flag
47889 # Flag that enforces no undefined symbols.
47890 no_undefined_flag=$lt_no_undefined_flag
47892 # Flag to hardcode \$libdir into a binary during linking.
47893 # This must work even if \$libdir does not exist
47894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47896 # If ld is used when linking, flag to hardcode \$libdir into a binary
47897 # during linking. This must work even if \$libdir does not exist.
47898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47900 # Whether we need a single "-rpath" flag with a separated argument.
47901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47904 # DIR into the resulting binary.
47905 hardcode_direct=$hardcode_direct
47907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47908 # DIR into the resulting binary and the resulting library dependency is
47909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47910 # library is relocated.
47911 hardcode_direct_absolute=$hardcode_direct_absolute
47913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47914 # into the resulting binary.
47915 hardcode_minus_L=$hardcode_minus_L
47917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47918 # into the resulting binary.
47919 hardcode_shlibpath_var=$hardcode_shlibpath_var
47921 # Set to "yes" if building a shared library automatically hardcodes DIR
47922 # into the library and all subsequent libraries and executables linked
47924 hardcode_automatic=$hardcode_automatic
47926 # Set to yes if linker adds runtime paths of dependent libraries
47927 # to runtime path list.
47928 inherit_rpath=$inherit_rpath
47930 # Whether libtool must link a program against all its dependency libraries.
47931 link_all_deplibs=$link_all_deplibs
47933 # Fix the shell variable \$srcfile for the compiler.
47934 fix_srcfile_path=$lt_fix_srcfile_path
47936 # Set to "yes" if exported symbols are required.
47937 always_export_symbols=$always_export_symbols
47939 # The commands to list exported symbols.
47940 export_symbols_cmds=$lt_export_symbols_cmds
47942 # Symbols that should not be listed in the preloaded symbols.
47943 exclude_expsyms=$lt_exclude_expsyms
47945 # Symbols that must always be exported.
47946 include_expsyms=$lt_include_expsyms
47948 # Commands necessary for linking programs (against libraries) with templates.
47949 prelink_cmds=$lt_prelink_cmds
47951 # Specify filename containing input files.
47952 file_list_spec=$lt_file_list_spec
47954 # How to hardcode a shared library path into an executable.
47955 hardcode_action=$hardcode_action
47957 # The directories searched by this compiler when creating a shared library.
47958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
47960 # Dependencies to place before and after the objects being linked to
47961 # create a shared library.
47962 predep_objects=$lt_predep_objects
47963 postdep_objects=$lt_postdep_objects
47964 predeps=$lt_predeps
47965 postdeps=$lt_postdeps
47967 # The library search path used internally by the compiler when linking
47968 # a shared library.
47969 compiler_lib_search_path=$lt_compiler_lib_search_path
47971 # ### END LIBTOOL CONFIG
47977 cat <<\_LT_EOF >> "$cfgfile"
47978 # AIX sometimes has problems with the GCC collect2 program. For some
47979 # reason, if we set the COLLECT_NAMES environment variable, the problems
47980 # vanish in a puff of smoke.
47981 if test "X${COLLECT_NAMES+set}" != Xset; then
47983 export COLLECT_NAMES
47990 ltmain="$ac_aux_dir/ltmain.sh"
47993 # We use sed instead of cat because bash on DJGPP gets confused if
47994 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47995 # text mode, it properly converts lines to CR/LF. This bash problem
47996 # is reportedly fixed, but why not run on old versions too?
47997 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47998 || (rm -f "$cfgfile"; exit 1)
48002 cat << \_LT_EOF >> "$cfgfile"
48004 # func_dirname file append nondir_replacement
48005 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48006 # otherwise set result to NONDIR_REPLACEMENT.
48010 */*) func_dirname_result="${1%/*}${2}" ;;
48011 * ) func_dirname_result="${3}" ;;
48015 # func_basename file
48018 func_basename_result="${1##*/}"
48021 # func_dirname_and_basename file append nondir_replacement
48022 # perform func_basename and func_dirname in a single function
48024 # dirname: Compute the dirname of FILE. If nonempty,
48025 # add APPEND to the result, otherwise set result
48026 # to NONDIR_REPLACEMENT.
48027 # value returned in "$func_dirname_result"
48028 # basename: Compute filename of FILE.
48029 # value retuned in "$func_basename_result"
48030 # Implementation must be kept synchronized with func_dirname
48031 # and func_basename. For efficiency, we do not delegate to
48032 # those functions but instead duplicate the functionality here.
48033 func_dirname_and_basename ()
48036 */*) func_dirname_result="${1%/*}${2}" ;;
48037 * ) func_dirname_result="${3}" ;;
48039 func_basename_result="${1##*/}"
48042 # func_stripname prefix suffix name
48043 # strip PREFIX and SUFFIX off of NAME.
48044 # PREFIX and SUFFIX must not contain globbing or regex special
48045 # characters, hashes, percent signs, but SUFFIX may contain a leading
48046 # dot (in which case that matches only a dot).
48049 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48050 # positional parameters, so assign one to ordinary parameter first.
48051 func_stripname_result=${3}
48052 func_stripname_result=${func_stripname_result#"${1}"}
48053 func_stripname_result=${func_stripname_result%"${2}"}
48059 func_opt_split_opt=${1%%=*}
48060 func_opt_split_arg=${1#*=}
48067 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48068 *) func_lo2o_result=${1} ;;
48072 # func_xform libobj-or-source
48075 func_xform_result=${1%.*}.lo
48078 # func_arith arithmetic-term...
48081 func_arith_result=$(( $* ))
48085 # STRING may not start with a hyphen.
48088 func_len_result=${#1}
48093 *) # Bourne compatible functions.
48094 cat << \_LT_EOF >> "$cfgfile"
48096 # func_dirname file append nondir_replacement
48097 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48098 # otherwise set result to NONDIR_REPLACEMENT.
48101 # Extract subdirectory from the argument.
48102 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48103 if test "X$func_dirname_result" = "X${1}"; then
48104 func_dirname_result="${3}"
48106 func_dirname_result="$func_dirname_result${2}"
48110 # func_basename file
48113 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48117 # func_stripname prefix suffix name
48118 # strip PREFIX and SUFFIX off of NAME.
48119 # PREFIX and SUFFIX must not contain globbing or regex special
48120 # characters, hashes, percent signs, but SUFFIX may contain a leading
48121 # dot (in which case that matches only a dot).
48122 # func_strip_suffix prefix name
48126 .*) func_stripname_result=`$ECHO "X${3}" \
48127 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48128 *) func_stripname_result=`$ECHO "X${3}" \
48129 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48134 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48135 my_sed_long_arg='1s/^-[^=]*=//'
48140 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48141 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48147 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48150 # func_xform libobj-or-source
48153 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48156 # func_arith arithmetic-term...
48159 func_arith_result=`expr "$@"`
48163 # STRING may not start with a hyphen.
48166 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48172 case $lt_shell_append in
48174 cat << \_LT_EOF >> "$cfgfile"
48176 # func_append var value
48177 # Append VALUE to the end of shell variable VAR.
48185 cat << \_LT_EOF >> "$cfgfile"
48187 # func_append var value
48188 # Append VALUE to the end of shell variable VAR.
48199 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48200 || (rm -f "$cfgfile"; exit 1)
48202 mv -f "$cfgfile" "$ofile" ||
48203 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48207 cat <<_LT_EOF >> "$ofile"
48209 # ### BEGIN LIBTOOL TAG CONFIG: CXX
48211 # The linker used to build libraries.
48214 # Commands used to build an old-style archive.
48215 old_archive_cmds=$lt_old_archive_cmds_CXX
48217 # A language specific compiler.
48218 CC=$lt_compiler_CXX
48220 # Is the compiler the GNU compiler?
48223 # Compiler flag to turn off builtin functions.
48224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48226 # How to pass a linker flag through the compiler.
48227 wl=$lt_lt_prog_compiler_wl_CXX
48229 # Additional compiler flags for building library objects.
48230 pic_flag=$lt_lt_prog_compiler_pic_CXX
48232 # Compiler flag to prevent dynamic linking.
48233 link_static_flag=$lt_lt_prog_compiler_static_CXX
48235 # Does compiler simultaneously support -c and -o options?
48236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48238 # Whether or not to add -lc for building shared libraries.
48239 build_libtool_need_lc=$archive_cmds_need_lc_CXX
48241 # Whether or not to disallow shared libs when runtime libs are static.
48242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48244 # Compiler flag to allow reflexive dlopens.
48245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48247 # Compiler flag to generate shared objects directly from archives.
48248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48250 # Whether the compiler copes with passing no objects directly.
48251 compiler_needs_object=$lt_compiler_needs_object_CXX
48253 # Create an old-style archive from a shared archive.
48254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48256 # Create a temporary old-style archive to link instead of a shared archive.
48257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48259 # Commands used to build a shared archive.
48260 archive_cmds=$lt_archive_cmds_CXX
48261 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48263 # Commands used to build a loadable module if different from building
48264 # a shared archive.
48265 module_cmds=$lt_module_cmds_CXX
48266 module_expsym_cmds=$lt_module_expsym_cmds_CXX
48268 # Whether we are building with GNU ld or not.
48269 with_gnu_ld=$lt_with_gnu_ld_CXX
48271 # Flag that allows shared libraries with undefined symbols to be built.
48272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
48274 # Flag that enforces no undefined symbols.
48275 no_undefined_flag=$lt_no_undefined_flag_CXX
48277 # Flag to hardcode \$libdir into a binary during linking.
48278 # This must work even if \$libdir does not exist
48279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48281 # If ld is used when linking, flag to hardcode \$libdir into a binary
48282 # during linking. This must work even if \$libdir does not exist.
48283 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48285 # Whether we need a single "-rpath" flag with a separated argument.
48286 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48288 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48289 # DIR into the resulting binary.
48290 hardcode_direct=$hardcode_direct_CXX
48292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48293 # DIR into the resulting binary and the resulting library dependency is
48294 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48295 # library is relocated.
48296 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48298 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48299 # into the resulting binary.
48300 hardcode_minus_L=$hardcode_minus_L_CXX
48302 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48303 # into the resulting binary.
48304 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48306 # Set to "yes" if building a shared library automatically hardcodes DIR
48307 # into the library and all subsequent libraries and executables linked
48309 hardcode_automatic=$hardcode_automatic_CXX
48311 # Set to yes if linker adds runtime paths of dependent libraries
48312 # to runtime path list.
48313 inherit_rpath=$inherit_rpath_CXX
48315 # Whether libtool must link a program against all its dependency libraries.
48316 link_all_deplibs=$link_all_deplibs_CXX
48318 # Fix the shell variable \$srcfile for the compiler.
48319 fix_srcfile_path=$lt_fix_srcfile_path_CXX
48321 # Set to "yes" if exported symbols are required.
48322 always_export_symbols=$always_export_symbols_CXX
48324 # The commands to list exported symbols.
48325 export_symbols_cmds=$lt_export_symbols_cmds_CXX
48327 # Symbols that should not be listed in the preloaded symbols.
48328 exclude_expsyms=$lt_exclude_expsyms_CXX
48330 # Symbols that must always be exported.
48331 include_expsyms=$lt_include_expsyms_CXX
48333 # Commands necessary for linking programs (against libraries) with templates.
48334 prelink_cmds=$lt_prelink_cmds_CXX
48336 # Specify filename containing input files.
48337 file_list_spec=$lt_file_list_spec_CXX
48339 # How to hardcode a shared library path into an executable.
48340 hardcode_action=$hardcode_action_CXX
48342 # The directories searched by this compiler when creating a shared library.
48343 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48345 # Dependencies to place before and after the objects being linked to
48346 # create a shared library.
48347 predep_objects=$lt_predep_objects_CXX
48348 postdep_objects=$lt_postdep_objects_CXX
48349 predeps=$lt_predeps_CXX
48350 postdeps=$lt_postdeps_CXX
48352 # The library search path used internally by the compiler when linking
48353 # a shared library.
48354 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48356 # ### END LIBTOOL TAG CONFIG: CXX
48361 for ac_file in $CONFIG_FILES; do
48362 # Support "outfile[:infile[:infile...]]"
48364 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
48366 # PO directories have a Makefile.in generated from Makefile.in.in.
48367 case "$ac_file" in */Makefile.in)
48368 # Adjust a relative srcdir.
48369 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
48370 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
48371 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
48372 # In autoconf-2.13 it is called $ac_given_srcdir.
48373 # In autoconf-2.50 it is called $srcdir.
48374 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
48375 case "$ac_given_srcdir" in
48376 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
48377 /*) top_srcdir="$ac_given_srcdir" ;;
48378 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
48380 # Treat a directory as a PO directory if and only if it has a
48381 # POTFILES.in file. This allows packages to have multiple PO
48382 # directories under different names or in different locations.
48383 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
48384 rm -f "$ac_dir/POTFILES"
48385 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
48386 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
48387 POMAKEFILEDEPS="POTFILES.in"
48388 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
48389 # on $ac_dir but don't depend on user-specified configuration
48391 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
48392 # The LINGUAS file contains the set of available languages.
48393 if test -n "$OBSOLETE_ALL_LINGUAS"; then
48394 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
48396 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
48397 # Hide the ALL_LINGUAS assigment from automake.
48398 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
48399 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
48401 # The set of available languages was given in configure.in.
48402 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
48405 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
48406 # Compute UPDATEPOFILES
48407 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
48408 # Compute DUMMYPOFILES
48409 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
48411 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
48412 case "$ac_given_srcdir" in
48414 *) srcdirpre='$(srcdir)/' ;;
48420 for lang in $ALL_LINGUAS; do
48421 POFILES="$POFILES $srcdirpre$lang.po"
48422 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
48423 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
48424 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
48426 # CATALOGS depends on both $ac_dir and the user's LINGUAS
48427 # environment variable.
48429 if test -n "$ALL_LINGUAS"; then
48430 for presentlang in $ALL_LINGUAS; do
48432 if test "%UNSET%" != "$LINGUAS"; then
48433 desiredlanguages="$LINGUAS"
48435 desiredlanguages="$ALL_LINGUAS"
48437 for desiredlang in $desiredlanguages; do
48438 # Use the presentlang catalog if desiredlang is
48439 # a. equal to presentlang, or
48440 # b. a variant of presentlang (because in this case,
48441 # presentlang can be used as a fallback for messages
48442 # which are not translated in the desiredlang catalog).
48443 case "$desiredlang" in
48444 "$presentlang"*) useit=yes;;
48447 if test $useit = yes; then
48448 INST_LINGUAS="$INST_LINGUAS $presentlang"
48453 if test -n "$INST_LINGUAS"; then
48454 for lang in $INST_LINGUAS; do
48455 CATALOGS="$CATALOGS $lang.gmo"
48458 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
48459 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"
48460 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
48461 if test -f "$f"; then
48463 *.orig | *.bak | *~) ;;
48464 *) cat "$f" >> "$ac_dir/Makefile" ;;
48479 { (exit 0); exit 0; }
48481 chmod +x $CONFIG_STATUS
48482 ac_clean_files=$ac_clean_files_save
48484 test $ac_write_fail = 0 ||
48485 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48486 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48487 { (exit 1); exit 1; }; }
48490 # configure is writing to config.log, and then calls config.status.
48491 # config.status does its own redirection, appending to config.log.
48492 # Unfortunately, on DOS this fails, as config.log is still kept open
48493 # by configure, so config.status won't be able to write to it; its
48494 # output is simply discarded. So we exec the FD to /dev/null,
48495 # effectively closing config.log, so it can be properly (re)opened and
48496 # appended to by config.status. When coming back to configure, we
48497 # need to make the FD available again.
48498 if test "$no_create" != yes; then
48500 ac_config_status_args=
48501 test "$silent" = yes &&
48502 ac_config_status_args="$ac_config_status_args --quiet"
48504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48507 # would make configure fail if this is the last instruction.
48508 $ac_cs_success || { (exit 1); exit 1; }
48510 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48511 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48512 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48516 if test "${support_bat}" = "yes" ; then
48517 if test "x$QMAKE" = "xnone"; then
48518 { { $as_echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
48519 $as_echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
48520 { (exit 1); exit 1; }; }
48525 echo "Creating bat Makefile"
48530 ${MAKE:-make} clean
48534 if test X"$GCC" = "Xyes" ; then
48535 echo "Doing make of dependencies"
48536 ${MAKE:-make} depend
48540 chmod 755 install_conf_file build-depkgs-qt-console
48544 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
48545 chmod 755 dvd-handler dvd-simulator
48546 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
48550 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
48551 chmod 755 $c/update_postgresql_tables_10_to_11
48556 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
48557 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
48559 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
48560 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
48562 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
48563 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
48565 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
48566 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
48568 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
48569 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
48572 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
48573 chmod 755 $c/sqlite
48576 chmod 755 src/win32/build-depkgs-mingw32
48578 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
48579 largefile_support="yes"
48582 if test X"$GCC" = "Xyes" ; then
48583 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48584 if test "x${CCVERSION}" = "x" ; then
48585 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48587 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
48588 if test x"${CXXVERSION}" = x ; then
48589 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
48593 # clean up any old junk
48597 ${MAKE:-make} clean
48599 if test "x${db_type}" = "xInternal" ; then
48602 echo "You have not specified either --enable-client-only or one of the"
48603 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
48604 echo " This is not permitted. Please reconfigure."
48606 echo "Aborting the configuration ..."
48613 Configuration on `date`:
48615 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
48616 Bacula version: ${BACULA} ${VERSION} (${DATE})
48617 Source code location: ${srcdir}
48618 Install binaries: ${sbindir}
48619 Install libraries: ${libdir}
48620 Install config files: ${sysconfdir}
48621 Scripts directory: ${scriptdir}
48622 Archive directory: ${archivedir}
48623 Working directory: ${working_dir}
48624 PID directory: ${piddir}
48625 Subsys directory: ${subsysdir}
48626 Man directory: ${mandir}
48627 Data directory: ${datarootdir}
48628 Plugin directory: ${plugindir}
48629 C Compiler: ${CC} ${CCVERSION}
48630 C++ Compiler: ${CXX} ${CXXVERSION}
48631 Compiler flags: ${WCFLAGS} ${CFLAGS}
48632 Linker flags: ${WLDFLAGS} ${LDFLAGS}
48634 Statically Linked Tools: ${support_static_tools}
48635 Statically Linked FD: ${support_static_fd}
48636 Statically Linked SD: ${support_static_sd}
48637 Statically Linked DIR: ${support_static_dir}
48638 Statically Linked CONS: ${support_static_cons}
48639 Database type: ${db_type}
48640 Database port: ${db_port}
48641 Database lib: ${DB_LIBS}
48642 Database name: ${db_name}
48643 Database user: ${db_user}
48645 Job Output Email: ${job_email}
48646 Traceback Email: ${dump_email}
48647 SMTP Host Address: ${smtp_host}
48649 Director Port: ${dir_port}
48650 File daemon Port: ${fd_port}
48651 Storage daemon Port: ${sd_port}
48653 Director User: ${dir_user}
48654 Director Group: ${dir_group}
48655 Storage Daemon User: ${sd_user}
48656 Storage DaemonGroup: ${sd_group}
48657 File Daemon User: ${fd_user}
48658 File Daemon Group: ${fd_group}
48660 SQL binaries Directory ${SQL_BINDIR}
48662 Large file support: $largefile_support
48663 Bacula conio support: ${got_conio} ${CONS_LIBS}
48664 readline support: ${got_readline} ${PRTREADLINE_SRC}
48665 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
48666 TLS support: ${support_tls}
48667 Encryption support: ${support_crypto}
48668 ZLIB support: ${have_zlib}
48669 enable-smartalloc: ${support_smartalloc}
48670 enable-lockmgr: ${support_lockmgr}
48671 bat support: ${support_bat}
48672 enable-gnome: ${support_gnome} ${gnome_version}
48673 enable-bwx-console: ${support_wx_console} ${wx_version}
48674 enable-tray-monitor: ${support_tray_monitor}
48675 client-only: ${build_client_only}
48676 build-dird: ${build_dird}
48677 build-stored: ${build_stored}
48678 Plugin support: ${have_plugins}
48679 AFS support: ${have_afs}
48680 ACL support: ${have_acl}
48681 XATTR support: ${have_xattr}
48682 Python support: ${support_python} ${PYTHON_LIBS}
48683 Batch insert enabled: ${support_batch_insert}
48687 # create a small shell script useful for support with
48688 # configure options and config.out info
48689 cat > scripts/bacula_config << EOF
48692 $ $0 $ac_configure_args
48694 cat config.out >> scripts/bacula_config
48695 echo __EOC__ >> scripts/bacula_config
48696 chmod 755 scripts/bacula_config
48700 # Display a warning message if postgresql client lib is <= 8.1
48701 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
48702 -a x$support_batch_insert = xyes
48704 echo "WARNING: Your PostgreSQL client library is too old to detect "
48705 echo " if it was compiled with --enable-thread-safety, consider to"
48706 echo " upgrade it in order to avoid problems with Batch insert mode"