2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
962 TRAY_MONITOR_CPPFLAGS
1051 ac_subst_files='MCOMMON'
1052 ac_precious_vars='build_alias
1070 # Initialize some variables set by options.
1072 ac_init_version=false
1073 # The variables have the same names as the options, with
1074 # dashes changed to underlines.
1075 cache_file=/dev/null
1082 program_transform_name=s,x,x,
1090 # Installation directory options.
1091 # These are left unexpanded so users can "make install exec_prefix=/foo"
1092 # and all the variables that are supposed to be based on exec_prefix
1093 # by default will actually change.
1094 # Use braces instead of parens because sh, perl, etc. also accept them.
1095 # (The list follows the same order as the GNU Coding Standards.)
1096 bindir='${exec_prefix}/bin'
1097 sbindir='${exec_prefix}/sbin'
1098 libexecdir='${exec_prefix}/libexec'
1099 datarootdir='${prefix}/share'
1100 datadir='${datarootdir}'
1101 sysconfdir='${prefix}/etc'
1102 sharedstatedir='${prefix}/com'
1103 localstatedir='${prefix}/var'
1104 includedir='${prefix}/include'
1105 oldincludedir='/usr/include'
1106 docdir='${datarootdir}/doc/${PACKAGE}'
1107 infodir='${datarootdir}/info'
1112 libdir='${exec_prefix}/lib'
1113 localedir='${datarootdir}/locale'
1114 mandir='${datarootdir}/man'
1120 # If the previous option needs an argument, assign it.
1121 if test -n "$ac_prev"; then
1122 eval $ac_prev=\$ac_option
1128 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132 # Accept the important Cygnus configure options, so we can diagnose typos.
1134 case $ac_dashdash$ac_option in
1138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1141 bindir=$ac_optarg ;;
1143 -build | --build | --buil | --bui | --bu)
1144 ac_prev=build_alias ;;
1145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1146 build_alias=$ac_optarg ;;
1148 -cache-file | --cache-file | --cache-fil | --cache-fi \
1149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1150 ac_prev=cache_file ;;
1151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1153 cache_file=$ac_optarg ;;
1155 --config-cache | -C)
1156 cache_file=config.cache ;;
1158 -datadir | --datadir | --datadi | --datad)
1160 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1161 datadir=$ac_optarg ;;
1163 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1164 | --dataroo | --dataro | --datar)
1165 ac_prev=datarootdir ;;
1166 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1167 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1168 datarootdir=$ac_optarg ;;
1170 -disable-* | --disable-*)
1171 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1177 eval enable_$ac_feature=no ;;
1179 -docdir | --docdir | --docdi | --doc | --do)
1181 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1182 docdir=$ac_optarg ;;
1184 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1186 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1187 dvidir=$ac_optarg ;;
1189 -enable-* | --enable-*)
1190 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1194 { (exit 1); exit 1; }; }
1195 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1196 eval enable_$ac_feature=\$ac_optarg ;;
1198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1200 | --exec | --exe | --ex)
1201 ac_prev=exec_prefix ;;
1202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1204 | --exec=* | --exe=* | --ex=*)
1205 exec_prefix=$ac_optarg ;;
1207 -gas | --gas | --ga | --g)
1208 # Obsolete; use --with-gas.
1211 -help | --help | --hel | --he | -h)
1212 ac_init_help=long ;;
1213 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1214 ac_init_help=recursive ;;
1215 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1216 ac_init_help=short ;;
1218 -host | --host | --hos | --ho)
1219 ac_prev=host_alias ;;
1220 -host=* | --host=* | --hos=* | --ho=*)
1221 host_alias=$ac_optarg ;;
1223 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1225 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1227 htmldir=$ac_optarg ;;
1229 -includedir | --includedir | --includedi | --included | --include \
1230 | --includ | --inclu | --incl | --inc)
1231 ac_prev=includedir ;;
1232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1233 | --includ=* | --inclu=* | --incl=* | --inc=*)
1234 includedir=$ac_optarg ;;
1236 -infodir | --infodir | --infodi | --infod | --info | --inf)
1238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1239 infodir=$ac_optarg ;;
1241 -libdir | --libdir | --libdi | --libd)
1243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1244 libdir=$ac_optarg ;;
1246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1247 | --libexe | --libex | --libe)
1248 ac_prev=libexecdir ;;
1249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1250 | --libexe=* | --libex=* | --libe=*)
1251 libexecdir=$ac_optarg ;;
1253 -localedir | --localedir | --localedi | --localed | --locale)
1254 ac_prev=localedir ;;
1255 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1256 localedir=$ac_optarg ;;
1258 -localstatedir | --localstatedir | --localstatedi | --localstated \
1259 | --localstate | --localstat | --localsta | --localst | --locals)
1260 ac_prev=localstatedir ;;
1261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1262 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1263 localstatedir=$ac_optarg ;;
1265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1268 mandir=$ac_optarg ;;
1270 -nfp | --nfp | --nf)
1271 # Obsolete; use --without-fp.
1274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1275 | --no-cr | --no-c | -n)
1278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1284 | --oldin | --oldi | --old | --ol | --o)
1285 ac_prev=oldincludedir ;;
1286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1289 oldincludedir=$ac_optarg ;;
1291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1294 prefix=$ac_optarg ;;
1296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1297 | --program-pre | --program-pr | --program-p)
1298 ac_prev=program_prefix ;;
1299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1301 program_prefix=$ac_optarg ;;
1303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1304 | --program-suf | --program-su | --program-s)
1305 ac_prev=program_suffix ;;
1306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1308 program_suffix=$ac_optarg ;;
1310 -program-transform-name | --program-transform-name \
1311 | --program-transform-nam | --program-transform-na \
1312 | --program-transform-n | --program-transform- \
1313 | --program-transform | --program-transfor \
1314 | --program-transfo | --program-transf \
1315 | --program-trans | --program-tran \
1316 | --progr-tra | --program-tr | --program-t)
1317 ac_prev=program_transform_name ;;
1318 -program-transform-name=* | --program-transform-name=* \
1319 | --program-transform-nam=* | --program-transform-na=* \
1320 | --program-transform-n=* | --program-transform-=* \
1321 | --program-transform=* | --program-transfor=* \
1322 | --program-transfo=* | --program-transf=* \
1323 | --program-trans=* | --program-tran=* \
1324 | --progr-tra=* | --program-tr=* | --program-t=*)
1325 program_transform_name=$ac_optarg ;;
1327 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1329 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1330 pdfdir=$ac_optarg ;;
1332 -psdir | --psdir | --psdi | --psd | --ps)
1334 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338 | -silent | --silent | --silen | --sile | --sil)
1341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1345 sbindir=$ac_optarg ;;
1347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1349 | --sharedst | --shareds | --shared | --share | --shar \
1351 ac_prev=sharedstatedir ;;
1352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1356 sharedstatedir=$ac_optarg ;;
1358 -site | --site | --sit)
1360 -site=* | --site=* | --sit=*)
1363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1366 srcdir=$ac_optarg ;;
1368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1369 | --syscon | --sysco | --sysc | --sys | --sy)
1370 ac_prev=sysconfdir ;;
1371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1373 sysconfdir=$ac_optarg ;;
1375 -target | --target | --targe | --targ | --tar | --ta | --t)
1376 ac_prev=target_alias ;;
1377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1378 target_alias=$ac_optarg ;;
1380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 -version | --version | --versio | --versi | --vers | -V)
1384 ac_init_version=: ;;
1387 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 { echo "$as_me: error: invalid package name: $ac_package" >&2
1391 { (exit 1); exit 1; }; }
1392 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1393 eval with_$ac_package=\$ac_optarg ;;
1395 -without-* | --without-*)
1396 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1397 # Reject names that are not valid shell variable names.
1398 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399 { echo "$as_me: error: invalid package name: $ac_package" >&2
1400 { (exit 1); exit 1; }; }
1401 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1402 eval with_$ac_package=no ;;
1405 # Obsolete; use --with-x.
1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1409 | --x-incl | --x-inc | --x-in | --x-i)
1410 ac_prev=x_includes ;;
1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1413 x_includes=$ac_optarg ;;
1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1417 ac_prev=x_libraries ;;
1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1420 x_libraries=$ac_optarg ;;
1422 -*) { echo "$as_me: error: unrecognized option: $ac_option
1423 Try \`$0 --help' for more information." >&2
1424 { (exit 1); exit 1; }; }
1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1431 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1432 { (exit 1); exit 1; }; }
1433 eval $ac_envvar=\$ac_optarg
1434 export $ac_envvar ;;
1437 # FIXME: should be removed in autoconf 3.0.
1438 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1440 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1441 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1447 if test -n "$ac_prev"; then
1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1449 { echo "$as_me: error: missing argument to $ac_option" >&2
1450 { (exit 1); exit 1; }; }
1453 # Be sure to have absolute directory names.
1454 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455 datadir sysconfdir sharedstatedir localstatedir includedir \
1456 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457 libdir localedir mandir
1459 eval ac_val=\$$ac_var
1461 [\\/$]* | ?:[\\/]* ) continue;;
1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1465 { (exit 1); exit 1; }; }
1468 # There might be people who depend on the old broken behavior: `$host'
1469 # used to hold the argument of --host etc.
1470 # FIXME: To remove some day.
1473 target=$target_alias
1475 # FIXME: To remove some day.
1476 if test "x$host_alias" != x; then
1477 if test "x$build_alias" = x; then
1478 cross_compiling=maybe
1479 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1480 If a cross compiler is detected then cross compile mode will be used." >&2
1481 elif test "x$build_alias" != "x$host_alias"; then
1487 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489 test "$silent" = yes && exec 6>/dev/null
1492 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1493 ac_ls_di=`ls -di .` &&
1494 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1495 { echo "$as_me: error: Working directory cannot be determined" >&2
1496 { (exit 1); exit 1; }; }
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 { echo "$as_me: error: pwd does not report name of working directory" >&2
1499 { (exit 1); exit 1; }; }
1502 # Find the source files, if location was not specified.
1503 if test -z "$srcdir"; then
1504 ac_srcdir_defaulted=yes
1505 # Try the directory containing this script, then the parent directory.
1506 ac_confdir=`$as_dirname -- "$0" ||
1507 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1508 X"$0" : 'X\(//\)[^/]' \| \
1509 X"$0" : 'X\(//\)$' \| \
1510 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1534 ac_srcdir_defaulted=no
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1538 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1539 { (exit 1); exit 1; }; }
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1543 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1544 { (exit 1); exit 1; }; }
1546 # When building in place, set srcdir=.
1547 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550 # Remove unnecessary trailing slashes from srcdir.
1551 # Double slashes in file names in object file debugging info
1552 # mess up M-x gdb in Emacs.
1554 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 for ac_var in $ac_precious_vars; do
1557 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_env_${ac_var}_value=\$${ac_var}
1559 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1560 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1564 # Report the --help message.
1566 if test "$ac_init_help" = "long"; then
1567 # Omit some internal or obsolete options to make the list less imposing.
1568 # This message is too long to be a string in the A/UX 3.1 sh.
1570 \`configure' configures this package to adapt to many kinds of systems.
1572 Usage: $0 [OPTION]... [VAR=VALUE]...
1574 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1575 VAR=VALUE. See below for descriptions of some of the useful variables.
1577 Defaults for the options are specified in brackets.
1580 -h, --help display this help and exit
1581 --help=short display options specific to this package
1582 --help=recursive display the short help of all the included packages
1583 -V, --version display version information and exit
1584 -q, --quiet, --silent do not print \`checking...' messages
1585 --cache-file=FILE cache test results in FILE [disabled]
1586 -C, --config-cache alias for \`--cache-file=config.cache'
1587 -n, --no-create do not create output files
1588 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1590 Installation directories:
1591 --prefix=PREFIX install architecture-independent files in PREFIX
1592 [$ac_default_prefix]
1593 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1596 By default, \`make install' will install all the files in
1597 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1598 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1599 for instance \`--prefix=\$HOME'.
1601 For better control, use the options below.
1603 Fine tuning of the installation directories:
1604 --bindir=DIR user executables [EPREFIX/bin]
1605 --sbindir=DIR system admin executables [EPREFIX/sbin]
1606 --libexecdir=DIR program executables [EPREFIX/libexec]
1607 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1608 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1609 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1610 --libdir=DIR object code libraries [EPREFIX/lib]
1611 --includedir=DIR C header files [PREFIX/include]
1612 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1613 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1614 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1615 --infodir=DIR info documentation [DATAROOTDIR/info]
1616 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1617 --mandir=DIR man documentation [DATAROOTDIR/man]
1618 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1619 --htmldir=DIR html documentation [DOCDIR]
1620 --dvidir=DIR dvi documentation [DOCDIR]
1621 --pdfdir=DIR pdf documentation [DOCDIR]
1622 --psdir=DIR ps documentation [DOCDIR]
1628 --x-includes=DIR X include files are in DIR
1629 --x-libraries=DIR X library files are in DIR
1632 --build=BUILD configure for building on BUILD [guessed]
1633 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1637 if test -n "$ac_init_help"; then
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-libtool enable building using GNU libtool [default=yes]
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=no]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-includes enable installing of include files [default=no]
1651 --disable-nls do not use Native Language Support
1652 --disable-rpath do not hardcode runtime library paths
1653 --enable-gnome enable build of bgnome-console GUI [default=no]
1654 --enable-bat enable build of bat Qt4 GUI [default=no]
1655 --enable-bwx-console enable build of wxWidgets console [default=no]
1656 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1658 --enable-smartalloc enable smartalloc debugging support [default=no]
1659 --enable-lockmgr enable lock manager support [default=no]
1660 --enable-static-tools enable static tape tools [default=no]
1661 --enable-static-fd enable static File daemon [default=no]
1662 --enable-static-sd enable static Storage daemon [default=no]
1663 --enable-static-dir enable static Director [default=no]
1664 --enable-static-cons enable static Console [default=no]
1665 --enable-client-only build client (File daemon) only [default=no]
1666 --enable-build-dird enable building of dird (Director) [default=yes]
1667 --enable-build-stored enable building of stored (Storage daemon)
1669 --disable-conio disable conio support [default=no]
1670 --enable-ipv6 enable ipv6 support [default=yes]
1671 --disable-readline disable readline support [default=yes]
1672 --enable-batch-insert enable the DB batch insert code [default=no]
1673 --disable-largefile omit support for large files
1674 --disable-acl disable acl support [default=auto]
1675 --disable-xattr disable xattr support [default=auto]
1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1680 --with-pic try to use only PIC/non-PIC objects [default=use
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-included-gettext use the GNU gettext library included here
1689 --with-qwt[=DIR] specify qwt library directory
1690 --with-readline[=DIR] specify readline library directory
1691 --with-python[=DIR] Include Python support. DIR is the Python base
1692 install directory, default is to search through a
1693 number of common places for the Python files.
1694 --with-tcp-wrappers[=DIR]
1695 enable tcpwrappers support
1696 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1697 --with-working-dir=PATH specify path of Bacula working directory
1698 --with-archivedir=PATH specify path of SD archive directory
1699 --with-scriptdir=PATH specify path of Bacula scripts directory
1700 --with-bsrdir=PATH specify path of Bacula bsrs directory
1701 --with-logdir=PATH specify path of Bacula logs directory
1702 --with-plugindir=PATH specify path of Bacula plugins directory
1703 --with-dump-email=EMAIL dump email address
1704 --with-job-email=EMAIL job output email address
1705 --with-smtp-host=HOST SMTP mail host address
1706 --with-pid-dir=PATH specify location of Bacula pid files
1707 --with-subsys-dir=PATH specify location of Bacula subsys file
1708 --with-baseport=PORT specify base port address for daemons
1709 --with-dir-password=PASSWORD
1710 specify Director's password
1711 --with-fd-password=PASSWORD
1712 specify Client's password
1713 --with-sd-password=PASSWORD
1714 specify Storage daemon's password
1715 --with-mon-dir-password=PASSWORD
1716 specify Director's password used by the monitor
1717 --with-mon-fd-password=PASSWORD
1718 specify Client's password used by the monitor
1719 --with-mon-sd-password=PASSWORD
1720 specify Storage daemon's password used by the
1722 --with-db-name=DBNAME specify database name [default=bacula]
1723 --with-db-user=UNAME specify database user [default=bacula]
1724 --with-db-password=PWD specify database password [default=*none*]
1725 --with-db-port=DBPORT specify a database port [default=null]
1726 --with-dir-user=USER specify user for Director daemon
1727 --with-dir-group=GROUP specify group for Director daemon
1728 --with-sd-user=USER specify user for Storage daemon
1729 --with-sd-group=GROUP specify group for Storage daemon
1730 --with-fd-user=USER specify user for File daemon
1731 --with-fd-group=GROUP specify group for File daemon
1732 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1733 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1734 base install directory, [default=/usr/local/pgsql]
1735 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1736 directory, default is to search through a number of
1737 common places for the MySQL files.
1738 --with-embedded-mysql[=DIR]
1739 Include MySQL support. DIR is the MySQL base install
1740 directory, default is to search through a number of
1741 common places for the MySQL files.
1742 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1743 install directory, default is to search through a
1744 number of common places for the SQLite3 files.
1745 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1746 install directory, default is to search through a
1747 number of common places for the SQLite files.
1748 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1749 directory, default is to search through a number of
1750 common places for the DBI files.
1751 --with-dbi-driver[=DRIVER]
1752 Suport for DBI driver. DRIVER is the one DBI driver
1753 like Mysql, Postgresql, others. Default is to not
1754 configure any driver.
1755 --with-x use the X Window System
1757 Some influential environment variables:
1758 CC C compiler command
1759 CFLAGS C compiler flags
1760 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1761 nonstandard directory <lib dir>
1762 LIBS libraries to pass to the linker, e.g. -l<library>
1763 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1764 you have headers in a nonstandard directory <include dir>
1765 CXX C++ compiler command
1766 CXXFLAGS C++ compiler flags
1768 WXCONFIG wx-config command. On some systems, you must set it to
1769 wx-config-2.6 to use wxWidgets 2.6.
1770 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1771 CXXCPP C++ preprocessor
1772 XMKMF Path to xmkmf, Makefile generator for X Window System
1774 Use these variables to override the choices made by `configure' or to help
1775 it to find libraries and programs with nonstandard names/locations.
1781 if test "$ac_init_help" = "recursive"; then
1782 # If there are subdirs, report their specific --help.
1783 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1784 test -d "$ac_dir" || continue
1788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1791 # A ".." for each directory in $ac_dir_suffix.
1792 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1793 case $ac_top_builddir_sub in
1794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1798 ac_abs_top_builddir=$ac_pwd
1799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1800 # for backward compatibility:
1801 ac_top_builddir=$ac_top_build_prefix
1804 .) # We are building in place.
1806 ac_top_srcdir=$ac_top_builddir_sub
1807 ac_abs_top_srcdir=$ac_pwd ;;
1808 [\\/]* | ?:[\\/]* ) # Absolute name.
1809 ac_srcdir=$srcdir$ac_dir_suffix;
1810 ac_top_srcdir=$srcdir
1811 ac_abs_top_srcdir=$srcdir ;;
1813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1814 ac_top_srcdir=$ac_top_build_prefix$srcdir
1815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1819 cd "$ac_dir" || { ac_status=$?; continue; }
1820 # Check for guested configure.
1821 if test -f "$ac_srcdir/configure.gnu"; then
1823 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1824 elif test -f "$ac_srcdir/configure"; then
1826 $SHELL "$ac_srcdir/configure" --help=recursive
1828 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1830 cd "$ac_pwd" || { ac_status=$?; break; }
1834 test -n "$ac_init_help" && exit $ac_status
1835 if $ac_init_version; then
1838 generated by GNU Autoconf 2.61
1840 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1841 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1842 This configure script is free software; the Free Software Foundation
1843 gives unlimited permission to copy, distribute and modify it.
1847 cat >config.log <<_ACEOF
1848 This file contains any messages produced by compilers while
1849 running configure, to aid debugging if configure makes a mistake.
1851 It was created by $as_me, which was
1852 generated by GNU Autoconf 2.61. Invocation command line was
1864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 echo "PATH: $as_dir"
1904 # Keep a trace of the command line.
1905 # Strip out --no-create and --no-recursion so they do not pile up.
1906 # Strip out --silent because we don't want to record it for future runs.
1907 # Also quote any args containing shell meta-characters.
1908 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_must_keep_next=false
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1923 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1928 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 -* ) ac_must_keep_next=true ;;
1944 ac_configure_args="$ac_configure_args '$ac_arg'"
1949 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1950 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1952 # When interrupted or exit'd, cleanup temporary files, and complete
1953 # config.log. We remove comments because anyway the quotes in there
1954 # would cause problems or look ugly.
1955 # WARNING: Use '\'' to represent an apostrophe within the trap.
1956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1963 ## ---------------- ##
1964 ## Cache variables. ##
1965 ## ---------------- ##
1968 # The following way of writing the cache mishandles newlines in values,
1970 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1971 eval ac_val=\$$ac_var
1975 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1976 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1979 _ | IFS | as_nl) ;; #(
1980 *) $as_unset $ac_var ;;
1985 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1986 *${as_nl}ac_space=\ *)
1988 "s/'\''/'\''\\\\'\'''\''/g;
1989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ## ----------------- ##
2001 ## Output variables. ##
2002 ## ----------------- ##
2005 for ac_var in $ac_subst_vars
2007 eval ac_val=\$$ac_var
2009 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 echo "$ac_var='\''$ac_val'\''"
2015 if test -n "$ac_subst_files"; then
2017 ## ------------------- ##
2018 ## File substitutions. ##
2019 ## ------------------- ##
2022 for ac_var in $ac_subst_files
2024 eval ac_val=\$$ac_var
2026 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 echo "$ac_var='\''$ac_val'\''"
2033 if test -s confdefs.h; then
2043 test "$ac_signal" != 0 &&
2044 echo "$as_me: caught signal $ac_signal"
2045 echo "$as_me: exit $exit_status"
2047 rm -f core *.core core.conftest.* &&
2048 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2051 for ac_signal in 1 2 13 15; do
2052 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2056 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2057 rm -f -r conftest* confdefs.h
2059 # Predefined preprocessor variables.
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 # Let the site file select an alternate cache file if it wants to.
2087 # Prefer explicitly selected file to automatically selected ones.
2088 if test -n "$CONFIG_SITE"; then
2089 set x "$CONFIG_SITE"
2090 elif test "x$prefix" != xNONE; then
2091 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2093 set x "$ac_default_prefix/share/config.site" \
2094 "$ac_default_prefix/etc/config.site"
2099 if test -r "$ac_site_file"; then
2100 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2101 echo "$as_me: loading site script $ac_site_file" >&6;}
2102 sed 's/^/| /' "$ac_site_file" >&5
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special
2109 # files actually), so we avoid doing that.
2110 if test -f "$cache_file"; then
2111 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2112 echo "$as_me: loading cache $cache_file" >&6;}
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2119 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2120 echo "$as_me: creating cache $cache_file" >&6;}
2124 # Check that the precious variables saved in the cache have kept the same
2126 ac_cache_corrupted=false
2127 for ac_var in $ac_precious_vars; do
2128 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2129 eval ac_new_set=\$ac_env_${ac_var}_set
2130 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2131 eval ac_new_val=\$ac_env_${ac_var}_value
2132 case $ac_old_set,$ac_new_set in
2134 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2138 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2139 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2140 ac_cache_corrupted=: ;;
2143 if test "x$ac_old_val" != "x$ac_new_val"; then
2144 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2145 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2147 echo "$as_me: former value: $ac_old_val" >&2;}
2148 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2149 echo "$as_me: current value: $ac_new_val" >&2;}
2150 ac_cache_corrupted=:
2153 # Pass precious variables to config.status.
2154 if test "$ac_new_set" = set; then
2156 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 *) ac_arg=$ac_var=$ac_new_val ;;
2159 case " $ac_configure_args " in
2160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2161 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2165 if $ac_cache_corrupted; then
2166 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2167 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2169 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2170 { (exit 1); exit 1; }; }
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2204 if test -f "$ac_dir/install-sh"; then
2206 ac_install_sh="$ac_aux_dir/install-sh -c"
2208 elif test -f "$ac_dir/install.sh"; then
2210 ac_install_sh="$ac_aux_dir/install.sh -c"
2212 elif test -f "$ac_dir/shtool"; then
2214 ac_install_sh="$ac_aux_dir/shtool install -c"
2218 if test -z "$ac_aux_dir"; then
2219 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2220 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2221 { (exit 1); exit 1; }; }
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2233 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2236 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2237 WIN32MAINDIR=${BUILD_DIR}
2238 WIN32TOPDIR=${TOP_DIR}
2248 # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 TRUEPRG=$ac_cv_path_TRUEPRG
2279 if test -n "$TRUEPRG"; then
2280 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2281 echo "${ECHO_T}$TRUEPRG" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2288 test -n "$TRUEPRG" && break
2290 test -n "$TRUEPRG" || TRUEPRG=":"
2292 for ac_prog in false
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 FALSEPRG=$ac_cv_path_FALSEPRG
2325 if test -n "$FALSEPRG"; then
2326 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2327 echo "${ECHO_T}$FALSEPRG" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2334 test -n "$FALSEPRG" && break
2336 test -n "$FALSEPRG" || FALSEPRG=":"
2341 if test "x$BACULA" != x; then
2342 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2344 BACULA=${BACULA:-Bacula}
2345 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 echo "configuring for ${BACULA} $VERSION ($DATE)"
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CC"; then
2386 { echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6; }
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2395 if test -z "$ac_cv_prog_CC"; then
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 echo "${ECHO_T}$ac_ct_CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2433 if test "x$ac_ct_CC" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2444 ac_tool_warned=yes ;;
2452 if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}cc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_CC="${ac_tool_prefix}cc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test -n "$CC"; then
2483 { echo "$as_me:$LINENO: result: $CC" >&5
2484 echo "${ECHO_T}$CC" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2493 if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2513 ac_prog_rejected=yes
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test $ac_prog_rejected = yes; then
2525 # We found a bogon in the path, so make sure we never use it.
2526 set dummy $ac_cv_prog_CC
2528 if test $# != 0; then
2529 # We chose a different compiler from the bogus one.
2530 # However, it has the same basename, so the bogon will be chosen
2531 # first if we set CC to just the basename; use the full file name.
2533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2549 if test -z "$CC"; then
2550 if test -n "$ac_tool_prefix"; then
2551 for ac_prog in cl.exe
2553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2590 test -n "$CC" && break
2593 if test -z "$CC"; then
2595 for ac_prog in cl.exe
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_CC="$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2634 test -n "$ac_ct_CC" && break
2637 if test "x$ac_ct_CC" = x; then
2640 case $cross_compiling:$ac_tool_warned in
2642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&5
2645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2648 ac_tool_warned=yes ;;
2657 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2663 # Provide some information about the compiler.
2664 echo "$as_me:$LINENO: checking for C compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (ac_try="$ac_compiler --version >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler --version >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try="$ac_compiler -v >&5"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -v >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686 { (ac_try="$ac_compiler -V >&5"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compiler -V >&5") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 ac_clean_files_save=$ac_clean_files
2713 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2714 # Try to create an executable without -o first, disregard a.out.
2715 # It will help us diagnose broken compilers, and finding out an intuition
2717 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2721 # List of possible output files, starting from the most likely.
2722 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2723 # only as a last resort. b.out is created by i960 compilers.
2724 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2726 # The IRIX 6 linker writes into existing files which may not be
2727 # executable, retaining their permissions. Remove them first so a
2728 # subsequent execution test works.
2730 for ac_file in $ac_files
2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 if { (ac_try="$ac_link_default"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_link_default") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; then
2749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2752 # so that the user can short-circuit this test for compilers unknown to
2754 for ac_file in $ac_files ''
2756 test -f "$ac_file" || continue
2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2761 # We found the default executable, but exeext='' is most
2765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 # We set ac_cv_exeext here because the later test for it is not
2770 # safe: cross compilers may not add the suffix if given an `-o'
2771 # argument, so we may need to know it at that point already.
2772 # Even if this section looks crufty: it has the advantage of
2779 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785 { echo "$as_me:$LINENO: result: $ac_file" >&5
2786 echo "${ECHO_T}$ac_file" >&6; }
2787 if test -z "$ac_file"; then
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&2;}
2795 { (exit 77); exit 77; }; }
2798 ac_exeext=$ac_cv_exeext
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2805 # If not cross compiling, check that we can run a simple program.
2806 if test "$cross_compiling" != yes; then
2807 if { ac_try='./$ac_file'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2819 if test "$cross_compiling" = maybe; then
2822 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2832 { echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6; }
2835 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2836 ac_clean_files=$ac_clean_files_save
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2840 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2841 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2842 echo "${ECHO_T}$cross_compiling" >&6; }
2844 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2845 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2846 if { (ac_try="$ac_link"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_link") 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2860 for ac_file in conftest.exe conftest conftest.*; do
2861 test -f "$ac_file" || continue
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2877 rm -f conftest$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2881 rm -f conftest.$ac_ext
2882 EXEEXT=$ac_cv_exeext
2884 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2886 if test "${ac_cv_objext+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.o conftest.obj
2905 if { (ac_try="$ac_compile"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 for ac_file in conftest.o conftest.obj conftest.*; do
2916 test -f "$ac_file" || continue;
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2937 echo "${ECHO_T}$ac_cv_objext" >&6; }
2938 OBJEXT=$ac_cv_objext
2940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } && {
2977 test -z "$ac_c_werror_flag" ||
2978 test ! -s conftest.err
2979 } && test -s conftest.$ac_objext; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2994 GCC=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CFLAGS=${CFLAGS+set}
2996 ac_save_CFLAGS=$CFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cc_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_c_werror_flag=$ac_c_werror_flag
3003 ac_c_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } && {
3035 test -z "$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 } && test -s conftest.$ac_objext; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3059 rm -f conftest.$ac_objext
3060 if { (ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 ac_c_werror_flag=$ac_save_c_werror_flag
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3134 if test "$ac_test_CFLAGS" = set; then
3135 CFLAGS=$ac_save_CFLAGS
3136 elif test $ac_cv_prog_cc_g = yes; then
3137 if test "$GCC" = yes; then
3143 if test "$GCC" = yes; then
3149 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3150 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_cc_c89+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_cv_prog_cc_c89=no
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3164 #include <sys/types.h>
3165 #include <sys/stat.h>
3166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3167 struct buf { int x; };
3168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3169 static char *e (p, i)
3175 static char *f (char * (*g) (char **, int), char **p, ...)
3180 s = g (p, va_arg (v,int));
3185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3186 function prototypes and stuff, but not '\xHH' hex character constants.
3187 These don't provoke an error unfortunately, instead are silently treated
3188 as 'x'. The following induces an error, until -std is added to get
3189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3190 array size at least. It's necessary to write '\x00'==0 to get something
3191 that's true only with -std. */
3192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3195 inside strings and character constants. */
3197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3199 int test (int i, double x);
3200 struct s1 {int (*f) (int a);};
3201 struct s2 {int (*f) (double a);};
3202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3216 CC="$ac_save_CC $ac_arg"
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3234 ac_cv_prog_cc_c89=$ac_arg
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f core conftest.err conftest.$ac_objext
3243 test "x$ac_cv_prog_cc_c89" != "xno" && break
3245 rm -f conftest.$ac_ext
3250 case "x$ac_cv_prog_cc_c89" in
3252 { echo "$as_me:$LINENO: result: none needed" >&5
3253 echo "${ECHO_T}none needed" >&6; } ;;
3255 { echo "$as_me:$LINENO: result: unsupported" >&5
3256 echo "${ECHO_T}unsupported" >&6; } ;;
3258 CC="$CC $ac_cv_prog_cc_c89"
3259 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3260 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 ac_cpp='$CXXCPP $CPPFLAGS'
3272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3275 if test -z "$CXX"; then
3276 if test -n "$CCC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_CXX+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$CXX"; then
3290 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 if test -n "$CXX"; then
3311 { echo "$as_me:$LINENO: result: $CXX" >&5
3312 echo "${ECHO_T}$CXX" >&6; }
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3319 test -n "$CXX" && break
3322 if test -z "$CXX"; then
3324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$ac_ct_CXX"; then
3334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_ac_ct_CXX="$ac_prog"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3354 if test -n "$ac_ct_CXX"; then
3355 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3356 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3358 { echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6; }
3363 test -n "$ac_ct_CXX" && break
3366 if test "x$ac_ct_CXX" = x; then
3369 case $cross_compiling:$ac_tool_warned in
3371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3372 whose name does not start with the host triplet. If you think this
3373 configuration is useful to you, please write to autoconf@gnu.org." >&5
3374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet. If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3377 ac_tool_warned=yes ;;
3385 # Provide some information about the compiler.
3386 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3387 ac_compiler=`set X $ac_compile; echo $2`
3388 { (ac_try="$ac_compiler --version >&5"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler --version >&5") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3398 { (ac_try="$ac_compiler -v >&5"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compiler -v >&5") 2>&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }
3408 { (ac_try="$ac_compiler -V >&5"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_compiler -V >&5") 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }
3419 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3420 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3421 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_cxx_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3471 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3472 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3473 GXX=`test $ac_compiler_gnu = yes && echo yes`
3474 ac_test_CXXFLAGS=${CXXFLAGS+set}
3475 ac_save_CXXFLAGS=$CXXFLAGS
3476 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3478 if test "${ac_cv_prog_cxx_g+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3482 ac_cxx_werror_flag=yes
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_cxx_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 ac_cv_prog_cxx_g=yes
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && {
3552 test -z "$ac_cxx_werror_flag" ||
3553 test ! -s conftest.err
3554 } && test -s conftest.$ac_objext; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compile") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_cxx_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest.$ac_objext; then
3594 ac_cv_prog_cxx_g=yes
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3613 if test "$ac_test_CXXFLAGS" = set; then
3614 CXXFLAGS=$ac_save_CXXFLAGS
3615 elif test $ac_cv_prog_cxx_g = yes; then
3616 if test "$GXX" = yes; then
3622 if test "$GXX" = yes; then
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 if test "x$CC" != xcc; then
3635 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3636 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3638 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3639 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3641 set dummy $CC; ac_cc=`echo $2 |
3642 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3643 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3661 # Make sure it works both with $CC and with simple cc.
3662 # We do the test twice because some compilers refuse to overwrite an
3663 # existing .o file with -o, though they will create one.
3664 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3666 if { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); };
3685 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3686 if test "x$CC" != xcc; then
3687 # Test first that cc exists at all.
3688 if { ac_try='cc -c conftest.$ac_ext >&5'
3689 { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3700 if { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_try") 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); };
3722 # cc exists but doesn't like -o.
3723 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3730 rm -f core conftest*
3733 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3734 { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3737 { echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6; }
3740 cat >>confdefs.h <<\_ACEOF
3741 #define NO_MINUS_C_MINUS_O 1
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3752 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765 for ac_c_preproc_warn_flag in '' yes
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3780 # include <limits.h>
3782 # include <assert.h>
3786 if { (ac_try="$ac_cpp conftest.$ac_ext"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev/null && {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 # Broken: fails on valid input.
3811 rm -f conftest.err conftest.$ac_ext
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <ac_nonexistent.h>
3823 if { (ac_try="$ac_cpp conftest.$ac_ext"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null && {
3836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3839 # Broken: success on invalid input.
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Passes both tests.
3850 rm -f conftest.err conftest.$ac_ext
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.err conftest.$ac_ext
3855 if $ac_preproc_ok; then
3867 { echo "$as_me:$LINENO: result: $CPP" >&5
3868 echo "${ECHO_T}$CPP" >&6; }
3870 for ac_c_preproc_warn_flag in '' yes
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
3876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error" is here to catch this case.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 # include <limits.h>
3887 # include <assert.h>
3891 if { (ac_try="$ac_cpp conftest.$ac_ext"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } >/dev/null && {
3904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.$ac_ext
3918 # OK, works on sane cases. Now check whether nonexistent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if { (ac_try="$ac_cpp conftest.$ac_ext"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3944 # Broken: success on invalid input.
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 # Passes both tests.
3955 rm -f conftest.err conftest.$ac_ext
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then
3963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3964 See \`config.log' for more details." >&5
3965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&2;}
3967 { (exit 1); exit 1; }; }
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3978 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 # Extract the first word of "grep ggrep" to use in msg output
3983 if test -z "$GREP"; then
3984 set dummy grep ggrep; ac_prog_name=$2
3985 if test "${ac_cv_path_GREP+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 ac_path_GREP_found=false
3989 # Loop through the user's path and test for each of PROGNAME-LIST
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994 test -z "$as_dir" && as_dir=.
3995 for ac_prog in grep ggrep; do
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3999 # Check for GNU ac_path_GREP and select it if it is found.
4000 # Check for GNU $ac_path_GREP
4001 case `"$ac_path_GREP" --version 2>&1` in
4003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4009 cat "conftest.in" "conftest.in" >"conftest.tmp"
4010 mv "conftest.tmp" "conftest.in"
4011 cp "conftest.in" "conftest.nl"
4012 echo 'GREP' >> "conftest.nl"
4013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4015 ac_count=`expr $ac_count + 1`
4016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017 # Best one so far, save it but keep looking for a better one
4018 ac_cv_path_GREP="$ac_path_GREP"
4019 ac_path_GREP_max=$ac_count
4021 # 10*(2^10) chars as input seems more than enough
4022 test $ac_count -gt 10 && break
4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4028 $ac_path_GREP_found && break 3
4038 GREP="$ac_cv_path_GREP"
4039 if test -z "$GREP"; then
4040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4042 { (exit 1); exit 1; }; }
4046 ac_cv_path_GREP=$GREP
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4053 GREP="$ac_cv_path_GREP"
4056 { echo "$as_me:$LINENO: checking for egrep" >&5
4057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_EGREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062 then ac_cv_path_EGREP="$GREP -E"
4064 # Extract the first word of "egrep" to use in msg output
4065 if test -z "$EGREP"; then
4066 set dummy egrep; ac_prog_name=$2
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 ac_path_EGREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 test -z "$as_dir" && as_dir=.
4077 for ac_prog in egrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4081 # Check for GNU ac_path_EGREP and select it if it is found.
4082 # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 echo 'EGREP' >> "conftest.nl"
4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097 ac_count=`expr $ac_count + 1`
4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_EGREP="$ac_path_EGREP"
4101 ac_path_EGREP_max=$ac_count
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 $ac_path_EGREP_found && break 3
4120 EGREP="$ac_cv_path_EGREP"
4121 if test -z "$EGREP"; then
4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4128 ac_cv_path_EGREP=$EGREP
4134 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4135 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4136 EGREP="$ac_cv_path_EGREP"
4139 if test $ac_cv_c_compiler_gnu = yes; then
4140 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4141 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 ac_pattern="Autoconf.*'x'"
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4157 ac_cv_prog_gcc_traditional=yes
4159 ac_cv_prog_gcc_traditional=no
4164 if test $ac_cv_prog_gcc_traditional = no; then
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4176 ac_cv_prog_gcc_traditional=yes
4182 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4183 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4184 if test $ac_cv_prog_gcc_traditional = yes; then
4185 CC="$CC -traditional"
4189 BASECC=`basename $CC`
4191 if test "x$BASECC" = xgcc; then
4192 cat >>confdefs.h <<\_ACEOF
4198 # Extract the first word of "$CXX", so it can be a program name with args.
4199 set dummy $CXX; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_path_CXX+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4230 if test -n "$CXX"; then
4231 { echo "$as_me:$LINENO: result: $CXX" >&5
4232 echo "${ECHO_T}$CXX" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4239 if test ! -e $CXX; then
4240 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4241 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4242 { (exit 1); exit 1; }; }
4245 # Find a good install program. We prefer a C program (faster),
4246 # so one script is as good as another. But avoid the broken or
4247 # incompatible versions:
4248 # SysV /etc/install, /usr/sbin/install
4249 # SunOS /usr/etc/install
4250 # IRIX /sbin/install
4252 # AmigaOS /C/install, which installs bootblocks on floppy discs
4253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4256 # OS/2's system install, which has a completely different semantic
4257 # ./install, which can be erroneously created by make from ./install.sh.
4258 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4259 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4260 if test -z "$INSTALL"; then
4261 if test "${ac_cv_path_install+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 test -z "$as_dir" && as_dir=.
4269 # Account for people who put trailing slashes in PATH elements.
4271 ./ | .// | /cC/* | \
4272 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4273 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4276 # OSF1 and SCO ODT 3.0 have their own names for install.
4277 # Don't use installbsd from OSF since it installs stuff as root
4279 for ac_prog in ginstall scoinst install; do
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4282 if test $ac_prog = install &&
4283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284 # AIX install. It has an incompatible calling convention.
4286 elif test $ac_prog = install &&
4287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4288 # program-specific install script used by HP pwplus--don't use.
4291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4304 if test "${ac_cv_path_install+set}" = set; then
4305 INSTALL=$ac_cv_path_install
4307 # As a last resort, use the slow shell script. Don't cache a
4308 # value for INSTALL within a source directory, because that will
4309 # break other packages using the cache if that directory is
4310 # removed, or if the value is a relative name.
4311 INSTALL=$ac_install_sh
4314 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4315 echo "${ECHO_T}$INSTALL" >&6; }
4317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4318 # It thinks the first close brace ends the variable substitution.
4319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4325 # Extract the first word of "mv", so it can be a program name with args.
4326 set dummy mv; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_path_MV+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4357 if test -n "$MV"; then
4358 { echo "$as_me:$LINENO: result: $MV" >&5
4359 echo "${ECHO_T}$MV" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4366 # Extract the first word of "rm", so it can be a program name with args.
4367 set dummy rm; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_path_REMOVE+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4397 REMOVE=$ac_cv_path_REMOVE
4398 if test -n "$REMOVE"; then
4399 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4400 echo "${ECHO_T}$REMOVE" >&6; }
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 # Extract the first word of "cp", so it can be a program name with args.
4408 set dummy cp; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_path_CP+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4439 if test -n "$CP"; then
4440 { echo "$as_me:$LINENO: result: $CP" >&5
4441 echo "${ECHO_T}$CP" >&6; }
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 # Extract the first word of "sed", so it can be a program name with args.
4449 set dummy sed; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_SED+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4480 if test -n "$SED"; then
4481 { echo "$as_me:$LINENO: result: $SED" >&5
4482 echo "${ECHO_T}$SED" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4489 # Extract the first word of "echo", so it can be a program name with args.
4490 set dummy echo; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_path_ECHO+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4520 ECHO=$ac_cv_path_ECHO
4521 if test -n "$ECHO"; then
4522 { echo "$as_me:$LINENO: result: $ECHO" >&5
4523 echo "${ECHO_T}$ECHO" >&6; }
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4530 # Extract the first word of "cmp", so it can be a program name with args.
4531 set dummy cmp; ac_word=$2
4532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4534 if test "${ac_cv_path_CMP+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4562 if test -n "$CMP"; then
4563 { echo "$as_me:$LINENO: result: $CMP" >&5
4564 echo "${ECHO_T}$CMP" >&6; }
4566 { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4571 # Extract the first word of "tbl", so it can be a program name with args.
4572 set dummy tbl; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_path_TBL+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4603 if test -n "$TBL"; then
4604 { echo "$as_me:$LINENO: result: $TBL" >&5
4605 echo "${ECHO_T}$TBL" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4612 # Extract the first word of "ar", so it can be a program name with args.
4613 set dummy ar; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_path_AR+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4644 if test -n "$AR"; then
4645 { echo "$as_me:$LINENO: result: $AR" >&5
4646 echo "${ECHO_T}$AR" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4653 # Extract the first word of "openssl", so it can be a program name with args.
4654 set dummy openssl; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_path_OPENSSL+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4684 OPENSSL=$ac_cv_path_OPENSSL
4685 if test -n "$OPENSSL"; then
4686 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4687 echo "${ECHO_T}$OPENSSL" >&6; }
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4694 # Extract the first word of "mtx", so it can be a program name with args.
4695 set dummy mtx; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_path_MTX+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4726 if test -n "$MTX"; then
4727 { echo "$as_me:$LINENO: result: $MTX" >&5
4728 echo "${ECHO_T}$MTX" >&6; }
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4735 # Extract the first word of "dd", so it can be a program name with args.
4736 set dummy dd; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_DD+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4767 if test -n "$DD"; then
4768 { echo "$as_me:$LINENO: result: $DD" >&5
4769 echo "${ECHO_T}$DD" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4776 # Extract the first word of "mkisofs", so it can be a program name with args.
4777 set dummy mkisofs; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_path_MKISOFS+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4807 MKISOFS=$ac_cv_path_MKISOFS
4808 if test -n "$MKISOFS"; then
4809 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4810 echo "${ECHO_T}$MKISOFS" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4817 # Extract the first word of "python", so it can be a program name with args.
4818 set dummy python; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_PYTHON+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4848 PYTHON=$ac_cv_path_PYTHON
4849 if test -n "$PYTHON"; then
4850 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4851 echo "${ECHO_T}$PYTHON" >&6; }
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 # Extract the first word of "growisofs", so it can be a program name with args.
4859 set dummy growisofs; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4889 GROWISOFS=$ac_cv_path_GROWISOFS
4890 if test -n "$GROWISOFS"; then
4891 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4892 echo "${ECHO_T}$GROWISOFS" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4900 set dummy dvd+rw-mediainfo; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 case $DVDRWMEDIAINFO in
4908 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4930 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4931 if test -n "$DVDRWMEDIAINFO"; then
4932 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4933 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4940 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4941 set dummy dvd+rw-format; ac_word=$2
4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 case $DVDRWFORMAT in
4949 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4971 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4972 if test -n "$DVDRWFORMAT"; then
4973 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4974 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4981 # Extract the first word of "pkg-config", so it can be a program name with args.
4982 set dummy pkg-config; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5012 PKGCONFIG=$ac_cv_path_PKGCONFIG
5013 if test -n "$PKGCONFIG"; then
5014 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5015 echo "${ECHO_T}$PKGCONFIG" >&6; }
5017 { echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6; }
5022 # Extract the first word of "qmake", so it can be a program name with args.
5023 set dummy qmake; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_path_QMAKE+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5053 QMAKE=$ac_cv_path_QMAKE
5054 if test -n "$QMAKE"; then
5055 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5056 echo "${ECHO_T}$QMAKE" >&6; }
5058 { echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6; }
5063 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5064 set dummy qmake-qt4; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5094 QMAKEQT4=$ac_cv_path_QMAKEQT4
5095 if test -n "$QMAKEQT4"; then
5096 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5097 echo "${ECHO_T}$QMAKEQT4" >&6; }
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5104 # Extract the first word of "gmake", so it can be a program name with args.
5105 set dummy gmake; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_path_GMAKE+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5135 GMAKE=$ac_cv_path_GMAKE
5136 if test -n "$GMAKE"; then
5137 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5138 echo "${ECHO_T}$GMAKE" >&6; }
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5146 if test "x$WXCONFIG" = x; then
5149 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5150 set dummy ${WXCONFIG}; ac_word=$2
5151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5180 WXCONFIG=$ac_cv_path_WXCONFIG
5181 if test -n "$WXCONFIG"; then
5182 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5183 echo "${ECHO_T}$WXCONFIG" >&6; }
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5191 # Extract the first word of "cdrecord", so it can be a program name with args.
5192 set dummy cdrecord; ac_word=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_path_CDRECORD+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5222 CDRECORD=$ac_cv_path_CDRECORD
5223 if test -n "$CDRECORD"; then
5224 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5225 echo "${ECHO_T}$CDRECORD" >&6; }
5227 { echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6; }
5232 # Extract the first word of "pidof", so it can be a program name with args.
5233 set dummy pidof; ac_word=$2
5234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5236 if test "${ac_cv_path_PIDOF+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5263 PIDOF=$ac_cv_path_PIDOF
5264 if test -n "$PIDOF"; then
5265 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5266 echo "${ECHO_T}$PIDOF" >&6; }
5268 { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5273 for ac_prog in gawk mawk nawk awk
5275 # Extract the first word of "$ac_prog", so it can be a program name with args.
5276 set dummy $ac_prog; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_prog_AWK+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 if test -n "$AWK"; then
5283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_AWK="$ac_prog"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 if test -n "$AWK"; then
5304 { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5312 test -n "$AWK" && break
5315 # Some AWK programs fail, so test it and warn the user
5316 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5317 { if ((prog == $2) || (("(" prog ")") == $2) ||
5318 (("" prog "") == $2) ||
5319 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5321 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322 The regex engine of $AWK is too broken to be used you
5323 might want to install GNU AWK.
5324 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5325 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5326 The regex engine of $AWK is too broken to be used you
5327 might want to install GNU AWK.
5328 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5329 { (exit 1); exit 1; }; }
5332 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5333 set dummy $THE_AWK; ac_word=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_path_AWK+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5364 if test -n "$AWK"; then
5365 { echo "$as_me:$LINENO: result: $AWK" >&5
5366 echo "${ECHO_T}$AWK" >&6; }
5368 { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5375 test -n "$ARFLAG" || ARFLAGS="cr"
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388 enableval=$enable_libtool;
5389 if test x$enableval = xno; then
5398 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5419 ltmain="$ac_aux_dir/ltmain.sh"
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425 { (exit 1); exit 1; }; }
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438 { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442 { (exit 1); exit 1; }; }
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451 { (exit 1); exit 1; }; };;
5454 ac_save_IFS=$IFS; IFS='-'
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test "x$host_alias" = x; then
5473 ac_cv_host=$ac_cv_build
5475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478 { (exit 1); exit 1; }; }
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488 { (exit 1); exit 1; }; };;
5491 ac_save_IFS=$IFS; IFS='-'
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510 for ac_i in 1 2 3 4 5 6 7; do
5511 ac_script="$ac_script$as_nl$ac_script"
5513 echo "$ac_script" | sed 99q >conftest.sed
5514 $as_unset ac_script || ac_script=
5515 # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in sed gsed; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532 # Check for GNU ac_path_SED and select it if it is found.
5533 # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 echo '' >> "conftest.nl"
5546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 ac_count=`expr $ac_count + 1`
5549 if test $ac_count -gt ${ac_path_SED_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_SED="$ac_path_SED"
5552 ac_path_SED_max=$ac_count
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 $ac_path_SED_found && break 3
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575 { (exit 1); exit 1; }; }
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585 SED="$ac_cv_path_SED"
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607 then ac_cv_path_FGREP="$GREP -F"
5609 # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in fgrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626 # Check for GNU ac_path_FGREP and select it if it is found.
5627 # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5630 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 echo 'FGREP' >> "conftest.nl"
5640 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 ac_count=`expr $ac_count + 1`
5643 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_FGREP="$ac_path_FGREP"
5646 ac_path_FGREP_max=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 $ac_path_FGREP_found && break 3
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669 { (exit 1); exit 1; }; }
5673 ac_cv_path_FGREP=$FGREP
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681 FGREP="$ac_cv_path_FGREP"
5684 test -z "$GREP" && GREP=grep
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5712 if test "$GCC" = yes; then
5713 # Check if gcc -print-prog-name=ld gives a path.
5714 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5718 # gcc leaves a trailing carriage return which upsets mingw
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724 # Accept absolute paths.
5726 re_direlt='/[^/][^/]*/\.\./'
5727 # Canonicalize the pathname of ld
5728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5732 test -z "$LD" && LD="$ac_prog"
5735 # If it fails, then pretend we aren't using GCC.
5739 # If it is relative, then search for the first ld in PATH.
5743 elif test "$with_gnu_ld" = yes; then
5744 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5747 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5750 if test "${lt_cv_path_LD+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -z "$LD"; then
5754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755 for ac_dir in $PATH; do
5757 test -z "$ac_dir" && ac_dir=.
5758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759 lt_cv_path_LD="$ac_dir/$ac_prog"
5760 # Check to see if the program is GNU ld. I'd rather use --version,
5761 # but apparently some variants of GNU ld only accept -v.
5762 # Break only if it was the GNU/non-GNU ld that we prefer.
5763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764 *GNU* | *'with BFD'*)
5765 test "$with_gnu_ld" != no && break
5768 test "$with_gnu_ld" != yes && break
5775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5780 if test -n "$LD"; then
5781 { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789 { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798 lt_cv_prog_gnu_ld=yes
5801 lt_cv_prog_gnu_ld=no
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849 lt_cv_path_NM="$tmp_nm -p"
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5863 : ${lt_cv_path_NM=no}
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$ac_tool_prefix"; then
5873 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$DUMPBIN"; then
5883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5907 { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5912 test -n "$DUMPBIN" && break
5915 if test -z "$DUMPBIN"; then
5916 ac_ct_DUMPBIN=$DUMPBIN
5917 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5919 # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 if test -n "$ac_ct_DUMPBIN"; then
5927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 test -n "$ac_ct_DUMPBIN" && break
5959 if test "x$ac_ct_DUMPBIN" = x; then
5962 case $cross_compiling:$ac_tool_warned in
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet. If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet. If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5972 DUMPBIN=$ac_ct_DUMPBIN
5977 if test "$DUMPBIN" != ":"; then
5981 test -z "$NM" && NM=nm
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 lt_cv_nm_interface="BSD nm"
5994 echo "int some_variable = 0;" > conftest.$ac_ext
5995 (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996 (eval "$ac_compile" 2>conftest.err)
5997 cat conftest.err >&5
5998 (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000 cat conftest.err >&5
6001 (eval echo "\"\$as_me:6001: output\"" >&5)
6002 cat conftest.out >&5
6003 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004 lt_cv_nm_interface="MS dumpbin"
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6014 if test "$LN_S" = "ln -s"; then
6015 { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6018 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 # On DJGPP, this test can blow up pretty badly due to problems in libc
6034 # (any single argument exceeding 2000 bytes causes a buffer overrun
6035 # during glob expansion). Even if it were fixed, the result of this
6036 # check would be larger than it should be.
6037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6041 # Under GNU Hurd, this test is not required because there is
6042 # no limit to the length of command line arguments.
6043 # Libtool will interpret -1 as no limit whatsoever
6044 lt_cv_sys_max_cmd_len=-1;
6047 cygwin* | mingw* | cegcc*)
6048 # On Win9x/ME, this test blows up -- it succeeds, but takes
6049 # about 5 minutes as the teststring grows exponentially.
6050 # Worse, since 9x/ME are not pre-emptively multitasking,
6051 # you end up with a "frozen" computer, even though with patience
6052 # the test eventually succeeds (with a max line length of 256k).
6053 # Instead, let's just punt: use the minimum linelength reported by
6054 # all of the supported platforms: 8192 (on NT/2K/XP).
6055 lt_cv_sys_max_cmd_len=8192;
6059 # On AmigaOS with pdksh, this test takes hours, literally.
6060 # So we just punt and use a minimum line length of 8192.
6061 lt_cv_sys_max_cmd_len=8192;
6064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065 # This has been around since 386BSD, at least. Likely further.
6066 if test -x /sbin/sysctl; then
6067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068 elif test -x /usr/sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6073 # And add a safety zone
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080 lt_cv_sys_max_cmd_len=196608
6084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086 # nice to cause kernel panics so lets avoid the loop below.
6087 # First set a reasonable default.
6088 lt_cv_sys_max_cmd_len=16384
6090 if test -x /sbin/sysconfig; then
6091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097 lt_cv_sys_max_cmd_len=102400
6099 sysv5* | sco5v6* | sysv4.2uw2*)
6100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101 if test -n "$kargmax"; then
6102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6104 lt_cv_sys_max_cmd_len=32768
6108 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109 if test -n "$lt_cv_sys_max_cmd_len"; then
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 # Make teststring a little bigger before we do anything with it.
6114 # a 1K string should be a reasonable start.
6115 for i in 1 2 3 4 5 6 7 8 ; do
6116 teststring=$teststring$teststring
6118 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119 # If test is not a shell built-in, we'll probably end up computing a
6120 # maximum length that is only half of the actual maximum length, but
6122 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124 test $i != 17 # 1/2 MB should be enough
6127 teststring=$teststring$teststring
6129 # Only check the string length outside the loop.
6130 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6132 # Add a significant safety factor because C++ compilers can tack on
6133 # massive amounts of additional arguments before passing them to the
6134 # linker. It appears as though 1/2 is a usable value.
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6146 { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6165 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6167 && eval 'test $(( 1 + 1 )) -eq 2 \
6168 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6179 && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196 A) # ASCII based system
6197 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198 lt_SP2NL='tr \040 \012'
6199 lt_NL2SP='tr \015\012 \040\040'
6201 *) # EBCDIC based system
6202 lt_SP2NL='tr \100 \n'
6203 lt_NL2SP='tr \r\n \100\100'
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 lt_cv_ld_reload_flag='-r'
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6227 *) reload_flag=" $reload_flag" ;;
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 if test "$GCC" = yes; then
6233 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$OBJDUMP"; then
6257 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288 ac_ct_OBJDUMP=$OBJDUMP
6289 # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 if test -n "$ac_ct_OBJDUMP"; then
6297 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6325 if test "x$ac_ct_OBJDUMP" = x; then
6328 case $cross_compiling:$ac_tool_warned in
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet. If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6338 OBJDUMP=$ac_ct_OBJDUMP
6341 OBJDUMP="$ac_cv_prog_OBJDUMP"
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6375 lt_cv_deplibs_check_method=pass_all
6379 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384 lt_cv_file_magic_cmd='/usr/bin/file -L'
6385 lt_cv_file_magic_test_file=/shlib/libc.so
6389 # func_win32_libid is a shell function defined in ltmain.sh
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6395 # Base MSYS/MinGW do not provide the 'file' command needed by
6396 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397 # unless we find 'file', for example because we are cross-compiling.
6398 if ( file / ) >/dev/null 2>&1; then
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6402 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403 lt_cv_file_magic_cmd='$OBJDUMP -f'
6408 # use the weaker test based on 'objdump'. See mingw*.
6409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410 lt_cv_file_magic_cmd='$OBJDUMP -f'
6413 darwin* | rhapsody*)
6414 lt_cv_deplibs_check_method=pass_all
6417 freebsd* | dragonfly*)
6418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421 # Not sure whether the presence of OpenBSD here was a mistake.
6422 # Let's accept both of them until this is cleared up.
6423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6429 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6437 hpux10.20* | hpux11*)
6438 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445 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]'
6446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460 irix5* | irix6* | nonstopux*)
6462 *-32|*"-32 ") libmagic=32-bit;;
6463 *-n32|*"-n32 ") libmagic=N32;;
6464 *-64|*"-64 ") libmagic=64-bit;;
6465 *) libmagic=never-match;;
6467 lt_cv_deplibs_check_method=pass_all
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472 lt_cv_deplibs_check_method=pass_all
6476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6490 lt_cv_deplibs_check_method=pass_all
6494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501 osf3* | osf4* | osf5*)
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_deplibs_check_method=pass_all
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514 lt_cv_deplibs_check_method=pass_all
6518 case $host_vendor in
6520 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]'
6521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6524 lt_cv_deplibs_check_method=pass_all
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6531 lt_cv_file_magic_cmd='/bin/file'
6532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533 lt_cv_file_magic_test_file=/lib/libc.so
6536 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_AR="${ac_tool_prefix}ar"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 if test -n "$AR"; then
6597 { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6606 if test -z "$ac_cv_prog_AR"; then
6608 # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_AR="ar"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6644 if test "x$ac_ct_AR" = x; then
6647 case $cross_compiling:$ac_tool_warned in
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 if test -n "$STRIP"; then
6685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706 { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6715 if test -z "$ac_cv_prog_STRIP"; then
6717 # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 if test -n "$ac_ct_STRIP"; then
6725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_STRIP="strip"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6753 if test "x$ac_ct_STRIP" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6769 STRIP="$ac_cv_prog_STRIP"
6772 test -z "$STRIP" && STRIP=:
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 if test -n "$RANLIB"; then
6788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819 ac_ct_RANLIB=$RANLIB
6820 # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 if test -n "$ac_ct_RANLIB"; then
6828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_RANLIB="ranlib"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6856 if test "x$ac_ct_RANLIB" = x; then
6859 case $cross_compiling:$ac_tool_warned in
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet. If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6869 RANLIB=$ac_ct_RANLIB
6872 RANLIB="$ac_cv_prog_RANLIB"
6875 test -z "$RANLIB" && RANLIB=:
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6887 if test -n "$RANLIB"; then
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6932 # If no C compiler was specified, use CC.
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938 # Allow CC to be a program name with arguments.
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6958 # Define system-specific variables.
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6972 symcode='[BCDEGRST]'
6975 symcode='[BCDEGQRST]'
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 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'"
7009 # Handle CRLF in mingw tool chain
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx=^$ac_symprfx"
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044 # Check to see that the pipe works correctly.
7048 cat > conftest.$ac_ext <<_LT_EOF
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; then
7066 # Now try to grab the symbols.
7068 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092 cat <<_LT_EOF >> conftest.$ac_ext
7094 /* The mapping between symbol names and symbols. */
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 { "@PROGRAM@", (void *) 0 },
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7135 echo "cannot find nm_test_func in $nlist" >&5
7138 echo "cannot find nm_test_var in $nlist" >&5
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 rm -rf conftest* conftst*
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7153 lt_cv_sys_global_symbol_pipe=
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7166 { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193 enableval=$enable_libtool_lock;
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198 # Some flags need to be propagated to the compiler or linker for good
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7221 # Find out which ABI we are using.
7222 echo '#line 7222 "configure"' > conftest.$ac_ext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7231 LD="${LD-ld} -melf32bsmip"
7234 LD="${LD-ld} -melf32bmipn32"
7237 LD="${LD-ld} -melf64bmip"
7241 case `/usr/bin/file conftest.$ac_objext` in
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; then
7266 case `/usr/bin/file conftest.o` in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7273 LD="${LD-ld} -m elf_i386"
7275 ppc64-*linux*|powerpc64-*linux*)
7276 LD="${LD-ld} -m elf32ppclinux"
7279 LD="${LD-ld} -m elf_s390"
7282 LD="${LD-ld} -m elf32_sparc"
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_x86_64_fbsd"
7292 LD="${LD-ld} -m elf_x86_64"
7294 ppc*-*linux*|powerpc*-*linux*)
7295 LD="${LD-ld} -m elf64ppc"
7297 s390*-*linux*|s390*-*tpf*)
7298 LD="${LD-ld} -m elf64_s390"
7301 LD="${LD-ld} -m elf64_sparc"
7311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312 SAVE_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS -belf"
7314 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 lt_cv_cc_needs_belf=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 lt_cv_cc_needs_belf=no
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379 CFLAGS="$SAVE_CFLAGS"
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; then
7390 case `/usr/bin/file conftest.o` in
7392 case $lt_cv_prog_gnu_ld in
7393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7407 need_locks="$enable_libtool_lock"
7411 rhapsody* | darwin*)
7412 if test -n "$ac_tool_prefix"; then
7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 if test -n "$DSYMUTIL"; then
7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452 ac_ct_DSYMUTIL=$DSYMUTIL
7453 # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7489 if test "x$ac_ct_DSYMUTIL" = x; then
7492 case $cross_compiling:$ac_tool_warned in
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet. If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet. If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7502 DSYMUTIL=$ac_ct_DSYMUTIL
7505 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 if test -n "$NMEDIT"; then
7517 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548 ac_ct_NMEDIT=$NMEDIT
7549 # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$ac_ct_NMEDIT"; then
7557 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7585 if test "x$ac_ct_NMEDIT" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet. If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet. If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7598 NMEDIT=$ac_ct_NMEDIT
7601 NMEDIT="$ac_cv_prog_NMEDIT"
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test -n "$LIPO"; then
7613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634 { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7643 if test -z "$ac_cv_prog_LIPO"; then
7645 # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test -n "$ac_ct_LIPO"; then
7653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_prog_ac_ct_LIPO="lipo"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7681 if test "x$ac_ct_LIPO" = x; then
7684 case $cross_compiling:$ac_tool_warned in
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet. If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet. If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7697 LIPO="$ac_cv_prog_LIPO"
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 if test -n "$OTOOL"; then
7709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7733 { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7739 if test -z "$ac_cv_prog_OTOOL"; then
7741 # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 if test -n "$ac_ct_OTOOL"; then
7749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_prog_ac_ct_OTOOL="otool"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7777 if test "x$ac_ct_OTOOL" = x; then
7780 case $cross_compiling:$ac_tool_warned in
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet. If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet. If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7793 OTOOL="$ac_cv_prog_OTOOL"
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 if test -n "$OTOOL64"; then
7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836 ac_ct_OTOOL64=$OTOOL64
7837 # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 if test -n "$ac_ct_OTOOL64"; then
7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_OTOOL64="otool64"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7869 { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7873 if test "x$ac_ct_OTOOL64" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet. If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet. If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7886 OTOOL64=$ac_ct_OTOOL64
7889 OTOOL64="$ac_cv_prog_OTOOL64"
7918 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 lt_cv_apple_cc_single_mod=no
7924 if test -z "${LT_MULTI_MODULE}"; then
7925 # By default we will add the -single_module flag. You can override
7926 # by either setting the environment variable LT_MULTI_MODULE
7927 # non-empty at configure time, or by adding -multi_module to the
7929 rm -rf libconftest.dylib*
7930 echo "int foo(void){return 1;}" > conftest.c
7931 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7936 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937 lt_cv_apple_cc_single_mod=yes
7939 cat conftest.err >&5
7941 rm -rf libconftest.dylib*
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 lt_cv_ld_exported_symbols_list=no
7953 save_LDFLAGS=$LDFLAGS
7954 echo "_main" > conftest.sym
7955 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7989 lt_cv_ld_exported_symbols_list=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 lt_cv_ld_exported_symbols_list=no
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LDFLAGS="$save_LDFLAGS"
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8005 rhapsody* | darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 darwin*) # darwin 5.x on
8010 # if running on 10.5 or later, the deployment target defaults
8011 # to the OS version, if on x86, and 10.4, the deployment
8012 # target defaults to 10.4. Don't you love it?
8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 if test "$DSYMUTIL" != ":"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_header_stdc=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_cv_header_stdc=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev/null 2>&1; then
8105 ac_cv_header_stdc=no
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123 $EGREP "free" >/dev/null 2>&1; then
8126 ac_cv_header_stdc=no
8132 if test $ac_cv_header_stdc = yes; then
8133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134 if test "$cross_compiling" = yes; then
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 # define ISLOWER(c) \
8150 (('a' <= (c) && (c) <= 'i') \
8151 || ('j' <= (c) && (c) <= 'r') \
8152 || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8161 for (i = 0; i < 256; i++)
8162 if (XOR (islower (i), ISLOWER (i))
8163 || toupper (i) != TOUPPER (i))
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_link") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8190 echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_header_stdc=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224 inttypes.h stdint.h unistd.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8240 #include <$ac_header>
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 eval "$as_ac_Header=yes"
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 eval "$as_ac_Header=no"
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 for ac_header in dlfcn.h
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8299 #include <$ac_header>
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 eval "$as_ac_Header=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_Header=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348 if test -n "$CCC"; then
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test -n "$CXX"; then
8362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 if test -n "$CXX"; then
8383 { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 test -n "$CXX" && break
8394 if test -z "$CXX"; then
8396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 if test -n "$ac_ct_CXX"; then
8406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_CXX="$ac_prog"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8435 test -n "$ac_ct_CXX" && break
8438 if test "x$ac_ct_CXX" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compiler --version >&5") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compiler -v >&5") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_compiler -V >&5") 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_cxx_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest.$ac_objext; then
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554 ac_cxx_werror_flag=yes
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_cxx_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_prog_cxx_g=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_cxx_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_cxx_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_cv_prog_cxx_g=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686 CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688 if test "$GXX" = yes; then
8694 if test "$GXX" = yes; then
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708 (test "X$CXX" != "Xg++"))) ; then
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 # Double quotes because CXXCPP needs to be expanded
8721 for CXXCPP in "$CXX -E" "/lib/cpp"
8724 for ac_cxx_preproc_warn_flag in '' yes
8726 # Use a header file that comes with gcc, so configuring glibc
8727 # with a fresh cross-compiler works.
8728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 # <limits.h> exists even on freestanding compilers.
8730 # On the NeXT, cc -E runs the code through the compiler's parser,
8731 # not just through cpp. "Syntax error" is here to catch this case.
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 # include <limits.h>
8741 # include <assert.h>
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null && {
8758 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759 test ! -s conftest.err
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 # Broken: fails on valid input.
8770 rm -f conftest.err conftest.$ac_ext
8772 # OK, works on sane cases. Now check whether nonexistent headers
8773 # can be detected and how.
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 #include <ac_nonexistent.h>
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } >/dev/null && {
8795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8798 # Broken: success on invalid input.
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 # Passes both tests.
8809 rm -f conftest.err conftest.$ac_ext
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8819 ac_cv_prog_CXXCPP=$CXXCPP
8822 CXXCPP=$ac_cv_prog_CXXCPP
8824 ac_cv_prog_CXXCPP=$CXXCPP
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8829 for ac_cxx_preproc_warn_flag in '' yes
8831 # Use a header file that comes with gcc, so configuring glibc
8832 # with a fresh cross-compiler works.
8833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834 # <limits.h> exists even on freestanding compilers.
8835 # On the NeXT, cc -E runs the code through the compiler's parser,
8836 # not just through cpp. "Syntax error" is here to catch this case.
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 # include <limits.h>
8846 # include <assert.h>
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null && {
8863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864 test ! -s conftest.err
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 # Broken: fails on valid input.
8875 rm -f conftest.err conftest.$ac_ext
8877 # OK, works on sane cases. Now check whether nonexistent headers
8878 # can be detected and how.
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <ac_nonexistent.h>
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } >/dev/null && {
8900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901 test ! -s conftest.err
8903 # Broken: success on invalid input.
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 # Passes both tests.
8914 rm -f conftest.err conftest.$ac_ext
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8922 _lt_caught_CXX_error=yes
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932 _lt_caught_CXX_error=yes
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942 enableval=$enable_shared; p=${PACKAGE-default}
8944 yes) enable_shared=yes ;;
8945 no) enable_shared=no ;;
8948 # Look at the argument we got. We use all the common list separators.
8949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950 for pkg in $enableval; do
8952 if test "X$pkg" = "X$p"; then
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971 enableval=$enable_static; p=${PACKAGE-default}
8973 yes) enable_static=yes ;;
8974 no) enable_static=no ;;
8977 # Look at the argument we got. We use all the common list separators.
8978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979 for pkg in $enableval; do
8981 if test "X$pkg" = "X$p"; then
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012 withval=$with_pic; pic_mode="$withval"
9018 test -z "$pic_mode" && pic_mode=default
9026 # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028 enableval=$enable_fast_install; p=${PACKAGE-default}
9030 yes) enable_fast_install=yes ;;
9031 no) enable_fast_install=no ;;
9033 enable_fast_install=no
9034 # Look at the argument we got. We use all the common list separators.
9035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036 for pkg in $enableval; do
9038 if test "X$pkg" = "X$p"; then
9039 enable_fast_install=yes
9046 enable_fast_install=yes
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089 test -z "$LN_S" && LN_S="ln -s"
9104 if test -n "${ZSH_VERSION+set}" ; then
9105 setopt NO_GLOB_SUBST
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9118 # MS-DOS does not allow filenames that begin with a dot.
9121 rmdir .libs 2>/dev/null
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9153 # AIX sometimes has problems with the GCC collect2 program. For some
9154 # reason, if we set the COLLECT_NAMES environment variable, the problems
9155 # vanish in a puff of smoke.
9156 if test "X${COLLECT_NAMES+set}" != Xset; then
9158 export COLLECT_NAMES
9163 # Sed substitution that helps us do robust quoting. It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9182 can_build_shared=yes
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9191 old_CFLAGS="$CFLAGS"
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9200 for cc_temp in $compiler""; do
9202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226 lt_save_MAGIC_CMD="$MAGIC_CMD"
9227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229 for ac_dir in $ac_dummy; do
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/${ac_tool_prefix}file; then
9233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234 if test -n "$file_magic_test_file"; then
9235 case $deplibs_check_method in
9237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240 $EGREP "$file_magic_regex" > /dev/null; then
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such. This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem. Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9262 MAGIC_CMD="$lt_save_MAGIC_CMD"
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9272 { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281 if test -n "$ac_tool_prefix"; then
9282 { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292 lt_save_MAGIC_CMD="$MAGIC_CMD"
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295 for ac_dir in $ac_dummy; do
9297 test -z "$ac_dir" && ac_dir=.
9298 if test -f $ac_dir/file; then
9299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300 if test -n "$file_magic_test_file"; then
9301 case $deplibs_check_method in
9303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306 $EGREP "$file_magic_regex" > /dev/null; then
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such. This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem. Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9328 MAGIC_CMD="$lt_save_MAGIC_CMD"
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9338 { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9352 # Use C for the default configuration in the libtool script
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362 # Source file extension for C test sources.
9365 # Object file extension for compiled C test sources.
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9381 # If no C compiler was specified, use CC.
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9387 # Allow CC to be a program name with arguments.
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9414 lt_prog_compiler_no_builtin_flag=
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9419 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 lt_cv_prog_compiler_rtti_exceptions=no
9425 ac_outfile=conftest.$ac_objext
9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427 lt_compiler_flag="-fno-rtti -fno-exceptions"
9428 # Insert the option either (1) after the last *FLAGS variable, or
9429 # (2) before a word containing "conftest.", or (3) at the end.
9430 # Note that $ac_compile itself does not contain backslashes and begins
9431 # with a dollar sign (not a hyphen), so the echo should work correctly.
9432 # The option is referenced via a variable to avoid confusing sed.
9433 lt_compile=`echo "$ac_compile" | $SED \
9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436 -e 's:$: $lt_compiler_flag:'`
9437 (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438 (eval "$lt_compile" 2>conftest.err)
9440 cat conftest.err >&5
9441 echo "$as_me:9441: \$? = $ac_status" >&5
9442 if (exit $ac_status) && test -s "$ac_outfile"; then
9443 # The compiler can only warn and ignore the option if not recognized
9444 # So say no if there are warnings other than the usual output.
9445 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448 lt_cv_prog_compiler_rtti_exceptions=yes
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9470 lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9477 if test "$GCC" = yes; then
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_static='-static'
9483 # All AIX code is PIC.
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 now supports IA64 processor
9486 lt_prog_compiler_static='-Bstatic'
9493 # see comment about AmigaOS4 .so support
9494 lt_prog_compiler_pic='-fPIC'
9497 # FIXME: we need at least 68020 code to build shared libraries, but
9498 # adding the `-m68020' flag to GCC prevents building anything better,
9500 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506 # PIC is the default for these OSes.
9509 mingw* | cygwin* | pw32* | os2* | cegcc*)
9510 # This hack is so that the source file can tell whether it is being
9511 # built for inclusion in a dll (and should export symbols for example).
9512 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513 # (--disable-auto-import) libraries
9514 lt_prog_compiler_pic='-DDLL_EXPORT'
9517 darwin* | rhapsody*)
9518 # PIC is the default on this platform
9519 # Common symbols not allowed in MH_DYLIB files
9520 lt_prog_compiler_pic='-fno-common'
9524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9526 # sets the default TLS model and affects inlining.
9532 lt_prog_compiler_pic='-fPIC'
9538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539 # Instead, we relocate shared libraries at runtime.
9543 # Just because we use GCC doesn't mean we suddenly get shared libraries
9544 # on systems that don't support them.
9545 lt_prog_compiler_can_build_shared=no
9550 # QNX uses GNU C++, but need to define -shared option too, otherwise
9552 lt_prog_compiler_pic='-fPIC -shared'
9556 if test -d /usr/nec; then
9557 lt_prog_compiler_pic=-Kconform_pic
9562 lt_prog_compiler_pic='-fPIC'
9566 # PORTME Check for flag to pass linker flags through the system compiler.
9569 lt_prog_compiler_wl='-Wl,'
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 now supports IA64 processor
9572 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9578 mingw* | cygwin* | pw32* | os2* | cegcc*)
9579 # This hack is so that the source file can tell whether it is being
9580 # built for inclusion in a dll (and should export symbols for example).
9581 lt_prog_compiler_pic='-DDLL_EXPORT'
9584 hpux9* | hpux10* | hpux11*)
9585 lt_prog_compiler_wl='-Wl,'
9586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593 lt_prog_compiler_pic='+Z'
9596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597 lt_prog_compiler_static='${wl}-a ${wl}archive'
9600 irix5* | irix6* | nonstopux*)
9601 lt_prog_compiler_wl='-Wl,'
9602 # PIC (with -KPIC) is the default.
9603 lt_prog_compiler_static='-non_shared'
9606 linux* | k*bsd*-gnu)
9607 case $cc_basename in
9608 # old Intel for x86_64 which still supported -KPIC.
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_pic='-KPIC'
9612 lt_prog_compiler_static='-static'
9614 # icc used to be incompatible with GCC.
9615 # ICC 10 doesn't accept -KPIC any more.
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-fPIC'
9619 lt_prog_compiler_static='-static'
9621 # Lahey Fortran 8.1.
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='--shared'
9625 lt_prog_compiler_static='--static'
9627 pgcc* | pgf77* | pgf90* | pgf95*)
9628 # Portland Group compilers (*not* the Pentium gcc compiler,
9629 # which looks to be a dead project)
9630 lt_prog_compiler_wl='-Wl,'
9631 lt_prog_compiler_pic='-fpic'
9632 lt_prog_compiler_static='-Bstatic'
9635 lt_prog_compiler_wl='-Wl,'
9636 # All Alpha code is PIC.
9637 lt_prog_compiler_static='-non_shared'
9640 # IBM XL C 8.0/Fortran 10.1 on PPC
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='-qpic'
9643 lt_prog_compiler_static='-qstaticlink'
9646 case `$CC -V 2>&1 | sed 5q` in
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl='-Wl,'
9654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl=''
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9670 # QNX uses GNU C++, but need to define -shared option too, otherwise
9672 lt_prog_compiler_pic='-fPIC -shared'
9675 osf3* | osf4* | osf5*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # All OSF/1 code is PIC.
9678 lt_prog_compiler_static='-non_shared'
9682 lt_prog_compiler_static='-non_shared'
9686 lt_prog_compiler_pic='-KPIC'
9687 lt_prog_compiler_static='-Bstatic'
9688 case $cc_basename in
9690 lt_prog_compiler_wl='-Qoption ld ';;
9692 lt_prog_compiler_wl='-Wl,';;
9697 lt_prog_compiler_wl='-Qoption ld '
9698 lt_prog_compiler_pic='-PIC'
9699 lt_prog_compiler_static='-Bstatic'
9702 sysv4 | sysv4.2uw2* | sysv4.3*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-Bstatic'
9709 if test -d /usr/nec ;then
9710 lt_prog_compiler_pic='-Kconform_pic'
9711 lt_prog_compiler_static='-Bstatic'
9715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='-KPIC'
9718 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_can_build_shared=no
9727 lt_prog_compiler_pic='-pic'
9728 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_can_build_shared=no
9738 # For platforms which do not support PIC, -DPIC is meaningless:
9740 lt_prog_compiler_pic=
9743 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9755 # Check to make sure the PIC flag actually works.
9757 if test -n "$lt_prog_compiler_pic"; then
9758 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 lt_cv_prog_compiler_pic_works=no
9764 ac_outfile=conftest.$ac_objext
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 # The option is referenced via a variable to avoid confusing sed.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
9776 (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777 (eval "$lt_compile" 2>conftest.err)
9779 cat conftest.err >&5
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 if (exit $ac_status) && test -s "$ac_outfile"; then
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings other than the usual output.
9784 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_pic_works=yes
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797 case $lt_prog_compiler_pic in
9799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9802 lt_prog_compiler_pic=
9803 lt_prog_compiler_can_build_shared=no
9814 # Check to make sure the static flag actually works.
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 lt_cv_prog_compiler_static_works=no
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827 # The linker can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 if test -s conftest.err; then
9830 # Append any errors to the config.log.
9831 cat conftest.err 1>&5
9832 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834 if diff conftest.exp conftest.er2 >/dev/null; then
9835 lt_cv_prog_compiler_static_works=yes
9838 lt_cv_prog_compiler_static_works=yes
9842 LDFLAGS="$save_LDFLAGS"
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9851 lt_prog_compiler_static=
9860 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 lt_cv_prog_compiler_c_o=no
9866 $RM -r conftest 2>/dev/null
9870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9872 lt_compiler_flag="-o out/conftest2.$ac_objext"
9873 # Insert the option either (1) after the last *FLAGS variable, or
9874 # (2) before a word containing "conftest.", or (3) at the end.
9875 # Note that $ac_compile itself does not contain backslashes and begins
9876 # with a dollar sign (not a hyphen), so the echo should work correctly.
9877 lt_compile=`echo "$ac_compile" | $SED \
9878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880 -e 's:$: $lt_compiler_flag:'`
9881 (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882 (eval "$lt_compile" 2>out/conftest.err)
9884 cat out/conftest.err >&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9888 # The compiler can only warn and ignore the option if not recognized
9889 # So say no if there are warnings
9890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893 lt_cv_prog_compiler_c_o=yes
9898 # SGI C++ compiler will create directory out/ii_files/ for
9899 # template instantiation
9900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901 $RM out/* && rmdir out
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9915 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 lt_cv_prog_compiler_c_o=no
9921 $RM -r conftest 2>/dev/null
9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927 lt_compiler_flag="-o out/conftest2.$ac_objext"
9928 # Insert the option either (1) after the last *FLAGS variable, or
9929 # (2) before a word containing "conftest.", or (3) at the end.
9930 # Note that $ac_compile itself does not contain backslashes and begins
9931 # with a dollar sign (not a hyphen), so the echo should work correctly.
9932 lt_compile=`echo "$ac_compile" | $SED \
9933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935 -e 's:$: $lt_compiler_flag:'`
9936 (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937 (eval "$lt_compile" 2>out/conftest.err)
9939 cat out/conftest.err >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9943 # The compiler can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948 lt_cv_prog_compiler_c_o=yes
9953 # SGI C++ compiler will create directory out/ii_files/ for
9954 # template instantiation
9955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956 $RM out/* && rmdir out
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970 # do not overwrite the value of need_locks provided by the user
9971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9977 ln conftest.a conftest.b 2>&5 || hard_links=no
9978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979 { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981 if test "$hard_links" = no; then
9982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9999 allow_undefined_flag=
10000 always_export_symbols=no
10002 archive_expsym_cmds=
10003 compiler_needs_object=no
10004 enable_shared_with_static_runtimes=no
10005 export_dynamic_flag_spec=
10006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007 hardcode_automatic=no
10009 hardcode_direct_absolute=no
10010 hardcode_libdir_flag_spec=
10011 hardcode_libdir_flag_spec_ld=
10012 hardcode_libdir_separator=
10013 hardcode_minus_L=no
10014 hardcode_shlibpath_var=unsupported
10016 link_all_deplibs=unknown
10018 module_expsym_cmds=
10019 old_archive_from_new_cmds=
10020 old_archive_from_expsyms_cmds=
10021 thread_safe_flag_spec=
10022 whole_archive_flag_spec=
10023 # include_expsyms should be a list of space-separated symbols to be *always*
10024 # included in the symbol list
10026 # exclude_expsyms can be an extended regexp of symbols to exclude
10027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029 # as well as any symbol that contains `d'.
10030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032 # platforms (ab)use it in PIC code, but their linkers get confused if
10033 # the symbol is explicitly referenced. Since portable code cannot
10034 # rely on this symbol name, it's probably fine to never include it in
10035 # preloaded symbol tables.
10036 # Exclude shared library initialization/finalization symbols.
10037 extract_expsyms_cmds=
10040 cygwin* | mingw* | pw32* | cegcc*)
10041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042 # When not using gcc, we currently assume that we are using
10043 # Microsoft Visual C++.
10044 if test "$GCC" != yes; then
10049 # we just hope/assume this is gcc and not c89 (= MSVC++)
10058 if test "$with_gnu_ld" = yes; then
10059 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 # Set some defaults for GNU ld with shared library support. These
10063 # are reset later if shared libraries are not supported. Putting them
10064 # here allows them to be overridden if necessary.
10065 runpath_var=LD_RUN_PATH
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 export_dynamic_flag_spec='${wl}--export-dynamic'
10068 # ancient GNU ld didn't support --whole-archive et. al.
10069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072 whole_archive_flag_spec=
10074 supports_anon_versioning=no
10075 case `$LD -v 2>&1` in
10076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079 *\ 2.11.*) ;; # other 2.11 versions
10080 *) supports_anon_versioning=yes ;;
10083 # See if GNU ld supports shared libraries.
10086 # On AIX/PPC, the GNU linker is very broken
10087 if test "$host_cpu" != ia64; then
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support. If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 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)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118 allow_undefined_flag=unsupported
10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120 # support --undefined. This deserves some investigation. FIXME
10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 allow_undefined_flag=unsupported
10132 always_export_symbols=no
10133 enable_shared_with_static_runtimes=yes
10134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138 # If the export-symbols file already is a .def file (1st line
10139 # is EXPORTS), use it as is; otherwise, prepend...
10140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141 cp $export_symbols $output_objdir/$soname.def;
10143 echo EXPORTS > $output_objdir/$soname.def;
10144 cat $export_symbols >> $output_objdir/$soname.def;
10146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 hardcode_shlibpath_var=no
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec='${wl}-E'
10157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158 # Instead, shared libraries are loaded at an image base (0x10000000 by
10159 # default) and relocated if they conflict, which is a slow very memory
10160 # consuming and fragmenting process. To avoid this, we pick a random,
10161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164 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'
10167 gnu* | linux* | tpf* | k*bsd*-gnu)
10169 if test "$host_os" = linux-dietlibc; then
10170 case $cc_basename in
10171 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10174 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175 && test "$tmp_diet" = no
10178 tmp_sharedflag='-shared'
10179 case $cc_basename,$host_cpu in
10180 pgcc*) # Portland Group C compiler
10181 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182 tmp_addflag=' $pic_flag'
10184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10185 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'
10186 tmp_addflag=' $pic_flag -Mnomain' ;;
10187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10188 tmp_addflag=' -i_dynamic' ;;
10189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10190 tmp_addflag=' -i_dynamic -nofor_main' ;;
10191 ifc* | ifort*) # Intel Fortran compiler
10192 tmp_addflag=' -nofor_main' ;;
10193 lf95*) # Lahey Fortran 8.1
10194 whole_archive_flag_spec=
10195 tmp_sharedflag='--shared' ;;
10196 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10197 tmp_sharedflag='-qmkshrobj'
10200 case `$CC -V 2>&1 | sed 5q` in
10201 *Sun\ C*) # Sun C 5.9
10202 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'
10203 compiler_needs_object=yes
10204 tmp_sharedflag='-G' ;;
10205 *Sun\ F*) # Sun Fortran 8.3
10206 tmp_sharedflag='-G' ;;
10208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210 if test "x$supports_anon_versioning" = xyes; then
10211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213 echo "local: *; };" >> $output_objdir/$libname.ver~
10214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10217 case $cc_basename in
10219 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221 hardcode_libdir_flag_spec=
10222 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224 if test "x$supports_anon_versioning" = xyes; then
10225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227 echo "local: *; };" >> $output_objdir/$libname.ver~
10228 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems. Therefore, libtool
10254 *** is disabling shared libraries support. We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer. Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269 case `$LD -v 2>&1` in
10270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems. Therefore, libtool
10276 *** is disabling shared libraries support. We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10284 # For security reasons, it is highly recommended that you always
10285 # use absolute paths for naming shared libraries, and exclude the
10286 # DT_RUNPATH tag from executables and libraries. But doing so
10287 # requires that you compile everything twice, which is a pain.
10288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316 if test "$ld_shlibs" = no; then
10318 hardcode_libdir_flag_spec=
10319 export_dynamic_flag_spec=
10320 whole_archive_flag_spec=
10323 # PORTME fill in a description of your system's linker (not GNU ld)
10326 allow_undefined_flag=unsupported
10327 always_export_symbols=yes
10328 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'
10329 # Note: this linker hardcodes the directories in LIBPATH if there
10330 # are no directories specified by -L.
10331 hardcode_minus_L=yes
10332 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333 # Neither direct hardcoding nor static linking is supported with a
10335 hardcode_direct=unsupported
10340 if test "$host_cpu" = ia64; then
10341 # On IA64, the linker does run time linking by default, so we don't
10342 # have to do anything special.
10343 aix_use_runtimelinking=no
10344 exp_sym_flag='-Bexport'
10347 # If we're using GNU nm, then we don't want the "-C" option.
10348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350 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'
10352 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'
10354 aix_use_runtimelinking=no
10356 # Test if we are trying to use run time linking or normal
10357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358 # need to do runtime linking.
10359 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360 for ld_flag in $LDFLAGS; do
10361 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362 aix_use_runtimelinking=yes
10369 exp_sym_flag='-bexport'
10370 no_entry_flag='-bnoentry'
10373 # When large executables or shared objects are built, AIX ld can
10374 # have problems creating the table of contents. If linking a library
10375 # or program results in "error TOC overflow" add -mminimal-toc to
10376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380 hardcode_direct=yes
10381 hardcode_direct_absolute=yes
10382 hardcode_libdir_separator=':'
10383 link_all_deplibs=yes
10384 file_list_spec='${wl}-f,'
10386 if test "$GCC" = yes; then
10387 case $host_os in aix4.[012]|aix4.[012].*)
10388 # We only want to do this on AIX 4.2 and lower, the check
10389 # below for broken collect2 doesn't work under 4.3+
10390 collect2name=`${CC} -print-prog-name=collect2`
10391 if test -f "$collect2name" &&
10392 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10394 # We have reworked collect2
10397 # We have old collect2
10398 hardcode_direct=unsupported
10399 # It fails to find uninstalled libraries when the uninstalled
10400 # path is not listed in the libpath. Setting hardcode_minus_L
10401 # to unsupported forces relinking
10402 hardcode_minus_L=yes
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_libdir_separator=
10408 shared_flag='-shared'
10409 if test "$aix_use_runtimelinking" = yes; then
10410 shared_flag="$shared_flag "'${wl}-G'
10414 if test "$host_cpu" = ia64; then
10415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416 # chokes on -Wl,-G. The following line is correct:
10419 if test "$aix_use_runtimelinking" = yes; then
10420 shared_flag='${wl}-G'
10422 shared_flag='${wl}-bM:SRE'
10427 export_dynamic_flag_spec='${wl}-bexpall'
10428 # It seems that -bexpall does not export symbols beginning with
10429 # underscore (_), so it is better to generate a list of symbols to export.
10430 always_export_symbols=yes
10431 if test "$aix_use_runtimelinking" = yes; then
10432 # Warning - without using the other runtime loading flags (-brtl),
10433 # -berok will link without error, but may produce a broken library.
10434 allow_undefined_flag='-berok'
10435 # Determine the default libpath from the value encoded in an
10436 # empty executable.
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10471 lt_aix_libpath_sed='
10472 /Import File Strings/,/^$/ {
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491 conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495 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"
10497 if test "$host_cpu" = ia64; then
10498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499 allow_undefined_flag="-z nodefs"
10500 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"
10502 # Determine the default libpath from the value encoded in an
10503 # empty executable.
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_link") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest$ac_exeext &&
10536 $as_test_x conftest$ac_exeext; then
10538 lt_aix_libpath_sed='
10539 /Import File Strings/,/^$/ {
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562 # Warning - without using the other run time loading flags,
10563 # -berok will link without error, but may produce a broken library.
10564 no_undefined_flag=' ${wl}-bernotok'
10565 allow_undefined_flag=' ${wl}-berok'
10566 # Exported symbols can be pulled into shared objects from archives
10567 whole_archive_flag_spec='$convenience'
10568 archive_cmds_need_lc=yes
10569 # This is similar to how AIX traditionally builds its shared libraries.
10570 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'
10578 # see comment about AmigaOS4 .so support
10579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580 archive_expsym_cmds=''
10583 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)'
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_minus_L=yes
10591 export_dynamic_flag_spec=-rdynamic
10594 cygwin* | mingw* | pw32* | cegcc*)
10595 # When not using gcc, we currently assume that we are using
10596 # Microsoft Visual C++.
10597 # hardcode_libdir_flag_spec is actually meaningless, as there is
10598 # no search path for DLLs.
10599 hardcode_libdir_flag_spec=' '
10600 allow_undefined_flag=unsupported
10601 # Tell ltmain to make .lib files, not .a files.
10603 # Tell ltmain to make .dll files, not .so files.
10605 # FIXME: Setting linknames here is a bad hack.
10606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607 # The linker will automatically build a .lib file if we build a DLL.
10608 old_archive_from_new_cmds='true'
10609 # FIXME: Should let the user specify the lib program.
10610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611 fix_srcfile_path='`cygpath -w "$srcfile"`'
10612 enable_shared_with_static_runtimes=yes
10615 darwin* | rhapsody*)
10618 archive_cmds_need_lc=no
10620 hardcode_automatic=yes
10621 hardcode_shlibpath_var=unsupported
10622 whole_archive_flag_spec=''
10623 link_all_deplibs=yes
10624 allow_undefined_flag="$_lt_dar_allow_undefined"
10625 case $cc_basename in
10626 ifort*) _lt_dar_can_shared=yes ;;
10627 *) _lt_dar_can_shared=$GCC ;;
10629 if test "$_lt_dar_can_shared" = "yes"; then
10630 output_verbose_link_cmd=echo
10631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633 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}"
10634 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}"
10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 hardcode_shlibpath_var=no
10652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653 # support. Future versions do this automatically, but an explicit c++rt0.o
10654 # does not break anything, and helps significantly (at the cost of a little
10657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658 hardcode_libdir_flag_spec='-R$libdir'
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_minus_L=yes
10668 hardcode_shlibpath_var=no
10671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672 freebsd* | dragonfly*)
10673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674 hardcode_libdir_flag_spec='-R$libdir'
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10680 if test "$GCC" = yes; then
10681 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'
10683 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'
10685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686 hardcode_libdir_separator=:
10687 hardcode_direct=yes
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10692 export_dynamic_flag_spec='${wl}-E'
10696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10701 if test "$with_gnu_ld" = no; then
10702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703 hardcode_libdir_flag_spec_ld='+b $libdir'
10704 hardcode_libdir_separator=:
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10708 # hardcode_minus_L: Not really in the search PATH,
10709 # but as the default location of the library.
10710 hardcode_minus_L=yes
10715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740 if test "$with_gnu_ld" = no; then
10741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742 hardcode_libdir_separator=:
10747 hardcode_shlibpath_var=no
10750 hardcode_direct=yes
10751 hardcode_direct_absolute=yes
10752 export_dynamic_flag_spec='${wl}-E'
10754 # hardcode_minus_L: Not really in the search PATH,
10755 # but as the default location of the library.
10756 hardcode_minus_L=yes
10762 irix5* | irix6* | nonstopux*)
10763 if test "$GCC" = yes; then
10764 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'
10765 # Try to use the -exported_symbol ld option, if it does not
10766 # work, assume that -exports_file does not work either and
10767 # implicitly export all symbols.
10768 save_LDFLAGS="$LDFLAGS"
10769 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770 cat >conftest.$ac_ext <<_ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest$ac_exeext &&
10790 $as_test_x conftest$ac_exeext; then
10791 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'
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LDFLAGS="$save_LDFLAGS"
10804 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'
10805 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'
10807 archive_cmds_need_lc='no'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator=:
10811 link_all_deplibs=yes
10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10818 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10820 hardcode_libdir_flag_spec='-R$libdir'
10821 hardcode_direct=yes
10822 hardcode_shlibpath_var=no
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes
10828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 hardcode_libdir_separator=:
10830 hardcode_shlibpath_var=no
10837 if test -f /usr/libexec/ld.so; then
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10840 hardcode_direct_absolute=yes
10841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845 export_dynamic_flag_spec='${wl}-E'
10848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850 hardcode_libdir_flag_spec='-R$libdir'
10853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_minus_L=yes
10866 allow_undefined_flag=unsupported
10867 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'
10868 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10872 if test "$GCC" = yes; then
10873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874 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'
10876 allow_undefined_flag=' -expect_unresolved \*'
10877 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'
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881 hardcode_libdir_separator=:
10884 osf4* | osf5*) # as osf3* with the addition of -msym flag
10885 if test "$GCC" = yes; then
10886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887 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'
10888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10890 allow_undefined_flag=' -expect_unresolved \*'
10891 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'
10892 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~
10893 $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'
10895 # Both c and cxx compiler support -rpath directly
10896 hardcode_libdir_flag_spec='-rpath $libdir'
10898 archive_cmds_need_lc='no'
10899 hardcode_libdir_separator=:
10903 no_undefined_flag=' -z defs'
10904 if test "$GCC" = yes; then
10906 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910 case `$CC -V 2>&1` in
10913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10919 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_shlibpath_var=no
10928 solaris2.[0-5] | solaris2.[0-5].*) ;;
10930 # The compiler driver will combine and reorder linker options,
10931 # but understands `-z linker_flag'. GCC discards it without `$wl',
10932 # but is careful enough not to reorder.
10933 # Supported since Solaris 2.6 (maybe 2.5.1?)
10934 if test "$GCC" = yes; then
10935 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10941 link_all_deplibs=yes
10945 if test "x$host_vendor" = xsequent; then
10946 # Use $CC to link under sequent, because it throws in some extra .o
10947 # files that make .init and .fini sections work.
10948 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_direct=yes
10954 hardcode_minus_L=yes
10955 hardcode_shlibpath_var=no
10959 case $host_vendor in
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_direct=yes # is this really true???
10965 ## LD is ld it makes a PLAMLIB
10966 ## CC just makes a GrossModule.
10967 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968 reload_cmds='$CC -r -o $output$reload_objs'
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976 runpath_var='LD_RUN_PATH'
10977 hardcode_shlibpath_var=no
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_shlibpath_var=no
10983 export_dynamic_flag_spec='-Bexport'
10987 if test -d /usr/nec; then
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_shlibpath_var=no
10990 runpath_var=LD_RUN_PATH
10991 hardcode_runpath_var=yes
10996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997 no_undefined_flag='${wl}-z,text'
10998 archive_cmds_need_lc=no
10999 hardcode_shlibpath_var=no
11000 runpath_var='LD_RUN_PATH'
11002 if test "$GCC" = yes; then
11003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 sysv5* | sco3.2v5* | sco5v6*)
11012 # Note: We can NOT use -z defs as we might desire, because we do not
11013 # link with -lc, and that would cause any symbols used from libc to
11014 # always be unresolved, which means just about no library would
11015 # ever link correctly. If we're not using GNU ld we use -z text
11016 # though, which does catch some bad symbols but isn't as heavy-handed
11018 no_undefined_flag='${wl}-z,text'
11019 allow_undefined_flag='${wl}-z,nodefs'
11020 archive_cmds_need_lc=no
11021 hardcode_shlibpath_var=no
11022 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023 hardcode_libdir_separator=':'
11024 link_all_deplibs=yes
11025 export_dynamic_flag_spec='${wl}-Bexport'
11026 runpath_var='LD_RUN_PATH'
11028 if test "$GCC" = yes; then
11029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_shlibpath_var=no
11048 if test x$host_vendor = xsni; then
11050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051 export_dynamic_flag_spec='${wl}-Blargedynsym'
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11061 with_gnu_ld=$with_gnu_ld
11078 # Do we need to explicitly link libc?
11080 case "x$archive_cmds_need_lc" in
11082 # Assume -lc should be added
11083 archive_cmds_need_lc=yes
11085 if test "$enable_shared" = yes && test "$GCC" = yes; then
11086 case $archive_cmds in
11088 # FIXME: we may have to deal with multi-command sequences.
11091 # Test whether the compiler implicitly links with -lc since on some
11092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093 # to ld, don't add -lc before -lgcc.
11094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } 2>conftest.err; then
11106 libobjs=conftest.$ac_objext
11108 wl=$lt_prog_compiler_wl
11109 pic_flag=$lt_prog_compiler_pic
11115 lt_save_allow_undefined_flag=$allow_undefined_flag
11116 allow_undefined_flag=
11117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }
11123 archive_cmds_need_lc=no
11125 archive_cmds_need_lc=yes
11127 allow_undefined_flag=$lt_save_allow_undefined_flag
11129 cat conftest.err 1>&5
11132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11296 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11299 if test "$GCC" = yes; then
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11304 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306 # if the path contains ";" then we assume it to be the separator
11307 # otherwise default to the standard path separator (i.e. ":") - it is
11308 # assumed that no part of a normal pathname contains ";" but that should
11309 # okay in the real world where ";" in dirpaths is itself problematic.
11310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11314 # Ok, now we have the path, separated by spaces, we can step through it
11315 # and add multilib dir if necessary.
11316 lt_tmp_lt_search_path_spec=
11317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318 for lt_sys_path in $lt_search_path_spec; do
11319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11322 test -d "$lt_sys_path" && \
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11330 for (lt_i = NF; lt_i > 0; lt_i--) {
11331 if ($lt_i != "" && $lt_i != ".") {
11332 if ($lt_i == "..") {
11335 if (lt_count == 0) {
11336 lt_foo="/" $lt_i lt_foo;
11343 if (lt_foo != "") { lt_freq[lt_foo]++; }
11344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11346 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 library_names_spec=
11351 libname_spec='lib$name'
11355 postuninstall_cmds=
11359 shlibpath_overrides_runpath=unknown
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374 shlibpath_var=LIBPATH
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec='${libname}${release}${shared_ext}$major'
11384 hardcode_into_libs=yes
11385 if test "$host_cpu" = ia64; then
11386 # AIX 5 supports IA64
11387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388 shlibpath_var=LD_LIBRARY_PATH
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line `#! .'. This would cause the generated library to
11393 # depend on `.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11396 aix4 | aix4.[01] | aix4.[01].*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402 can_build_shared=no
11406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407 # soname into executable. Probably we can add versioning support to
11408 # collect2, so additional links can be useful in future.
11409 if test "$aix_use_runtimelinking" = yes; then
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec='${libname}${release}.a $libname.a'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LIBPATH
11427 # Since July 2007 AmigaOS4 officially supports .so libraries.
11428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 library_names_spec='$libname.ixlibrary $libname.a'
11433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434 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'
11440 library_names_spec='${libname}${shared_ext}'
11441 dynamic_linker="$host_os ld.so"
11442 shlibpath_var=LIBRARY_PATH
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454 # the default ld.so.conf also contains /usr/contrib/lib and
11455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456 # libtool to hard-code these into programs
11459 cygwin* | mingw* | pw32* | cegcc*)
11460 version_type=windows
11465 case $GCC,$host_os in
11466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467 library_names_spec='$libname.dll.a'
11468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469 postinstall_cmds='base_file=`basename \${file}`~
11470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471 dldir=$destdir/`dirname \$dlpath`~
11472 test -d \$dldir || mkdir -p \$dldir~
11473 $install_prog $dir/$dlname \$dldir/$dlname~
11474 chmod a+x \$dldir/$dlname~
11475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479 dlpath=$dir/\$dldll~
11481 shlibpath_overrides_runpath=yes
11485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490 # MinGW DLLs use traditional 'lib' prefix
11491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494 # It is most probably a Windows format PATH printed by
11495 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496 # path with ; separators, and with drive letters. We can handle the
11497 # drive letters (cygwin fileutils understands them), so leave them,
11498 # especially as we might pass files found there to a mingw objdump,
11499 # which wouldn't understand a cygwinified path. Ahh.
11500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11506 # pw32 DLLs use 'pw' prefix rather than 'lib'
11507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516 dynamic_linker='Win32 ld.exe'
11517 # FIXME: first we should search . and the directory the executable is in
11521 darwin* | rhapsody*)
11522 dynamic_linker="$host_os dyld"
11523 version_type=darwin
11526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527 soname_spec='${libname}${release}${major}$shared_ext'
11528 shlibpath_overrides_runpath=yes
11529 shlibpath_var=DYLD_LIBRARY_PATH
11530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11549 freebsd* | dragonfly*)
11550 # DragonFly does not have aout. When/if they implement a new
11551 # versioning mechanism, adjust this.
11552 if test -x /usr/bin/objformat; then
11553 objformat=`/usr/bin/objformat`
11556 freebsd[123]*) objformat=aout ;;
11557 *) objformat=elf ;;
11560 version_type=freebsd-$objformat
11561 case $version_type in
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11586 *) # from 4.6 on, and DragonFly
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 hardcode_into_libs=yes
11603 hpux9* | hpux10* | hpux11*)
11604 # Give a soname corresponding to the major version so that dld.sl refuses to
11605 # link against other versions.
11612 hardcode_into_libs=yes
11613 dynamic_linker="$host_os dld.so"
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 if test "X$HPUX_IA64_MODE" = X32; then
11619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627 hardcode_into_libs=yes
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 dynamic_linker="$host_os dld.sl"
11639 shlibpath_var=SHLIB_PATH
11640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646 postinstall_cmds='chmod 555 $lib'
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658 hardcode_into_libs=yes
11661 irix5* | irix6* | nonstopux*)
11663 nonstopux*) version_type=nonstopux ;;
11665 if test "$lt_cv_prog_gnu_ld" = yes; then
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11676 irix5* | nonstopux*)
11677 libsuff= shlibsuff=
11680 case $LD in # libtool.m4 will add one of these switches to LD
11681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682 libsuff= shlibsuff= libmagic=32-bit;;
11683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684 libsuff=32 shlibsuff=N32 libmagic=N32;;
11685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687 *) libsuff= shlibsuff= libmagic=never-match;;
11691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692 shlibpath_overrides_runpath=no
11693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695 hardcode_into_libs=yes
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=no
11713 # Some binutils ld are patched to set DT_RUNPATH
11714 save_LDFLAGS=$LDFLAGS
11715 save_libdir=$libdir
11716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_link") 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest$ac_exeext &&
11750 $as_test_x conftest$ac_exeext; then
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752 shlibpath_overrides_runpath=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS=$save_LDFLAGS
11765 libdir=$save_libdir
11767 # This implies no fast_install, which is unacceptable.
11768 # Some rework will be needed to allow for fast_install
11769 # before this can be enabled.
11770 hardcode_into_libs=yes
11772 # Append ld.so.conf contents to the search path
11773 if test -f /etc/ld.so.conf; then
11774 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' ' '`
11775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778 # We used to test for /lib/ld.so.1 and disable shared libraries on
11779 # powerpc, because MkLinux only supported shared libraries with the
11780 # GNU dynamic linker. Since this was broken with cross compilers,
11781 # most powerpc-linux boxes support dynamic linking these days and
11782 # people can always --disable-shared, the test was removed, and we
11783 # assume the GNU/Linux dynamic linker is in use.
11784 dynamic_linker='GNU/Linux ld.so'
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794 dynamic_linker='NetBSD (a.out) ld.so'
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 dynamic_linker='NetBSD ld.elf_so'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=yes
11802 hardcode_into_libs=yes
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=no
11820 hardcode_into_libs=yes
11821 dynamic_linker='ldqnx.so'
11826 sys_lib_dlsearch_path_spec="/usr/lib"
11828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11831 *) need_version=no ;;
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11838 openbsd2.[89] | openbsd2.[89].*)
11839 shlibpath_overrides_runpath=no
11842 shlibpath_overrides_runpath=yes
11846 shlibpath_overrides_runpath=yes
11851 libname_spec='$name'
11854 library_names_spec='$libname${shared_ext} $libname.a'
11855 dynamic_linker='OS/2 ld.exe'
11856 shlibpath_var=LIBPATH
11859 osf3* | osf4* | osf5*)
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 # ldd complains unless libraries are executable
11884 postinstall_cmds='chmod +x $lib'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 if test "$with_gnu_ld" = yes; then
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 case $host_vendor in
11906 shlibpath_overrides_runpath=no
11908 runpath_var=LD_RUN_PATH
11916 shlibpath_overrides_runpath=no
11917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11923 if test -d /usr/nec ;then
11925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926 soname_spec='$libname${shared_ext}.$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932 version_type=freebsd-elf
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 if test "$with_gnu_ld" = yes; then
11941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950 sys_lib_dlsearch_path_spec='/usr/lib'
11954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=no
11961 hardcode_into_libs=yes
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12077 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081 test -n "$runpath_var" ||
12082 test "X$hardcode_automatic" = "Xyes" ; then
12084 # We can hardcode non-existent directories.
12085 if test "$hardcode_direct" != no &&
12086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087 # have to relink, otherwise we might link with an installed library
12088 # when we should be linking with a yet-to-be-installed one
12089 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090 test "$hardcode_minus_L" != no; then
12091 # Linking always hardcodes the temporary library directory.
12092 hardcode_action=relink
12094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095 hardcode_action=immediate
12098 # We cannot hardcode anything, or else we can only hardcode existing
12100 hardcode_action=unsupported
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12105 if test "$hardcode_action" = relink ||
12106 test "$inherit_rpath" = yes; then
12107 # Fast installation is not supported
12108 enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110 test "$enable_shared" = no; then
12111 # Fast installation is not necessary
12112 enable_fast_install=needless
12120 if test "x$enable_dlopen" != xyes; then
12121 enable_dlopen=unknown
12122 enable_dlopen_self=unknown
12123 enable_dlopen_self_static=unknown
12130 lt_cv_dlopen="load_add_on"
12132 lt_cv_dlopen_self=yes
12135 mingw* | pw32* | cegcc*)
12136 lt_cv_dlopen="LoadLibrary"
12141 lt_cv_dlopen="dlopen"
12146 # if libdl is installed we need to link against it
12147 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_check_lib_save_LIBS=$LIBS
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext &&
12193 $as_test_x conftest$ac_exeext; then
12194 ac_cv_lib_dl_dlopen=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_dl_dlopen=no
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212 lt_cv_dlopen="dyld"
12214 lt_cv_dlopen_self=yes
12221 { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12234 #define shl_load innocuous_shl_load
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char shl_load (); below.
12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239 <limits.h> exists even on freestanding compilers. */
12242 # include <limits.h>
12244 # include <assert.h>
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12266 return shl_load ();
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext &&
12288 $as_test_x conftest$ac_exeext; then
12289 ac_cv_func_shl_load=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_func_shl_load=no
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303 lt_cv_dlopen="shl_load"
12305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_check_lib_save_LIBS=$LIBS
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any GCC internal prototype to avoid an error.
12320 Use char because int might match the return type of a GCC
12321 builtin and then its argument prototype would still apply. */
12329 return shl_load ();
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_link") 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest$ac_exeext &&
12351 $as_test_x conftest$ac_exeext; then
12352 ac_cv_lib_dld_shl_load=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_dld_shl_load=no
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361 conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12369 { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12382 #define dlopen innocuous_dlopen
12384 /* System header to define __stub macros and hopefully few prototypes,
12385 which can conflict with char dlopen (); below.
12386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387 <limits.h> exists even on freestanding compilers. */
12390 # include <limits.h>
12392 # include <assert.h>
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 ac_cv_func_dlopen=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_func_dlopen=no
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451 lt_cv_dlopen="dlopen"
12453 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_check_lib_save_LIBS=$LIBS
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext &&
12499 $as_test_x conftest$ac_exeext; then
12500 ac_cv_lib_dl_dlopen=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 ac_cv_lib_dl_dlopen=no
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12517 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest$ac_exeext &&
12563 $as_test_x conftest$ac_exeext; then
12564 ac_cv_lib_svld_dlopen=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_lib_svld_dlopen=no
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12605 return dld_link ();
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext &&
12627 $as_test_x conftest$ac_exeext; then
12628 ac_cv_lib_dld_dld_link=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 ac_cv_lib_dld_dld_link=no
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12664 if test "x$lt_cv_dlopen" != xno; then
12670 case $lt_cv_dlopen in
12672 save_CPPFLAGS="$CPPFLAGS"
12673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12675 save_LDFLAGS="$LDFLAGS"
12676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12679 LIBS="$lt_cv_dlopen_libs $LIBS"
12681 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 if test "$cross_compiling" = yes; then :
12687 lt_cv_dlopen_self=cross
12689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690 lt_status=$lt_dlunknown
12691 cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12702 # define LT_DLGLOBAL RTLD_GLOBAL
12705 # define LT_DLGLOBAL DL_GLOBAL
12707 # define LT_DLGLOBAL 0
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712 find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12718 # define LT_DLLAZY_OR_NOW DL_LAZY
12721 # define LT_DLLAZY_OR_NOW RTLD_NOW
12724 # define LT_DLLAZY_OR_NOW DL_NOW
12726 # define LT_DLLAZY_OR_NOW 0
12733 void fnord() { int i=42;}
12736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737 int status = $lt_dlunknown;
12741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743 /* dlclose (self); */
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756 (./conftest; exit; ) >&5 2>/dev/null
12758 case x$lt_status in
12759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12764 # compilation failed
12765 lt_cv_dlopen_self=no
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12775 if test "x$lt_cv_dlopen_self" = xyes; then
12776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 if test "$cross_compiling" = yes; then :
12783 lt_cv_dlopen_self_static=cross
12785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786 lt_status=$lt_dlunknown
12787 cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12798 # define LT_DLGLOBAL RTLD_GLOBAL
12801 # define LT_DLGLOBAL DL_GLOBAL
12803 # define LT_DLGLOBAL 0
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808 find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12814 # define LT_DLLAZY_OR_NOW DL_LAZY
12817 # define LT_DLLAZY_OR_NOW RTLD_NOW
12820 # define LT_DLLAZY_OR_NOW DL_NOW
12822 # define LT_DLLAZY_OR_NOW 0
12829 void fnord() { int i=42;}
12832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833 int status = $lt_dlunknown;
12837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839 /* dlclose (self); */
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852 (./conftest; exit; ) >&5 2>/dev/null
12854 case x$lt_status in
12855 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12860 # compilation failed
12861 lt_cv_dlopen_self_static=no
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12872 CPPFLAGS="$save_CPPFLAGS"
12873 LDFLAGS="$save_LDFLAGS"
12878 case $lt_cv_dlopen_self in
12879 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880 *) enable_dlopen_self=unknown ;;
12883 case $lt_cv_dlopen_self_static in
12884 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885 *) enable_dlopen_self_static=unknown ;;
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12915 # FIXME - insert some real tests, host_os isn't really good enough
12918 if test -n "$STRIP" ; then
12919 striplib="$STRIP -x"
12920 old_striplib="$STRIP -S"
12921 { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12924 { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12929 { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12946 # Report which library types will actually be built
12947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954 test "$can_build_shared" = "no" && enable_shared=no
12956 # On AIX, shared libraries and static libraries use the same namespace, and
12957 # are all built from PIC.
12960 test "$enable_shared" = yes && enable_static=no
12961 if test -n "$RANLIB"; then
12962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963 postinstall_cmds='$RANLIB $lib'
12968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969 test "$enable_shared" = yes && enable_static=no
12973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978 # Make sure either enable_shared or enable_static is yes.
12979 test "$enable_shared" = yes || enable_static=yes
12980 { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13025 # Source file extension for C++ test sources.
13028 # Object file extension for compiled C++ test sources.
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working. Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037 # Code to be used in simple compile tests
13038 lt_simple_compile_test_code="int some_variable = 0;"
13040 # Code to be used in simple link tests
13041 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13043 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13050 # If no C compiler was specified, use CC.
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13056 # Allow CC to be a program name with arguments.
13060 # save warnings/boilerplate of simple test code
13061 ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13067 ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13074 # Allow CC to be a program name with arguments.
13079 lt_save_with_gnu_ld=$with_gnu_ld
13080 lt_save_path_LD=$lt_cv_path_LD
13081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13084 $as_unset lt_cv_prog_gnu_ld
13086 if test -n "${lt_cv_path_LDCXX+set}"; then
13087 lt_cv_path_LD=$lt_cv_path_LDCXX
13089 $as_unset lt_cv_path_LD
13091 test -z "${LDCXX+set}" || LD=$LDCXX
13095 for cc_temp in $compiler""; do
13097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106 if test -n "$compiler"; then
13107 # We don't want -fno-exception when compiling C++ code, so set the
13108 # no_builtin_flag separately
13109 if test "$GXX" = yes; then
13110 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13112 lt_prog_compiler_no_builtin_flag_CXX=
13115 if test "$GXX" = yes; then
13116 # Set up default GNU C++ configuration
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13128 if test "$GCC" = yes; then
13129 # Check if gcc -print-prog-name=ld gives a path.
13130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13134 # gcc leaves a trailing carriage return which upsets mingw
13135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140 # Accept absolute paths.
13142 re_direlt='/[^/][^/]*/\.\./'
13143 # Canonicalize the pathname of ld
13144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13148 test -z "$LD" && LD="$ac_prog"
13151 # If it fails, then pretend we aren't using GCC.
13155 # If it is relative, then search for the first ld in PATH.
13156 with_gnu_ld=unknown
13159 elif test "$with_gnu_ld" = yes; then
13160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13166 if test "${lt_cv_path_LD+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 if test -z "$LD"; then
13170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171 for ac_dir in $PATH; do
13173 test -z "$ac_dir" && ac_dir=.
13174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175 lt_cv_path_LD="$ac_dir/$ac_prog"
13176 # Check to see if the program is GNU ld. I'd rather use --version,
13177 # but apparently some variants of GNU ld only accept -v.
13178 # Break only if it was the GNU/non-GNU ld that we prefer.
13179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180 *GNU* | *'with BFD'*)
13181 test "$with_gnu_ld" != no && break
13184 test "$with_gnu_ld" != yes && break
13191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197 { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205 { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214 lt_cv_prog_gnu_ld=yes
13217 lt_cv_prog_gnu_ld=no
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13231 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232 # archiving commands below assume that GNU ld is being used.
13233 if test "$with_gnu_ld" = yes; then
13234 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235 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'
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13240 # If archive_cmds runs LD, not CC, wlarc should be empty
13241 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242 # investigate it a little bit more. (MM)
13245 # ancient GNU ld didn't support --whole-archive et. al.
13246 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247 $GREP 'no-whole-archive' > /dev/null; then
13248 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13250 whole_archive_flag_spec_CXX=
13256 # A generic and very simple default shared library creation
13257 # command for GNU C++ for the case where it uses the native
13258 # linker, instead of GNU ld. If possible, this setting should
13259 # overridden to take advantage of the native linker features on
13260 # the platform it is being used on.
13261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13275 # PORTME: fill in a description of your system's C++ link characteristics
13276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13281 # FIXME: insert proper C++ library support
13285 if test "$host_cpu" = ia64; then
13286 # On IA64, the linker does run time linking by default, so we don't
13287 # have to do anything special.
13288 aix_use_runtimelinking=no
13289 exp_sym_flag='-Bexport'
13292 aix_use_runtimelinking=no
13294 # Test if we are trying to use run time linking or normal
13295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296 # need to do runtime linking.
13297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298 for ld_flag in $LDFLAGS; do
13301 aix_use_runtimelinking=yes
13309 exp_sym_flag='-bexport'
13310 no_entry_flag='-bnoentry'
13313 # When large executables or shared objects are built, AIX ld can
13314 # have problems creating the table of contents. If linking a library
13315 # or program results in "error TOC overflow" add -mminimal-toc to
13316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13319 archive_cmds_CXX=''
13320 hardcode_direct_CXX=yes
13321 hardcode_direct_absolute_CXX=yes
13322 hardcode_libdir_separator_CXX=':'
13323 link_all_deplibs_CXX=yes
13324 file_list_spec_CXX='${wl}-f,'
13326 if test "$GXX" = yes; then
13327 case $host_os in aix4.[012]|aix4.[012].*)
13328 # We only want to do this on AIX 4.2 and lower, the check
13329 # below for broken collect2 doesn't work under 4.3+
13330 collect2name=`${CC} -print-prog-name=collect2`
13331 if test -f "$collect2name" &&
13332 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13334 # We have reworked collect2
13337 # We have old collect2
13338 hardcode_direct_CXX=unsupported
13339 # It fails to find uninstalled libraries when the uninstalled
13340 # path is not listed in the libpath. Setting hardcode_minus_L
13341 # to unsupported forces relinking
13342 hardcode_minus_L_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='-L$libdir'
13344 hardcode_libdir_separator_CXX=
13347 shared_flag='-shared'
13348 if test "$aix_use_runtimelinking" = yes; then
13349 shared_flag="$shared_flag "'${wl}-G'
13353 if test "$host_cpu" = ia64; then
13354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355 # chokes on -Wl,-G. The following line is correct:
13358 if test "$aix_use_runtimelinking" = yes; then
13359 shared_flag='${wl}-G'
13361 shared_flag='${wl}-bM:SRE'
13366 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367 # It seems that -bexpall does not export symbols beginning with
13368 # underscore (_), so it is better to generate a list of symbols to
13370 always_export_symbols_CXX=yes
13371 if test "$aix_use_runtimelinking" = yes; then
13372 # Warning - without using the other runtime loading flags (-brtl),
13373 # -berok will link without error, but may produce a broken library.
13374 allow_undefined_flag_CXX='-berok'
13375 # Determine the default libpath from the value encoded in an empty
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_cxx_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest$ac_exeext &&
13409 $as_test_x conftest$ac_exeext; then
13411 lt_aix_libpath_sed='
13412 /Import File Strings/,/^$/ {
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13434 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13436 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"
13438 if test "$host_cpu" = ia64; then
13439 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440 allow_undefined_flag_CXX="-z nodefs"
13441 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"
13443 # Determine the default libpath from the value encoded in an
13444 # empty executable.
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_cxx_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest$ac_exeext &&
13477 $as_test_x conftest$ac_exeext; then
13479 lt_aix_libpath_sed='
13480 /Import File Strings/,/^$/ {
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499 conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503 # Warning - without using the other run time loading flags,
13504 # -berok will link without error, but may produce a broken library.
13505 no_undefined_flag_CXX=' ${wl}-bernotok'
13506 allow_undefined_flag_CXX=' ${wl}-berok'
13507 # Exported symbols can be pulled into shared objects from archives
13508 whole_archive_flag_spec_CXX='$convenience'
13509 archive_cmds_need_lc_CXX=yes
13510 # This is similar to how AIX traditionally builds its shared
13512 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'
13518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519 allow_undefined_flag_CXX=unsupported
13520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521 # support --undefined. This deserves some investigation. FIXME
13522 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 case $cc_basename in
13531 # FIXME: insert proper C++ library support
13537 cygwin* | mingw* | pw32* | cegcc*)
13538 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539 # as there is no search path for DLLs.
13540 hardcode_libdir_flag_spec_CXX='-L$libdir'
13541 allow_undefined_flag_CXX=unsupported
13542 always_export_symbols_CXX=no
13543 enable_shared_with_static_runtimes_CXX=yes
13545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546 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'
13547 # If the export-symbols file already is a .def file (1st line
13548 # is EXPORTS), use it as is; otherwise, prepend...
13549 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550 cp $export_symbols $output_objdir/$soname.def;
13552 echo EXPORTS > $output_objdir/$soname.def;
13553 cat $export_symbols >> $output_objdir/$soname.def;
13555 $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'
13560 darwin* | rhapsody*)
13563 archive_cmds_need_lc_CXX=no
13564 hardcode_direct_CXX=no
13565 hardcode_automatic_CXX=yes
13566 hardcode_shlibpath_var_CXX=unsupported
13567 whole_archive_flag_spec_CXX=''
13568 link_all_deplibs_CXX=yes
13569 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570 case $cc_basename in
13571 ifort*) _lt_dar_can_shared=yes ;;
13572 *) _lt_dar_can_shared=$GCC ;;
13574 if test "$_lt_dar_can_shared" = "yes"; then
13575 output_verbose_link_cmd=echo
13576 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}"
13577 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578 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}"
13579 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}"
13580 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581 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}"
13582 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}"
13592 case $cc_basename in
13594 # FIXME: insert proper C++ library support
13598 # Green Hills C++ Compiler
13599 # FIXME: insert proper C++ library support
13603 # FIXME: insert proper C++ library support
13610 # C++ shared libraries reported to be fairly broken before
13616 archive_cmds_need_lc_CXX=no
13619 freebsd* | dragonfly*)
13620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630 hardcode_libdir_separator_CXX=:
13631 export_dynamic_flag_spec_CXX='${wl}-E'
13632 hardcode_direct_CXX=yes
13633 hardcode_minus_L_CXX=yes # Not in the search PATH,
13634 # but as the default
13635 # location of the library.
13637 case $cc_basename in
13639 # FIXME: insert proper C++ library support
13643 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'
13644 # Commands to make compiler produce verbose output that lists
13645 # what "hidden" libraries, object files and flags are used when
13646 # linking a shared library.
13648 # There doesn't appear to be a way to prevent this compiler from
13649 # explicitly linking system object files so we need to strip them
13650 # from the output so that they don't get included in the library
13652 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'
13655 if test "$GXX" = yes; then
13656 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'
13658 # FIXME: insert proper C++ library support
13666 if test $with_gnu_ld = no; then
13667 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668 hardcode_libdir_separator_CXX=:
13674 export_dynamic_flag_spec_CXX='${wl}-E'
13680 hardcode_direct_CXX=no
13681 hardcode_shlibpath_var_CXX=no
13684 hardcode_direct_CXX=yes
13685 hardcode_direct_absolute_CXX=yes
13686 hardcode_minus_L_CXX=yes # Not in the search PATH,
13687 # but as the default
13688 # location of the library.
13692 case $cc_basename in
13694 # FIXME: insert proper C++ library support
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13713 # There doesn't appear to be a way to prevent this compiler from
13714 # explicitly linking system object files so we need to strip them
13715 # from the output so that they don't get included in the library
13717 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'
13720 if test "$GXX" = yes; then
13721 if test $with_gnu_ld = no; then
13724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730 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'
13735 # FIXME: insert proper C++ library support
13743 hardcode_direct_CXX=no
13744 hardcode_shlibpath_var_CXX=no
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='${wl}-E'
13747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748 # Instead, shared libraries are loaded at an image base (0x10000000 by
13749 # default) and relocated if they conflict, which is a slow very memory
13750 # consuming and fragmenting process. To avoid this, we pick a random,
13751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13753 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'
13754 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'
13757 case $cc_basename in
13760 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'
13762 # Archives containing C++ object files must be created using
13763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13764 # necessary to make sure instantiated templates are included
13766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13769 if test "$GXX" = yes; then
13770 if test "$with_gnu_ld" = no; then
13771 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'
13773 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'
13776 link_all_deplibs_CXX=yes
13779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780 hardcode_libdir_separator_CXX=:
13781 inherit_rpath_CXX=yes
13784 linux* | k*bsd*-gnu)
13785 case $cc_basename in
13787 # Kuck and Associates, Inc. (KAI) C++ Compiler
13789 # KCC will only create a shared library if the output file
13790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791 # to its proper name (with version) after linking.
13792 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'
13793 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'
13794 # Commands to make compiler produce verbose output that lists
13795 # what "hidden" libraries, object files and flags are used when
13796 # linking a shared library.
13798 # There doesn't appear to be a way to prevent this compiler from
13799 # explicitly linking system object files so we need to strip them
13800 # from the output so that they don't get included in the library
13802 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'
13804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807 # Archives containing C++ object files must be created using
13808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13814 # version 8.0 and above of icpc choke on multiply defined symbols
13815 # if we add $predep_objects and $postdep_objects, however 7.1 and
13816 # earlier do not add the objects themselves.
13817 case `$CC -V 2>&1` in
13819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 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'
13822 *) # Version 8.0 or newer
13825 ia64*) tmp_idyn=' -i_dynamic';;
13827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 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'
13831 archive_cmds_need_lc_CXX=no
13832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837 # Portland Group C++ compiler
13839 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840 prelink_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844 old_archive_cmds_CXX='tpldir=Template.dir~
13846 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13849 archive_cmds_CXX='tpldir=Template.dir~
13851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853 archive_expsym_cmds_CXX='tpldir=Template.dir~
13855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856 $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'
13858 *) # Version 6 will use weak symbols
13859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860 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'
13864 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866 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'
13870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871 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'
13873 runpath_var=LD_RUN_PATH
13874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875 hardcode_libdir_separator_CXX=:
13877 # Commands to make compiler produce verbose output that lists
13878 # what "hidden" libraries, object files and flags are used when
13879 # linking a shared library.
13881 # There doesn't appear to be a way to prevent this compiler from
13882 # explicitly linking system object files so we need to strip them
13883 # from the output so that they don't get included in the library
13885 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'
13888 # IBM XL 8.0 on PPC, with GNU ld
13889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 if test "x$supports_anon_versioning" = xyes; then
13893 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895 echo "local: *; };" >> $output_objdir/$libname.ver~
13896 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900 case `$CC -V 2>&1 | sed 5q` in
13903 no_undefined_flag_CXX=' -zdefs'
13904 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 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'
13906 hardcode_libdir_flag_spec_CXX='-R$libdir'
13907 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'
13908 compiler_needs_object_CXX=yes
13910 # Not sure whether something based on
13911 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13913 output_verbose_link_cmd='echo'
13915 # Archives containing C++ object files must be created using
13916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13917 # necessary to make sure instantiated templates are included
13919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13927 # FIXME: insert proper C++ library support
13932 # FIXME: insert proper C++ library support
13937 case $cc_basename in
13939 # FIXME: insert proper C++ library support
13943 # FIXME: insert proper C++ library support
13950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13953 hardcode_libdir_flag_spec_CXX='-R$libdir'
13954 hardcode_direct_CXX=yes
13955 hardcode_shlibpath_var_CXX=no
13957 # Workaround some broken pre-1.5 toolchains
13958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13966 # C++ shared libraries are fairly broken
13971 if test -f /usr/libexec/ld.so; then
13972 hardcode_direct_CXX=yes
13973 hardcode_shlibpath_var_CXX=no
13974 hardcode_direct_absolute_CXX=yes
13975 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979 export_dynamic_flag_spec_CXX='${wl}-E'
13980 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13982 output_verbose_link_cmd=echo
13988 osf3* | osf4* | osf5*)
13989 case $cc_basename in
13991 # Kuck and Associates, Inc. (KAI) C++ Compiler
13993 # KCC will only create a shared library if the output file
13994 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995 # to its proper name (with version) after linking.
13996 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'
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999 hardcode_libdir_separator_CXX=:
14001 # Archives containing C++ object files must be created using
14002 # the KAI C++ compiler.
14004 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14009 # Rational C++ 2.4.1
14010 # FIXME: insert proper C++ library support
14016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017 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'
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14021 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022 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'
14023 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024 echo "-hidden">> $lib.exp~
14025 $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~
14027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14031 hardcode_libdir_separator_CXX=:
14033 # Commands to make compiler produce verbose output that lists
14034 # what "hidden" libraries, object files and flags are used when
14035 # linking a shared library.
14037 # There doesn't appear to be a way to prevent this compiler from
14038 # explicitly linking system object files so we need to strip them
14039 # from the output so that they don't get included in the library
14041 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'
14044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14048 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'
14051 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'
14055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056 hardcode_libdir_separator_CXX=:
14058 # Commands to make compiler produce verbose output that lists
14059 # what "hidden" libraries, object files and flags are used when
14060 # linking a shared library.
14061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14064 # FIXME: insert proper C++ library support
14072 # FIXME: insert proper C++ library support
14077 case $cc_basename in
14080 # FIXME: insert proper C++ library support
14085 # FIXME: insert proper C++ library support
14089 # FIXME: insert proper C++ library support
14096 case $cc_basename in
14098 # Sun C++ 4.2, 5.x and Centerline C++
14099 archive_cmds_need_lc_CXX=yes
14100 no_undefined_flag_CXX=' -zdefs'
14101 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103 $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'
14105 hardcode_libdir_flag_spec_CXX='-R$libdir'
14106 hardcode_shlibpath_var_CXX=no
14108 solaris2.[0-5] | solaris2.[0-5].*) ;;
14110 # The compiler driver will combine and reorder linker options,
14111 # but understands `-z linker_flag'.
14112 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14116 link_all_deplibs_CXX=yes
14118 output_verbose_link_cmd='echo'
14120 # Archives containing C++ object files must be created using
14121 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14122 # necessary to make sure instantiated templates are included
14124 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14127 # Green Hills C++ Compiler
14128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130 # The C++ compiler must be used to create the archive.
14131 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14134 # GNU C++ compiler with Solaris linker
14135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14142 # Commands to make compiler produce verbose output that lists
14143 # what "hidden" libraries, object files and flags are used when
14144 # linking a shared library.
14145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14147 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14149 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14156 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14159 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14161 solaris2.[0-5] | solaris2.[0-5].*) ;;
14163 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172 no_undefined_flag_CXX='${wl}-z,text'
14173 archive_cmds_need_lc_CXX=no
14174 hardcode_shlibpath_var_CXX=no
14175 runpath_var='LD_RUN_PATH'
14177 case $cc_basename in
14179 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 sysv5* | sco3.2v5* | sco5v6*)
14190 # Note: We can NOT use -z defs as we might desire, because we do not
14191 # link with -lc, and that would cause any symbols used from libc to
14192 # always be unresolved, which means just about no library would
14193 # ever link correctly. If we're not using GNU ld we use -z text
14194 # though, which does catch some bad symbols but isn't as heavy-handed
14196 no_undefined_flag_CXX='${wl}-z,text'
14197 allow_undefined_flag_CXX='${wl}-z,nodefs'
14198 archive_cmds_need_lc_CXX=no
14199 hardcode_shlibpath_var_CXX=no
14200 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201 hardcode_libdir_separator_CXX=':'
14202 link_all_deplibs_CXX=yes
14203 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204 runpath_var='LD_RUN_PATH'
14206 case $cc_basename in
14208 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 case $cc_basename in
14221 # NonStop-UX NCC 3.20
14222 # FIXME: insert proper C++ library support
14226 # FIXME: insert proper C++ library support
14233 # FIXME: insert proper C++ library support
14238 # FIXME: insert proper C++ library support
14243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245 test "$ld_shlibs_CXX" = no && can_build_shared=no
14251 ## There is no encapsulation within the following macros, do not change
14252 ## the running order or otherwise move them around unless you know exactly
14253 ## what you are doing...
14254 # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14259 compiler_lib_search_path_CXX=
14261 cat > conftest.$ac_ext <<_LT_EOF
14265 Foo (void) { a = 0; }
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; then
14276 # Parse the compiler output and extract the necessary
14277 # objects, libraries and library flags.
14279 # Sentinel used to keep track of whether or not we are before
14280 # the conftest object file.
14281 pre_test_object_deps_done=no
14283 for p in `eval "$output_verbose_link_cmd"`; do
14287 # Some compilers place space between "-{L,R}" and the path.
14288 # Remove the space.
14289 if test $p = "-L" ||
14290 test $p = "-R"; then
14297 if test "$pre_test_object_deps_done" = no; then
14300 # Internal compiler library paths should come after those
14301 # provided the user. The postdeps already come after the
14302 # user supplied libs so there is no need to process them.
14303 if test -z "$compiler_lib_search_path_CXX"; then
14304 compiler_lib_search_path_CXX="${prev}${p}"
14306 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14309 # The "-l" case would never come before the object being
14310 # linked, so don't bother handling this case.
14313 if test -z "$postdeps_CXX"; then
14314 postdeps_CXX="${prev}${p}"
14316 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14322 # This assumes that the test object file only shows up
14323 # once in the compiler output.
14324 if test "$p" = "conftest.$objext"; then
14325 pre_test_object_deps_done=yes
14329 if test "$pre_test_object_deps_done" = no; then
14330 if test -z "$predep_objects_CXX"; then
14331 predep_objects_CXX="$p"
14333 predep_objects_CXX="$predep_objects_CXX $p"
14336 if test -z "$postdep_objects_CXX"; then
14337 postdep_objects_CXX="$p"
14339 postdep_objects_CXX="$postdep_objects_CXX $p"
14344 *) ;; # Ignore the rest.
14352 echo "libtool.m4: error: problem compiling CXX test program"
14355 $RM -f confest.$objext
14357 # PORTME: override above test on systems where it is broken
14360 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361 # hack all around it, let's just trust "g++" to DTRT.
14362 predep_objects_CXX=
14363 postdep_objects_CXX=
14368 case `$CC -V 2>&1 | sed 5q` in
14372 # The more standards-conforming stlport4 library is
14373 # incompatible with the Cstd library. Avoid specifying
14374 # it if it's in CXXFLAGS. Ignore libCrun as
14375 # -library=stlport4 depends on it.
14376 case " $CXX $CXXFLAGS " in
14377 *" -library=stlport4 "*)
14378 solaris_use_stlport4=yes
14382 if test "$solaris_use_stlport4" != yes; then
14383 postdeps_CXX='-library=Cstd -library=Crun'
14390 case $cc_basename in
14392 # The more standards-conforming stlport4 library is
14393 # incompatible with the Cstd library. Avoid specifying
14394 # it if it's in CXXFLAGS. Ignore libCrun as
14395 # -library=stlport4 depends on it.
14396 case " $CXX $CXXFLAGS " in
14397 *" -library=stlport4 "*)
14398 solaris_use_stlport4=yes
14402 # Adding this requires a known-good setup of shared libraries for
14403 # Sun compiler versions before 5.6, else PIC objects from an old
14404 # archive will be linked into the output, leading to subtle bugs.
14405 if test "$solaris_use_stlport4" != yes; then
14406 postdeps_CXX='-library=Cstd -library=Crun'
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14417 compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14452 lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14459 # C++ specific cases for pic, static, wl, etc.
14460 if test "$GXX" = yes; then
14461 lt_prog_compiler_wl_CXX='-Wl,'
14462 lt_prog_compiler_static_CXX='-static'
14466 # All AIX code is PIC.
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static_CXX='-Bstatic'
14476 # see comment about AmigaOS4 .so support
14477 lt_prog_compiler_pic_CXX='-fPIC'
14480 # FIXME: we need at least 68020 code to build shared libraries, but
14481 # adding the `-m68020' flag to GCC prevents building anything better,
14483 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489 # PIC is the default for these OSes.
14491 mingw* | cygwin* | os2* | pw32* | cegcc*)
14492 # This hack is so that the source file can tell whether it is being
14493 # built for inclusion in a dll (and should export symbols for example).
14494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495 # (--disable-auto-import) libraries
14496 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14498 darwin* | rhapsody*)
14499 # PIC is the default on this platform
14500 # Common symbols not allowed in MH_DYLIB files
14501 lt_prog_compiler_pic_CXX='-fno-common'
14504 # DJGPP does not support shared libraries at all
14505 lt_prog_compiler_pic_CXX=
14508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509 # Instead, we relocate shared libraries at runtime.
14512 if test -d /usr/nec; then
14513 lt_prog_compiler_pic_CXX=-Kconform_pic
14517 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14519 # sets the default TLS model and affects inlining.
14524 lt_prog_compiler_pic_CXX='-fPIC'
14529 # QNX uses GNU C++, but need to define -shared option too, otherwise
14530 # it will coredump.
14531 lt_prog_compiler_pic_CXX='-fPIC -shared'
14534 lt_prog_compiler_pic_CXX='-fPIC'
14540 # All AIX code is PIC.
14541 if test "$host_cpu" = ia64; then
14542 # AIX 5 now supports IA64 processor
14543 lt_prog_compiler_static_CXX='-Bstatic'
14545 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14549 case $cc_basename in
14551 # Green Hills C++ Compiler
14552 # _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"
14557 case $cc_basename in
14559 lt_prog_compiler_pic_CXX='-KPIC'
14562 # Green Hills C++ Compiler
14563 lt_prog_compiler_pic_CXX='-pic'
14569 freebsd* | dragonfly*)
14570 # FreeBSD uses GNU C++
14572 hpux9* | hpux10* | hpux11*)
14573 case $cc_basename in
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577 if test "$host_cpu" != ia64; then
14578 lt_prog_compiler_pic_CXX='+Z'
14582 lt_prog_compiler_wl_CXX='-Wl,'
14583 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14589 lt_prog_compiler_pic_CXX='+Z'
14598 # This is c89, which is MS Visual C++ (no shared libs)
14599 # Anyone wants to do a port?
14601 irix5* | irix6* | nonstopux*)
14602 case $cc_basename in
14604 lt_prog_compiler_wl_CXX='-Wl,'
14605 lt_prog_compiler_static_CXX='-non_shared'
14606 # CC pic flag -KPIC is the default.
14612 linux* | k*bsd*-gnu)
14613 case $cc_basename in
14616 lt_prog_compiler_wl_CXX='--backend -Wl,'
14617 lt_prog_compiler_pic_CXX='-fPIC'
14620 # old Intel C++ for x86_64 which still supported -KPIC.
14621 lt_prog_compiler_wl_CXX='-Wl,'
14622 lt_prog_compiler_pic_CXX='-KPIC'
14623 lt_prog_compiler_static_CXX='-static'
14626 # Intel C++, used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-fPIC'
14630 lt_prog_compiler_static_CXX='-static'
14633 # Portland Group C++ compiler
14634 lt_prog_compiler_wl_CXX='-Wl,'
14635 lt_prog_compiler_pic_CXX='-fpic'
14636 lt_prog_compiler_static_CXX='-Bstatic'
14640 # Make sure the PIC flag is empty. It appears that all Alpha
14641 # Linux and Compaq Tru64 Unix objects are PIC.
14642 lt_prog_compiler_pic_CXX=
14643 lt_prog_compiler_static_CXX='-non_shared'
14646 # IBM XL 8.0 on PPC
14647 lt_prog_compiler_wl_CXX='-Wl,'
14648 lt_prog_compiler_pic_CXX='-qpic'
14649 lt_prog_compiler_static_CXX='-qstaticlink'
14652 case `$CC -V 2>&1 | sed 5q` in
14655 lt_prog_compiler_pic_CXX='-KPIC'
14656 lt_prog_compiler_static_CXX='-Bstatic'
14657 lt_prog_compiler_wl_CXX='-Qoption ld '
14668 case $cc_basename in
14670 lt_prog_compiler_pic_CXX='-W c,exportall'
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic_CXX='-fPIC -shared'
14683 osf3* | osf4* | osf5*)
14684 case $cc_basename in
14686 lt_prog_compiler_wl_CXX='--backend -Wl,'
14689 # Rational C++ 2.4.1
14690 lt_prog_compiler_pic_CXX='-pic'
14693 # Digital/Compaq C++
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 # Make sure the PIC flag is empty. It appears that all Alpha
14696 # Linux and Compaq Tru64 Unix objects are PIC.
14697 lt_prog_compiler_pic_CXX=
14698 lt_prog_compiler_static_CXX='-non_shared'
14707 case $cc_basename in
14709 # Sun C++ 4.2, 5.x and Centerline C++
14710 lt_prog_compiler_pic_CXX='-KPIC'
14711 lt_prog_compiler_static_CXX='-Bstatic'
14712 lt_prog_compiler_wl_CXX='-Qoption ld '
14715 # Green Hills C++ Compiler
14716 lt_prog_compiler_pic_CXX='-PIC'
14723 case $cc_basename in
14726 lt_prog_compiler_pic_CXX='-pic'
14727 lt_prog_compiler_static_CXX='-Bstatic'
14731 lt_prog_compiler_pic_CXX='-pic'
14737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738 case $cc_basename in
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_pic_CXX='-KPIC'
14742 lt_prog_compiler_static_CXX='-Bstatic'
14747 case $cc_basename in
14749 # NonStop-UX NCC 3.20
14750 lt_prog_compiler_pic_CXX='-KPIC'
14759 lt_prog_compiler_can_build_shared_CXX=no
14765 # For platforms which do not support PIC, -DPIC is meaningless:
14767 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14779 # Check to make sure the PIC flag actually works.
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_prog_compiler_pic_works_CXX=no
14788 ac_outfile=conftest.$ac_objext
14789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791 # Insert the option either (1) after the last *FLAGS variable, or
14792 # (2) before a word containing "conftest.", or (3) at the end.
14793 # Note that $ac_compile itself does not contain backslashes and begins
14794 # with a dollar sign (not a hyphen), so the echo should work correctly.
14795 # The option is referenced via a variable to avoid confusing sed.
14796 lt_compile=`echo "$ac_compile" | $SED \
14797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799 -e 's:$: $lt_compiler_flag:'`
14800 (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801 (eval "$lt_compile" 2>conftest.err)
14803 cat conftest.err >&5
14804 echo "$as_me:14804: \$? = $ac_status" >&5
14805 if (exit $ac_status) && test -s "$ac_outfile"; then
14806 # The compiler can only warn and ignore the option if not recognized
14807 # So say no if there are warnings other than the usual output.
14808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811 lt_cv_prog_compiler_pic_works_CXX=yes
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821 case $lt_prog_compiler_pic_CXX in
14823 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14826 lt_prog_compiler_pic_CXX=
14827 lt_prog_compiler_can_build_shared_CXX=no
14835 # Check to make sure the static flag actually works.
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 lt_cv_prog_compiler_static_works_CXX=no
14844 save_LDFLAGS="$LDFLAGS"
14845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848 # The linker can only warn and ignore the option if not recognized
14849 # So say no if there are warnings
14850 if test -s conftest.err; then
14851 # Append any errors to the config.log.
14852 cat conftest.err 1>&5
14853 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855 if diff conftest.exp conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_static_works_CXX=yes
14859 lt_cv_prog_compiler_static_works_CXX=yes
14863 LDFLAGS="$save_LDFLAGS"
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14872 lt_prog_compiler_static_CXX=
14878 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 lt_cv_prog_compiler_c_o_CXX=no
14884 $RM -r conftest 2>/dev/null
14888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="-o out/conftest2.$ac_objext"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>out/conftest.err)
14902 cat out/conftest.err >&5
14903 echo "$as_me:14903: \$? = $ac_status" >&5
14904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings
14908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911 lt_cv_prog_compiler_c_o_CXX=yes
14916 # SGI C++ compiler will create directory out/ii_files/ for
14917 # template instantiation
14918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919 $RM out/* && rmdir out
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 lt_cv_prog_compiler_c_o_CXX=no
14936 $RM -r conftest 2>/dev/null
14940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="-o out/conftest2.$ac_objext"
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 lt_compile=`echo "$ac_compile" | $SED \
14948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950 -e 's:$: $lt_compiler_flag:'`
14951 (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952 (eval "$lt_compile" 2>out/conftest.err)
14954 cat out/conftest.err >&5
14955 echo "$as_me:14955: \$? = $ac_status" >&5
14956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings
14960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963 lt_cv_prog_compiler_c_o_CXX=yes
14968 # SGI C++ compiler will create directory out/ii_files/ for
14969 # template instantiation
14970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971 $RM out/* && rmdir out
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985 # do not overwrite the value of need_locks provided by the user
14986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992 ln conftest.a conftest.b 2>&5 || hard_links=no
14993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994 { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996 if test "$hard_links" = no; then
14997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15013 # If we're using GNU nm, then we don't want the "-C" option.
15014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016 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'
15018 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'
15022 export_symbols_cmds_CXX="$ltdll_cmds"
15024 cygwin* | mingw* | cegcc*)
15025 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'
15028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15037 with_gnu_ld_CXX=$with_gnu_ld
15045 # Do we need to explicitly link libc?
15047 case "x$archive_cmds_need_lc_CXX" in
15049 # Assume -lc should be added
15050 archive_cmds_need_lc_CXX=yes
15052 if test "$enable_shared" = yes && test "$GCC" = yes; then
15053 case $archive_cmds_CXX in
15055 # FIXME: we may have to deal with multi-command sequences.
15058 # Test whether the compiler implicitly links with -lc since on some
15059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060 # to ld, don't add -lc before -lgcc.
15061 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } 2>conftest.err; then
15073 libobjs=conftest.$ac_objext
15075 wl=$lt_prog_compiler_wl_CXX
15076 pic_flag=$lt_prog_compiler_pic_CXX
15082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083 allow_undefined_flag_CXX=
15084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }
15090 archive_cmds_need_lc_CXX=no
15092 archive_cmds_need_lc_CXX=yes
15094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15096 cat conftest.err 1>&5
15099 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15173 library_names_spec=
15174 libname_spec='lib$name'
15178 postuninstall_cmds=
15182 shlibpath_overrides_runpath=unknown
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197 shlibpath_var=LIBPATH
15199 # AIX 3 has no versioning support, so we append a major version to the name.
15200 soname_spec='${libname}${release}${shared_ext}$major'
15207 hardcode_into_libs=yes
15208 if test "$host_cpu" = ia64; then
15209 # AIX 5 supports IA64
15210 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15213 # With GCC up to 2.95.x, collect2 would create an import file
15214 # for dependence libraries. The import file would start with
15215 # the line `#! .'. This would cause the generated library to
15216 # depend on `.', always an invalid library. This was fixed in
15217 # development snapshots of GCC prior to 3.0.
15219 aix4 | aix4.[01] | aix4.[01].*)
15220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15225 can_build_shared=no
15229 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230 # soname into executable. Probably we can add versioning support to
15231 # collect2, so additional links can be useful in future.
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234 # instead of lib<name>.a to let people know that these are not
15235 # typical AIX shared libraries.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 # We preserve .a as extension for shared libraries through AIX4.2
15239 # and later when we are not doing run time linking.
15240 library_names_spec='${libname}${release}.a $libname.a'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15243 shlibpath_var=LIBPATH
15250 # Since July 2007 AmigaOS4 officially supports .so libraries.
15251 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 library_names_spec='$libname.ixlibrary $libname.a'
15256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257 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'
15263 library_names_spec='${libname}${shared_ext}'
15264 dynamic_linker="$host_os ld.so"
15265 shlibpath_var=LIBRARY_PATH
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277 # the default ld.so.conf also contains /usr/contrib/lib and
15278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279 # libtool to hard-code these into programs
15282 cygwin* | mingw* | pw32* | cegcc*)
15283 version_type=windows
15288 case $GCC,$host_os in
15289 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290 library_names_spec='$libname.dll.a'
15291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292 postinstall_cmds='base_file=`basename \${file}`~
15293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294 dldir=$destdir/`dirname \$dlpath`~
15295 test -d \$dldir || mkdir -p \$dldir~
15296 $install_prog $dir/$dlname \$dldir/$dlname~
15297 chmod a+x \$dldir/$dlname~
15298 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302 dlpath=$dir/\$dldll~
15304 shlibpath_overrides_runpath=yes
15308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15313 # MinGW DLLs use traditional 'lib' prefix
15314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317 # It is most probably a Windows format PATH printed by
15318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319 # path with ; separators, and with drive letters. We can handle the
15320 # drive letters (cygwin fileutils understands them), so leave them,
15321 # especially as we might pass files found there to a mingw objdump,
15322 # which wouldn't understand a cygwinified path. Ahh.
15323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15329 # pw32 DLLs use 'pw' prefix rather than 'lib'
15330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339 dynamic_linker='Win32 ld.exe'
15340 # FIXME: first we should search . and the directory the executable is in
15344 darwin* | rhapsody*)
15345 dynamic_linker="$host_os dyld"
15346 version_type=darwin
15349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350 soname_spec='${libname}${release}${major}$shared_ext'
15351 shlibpath_overrides_runpath=yes
15352 shlibpath_var=DYLD_LIBRARY_PATH
15353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15371 freebsd* | dragonfly*)
15372 # DragonFly does not have aout. When/if they implement a new
15373 # versioning mechanism, adjust this.
15374 if test -x /usr/bin/objformat; then
15375 objformat=`/usr/bin/objformat`
15378 freebsd[123]*) objformat=aout ;;
15379 *) objformat=elf ;;
15382 version_type=freebsd-$objformat
15383 case $version_type in
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15399 freebsd3.[01]* | freebsdelf3.[01]*)
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15408 *) # from 4.6 on, and DragonFly
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 hardcode_into_libs=yes
15425 hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468 postinstall_cmds='chmod 555 $lib'
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15483 irix5* | irix6* | nonstopux*)
15485 nonstopux*) version_type=nonstopux ;;
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 # Some binutils ld are patched to set DT_RUNPATH
15536 save_LDFLAGS=$LDFLAGS
15537 save_libdir=$libdir
15538 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_link") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } && {
15569 test -z "$ac_cxx_werror_flag" ||
15570 test ! -s conftest.err
15571 } && test -s conftest$ac_exeext &&
15572 $as_test_x conftest$ac_exeext; then
15573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574 shlibpath_overrides_runpath=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LDFLAGS=$save_LDFLAGS
15587 libdir=$save_libdir
15589 # This implies no fast_install, which is unacceptable.
15590 # Some rework will be needed to allow for fast_install
15591 # before this can be enabled.
15592 hardcode_into_libs=yes
15594 # Append ld.so.conf contents to the search path
15595 if test -f /etc/ld.so.conf; then
15596 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' ' '`
15597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600 # We used to test for /lib/ld.so.1 and disable shared libraries on
15601 # powerpc, because MkLinux only supported shared libraries with the
15602 # GNU dynamic linker. Since this was broken with cross compilers,
15603 # most powerpc-linux boxes support dynamic linking these days and
15604 # people can always --disable-shared, the test was removed, and we
15605 # assume the GNU/Linux dynamic linker is in use.
15606 dynamic_linker='GNU/Linux ld.so'
15613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616 dynamic_linker='NetBSD (a.out) ld.so'
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 dynamic_linker='NetBSD ld.elf_so'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=yes
15624 hardcode_into_libs=yes
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=no
15642 hardcode_into_libs=yes
15643 dynamic_linker='ldqnx.so'
15648 sys_lib_dlsearch_path_spec="/usr/lib"
15650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15653 *) need_version=no ;;
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15660 openbsd2.[89] | openbsd2.[89].*)
15661 shlibpath_overrides_runpath=no
15664 shlibpath_overrides_runpath=yes
15668 shlibpath_overrides_runpath=yes
15673 libname_spec='$name'
15676 library_names_spec='$libname${shared_ext} $libname.a'
15677 dynamic_linker='OS/2 ld.exe'
15678 shlibpath_var=LIBPATH
15681 osf3* | osf4* | osf5*)
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15705 # ldd complains unless libraries are executable
15706 postinstall_cmds='chmod +x $lib'
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 if test "$with_gnu_ld" = yes; then
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 case $host_vendor in
15728 shlibpath_overrides_runpath=no
15730 runpath_var=LD_RUN_PATH
15738 shlibpath_overrides_runpath=no
15739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15745 if test -d /usr/nec ;then
15747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748 soname_spec='$libname${shared_ext}.$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754 version_type=freebsd-elf
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=yes
15761 hardcode_into_libs=yes
15762 if test "$with_gnu_ld" = yes; then
15763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 sys_lib_dlsearch_path_spec='/usr/lib'
15776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=no
15783 hardcode_into_libs=yes
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852 test -n "$runpath_var_CXX" ||
15853 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15855 # We can hardcode non-existent directories.
15856 if test "$hardcode_direct_CXX" != no &&
15857 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858 # have to relink, otherwise we might link with an installed library
15859 # when we should be linking with a yet-to-be-installed one
15860 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861 test "$hardcode_minus_L_CXX" != no; then
15862 # Linking always hardcodes the temporary library directory.
15863 hardcode_action_CXX=relink
15865 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866 hardcode_action_CXX=immediate
15869 # We cannot hardcode anything, or else we can only hardcode existing
15871 hardcode_action_CXX=unsupported
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15876 if test "$hardcode_action_CXX" = relink ||
15877 test "$inherit_rpath_CXX" = yes; then
15878 # Fast installation is not supported
15879 enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881 test "$enable_shared" = no; then
15882 # Fast installation is not necessary
15883 enable_fast_install=needless
15892 fi # test -n "$compiler"
15898 with_gnu_ld=$lt_save_with_gnu_ld
15899 lt_cv_path_LDCXX=$lt_cv_path_LD
15900 lt_cv_path_LD=$lt_save_path_LD
15901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15923 ac_config_commands="$ac_config_commands libtool"
15928 # Only expand once:
15933 if test x$use_libtool != xno; then
15934 DEFAULT_OBJECT_TYPE=".lo"
15935 DEFAULT_ARCHIVE_TYPE=".la"
15936 DEFAULT_SHARED_OBJECT_TYPE=".la"
15937 LIBTOOL="\$(LIBTOOL)"
15938 LIBTOOL_INSTALL_TARGET="libtool-install"
15939 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940 LIBTOOL_CLEAN_TARGET="libtool-clean"
15941 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15943 DEFAULT_OBJECT_TYPE=".o"
15944 DEFAULT_ARCHIVE_TYPE=".a"
15945 DEFAULT_SHARED_OBJECT_TYPE=".so"
15946 LIBTOOL="# \$(LIBTOOL)"
15947 LIBTOOL_INSTALL_TARGET=""
15948 LIBTOOL_UNINSTALL_TARGET=""
15949 LIBTOOL_CLEAN_TARGET=""
15950 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15962 # Check whether --enable-includes was given.
15963 if test "${enable_includes+set}" = set; then
15964 enableval=$enable_includes;
15965 if test x$enableval = xyes; then
15966 install_includes=yes
15974 if test x$use_libtool != xno -a x$install_includes = xyes; then
15975 INCLUDE_INSTALL_TARGET="install-includes"
15976 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15978 INCLUDE_INSTALL_TARGET=""
15979 INCLUDE_UNINSTALL_TARGET=""
15985 { echo "$as_me:$LINENO: checking host system type" >&5
15986 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15987 if test "${ac_cv_host+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 if test "x$host_alias" = x; then
15991 ac_cv_host=$ac_cv_build
15993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15994 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15996 { (exit 1); exit 1; }; }
16000 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16001 echo "${ECHO_T}$ac_cv_host" >&6; }
16002 case $ac_cv_host in
16004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16005 echo "$as_me: error: invalid value of canonical host" >&2;}
16006 { (exit 1); exit 1; }; };;
16009 ac_save_IFS=$IFS; IFS='-'
16015 # Remember, the first character of IFS is used to create $*,
16016 # except with old shells:
16019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16023 *cygwin* ) CYGWIN=yes;;
16027 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16033 HAVE_SUN_OS_FALSE='#'
16035 HAVE_SUN_OS_TRUE='#'
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SUN_OS 1
16047 HAVE_SUN_OS_FALSE='#'
16049 HAVE_SUN_OS_TRUE='#'
16054 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16060 HAVE_OSF1_OS_FALSE='#'
16062 HAVE_OSF1_OS_TRUE='#'
16063 HAVE_OSF1_OS_FALSE=
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_OSF1_OS 1
16074 HAVE_OSF1_OS_FALSE='#'
16076 HAVE_OSF1_OS_TRUE='#'
16077 HAVE_OSF1_OS_FALSE=
16081 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16087 HAVE_AIX_OS_FALSE='#'
16089 HAVE_AIX_OS_TRUE='#'
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_AIX_OS 1
16101 HAVE_AIX_OS_FALSE='#'
16103 HAVE_AIX_OS_TRUE='#'
16108 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16114 HAVE_HPUX_OS_FALSE='#'
16116 HAVE_HPUX_OS_TRUE='#'
16117 HAVE_HPUX_OS_FALSE=
16119 cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_HPUX_OS 1
16128 HAVE_HPUX_OS_FALSE='#'
16130 HAVE_HPUX_OS_TRUE='#'
16131 HAVE_HPUX_OS_FALSE=
16135 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16140 HAVE_LINUX_OS_TRUE=
16141 HAVE_LINUX_OS_FALSE='#'
16143 HAVE_LINUX_OS_TRUE='#'
16144 HAVE_LINUX_OS_FALSE=
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_LINUX_OS 1
16154 HAVE_LINUX_OS_TRUE=
16155 HAVE_LINUX_OS_FALSE='#'
16157 HAVE_LINUX_OS_TRUE='#'
16158 HAVE_LINUX_OS_FALSE=
16162 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16167 HAVE_FREEBSD_OS_TRUE=
16168 HAVE_FREEBSD_OS_FALSE='#'
16170 HAVE_FREEBSD_OS_TRUE='#'
16171 HAVE_FREEBSD_OS_FALSE=
16173 cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_FREEBSD_OS 1
16181 HAVE_FREEBSD_OS_TRUE=
16182 HAVE_FREEBSD_OS_FALSE='#'
16184 HAVE_FREEBSD_OS_TRUE='#'
16185 HAVE_FREEBSD_OS_FALSE=
16189 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16194 HAVE_NETBSD_OS_TRUE=
16195 HAVE_NETBSD_OS_FALSE='#'
16197 HAVE_NETBSD_OS_TRUE='#'
16198 HAVE_NETBSD_OS_FALSE=
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_NETBSD_OS 1
16208 HAVE_NETBSD_OS_TRUE=
16209 HAVE_NETBSD_OS_FALSE='#'
16211 HAVE_NETBSD_OS_TRUE='#'
16212 HAVE_NETBSD_OS_FALSE=
16216 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16221 HAVE_OPENBSD_OS_TRUE=
16222 HAVE_OPENBSD_OS_FALSE='#'
16224 HAVE_OPENBSD_OS_TRUE='#'
16225 HAVE_OPENBSD_OS_FALSE=
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_OPENBSD_OS 1
16235 HAVE_OPENBSD_OS_TRUE=
16236 HAVE_OPENBSD_OS_FALSE='#'
16238 HAVE_OPENBSD_OS_TRUE='#'
16239 HAVE_OPENBSD_OS_FALSE=
16243 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16249 HAVE_BSDI_OS_FALSE='#'
16251 HAVE_BSDI_OS_TRUE='#'
16252 HAVE_BSDI_OS_FALSE=
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_BSDI_OS 1
16263 HAVE_BSDI_OS_FALSE='#'
16265 HAVE_BSDI_OS_TRUE='#'
16266 HAVE_BSDI_OS_FALSE=
16270 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16276 HAVE_SGI_OS_FALSE='#'
16278 HAVE_SGI_OS_TRUE='#'
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_SGI_OS 1
16290 HAVE_SGI_OS_FALSE='#'
16292 HAVE_SGI_OS_TRUE='#'
16297 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16303 HAVE_IRIX_OS_FALSE='#'
16305 HAVE_IRIX_OS_TRUE='#'
16306 HAVE_IRIX_OS_FALSE=
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_IRIX_OS 1
16317 HAVE_IRIX_OS_FALSE='#'
16319 HAVE_IRIX_OS_TRUE='#'
16320 HAVE_IRIX_OS_FALSE=
16324 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16329 HAVE_DARWIN_OS_TRUE=
16330 HAVE_DARWIN_OS_FALSE='#'
16332 HAVE_DARWIN_OS_TRUE='#'
16333 HAVE_DARWIN_OS_FALSE=
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_DARWIN_OS 1
16343 HAVE_DARWIN_OS_TRUE=
16344 HAVE_DARWIN_OS_FALSE='#'
16346 HAVE_DARWIN_OS_TRUE='#'
16347 HAVE_DARWIN_OS_FALSE=
16352 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16353 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16354 if test "x$DISTNAME" != "x"
16356 echo "distname set to $DISTNAME"
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16384 elif test -f /etc/SuSE-release
16387 elif test -d /etc/SuSEconfig
16390 elif test -f /etc/mandrake-release
16393 elif test -f /etc/whitebox-release
16396 elif test -f /etc/redhat-release
16399 elif test -f /etc/gentoo-release
16402 elif test -f /etc/debian_version
16405 elif test -f /etc/slackware-version
16408 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16411 elif test -f /etc/engarde-version
16414 elif test "$CYGWIN" = yes
16417 cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_CYGWIN 1
16424 { echo "$as_me:$LINENO: result: done" >&5
16425 echo "${ECHO_T}done" >&6; }
16428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.make <<\_ACEOF
16437 @echo '@@@%%%=$(MAKE)=@@@%%%'
16439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16441 *@@@%%%=?*=@@@%%%*)
16442 eval ac_cv_prog_make_${ac_make}_set=yes;;
16444 eval ac_cv_prog_make_${ac_make}_set=no;;
16446 rm -f conftest.make
16448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16449 { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16453 { echo "$as_me:$LINENO: result: no" >&5
16454 echo "${ECHO_T}no" >&6; }
16455 SET_MAKE="MAKE=${MAKE-make}"
16461 if test -n "$ac_aux_dir"; then
16462 case "$ac_aux_dir" in
16463 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16464 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16467 if test -z "$MKINSTALLDIRS"; then
16468 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16473 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16474 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16475 # Check whether --enable-nls was given.
16476 if test "${enable_nls+set}" = set; then
16477 enableval=$enable_nls; USE_NLS=$enableval
16482 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16483 echo "${ECHO_T}$USE_NLS" >&6; }
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493 echo "#! /bin/sh" >conf$$.sh
16494 echo "exit 0" >>conf$$.sh
16496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16504 # Find out how to test for executable files. Don't use a zero-byte file,
16505 # as systems may use methods other than mode bits to determine executability.
16506 cat >conf$$.file <<_ASEOF
16510 chmod +x conf$$.file
16511 if test -x conf$$.file >/dev/null 2>&1; then
16512 ac_executable_p="test -x"
16514 ac_executable_p="test -f"
16518 # Extract the first word of "msgfmt", so it can be a program name with args.
16519 set dummy msgfmt; ac_word=$2
16520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16522 if test "${ac_cv_path_MSGFMT+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16530 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16531 for ac_dir in $PATH; do
16533 test -z "$ac_dir" && ac_dir=.
16534 for ac_exec_ext in '' $ac_executable_extensions; do
16535 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16536 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16537 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16538 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16539 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16546 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16550 MSGFMT="$ac_cv_path_MSGFMT"
16551 if test "$MSGFMT" != ":"; then
16552 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16553 echo "${ECHO_T}$MSGFMT" >&6; }
16555 { echo "$as_me:$LINENO: result: no" >&5
16556 echo "${ECHO_T}no" >&6; }
16559 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16560 set dummy gmsgfmt; ac_word=$2
16561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16563 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16575 test -z "$as_dir" && as_dir=.
16576 for ac_exec_ext in '' $ac_executable_extensions; do
16577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16586 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16590 GMSGFMT=$ac_cv_path_GMSGFMT
16591 if test -n "$GMSGFMT"; then
16592 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16593 echo "${ECHO_T}$GMSGFMT" >&6; }
16595 { echo "$as_me:$LINENO: result: no" >&5
16596 echo "${ECHO_T}no" >&6; }
16602 # Prepare PATH_SEPARATOR.
16603 # The user is always right.
16604 if test "${PATH_SEPARATOR+set}" != set; then
16605 echo "#! /bin/sh" >conf$$.sh
16606 echo "exit 0" >>conf$$.sh
16608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16616 # Find out how to test for executable files. Don't use a zero-byte file,
16617 # as systems may use methods other than mode bits to determine executability.
16618 cat >conf$$.file <<_ASEOF
16622 chmod +x conf$$.file
16623 if test -x conf$$.file >/dev/null 2>&1; then
16624 ac_executable_p="test -x"
16626 ac_executable_p="test -f"
16630 # Extract the first word of "xgettext", so it can be a program name with args.
16631 set dummy xgettext; ac_word=$2
16632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16634 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 case "$XGETTEXT" in
16639 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16643 for ac_dir in $PATH; do
16645 test -z "$ac_dir" && ac_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16648 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16649 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16650 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16651 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16658 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16662 XGETTEXT="$ac_cv_path_XGETTEXT"
16663 if test "$XGETTEXT" != ":"; then
16664 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16665 echo "${ECHO_T}$XGETTEXT" >&6; }
16667 { echo "$as_me:$LINENO: result: no" >&5
16668 echo "${ECHO_T}no" >&6; }
16674 # Prepare PATH_SEPARATOR.
16675 # The user is always right.
16676 if test "${PATH_SEPARATOR+set}" != set; then
16677 echo "#! /bin/sh" >conf$$.sh
16678 echo "exit 0" >>conf$$.sh
16680 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16688 # Find out how to test for executable files. Don't use a zero-byte file,
16689 # as systems may use methods other than mode bits to determine executability.
16690 cat >conf$$.file <<_ASEOF
16694 chmod +x conf$$.file
16695 if test -x conf$$.file >/dev/null 2>&1; then
16696 ac_executable_p="test -x"
16698 ac_executable_p="test -f"
16702 # Extract the first word of "msgmerge", so it can be a program name with args.
16703 set dummy msgmerge; ac_word=$2
16704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16706 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 case "$MSGMERGE" in
16711 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16714 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16715 for ac_dir in $PATH; do
16717 test -z "$ac_dir" && ac_dir=.
16718 for ac_exec_ext in '' $ac_executable_extensions; do
16719 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16720 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16721 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16722 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16729 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16733 MSGMERGE="$ac_cv_path_MSGMERGE"
16734 if test "$MSGMERGE" != ":"; then
16735 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16736 echo "${ECHO_T}$MSGMERGE" >&6; }
16738 { echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6; }
16743 if test "$GMSGFMT" != ":"; then
16744 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16745 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16748 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16749 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16750 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16755 if test "$XGETTEXT" != ":"; then
16756 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16757 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16760 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16761 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16767 ac_config_commands="$ac_config_commands default-1"
16771 if test "X$prefix" = "XNONE"; then
16772 acl_final_prefix="$ac_default_prefix"
16774 acl_final_prefix="$prefix"
16776 if test "X$exec_prefix" = "XNONE"; then
16777 acl_final_exec_prefix='${prefix}'
16779 acl_final_exec_prefix="$exec_prefix"
16781 acl_save_prefix="$prefix"
16782 prefix="$acl_final_prefix"
16783 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16784 prefix="$acl_save_prefix"
16787 # Check whether --with-gnu-ld was given.
16788 if test "${with_gnu_ld+set}" = set; then
16789 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16794 # Prepare PATH_SEPARATOR.
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797 echo "#! /bin/sh" >conf$$.sh
16798 echo "exit 0" >>conf$$.sh
16800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16808 if test "$GCC" = yes; then
16809 # Check if gcc -print-prog-name=ld gives a path.
16810 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16811 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16814 # gcc leaves a trailing carriage return which upsets mingw
16815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16820 # Accept absolute paths.
16821 [\\/]* | [A-Za-z]:[\\/]*)
16822 re_direlt='/[^/][^/]*/\.\./'
16823 # Canonicalize the path of ld
16824 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16826 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16828 test -z "$LD" && LD="$ac_prog"
16831 # If it fails, then pretend we aren't using GCC.
16835 # If it is relative, then search for the first ld in PATH.
16836 with_gnu_ld=unknown
16839 elif test "$with_gnu_ld" = yes; then
16840 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16843 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16846 if test "${acl_cv_path_LD+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 if test -z "$LD"; then
16850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16851 for ac_dir in $PATH; do
16852 test -z "$ac_dir" && ac_dir=.
16853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16854 acl_cv_path_LD="$ac_dir/$ac_prog"
16855 # Check to see if the program is GNU ld. I'd rather use --version,
16856 # but apparently some GNU ld's only accept -v.
16857 # Break only if it was the GNU/non-GNU ld that we prefer.
16858 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16859 *GNU* | *'with BFD'*)
16860 test "$with_gnu_ld" != no && break ;;
16862 test "$with_gnu_ld" != yes && break ;;
16868 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16872 LD="$acl_cv_path_LD"
16873 if test -n "$LD"; then
16874 { echo "$as_me:$LINENO: result: $LD" >&5
16875 echo "${ECHO_T}$LD" >&6; }
16877 { echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6; }
16880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16882 { (exit 1); exit 1; }; }
16883 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16885 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16889 case `$LD -v 2>&1 </dev/null` in
16890 *GNU* | *'with BFD'*)
16891 acl_cv_prog_gnu_ld=yes ;;
16893 acl_cv_prog_gnu_ld=no ;;
16896 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16897 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16898 with_gnu_ld=$acl_cv_prog_gnu_ld
16903 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16904 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16905 if test "${acl_cv_rpath+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16910 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16912 rm -f ./conftest.sh
16916 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16917 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16919 libext="$acl_cv_libext"
16920 shlibext="$acl_cv_shlibext"
16921 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16922 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16923 hardcode_direct="$acl_cv_hardcode_direct"
16924 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16925 # Check whether --enable-rpath was given.
16926 if test "${enable_rpath+set}" = set; then
16927 enableval=$enable_rpath; :
16941 acl_save_prefix="$prefix"
16942 prefix="$acl_final_prefix"
16943 acl_save_exec_prefix="$exec_prefix"
16944 exec_prefix="$acl_final_exec_prefix"
16946 eval additional_includedir=\"$includedir\"
16947 eval additional_libdir=\"$libdir\"
16949 exec_prefix="$acl_save_exec_prefix"
16950 prefix="$acl_save_prefix"
16953 # Check whether --with-libiconv-prefix was given.
16954 if test "${with_libiconv_prefix+set}" = set; then
16955 withval=$with_libiconv_prefix;
16956 if test "X$withval" = "Xno"; then
16959 if test "X$withval" = "X"; then
16961 acl_save_prefix="$prefix"
16962 prefix="$acl_final_prefix"
16963 acl_save_exec_prefix="$exec_prefix"
16964 exec_prefix="$acl_final_exec_prefix"
16966 eval additional_includedir=\"$includedir\"
16967 eval additional_libdir=\"$libdir\"
16969 exec_prefix="$acl_save_exec_prefix"
16970 prefix="$acl_save_prefix"
16973 additional_includedir="$withval/include"
16974 additional_libdir="$withval/lib"
16985 names_already_handled=
16986 names_next_round='iconv '
16987 while test -n "$names_next_round"; do
16988 names_this_round="$names_next_round"
16990 for name in $names_this_round; do
16992 for n in $names_already_handled; do
16993 if test "$n" = "$name"; then
16994 already_handled=yes
16998 if test -z "$already_handled"; then
16999 names_already_handled="$names_already_handled $name"
17000 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17001 eval value=\"\$HAVE_LIB$uppername\"
17002 if test -n "$value"; then
17003 if test "$value" = yes; then
17004 eval value=\"\$LIB$uppername\"
17005 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17006 eval value=\"\$LTLIB$uppername\"
17007 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17016 if test $use_additional = yes; then
17017 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17018 found_dir="$additional_libdir"
17019 found_so="$additional_libdir/lib$name.$shlibext"
17020 if test -f "$additional_libdir/lib$name.la"; then
17021 found_la="$additional_libdir/lib$name.la"
17024 if test -f "$additional_libdir/lib$name.$libext"; then
17025 found_dir="$additional_libdir"
17026 found_a="$additional_libdir/lib$name.$libext"
17027 if test -f "$additional_libdir/lib$name.la"; then
17028 found_la="$additional_libdir/lib$name.la"
17033 if test "X$found_dir" = "X"; then
17034 for x in $LDFLAGS $LTLIBICONV; do
17036 acl_save_prefix="$prefix"
17037 prefix="$acl_final_prefix"
17038 acl_save_exec_prefix="$exec_prefix"
17039 exec_prefix="$acl_final_exec_prefix"
17041 exec_prefix="$acl_save_exec_prefix"
17042 prefix="$acl_save_prefix"
17046 dir=`echo "X$x" | sed -e 's/^X-L//'`
17047 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17049 found_so="$dir/lib$name.$shlibext"
17050 if test -f "$dir/lib$name.la"; then
17051 found_la="$dir/lib$name.la"
17054 if test -f "$dir/lib$name.$libext"; then
17056 found_a="$dir/lib$name.$libext"
17057 if test -f "$dir/lib$name.la"; then
17058 found_la="$dir/lib$name.la"
17064 if test "X$found_dir" != "X"; then
17069 if test "X$found_dir" != "X"; then
17070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17071 if test "X$found_so" != "X"; then
17072 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076 for x in $ltrpathdirs; do
17077 if test "X$x" = "X$found_dir"; then
17082 if test -z "$haveit"; then
17083 ltrpathdirs="$ltrpathdirs $found_dir"
17085 if test "$hardcode_direct" = yes; then
17086 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17088 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17091 for x in $rpathdirs; do
17092 if test "X$x" = "X$found_dir"; then
17097 if test -z "$haveit"; then
17098 rpathdirs="$rpathdirs $found_dir"
17102 for x in $LDFLAGS $LIBICONV; do
17104 acl_save_prefix="$prefix"
17105 prefix="$acl_final_prefix"
17106 acl_save_exec_prefix="$exec_prefix"
17107 exec_prefix="$acl_final_exec_prefix"
17109 exec_prefix="$acl_save_exec_prefix"
17110 prefix="$acl_save_prefix"
17112 if test "X$x" = "X-L$found_dir"; then
17117 if test -z "$haveit"; then
17118 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17120 if test "$hardcode_minus_L" != no; then
17121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17129 if test "X$found_a" != "X"; then
17130 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17135 additional_includedir=
17136 case "$found_dir" in
17138 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17139 additional_includedir="$basedir/include"
17142 if test "X$additional_includedir" != "X"; then
17143 if test "X$additional_includedir" != "X/usr/include"; then
17145 if test "X$additional_includedir" = "X/usr/local/include"; then
17146 if test -n "$GCC"; then
17148 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17152 if test -z "$haveit"; then
17153 for x in $CPPFLAGS $INCICONV; do
17155 acl_save_prefix="$prefix"
17156 prefix="$acl_final_prefix"
17157 acl_save_exec_prefix="$exec_prefix"
17158 exec_prefix="$acl_final_exec_prefix"
17160 exec_prefix="$acl_save_exec_prefix"
17161 prefix="$acl_save_prefix"
17163 if test "X$x" = "X-I$additional_includedir"; then
17168 if test -z "$haveit"; then
17169 if test -d "$additional_includedir"; then
17170 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17176 if test -n "$found_la"; then
17177 save_libdir="$libdir"
17178 case "$found_la" in
17179 */* | *\\*) . "$found_la" ;;
17180 *) . "./$found_la" ;;
17182 libdir="$save_libdir"
17183 for dep in $dependency_libs; do
17186 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17187 if test "X$additional_libdir" != "X/usr/lib"; then
17189 if test "X$additional_libdir" = "X/usr/local/lib"; then
17190 if test -n "$GCC"; then
17192 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17196 if test -z "$haveit"; then
17198 for x in $LDFLAGS $LIBICONV; do
17200 acl_save_prefix="$prefix"
17201 prefix="$acl_final_prefix"
17202 acl_save_exec_prefix="$exec_prefix"
17203 exec_prefix="$acl_final_exec_prefix"
17205 exec_prefix="$acl_save_exec_prefix"
17206 prefix="$acl_save_prefix"
17208 if test "X$x" = "X-L$additional_libdir"; then
17213 if test -z "$haveit"; then
17214 if test -d "$additional_libdir"; then
17215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17219 for x in $LDFLAGS $LTLIBICONV; do
17221 acl_save_prefix="$prefix"
17222 prefix="$acl_final_prefix"
17223 acl_save_exec_prefix="$exec_prefix"
17224 exec_prefix="$acl_final_exec_prefix"
17226 exec_prefix="$acl_save_exec_prefix"
17227 prefix="$acl_save_prefix"
17229 if test "X$x" = "X-L$additional_libdir"; then
17234 if test -z "$haveit"; then
17235 if test -d "$additional_libdir"; then
17236 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17243 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17244 if test "$enable_rpath" != no; then
17246 for x in $rpathdirs; do
17247 if test "X$x" = "X$dir"; then
17252 if test -z "$haveit"; then
17253 rpathdirs="$rpathdirs $dir"
17256 for x in $ltrpathdirs; do
17257 if test "X$x" = "X$dir"; then
17262 if test -z "$haveit"; then
17263 ltrpathdirs="$ltrpathdirs $dir"
17268 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17274 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17281 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17288 if test "X$rpathdirs" != "X"; then
17289 if test -n "$hardcode_libdir_separator"; then
17291 for found_dir in $rpathdirs; do
17292 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17294 acl_save_libdir="$libdir"
17296 eval flag=\"$hardcode_libdir_flag_spec\"
17297 libdir="$acl_save_libdir"
17298 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17300 for found_dir in $rpathdirs; do
17301 acl_save_libdir="$libdir"
17302 libdir="$found_dir"
17303 eval flag=\"$hardcode_libdir_flag_spec\"
17304 libdir="$acl_save_libdir"
17305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17309 if test "X$ltrpathdirs" != "X"; then
17310 for found_dir in $ltrpathdirs; do
17311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17332 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17333 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17334 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 gt_save_CPPFLAGS="$CPPFLAGS"
17338 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17339 gt_save_LIBS="$LIBS"
17340 LIBS="$LIBS -framework CoreFoundation"
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <CFPreferences.h>
17351 CFPreferencesCopyAppValue(NULL, NULL)
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 gt_cv_func_CFPreferencesCopyAppValue=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 gt_cv_func_CFPreferencesCopyAppValue=no
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 CPPFLAGS="$gt_save_CPPFLAGS"
17385 LIBS="$gt_save_LIBS"
17387 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17388 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17396 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17397 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17398 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 gt_save_CPPFLAGS="$CPPFLAGS"
17402 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17403 gt_save_LIBS="$LIBS"
17404 LIBS="$LIBS -framework CoreFoundation"
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 #include <CFLocale.h>
17415 CFLocaleCopyCurrent();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext &&
17437 $as_test_x conftest$ac_exeext; then
17438 gt_cv_func_CFLocaleCopyCurrent=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 gt_cv_func_CFLocaleCopyCurrent=no
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447 conftest$ac_exeext conftest.$ac_ext
17448 CPPFLAGS="$gt_save_CPPFLAGS"
17449 LIBS="$gt_save_LIBS"
17451 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17452 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17453 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CFLOCALECOPYCURRENT 1
17461 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17462 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17468 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17469 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17470 # Check whether --enable-nls was given.
17471 if test "${enable_nls+set}" = set; then
17472 enableval=$enable_nls; USE_NLS=$enableval
17477 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17478 echo "${ECHO_T}$USE_NLS" >&6; }
17487 if test "$USE_NLS" = "yes"; then
17488 gt_use_preinstalled_gnugettext=no
17495 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17496 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17497 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 #include <libintl.h>
17507 extern int _nl_msg_cat_cntr;
17508 extern int *_nl_domain_bindings;
17512 bindtextdomain ("", "");
17513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && {
17532 test -z "$ac_c_werror_flag" ||
17533 test ! -s conftest.err
17534 } && test -s conftest$ac_exeext &&
17535 $as_test_x conftest$ac_exeext; then
17536 gt_cv_func_gnugettext1_libc=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17541 gt_cv_func_gnugettext1_libc=no
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545 conftest$ac_exeext conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17550 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17556 am_save_CPPFLAGS="$CPPFLAGS"
17558 for element in $INCICONV; do
17560 for x in $CPPFLAGS; do
17562 acl_save_prefix="$prefix"
17563 prefix="$acl_final_prefix"
17564 acl_save_exec_prefix="$exec_prefix"
17565 exec_prefix="$acl_final_exec_prefix"
17567 exec_prefix="$acl_save_exec_prefix"
17568 prefix="$acl_save_prefix"
17570 if test "X$x" = "X$element"; then
17575 if test -z "$haveit"; then
17576 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17581 { echo "$as_me:$LINENO: checking for iconv" >&5
17582 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17583 if test "${am_cv_func_iconv+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 am_cv_func_iconv="no, consider installing GNU libiconv"
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 #include <stdlib.h>
17600 iconv_t cd = iconv_open("","");
17601 iconv(cd,NULL,NULL,NULL,NULL);
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625 am_cv_func_iconv=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 if test "$am_cv_func_iconv" != yes; then
17636 am_save_LIBS="$LIBS"
17637 LIBS="$LIBS $LIBICONV"
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <stdlib.h>
17649 iconv_t cd = iconv_open("","");
17650 iconv(cd,NULL,NULL,NULL,NULL);
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_link") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest$ac_exeext &&
17673 $as_test_x conftest$ac_exeext; then
17674 am_cv_lib_iconv=yes
17675 am_cv_func_iconv=yes
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS="$am_save_LIBS"
17689 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17690 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17691 if test "$am_cv_func_iconv" = yes; then
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ICONV 1
17698 if test "$am_cv_lib_iconv" = yes; then
17699 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17700 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17701 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17702 echo "${ECHO_T}$LIBICONV" >&6; }
17704 CPPFLAGS="$am_save_CPPFLAGS"
17716 acl_save_prefix="$prefix"
17717 prefix="$acl_final_prefix"
17718 acl_save_exec_prefix="$exec_prefix"
17719 exec_prefix="$acl_final_exec_prefix"
17721 eval additional_includedir=\"$includedir\"
17722 eval additional_libdir=\"$libdir\"
17724 exec_prefix="$acl_save_exec_prefix"
17725 prefix="$acl_save_prefix"
17728 # Check whether --with-libintl-prefix was given.
17729 if test "${with_libintl_prefix+set}" = set; then
17730 withval=$with_libintl_prefix;
17731 if test "X$withval" = "Xno"; then
17734 if test "X$withval" = "X"; then
17736 acl_save_prefix="$prefix"
17737 prefix="$acl_final_prefix"
17738 acl_save_exec_prefix="$exec_prefix"
17739 exec_prefix="$acl_final_exec_prefix"
17741 eval additional_includedir=\"$includedir\"
17742 eval additional_libdir=\"$libdir\"
17744 exec_prefix="$acl_save_exec_prefix"
17745 prefix="$acl_save_prefix"
17748 additional_includedir="$withval/include"
17749 additional_libdir="$withval/lib"
17760 names_already_handled=
17761 names_next_round='intl '
17762 while test -n "$names_next_round"; do
17763 names_this_round="$names_next_round"
17765 for name in $names_this_round; do
17767 for n in $names_already_handled; do
17768 if test "$n" = "$name"; then
17769 already_handled=yes
17773 if test -z "$already_handled"; then
17774 names_already_handled="$names_already_handled $name"
17775 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17776 eval value=\"\$HAVE_LIB$uppername\"
17777 if test -n "$value"; then
17778 if test "$value" = yes; then
17779 eval value=\"\$LIB$uppername\"
17780 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17781 eval value=\"\$LTLIB$uppername\"
17782 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17791 if test $use_additional = yes; then
17792 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17793 found_dir="$additional_libdir"
17794 found_so="$additional_libdir/lib$name.$shlibext"
17795 if test -f "$additional_libdir/lib$name.la"; then
17796 found_la="$additional_libdir/lib$name.la"
17799 if test -f "$additional_libdir/lib$name.$libext"; then
17800 found_dir="$additional_libdir"
17801 found_a="$additional_libdir/lib$name.$libext"
17802 if test -f "$additional_libdir/lib$name.la"; then
17803 found_la="$additional_libdir/lib$name.la"
17808 if test "X$found_dir" = "X"; then
17809 for x in $LDFLAGS $LTLIBINTL; do
17811 acl_save_prefix="$prefix"
17812 prefix="$acl_final_prefix"
17813 acl_save_exec_prefix="$exec_prefix"
17814 exec_prefix="$acl_final_exec_prefix"
17816 exec_prefix="$acl_save_exec_prefix"
17817 prefix="$acl_save_prefix"
17821 dir=`echo "X$x" | sed -e 's/^X-L//'`
17822 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17824 found_so="$dir/lib$name.$shlibext"
17825 if test -f "$dir/lib$name.la"; then
17826 found_la="$dir/lib$name.la"
17829 if test -f "$dir/lib$name.$libext"; then
17831 found_a="$dir/lib$name.$libext"
17832 if test -f "$dir/lib$name.la"; then
17833 found_la="$dir/lib$name.la"
17839 if test "X$found_dir" != "X"; then
17844 if test "X$found_dir" != "X"; then
17845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17846 if test "X$found_so" != "X"; then
17847 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851 for x in $ltrpathdirs; do
17852 if test "X$x" = "X$found_dir"; then
17857 if test -z "$haveit"; then
17858 ltrpathdirs="$ltrpathdirs $found_dir"
17860 if test "$hardcode_direct" = yes; then
17861 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17863 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866 for x in $rpathdirs; do
17867 if test "X$x" = "X$found_dir"; then
17872 if test -z "$haveit"; then
17873 rpathdirs="$rpathdirs $found_dir"
17877 for x in $LDFLAGS $LIBINTL; do
17879 acl_save_prefix="$prefix"
17880 prefix="$acl_final_prefix"
17881 acl_save_exec_prefix="$exec_prefix"
17882 exec_prefix="$acl_final_exec_prefix"
17884 exec_prefix="$acl_save_exec_prefix"
17885 prefix="$acl_save_prefix"
17887 if test "X$x" = "X-L$found_dir"; then
17892 if test -z "$haveit"; then
17893 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17895 if test "$hardcode_minus_L" != no; then
17896 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17904 if test "X$found_a" != "X"; then
17905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17910 additional_includedir=
17911 case "$found_dir" in
17913 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17914 additional_includedir="$basedir/include"
17917 if test "X$additional_includedir" != "X"; then
17918 if test "X$additional_includedir" != "X/usr/include"; then
17920 if test "X$additional_includedir" = "X/usr/local/include"; then
17921 if test -n "$GCC"; then
17923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17927 if test -z "$haveit"; then
17928 for x in $CPPFLAGS $INCINTL; do
17930 acl_save_prefix="$prefix"
17931 prefix="$acl_final_prefix"
17932 acl_save_exec_prefix="$exec_prefix"
17933 exec_prefix="$acl_final_exec_prefix"
17935 exec_prefix="$acl_save_exec_prefix"
17936 prefix="$acl_save_prefix"
17938 if test "X$x" = "X-I$additional_includedir"; then
17943 if test -z "$haveit"; then
17944 if test -d "$additional_includedir"; then
17945 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17951 if test -n "$found_la"; then
17952 save_libdir="$libdir"
17953 case "$found_la" in
17954 */* | *\\*) . "$found_la" ;;
17955 *) . "./$found_la" ;;
17957 libdir="$save_libdir"
17958 for dep in $dependency_libs; do
17961 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17962 if test "X$additional_libdir" != "X/usr/lib"; then
17964 if test "X$additional_libdir" = "X/usr/local/lib"; then
17965 if test -n "$GCC"; then
17967 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17971 if test -z "$haveit"; then
17973 for x in $LDFLAGS $LIBINTL; do
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 acl_save_exec_prefix="$exec_prefix"
17978 exec_prefix="$acl_final_exec_prefix"
17980 exec_prefix="$acl_save_exec_prefix"
17981 prefix="$acl_save_prefix"
17983 if test "X$x" = "X-L$additional_libdir"; then
17988 if test -z "$haveit"; then
17989 if test -d "$additional_libdir"; then
17990 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17994 for x in $LDFLAGS $LTLIBINTL; do
17996 acl_save_prefix="$prefix"
17997 prefix="$acl_final_prefix"
17998 acl_save_exec_prefix="$exec_prefix"
17999 exec_prefix="$acl_final_exec_prefix"
18001 exec_prefix="$acl_save_exec_prefix"
18002 prefix="$acl_save_prefix"
18004 if test "X$x" = "X-L$additional_libdir"; then
18009 if test -z "$haveit"; then
18010 if test -d "$additional_libdir"; then
18011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18018 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18019 if test "$enable_rpath" != no; then
18021 for x in $rpathdirs; do
18022 if test "X$x" = "X$dir"; then
18027 if test -z "$haveit"; then
18028 rpathdirs="$rpathdirs $dir"
18031 for x in $ltrpathdirs; do
18032 if test "X$x" = "X$dir"; then
18037 if test -z "$haveit"; then
18038 ltrpathdirs="$ltrpathdirs $dir"
18043 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18049 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18050 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18063 if test "X$rpathdirs" != "X"; then
18064 if test -n "$hardcode_libdir_separator"; then
18066 for found_dir in $rpathdirs; do
18067 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18069 acl_save_libdir="$libdir"
18071 eval flag=\"$hardcode_libdir_flag_spec\"
18072 libdir="$acl_save_libdir"
18073 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18075 for found_dir in $rpathdirs; do
18076 acl_save_libdir="$libdir"
18077 libdir="$found_dir"
18078 eval flag=\"$hardcode_libdir_flag_spec\"
18079 libdir="$acl_save_libdir"
18080 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18084 if test "X$ltrpathdirs" != "X"; then
18085 for found_dir in $ltrpathdirs; do
18086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18090 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18091 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18092 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 gt_save_CPPFLAGS="$CPPFLAGS"
18096 CPPFLAGS="$CPPFLAGS $INCINTL"
18097 gt_save_LIBS="$LIBS"
18098 LIBS="$LIBS $LIBINTL"
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 #include <libintl.h>
18106 extern int _nl_msg_cat_cntr;
18111 const char *_nl_expand_alias (const char *);
18115 bindtextdomain ("", "");
18116 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_link") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && {
18135 test -z "$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 } && test -s conftest$ac_exeext &&
18138 $as_test_x conftest$ac_exeext; then
18139 gt_cv_func_gnugettext1_libintl=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 gt_cv_func_gnugettext1_libintl=no
18147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18148 conftest$ac_exeext conftest.$ac_ext
18149 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18150 LIBS="$LIBS $LIBICONV"
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include <libintl.h>
18158 extern int _nl_msg_cat_cntr;
18163 const char *_nl_expand_alias (const char *);
18167 bindtextdomain ("", "");
18168 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && {
18187 test -z "$ac_c_werror_flag" ||
18188 test ! -s conftest.err
18189 } && test -s conftest$ac_exeext &&
18190 $as_test_x conftest$ac_exeext; then
18191 LIBINTL="$LIBINTL $LIBICONV"
18192 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18193 gt_cv_func_gnugettext1_libintl=yes
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203 conftest$ac_exeext conftest.$ac_ext
18205 CPPFLAGS="$gt_save_CPPFLAGS"
18206 LIBS="$gt_save_LIBS"
18208 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18209 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18212 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18213 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18214 && test "$PACKAGE" != gettext-runtime \
18215 && test "$PACKAGE" != gettext-tools; }; then
18216 gt_use_preinstalled_gnugettext=yes
18225 if test -n "$INTL_MACOSX_LIBS"; then
18226 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18227 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18228 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18229 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18233 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18234 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define ENABLE_NLS 1
18245 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18246 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18247 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18248 echo "${ECHO_T}$USE_NLS" >&6; }
18249 if test "$USE_NLS" = "yes"; then
18250 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18251 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18252 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18253 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18254 gt_source="external libintl"
18259 gt_source="included intl directory"
18261 { echo "$as_me:$LINENO: result: $gt_source" >&5
18262 echo "${ECHO_T}$gt_source" >&6; }
18265 if test "$USE_NLS" = "yes"; then
18267 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18268 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18269 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18270 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18271 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18272 echo "${ECHO_T}$LIBINTL" >&6; }
18274 for element in $INCINTL; do
18276 for x in $CPPFLAGS; do
18278 acl_save_prefix="$prefix"
18279 prefix="$acl_final_prefix"
18280 acl_save_exec_prefix="$exec_prefix"
18281 exec_prefix="$acl_final_exec_prefix"
18283 exec_prefix="$acl_save_exec_prefix"
18284 prefix="$acl_save_prefix"
18286 if test "X$x" = "X$element"; then
18291 if test -z "$haveit"; then
18292 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_GETTEXT 1
18304 cat >>confdefs.h <<\_ACEOF
18305 #define HAVE_DCGETTEXT 1
18315 INTLLIBS="$LIBINTL"
18323 if test x${prefix} = xNONE ; then
18324 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325 sysconfdir=/etc/bacula
18328 if test `eval echo ${libdir}` = NONE/lib ; then
18332 if test `eval echo ${includedir}` = NONE/include ; then
18333 includedir=/usr/include
18336 if test `eval echo ${datarootdir}` = NONE/share ; then
18337 datarootdir=/usr/share
18342 if test x${exec_prefix} = xNONE ; then
18343 exec_prefix=${prefix}
18346 sysconfdir=`eval echo ${sysconfdir}`
18347 datarootdir=`eval echo ${datarootdir}`
18348 docdir=`eval echo ${docdir}`
18349 htmldir=`eval echo ${htmldir}`
18350 libdir=`eval echo ${libdir}`
18351 includedir=`eval echo ${includedir}`
18352 localedir=`eval echo ${datarootdir}/locale`
18353 cat >>confdefs.h <<_ACEOF
18354 #define SYSCONFDIR "$sysconfdir"
18357 cat >>confdefs.h <<_ACEOF
18358 #define LOCALEDIR "$localedir"
18362 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18363 sbindir=${exec_prefix}/sbin
18365 sbindir=`eval echo ${sbindir}`
18367 if test x$mandir = x'${prefix}/man' ; then
18368 mandir=/usr/share/man
18371 if test x$htmldir = x${docdir} ; then
18372 htmldir=`eval echo ${docdir}bacula/html`
18375 if test x$docdir = x'/usr/share/doc/' ; then
18376 docdir=`eval echo ${docdir}bacula`
18380 for ac_prog in msgfmt
18382 # Extract the first word of "$ac_prog", so it can be a program name with args.
18383 set dummy $ac_prog; ac_word=$2
18384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18386 if test "${ac_cv_path_MSGFMT+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18398 test -z "$as_dir" && as_dir=.
18399 for ac_exec_ext in '' $ac_executable_extensions; do
18400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18401 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18412 MSGFMT=$ac_cv_path_MSGFMT
18413 if test -n "$MSGFMT"; then
18414 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18415 echo "${ECHO_T}$MSGFMT" >&6; }
18417 { echo "$as_me:$LINENO: result: no" >&5
18418 echo "${ECHO_T}no" >&6; }
18422 test -n "$MSGFMT" && break
18424 test -n "$MSGFMT" || MSGFMT="no"
18426 if test "$MSGFMT" = "no"
18428 echo 'msgfmt program not found, disabling NLS !'
18430 USE_INCLUDED_LIBINTL=no
18433 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18434 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18435 if test "${ac_cv_gnu_library_2+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18445 #include <features.h>
18446 #ifdef __GNU_LIBRARY__
18447 #if (__GLIBC__ >= 2)
18453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18454 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18455 ac_cv_gnu_library_2=yes
18457 ac_cv_gnu_library_2=no
18464 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18465 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18467 GLIBC2="$ac_cv_gnu_library_2"
18470 if test -n "$ac_tool_prefix"; then
18471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18475 if test "${ac_cv_prog_RANLIB+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 if test -n "$RANLIB"; then
18479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18485 test -z "$as_dir" && as_dir=.
18486 for ac_exec_ext in '' $ac_executable_extensions; do
18487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18488 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498 RANLIB=$ac_cv_prog_RANLIB
18499 if test -n "$RANLIB"; then
18500 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18501 echo "${ECHO_T}$RANLIB" >&6; }
18503 { echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6; }
18509 if test -z "$ac_cv_prog_RANLIB"; then
18510 ac_ct_RANLIB=$RANLIB
18511 # Extract the first word of "ranlib", so it can be a program name with args.
18512 set dummy ranlib; ac_word=$2
18513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18515 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 if test -n "$ac_ct_RANLIB"; then
18519 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18522 for as_dir in $PATH
18525 test -z "$as_dir" && as_dir=.
18526 for ac_exec_ext in '' $ac_executable_extensions; do
18527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18528 ac_cv_prog_ac_ct_RANLIB="ranlib"
18529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18538 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18539 if test -n "$ac_ct_RANLIB"; then
18540 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18541 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18543 { echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6; }
18547 if test "x$ac_ct_RANLIB" = x; then
18550 case $cross_compiling:$ac_tool_warned in
18552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18553 whose name does not start with the host triplet. If you think this
18554 configuration is useful to you, please write to autoconf@gnu.org." >&5
18555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18556 whose name does not start with the host triplet. If you think this
18557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18558 ac_tool_warned=yes ;;
18560 RANLIB=$ac_ct_RANLIB
18563 RANLIB="$ac_cv_prog_RANLIB"
18567 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18568 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lcposix $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18591 return strerror ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext &&
18613 $as_test_x conftest$ac_exeext; then
18614 ac_cv_lib_cposix_strerror=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_lib_cposix_strerror=no
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623 conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_check_lib_save_LIBS
18626 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18627 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18628 if test $ac_cv_lib_cposix_strerror = yes; then
18629 LIBS="$LIBS -lcposix"
18634 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18635 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18636 if test "${ac_cv_c_const+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18649 /* FIXME: Include the comments suggested by Paul. */
18650 #ifndef __cplusplus
18651 /* Ultrix mips cc rejects this. */
18652 typedef int charset[2];
18654 /* SunOS 4.1.1 cc rejects this. */
18655 char const *const *pcpcc;
18657 /* NEC SVR4.0.2 mips cc rejects this. */
18658 struct point {int x, y;};
18659 static struct point const zero = {0,0};
18660 /* AIX XL C 1.02.0.0 rejects this.
18661 It does not let you subtract one const X* pointer from another in
18662 an arm of an if-expression whose if-part is not a constant
18664 const char *g = "string";
18665 pcpcc = &g + (g ? g-g : 0);
18666 /* HPUX 7.0 cc rejects these. */
18668 ppc = (char**) pcpcc;
18669 pcpcc = (char const *const *) ppc;
18670 { /* SCO 3.2v4 cc rejects this. */
18672 char const *s = 0 ? (char *) 0 : (char const *) 0;
18677 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18678 int x[] = {25, 17};
18679 const int *foo = &x[0];
18682 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18683 typedef const int *iptr;
18687 { /* AIX XL C 1.02.0.0 rejects this saying
18688 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18689 struct s { int j; const int *ap[3]; };
18690 struct s *b; b->j = 5;
18692 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18693 const int foo = 10;
18694 if (!foo) return 0;
18696 return !cs[0] && !zero.x;
18703 rm -f conftest.$ac_objext
18704 if { (ac_try="$ac_compile"
18705 case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_compile") 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } && {
18717 test -z "$ac_c_werror_flag" ||
18718 test ! -s conftest.err
18719 } && test -s conftest.$ac_objext; then
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18730 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18731 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18732 if test $ac_cv_c_const = no; then
18734 cat >>confdefs.h <<\_ACEOF
18741 { echo "$as_me:$LINENO: checking for signed" >&5
18742 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18743 if test "${bh_cv_c_signed+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_compile") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } && {
18775 test -z "$ac_c_werror_flag" ||
18776 test ! -s conftest.err
18777 } && test -s conftest.$ac_objext; then
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18789 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18790 if test $bh_cv_c_signed = no; then
18792 cat >>confdefs.h <<\_ACEOF
18798 { echo "$as_me:$LINENO: checking for inline" >&5
18799 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18800 if test "${ac_cv_c_inline+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 for ac_kw in inline __inline__ __inline; do
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 #ifndef __cplusplus
18813 static $ac_kw foo_t static_foo () {return 0; }
18814 $ac_kw foo_t foo () {return 0; }
18818 rm -f conftest.$ac_objext
18819 if { (ac_try="$ac_compile"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_compile") 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest.$ac_objext; then
18835 ac_cv_c_inline=$ac_kw
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844 test "$ac_cv_c_inline" != no && break
18848 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18849 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18852 case $ac_cv_c_inline in
18855 case $ac_cv_c_inline in
18857 *) ac_val=$ac_cv_c_inline;;
18859 cat >>confdefs.h <<_ACEOF
18860 #ifndef __cplusplus
18861 #define inline $ac_val
18867 { echo "$as_me:$LINENO: checking for off_t" >&5
18868 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18869 if test "${ac_cv_type_off_t+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 $ac_includes_default
18879 typedef off_t ac__type_new_;
18883 if ((ac__type_new_ *) 0)
18885 if (sizeof (ac__type_new_))
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_compile") 2>conftest.er1
18900 grep -v '^ *+' conftest.er1 >conftest.err
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && {
18905 test -z "$ac_c_werror_flag" ||
18906 test ! -s conftest.err
18907 } && test -s conftest.$ac_objext; then
18908 ac_cv_type_off_t=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_type_off_t=no
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18919 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18920 if test $ac_cv_type_off_t = yes; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define off_t long int
18930 { echo "$as_me:$LINENO: checking for size_t" >&5
18931 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18932 if test "${ac_cv_type_size_t+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 typedef size_t ac__type_new_;
18946 if ((ac__type_new_ *) 0)
18948 if (sizeof (ac__type_new_))
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_compile") 2>conftest.er1
18963 grep -v '^ *+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && {
18968 test -z "$ac_c_werror_flag" ||
18969 test ! -s conftest.err
18970 } && test -s conftest.$ac_objext; then
18971 ac_cv_type_size_t=yes
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_cv_type_size_t=no
18979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18982 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18983 if test $ac_cv_type_size_t = yes; then
18987 cat >>confdefs.h <<_ACEOF
18988 #define size_t unsigned int
18994 { echo "$as_me:$LINENO: checking for long long" >&5
18995 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18996 if test "${ac_cv_type_long_long+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 long long ll = 1LL; int i = 63;
19009 long long llmax = (long long) -1;
19010 return ll << i | ll >> i | llmax / ll | llmax % ll;
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext &&
19032 $as_test_x conftest$ac_exeext; then
19033 ac_cv_type_long_long=yes
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ac_cv_type_long_long=no
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19044 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19045 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19046 if test $ac_cv_type_long_long = yes; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_LONG_LONG 1
19055 { echo "$as_me:$LINENO: checking for long double" >&5
19056 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19057 if test "${gt_cv_c_long_double+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 if test "$GCC" = yes; then
19061 gt_cv_c_long_double=yes
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19071 long double foo = 0.0;
19072 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19073 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19083 rm -f conftest.$ac_objext
19084 if { (ac_try="$ac_compile"
19085 case "(($ac_try" in
19086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087 *) ac_try_echo=$ac_try;;
19089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090 (eval "$ac_compile") 2>conftest.er1
19092 grep -v '^ *+' conftest.er1 >conftest.err
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest.$ac_objext; then
19100 gt_cv_c_long_double=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 gt_cv_c_long_double=no
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19112 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19113 if test $gt_cv_c_long_double = yes; then
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_LONG_DOUBLE 1
19122 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19123 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19124 if test "${gt_cv_c_wchar_t+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <stddef.h>
19134 wchar_t foo = (wchar_t)'\0';
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_compile") 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } && {
19157 test -z "$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 } && test -s conftest.$ac_objext; then
19160 gt_cv_c_wchar_t=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19171 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19172 if test $gt_cv_c_wchar_t = yes; then
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_WCHAR_T 1
19181 { echo "$as_me:$LINENO: checking for wint_t" >&5
19182 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19183 if test "${gt_cv_c_wint_t+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19193 wint_t foo = (wchar_t)'\0';
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_compile") 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && {
19216 test -z "$ac_c_werror_flag" ||
19217 test ! -s conftest.err
19218 } && test -s conftest.$ac_objext; then
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19230 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19231 if test $gt_cv_c_wint_t = yes; then
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE_WINT_T 1
19240 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19241 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19242 if test "${gl_cv_header_inttypes_h+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 #include <sys/types.h>
19252 #include <inttypes.h>
19256 uintmax_t i = (uintmax_t) -1;
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
19278 gl_cv_header_inttypes_h=yes
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 gl_cv_header_inttypes_h=no
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19289 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19290 if test $gl_cv_header_inttypes_h = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19299 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19300 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19301 if test "${gl_cv_header_stdint_h+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 #include <sys/types.h>
19311 #include <stdint.h>
19315 uintmax_t i = (uintmax_t) -1;
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 gl_cv_header_stdint_h=yes
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 gl_cv_header_stdint_h=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19348 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19349 if test $gl_cv_header_stdint_h = yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_STDINT_H_WITH_UINTMAX 1
19360 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19361 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19362 if test "${gt_cv_c_intmax_t+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 cat >conftest.$ac_ext <<_ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19372 #include <stddef.h>
19373 #include <stdlib.h>
19374 #if HAVE_STDINT_H_WITH_UINTMAX
19375 #include <stdint.h>
19377 #if HAVE_INTTYPES_H_WITH_UINTMAX
19378 #include <inttypes.h>
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_compile") 2>conftest.er1
19398 grep -v '^ *+' conftest.er1 >conftest.err
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && {
19403 test -z "$ac_c_werror_flag" ||
19404 test ! -s conftest.err
19405 } && test -s conftest.$ac_objext; then
19406 gt_cv_c_intmax_t=yes
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 gt_cv_c_intmax_t=no
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19416 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19417 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19418 if test $gt_cv_c_intmax_t = yes; then
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_INTMAX_T 1
19428 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19429 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19430 if test "${gt_cv_func_printf_posix+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 if test "$cross_compiling" = yes; then
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19443 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449 $EGREP "notposix" >/dev/null 2>&1; then
19450 gt_cv_func_printf_posix="guessing no"
19452 gt_cv_func_printf_posix="guessing yes"
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19466 #include <string.h>
19467 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19468 dollar expansion (possibly an autoconf bug). */
19469 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19470 static char buf[100];
19473 sprintf (buf, format, 33, 55);
19474 return (strcmp (buf, "55 33") != 0);
19477 rm -f conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 gt_cv_func_printf_posix=yes
19499 echo "$as_me: program exited with status $ac_status" >&5
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ( exit $ac_status )
19504 gt_cv_func_printf_posix=no
19506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19512 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19513 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19514 case $gt_cv_func_printf_posix in
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_POSIX_PRINTF 1
19524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19525 # for constant arguments. Useless!
19526 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19527 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19528 if test "${ac_cv_working_alloca_h+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19537 #include <alloca.h>
19541 char *p = (char *) alloca (2 * sizeof (int));
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext &&
19564 $as_test_x conftest$ac_exeext; then
19565 ac_cv_working_alloca_h=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_working_alloca_h=no
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574 conftest$ac_exeext conftest.$ac_ext
19576 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19578 if test $ac_cv_working_alloca_h = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_ALLOCA_H 1
19586 { echo "$as_me:$LINENO: checking for alloca" >&5
19587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19588 if test "${ac_cv_func_alloca_works+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 cat >conftest.$ac_ext <<_ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19598 # define alloca __builtin_alloca
19601 # include <malloc.h>
19602 # define alloca _alloca
19604 # ifdef HAVE_ALLOCA_H
19605 # include <alloca.h>
19610 # ifndef alloca /* predefined by HP cc +Olibcalls */
19621 char *p = (char *) alloca (1);
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>conftest.er1
19636 grep -v '^ *+' conftest.er1 >conftest.err
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest$ac_exeext &&
19644 $as_test_x conftest$ac_exeext; then
19645 ac_cv_func_alloca_works=yes
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_func_alloca_works=no
19653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19654 conftest$ac_exeext conftest.$ac_ext
19656 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19657 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19659 if test $ac_cv_func_alloca_works = yes; then
19661 cat >>confdefs.h <<\_ACEOF
19662 #define HAVE_ALLOCA 1
19666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19667 # that cause trouble. Some versions do not even contain alloca or
19668 # contain a buggy version. If you still want to use their alloca,
19669 # use ar to extract alloca.o from them instead of compiling alloca.c.
19671 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19673 cat >>confdefs.h <<\_ACEOF
19678 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19679 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19680 if test "${ac_cv_os_cray+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 cat >conftest.$ac_ext <<_ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19689 #if defined CRAY && ! defined CRAY2
19696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19697 $EGREP "webecray" >/dev/null 2>&1; then
19705 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19706 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19707 if test $ac_cv_os_cray = yes; then
19708 for ac_func in _getb67 GETB67 getb67; do
19709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19723 #define $ac_func innocuous_$ac_func
19725 /* System header to define __stub macros and hopefully few prototypes,
19726 which can conflict with char $ac_func (); below.
19727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19728 <limits.h> exists even on freestanding compilers. */
19731 # include <limits.h>
19733 # include <assert.h>
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19745 /* The GNU C library defines this for functions which it implements
19746 to always fail with ENOSYS. Some functions are actually named
19747 something starting with __ and the normal name is an alias. */
19748 #if defined __stub_$ac_func || defined __stub___$ac_func
19755 return $ac_func ();
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (ac_try="$ac_link"
19762 case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_link") 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } && {
19774 test -z "$ac_c_werror_flag" ||
19775 test ! -s conftest.err
19776 } && test -s conftest$ac_exeext &&
19777 $as_test_x conftest$ac_exeext; then
19778 eval "$as_ac_var=yes"
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 eval "$as_ac_var=no"
19786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19787 conftest$ac_exeext conftest.$ac_ext
19789 ac_res=`eval echo '${'$as_ac_var'}'`
19790 { echo "$as_me:$LINENO: result: $ac_res" >&5
19791 echo "${ECHO_T}$ac_res" >&6; }
19792 if test `eval echo '${'$as_ac_var'}'` = yes; then
19794 cat >>confdefs.h <<_ACEOF
19795 #define CRAY_STACKSEG_END $ac_func
19804 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19805 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19806 if test "${ac_cv_c_stack_direction+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 if test "$cross_compiling" = yes; then
19810 ac_cv_c_stack_direction=0
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 $ac_includes_default
19820 find_stack_direction ()
19822 static char *addr = 0;
19827 return find_stack_direction ();
19830 return (&dummy > addr) ? 1 : -1;
19836 return find_stack_direction () < 0;
19839 rm -f conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_cv_c_stack_direction=1
19861 echo "$as_me: program exited with status $ac_status" >&5
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ( exit $ac_status )
19866 ac_cv_c_stack_direction=-1
19868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19873 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19874 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19876 cat >>confdefs.h <<_ACEOF
19877 #define STACK_DIRECTION $ac_cv_c_stack_direction
19885 for ac_header in stdlib.h unistd.h
19887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 ac_res=`eval echo '${'$as_ac_Header'}'`
19895 { echo "$as_me:$LINENO: result: $ac_res" >&5
19896 echo "${ECHO_T}$ac_res" >&6; }
19898 # Is the header compilable?
19899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19901 cat >conftest.$ac_ext <<_ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907 $ac_includes_default
19908 #include <$ac_header>
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19927 ac_header_compiler=yes
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_header_compiler=no
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19937 echo "${ECHO_T}$ac_header_compiler" >&6; }
19939 # Is the header present?
19940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19942 cat >conftest.$ac_ext <<_ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 #include <$ac_header>
19950 if { (ac_try="$ac_cpp conftest.$ac_ext"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } >/dev/null && {
19963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19966 ac_header_preproc=yes
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ac_header_preproc=no
19974 rm -f conftest.err conftest.$ac_ext
19975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6; }
19978 # So? What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19985 ac_header_preproc=yes
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 eval "$as_ac_Header=\$ac_header_preproc"
20010 ac_res=`eval echo '${'$as_ac_Header'}'`
20011 { echo "$as_me:$LINENO: result: $ac_res" >&5
20012 echo "${ECHO_T}$ac_res" >&6; }
20015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20025 for ac_func in getpagesize
20027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20041 #define $ac_func innocuous_$ac_func
20043 /* System header to define __stub macros and hopefully few prototypes,
20044 which can conflict with char $ac_func (); below.
20045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20046 <limits.h> exists even on freestanding compilers. */
20049 # include <limits.h>
20051 # include <assert.h>
20056 /* Override any GCC internal prototype to avoid an error.
20057 Use char because int might match the return type of a GCC
20058 builtin and then its argument prototype would still apply. */
20063 /* The GNU C library defines this for functions which it implements
20064 to always fail with ENOSYS. Some functions are actually named
20065 something starting with __ and the normal name is an alias. */
20066 #if defined __stub_$ac_func || defined __stub___$ac_func
20073 return $ac_func ();
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest$ac_exeext &&
20095 $as_test_x conftest$ac_exeext; then
20096 eval "$as_ac_var=yes"
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 eval "$as_ac_var=no"
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20107 ac_res=`eval echo '${'$as_ac_var'}'`
20108 { echo "$as_me:$LINENO: result: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20110 if test `eval echo '${'$as_ac_var'}'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20118 { echo "$as_me:$LINENO: checking for working mmap" >&5
20119 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 if test "$cross_compiling" = yes; then
20124 ac_cv_func_mmap_fixed_mapped=no
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 /* malloc might have been renamed as rpl_malloc. */
20136 /* Thanks to Mike Haertel and Jim Avera for this test.
20137 Here is a matrix of mmap possibilities:
20138 mmap private not fixed
20139 mmap private fixed at somewhere currently unmapped
20140 mmap private fixed at somewhere already mapped
20141 mmap shared not fixed
20142 mmap shared fixed at somewhere currently unmapped
20143 mmap shared fixed at somewhere already mapped
20144 For private mappings, we should verify that changes cannot be read()
20145 back from the file, nor mmap's back from the file at a different
20146 address. (There have been systems where private was not correctly
20147 implemented like the infamous i386 svr4.0, and systems where the
20148 VM page cache was not coherent with the file system buffer cache
20149 like early versions of FreeBSD and possibly contemporary NetBSD.)
20150 For shared mappings, we should conversely verify that changes get
20151 propagated back to all the places they're supposed to be.
20153 Grep wants private fixed already mapped.
20154 The main things grep needs to know about mmap are:
20155 * does it exist and is it safe to write into the mmap'd area
20156 * how to use it (BSD variants) */
20159 #include <sys/mman.h>
20161 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20165 /* This mess was copied from the GNU getpagesize.h. */
20166 #ifndef HAVE_GETPAGESIZE
20167 /* Assume that all systems that can run configure have sys/param.h. */
20168 # ifndef HAVE_SYS_PARAM_H
20169 # define HAVE_SYS_PARAM_H 1
20172 # ifdef _SC_PAGESIZE
20173 # define getpagesize() sysconf(_SC_PAGESIZE)
20174 # else /* no _SC_PAGESIZE */
20175 # ifdef HAVE_SYS_PARAM_H
20176 # include <sys/param.h>
20177 # ifdef EXEC_PAGESIZE
20178 # define getpagesize() EXEC_PAGESIZE
20179 # else /* no EXEC_PAGESIZE */
20181 # define getpagesize() NBPG * CLSIZE
20184 # endif /* no CLSIZE */
20185 # else /* no NBPG */
20187 # define getpagesize() NBPC
20188 # else /* no NBPC */
20190 # define getpagesize() PAGESIZE
20191 # endif /* PAGESIZE */
20192 # endif /* no NBPC */
20193 # endif /* no NBPG */
20194 # endif /* no EXEC_PAGESIZE */
20195 # else /* no HAVE_SYS_PARAM_H */
20196 # define getpagesize() 8192 /* punt totally */
20197 # endif /* no HAVE_SYS_PARAM_H */
20198 # endif /* no _SC_PAGESIZE */
20200 #endif /* no HAVE_GETPAGESIZE */
20205 char *data, *data2, *data3;
20209 pagesize = getpagesize ();
20211 /* First, make a file with some known garbage in it. */
20212 data = (char *) malloc (pagesize);
20215 for (i = 0; i < pagesize; ++i)
20216 *(data + i) = rand ();
20218 fd = creat ("conftest.mmap", 0600);
20221 if (write (fd, data, pagesize) != pagesize)
20225 /* Next, try to mmap the file at a fixed address which already has
20226 something else allocated at it. If we can, also make sure that
20227 we see the same garbage. */
20228 fd = open ("conftest.mmap", O_RDWR);
20231 data2 = (char *) malloc (2 * pagesize);
20234 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20235 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20236 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20238 for (i = 0; i < pagesize; ++i)
20239 if (*(data + i) != *(data2 + i))
20242 /* Finally, make sure that changes to the mapped area do not
20243 percolate back to the file as seen by read(). (This is a bug on
20244 some variants of i386 svr4.0.) */
20245 for (i = 0; i < pagesize; ++i)
20246 *(data2 + i) = *(data2 + i) + 1;
20247 data3 = (char *) malloc (pagesize);
20250 if (read (fd, data3, pagesize) != pagesize)
20252 for (i = 0; i < pagesize; ++i)
20253 if (*(data + i) != *(data3 + i))
20259 rm -f conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20270 { (case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275 (eval "$ac_try") 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_func_mmap_fixed_mapped=yes
20281 echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ( exit $ac_status )
20286 ac_cv_func_mmap_fixed_mapped=no
20288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20293 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20294 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20295 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_MMAP 1
20302 rm -f conftest.mmap
20305 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20306 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20307 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20317 #include <features.h>
20318 #ifdef __GNU_LIBRARY__
20319 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20327 ac_cv_gnu_library_2_1=yes
20329 ac_cv_gnu_library_2_1=no
20336 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20337 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20339 GLIBC21="$ac_cv_gnu_library_2_1"
20344 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20345 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20346 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 if test "$cross_compiling" = yes; then
20352 # Guess based on the CPU.
20353 case "$host_cpu" in
20354 alpha* | i3456786 | m68k | s390*)
20355 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20357 gt_cv_int_divbyzero_sigfpe="guessing no";;
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20368 #include <stdlib.h>
20369 #include <signal.h>
20373 sigfpe_handler (int sig)
20375 sigfpe_handler (sig) int sig;
20378 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20379 exit (sig != SIGFPE);
20389 signal (SIGFPE, sigfpe_handler);
20390 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20391 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20392 signal (SIGTRAP, sigfpe_handler);
20394 /* Linux/SPARC yields signal SIGILL. */
20395 #if defined (__sparc__) && defined (__linux__)
20396 signal (SIGILL, sigfpe_handler);
20405 rm -f conftest$ac_exeext
20406 if { (ac_try="$ac_link"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_link") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 gt_cv_int_divbyzero_sigfpe=yes
20427 echo "$as_me: program exited with status $ac_status" >&5
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ( exit $ac_status )
20432 gt_cv_int_divbyzero_sigfpe=no
20434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20440 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20441 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20442 case "$gt_cv_int_divbyzero_sigfpe" in
20447 cat >>confdefs.h <<_ACEOF
20448 #define INTDIV0_RAISES_SIGFPE $value
20453 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20454 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20455 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 unsigned long long ull = 1ULL; int i = 63;
20468 unsigned long long ullmax = (unsigned long long) -1;
20469 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext &&
20491 $as_test_x conftest$ac_exeext; then
20492 ac_cv_type_unsigned_long_long=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_type_unsigned_long_long=no
20500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501 conftest$ac_exeext conftest.$ac_ext
20503 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20504 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20505 if test $ac_cv_type_unsigned_long_long = yes; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_UNSIGNED_LONG_LONG 1
20516 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20518 test $ac_cv_type_unsigned_long_long = yes \
20519 && ac_type='unsigned long long' \
20520 || ac_type='unsigned long'
20522 cat >>confdefs.h <<_ACEOF
20523 #define uintmax_t $ac_type
20528 cat >>confdefs.h <<\_ACEOF
20529 #define HAVE_UINTMAX_T 1
20535 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20536 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20537 if test "${gt_cv_header_inttypes_h+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20547 #include <sys/types.h>
20548 #include <inttypes.h>
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 gt_cv_header_inttypes_h=yes
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 gt_cv_header_inttypes_h=no
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20586 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20587 if test $gt_cv_header_inttypes_h = yes; then
20589 cat >>confdefs.h <<_ACEOF
20590 #define HAVE_INTTYPES_H 1
20597 if test $gt_cv_header_inttypes_h = yes; then
20598 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20599 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20600 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <inttypes.h>
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_compile") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest.$ac_objext; then
20640 gt_cv_inttypes_pri_broken=no
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 gt_cv_inttypes_pri_broken=yes
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20652 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20654 if test "$gt_cv_inttypes_pri_broken" = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define PRI_MACROS_BROKEN 1
20664 for ac_header in stdint.h
20666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 ac_res=`eval echo '${'$as_ac_Header'}'`
20674 { echo "$as_me:$LINENO: result: $ac_res" >&5
20675 echo "${ECHO_T}$ac_res" >&6; }
20677 # Is the header compilable?
20678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686 $ac_includes_default
20687 #include <$ac_header>
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && {
20703 test -z "$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest.$ac_objext; then
20706 ac_header_compiler=yes
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_header_compiler=no
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20716 echo "${ECHO_T}$ac_header_compiler" >&6; }
20718 # Is the header present?
20719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <$ac_header>
20729 if { (ac_try="$ac_cpp conftest.$ac_ext"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } >/dev/null && {
20742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20745 ac_header_preproc=yes
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_header_preproc=no
20753 rm -f conftest.err conftest.$ac_ext
20754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20755 echo "${ECHO_T}$ac_header_preproc" >&6; }
20757 # So? What about this header?
20758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20764 ac_header_preproc=yes
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 eval "$as_ac_Header=\$ac_header_preproc"
20789 ac_res=`eval echo '${'$as_ac_Header'}'`
20790 { echo "$as_me:$LINENO: result: $ac_res" >&5
20791 echo "${ECHO_T}$ac_res" >&6; }
20794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20795 cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20803 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20804 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20813 #include <limits.h>
20815 #include <stdint.h>
20822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20823 $EGREP "Found it" >/dev/null 2>&1; then
20828 if test -z "$result"; then
20829 if test "$cross_compiling" = yes; then
20830 # Depending upon the size, compute the lo and hi bounds.
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 #include <stddef.h>
20841 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest.$ac_objext; then
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <stddef.h>
20877 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 ac_hi=$ac_mid; break
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_lo=`expr $ac_mid + 1`
20907 if test $ac_lo -le $ac_mid; then
20911 ac_mid=`expr 2 '*' $ac_mid + 1`
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <stddef.h>
20930 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20946 grep -v '^ *+' conftest.er1 >conftest.err
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.$ac_objext; then
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 #include <stddef.h>
20966 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } && {
20987 test -z "$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20989 } && test -s conftest.$ac_objext; then
20990 ac_lo=$ac_mid; break
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_hi=`expr '(' $ac_mid ')' - 1`
20996 if test $ac_mid -le $ac_hi; then
21000 ac_mid=`expr 2 '*' $ac_mid`
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 # Binary search between lo and hi bounds.
21017 while test "x$ac_lo" != "x$ac_hi"; do
21018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 #include <stddef.h>
21029 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21045 grep -v '^ *+' conftest.er1 >conftest.err
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_lo=`expr '(' $ac_mid ')' + 1`
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 ?*) res_hi=$ac_lo;;
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <stddef.h>
21075 static long int longval () { return ~(size_t)0 / 10; }
21076 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21078 #include <stdlib.h>
21083 FILE *f = fopen ("conftest.val", "w");
21086 if ((~(size_t)0 / 10) < 0)
21088 long int i = longval ();
21089 if (i != (~(size_t)0 / 10))
21091 fprintf (f, "%ld\n", i);
21095 unsigned long int i = ulongval ();
21096 if (i != (~(size_t)0 / 10))
21098 fprintf (f, "%lu\n", i);
21100 return ferror (f) || fclose (f) != 0;
21106 rm -f conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_link") 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21117 { (case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_try") 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 res_hi=`cat conftest.val`
21128 echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ( exit $ac_status )
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21139 if test "$cross_compiling" = yes; then
21140 # Depending upon the size, compute the lo and hi bounds.
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <stddef.h>
21151 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21158 rm -f conftest.$ac_objext
21159 if { (ac_try="$ac_compile"
21160 case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_compile") 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest.$ac_objext; then
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <stddef.h>
21187 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest.$ac_objext; then
21211 ac_hi=$ac_mid; break
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_lo=`expr $ac_mid + 1`
21217 if test $ac_lo -le $ac_mid; then
21221 ac_mid=`expr 2 '*' $ac_mid + 1`
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <stddef.h>
21240 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_compile") 2>conftest.er1
21292 grep -v '^ *+' conftest.er1 >conftest.err
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && {
21297 test -z "$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 } && test -s conftest.$ac_objext; then
21300 ac_lo=$ac_mid; break
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 ac_hi=`expr '(' $ac_mid ')' - 1`
21306 if test $ac_mid -le $ac_hi; then
21310 ac_mid=`expr 2 '*' $ac_mid`
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 # Binary search between lo and hi bounds.
21327 while test "x$ac_lo" != "x$ac_hi"; do
21328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 #include <stddef.h>
21339 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_compile") 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest.$ac_objext; then
21365 echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 ac_lo=`expr '(' $ac_mid ')' + 1`
21371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 ?*) res_lo=$ac_lo;;
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 #include <stddef.h>
21385 static long int longval () { return ~(size_t)0 % 10; }
21386 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21388 #include <stdlib.h>
21393 FILE *f = fopen ("conftest.val", "w");
21396 if ((~(size_t)0 % 10) < 0)
21398 long int i = longval ();
21399 if (i != (~(size_t)0 % 10))
21401 fprintf (f, "%ld\n", i);
21405 unsigned long int i = ulongval ();
21406 if (i != (~(size_t)0 % 10))
21408 fprintf (f, "%lu\n", i);
21410 return ferror (f) || fclose (f) != 0;
21416 rm -f conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_link") 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427 { (case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_try") 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 res_lo=`cat conftest.val`
21438 echo "$as_me: program exited with status $ac_status" >&5
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ( exit $ac_status )
21445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21449 if test "$cross_compiling" = yes; then
21450 # Depending upon the size, compute the lo and hi bounds.
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <stddef.h>
21461 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <stddef.h>
21497 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_hi=$ac_mid; break
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_lo=`expr $ac_mid + 1`
21527 if test $ac_lo -le $ac_mid; then
21531 ac_mid=`expr 2 '*' $ac_mid + 1`
21534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <stddef.h>
21550 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.$ac_objext; then
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 #include <stddef.h>
21586 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_compile") 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest.$ac_objext; then
21610 ac_lo=$ac_mid; break
21612 echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21615 ac_hi=`expr '(' $ac_mid ')' - 1`
21616 if test $ac_mid -le $ac_hi; then
21620 ac_mid=`expr 2 '*' $ac_mid`
21623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 # Binary search between lo and hi bounds.
21637 while test "x$ac_lo" != "x$ac_hi"; do
21638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <stddef.h>
21649 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21656 rm -f conftest.$ac_objext
21657 if { (ac_try="$ac_compile"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_compile") 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && {
21670 test -z "$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21672 } && test -s conftest.$ac_objext; then
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 ac_lo=`expr '(' $ac_mid ')' + 1`
21681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 ?*) fits_in_uint=$ac_lo;;
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 #include <stddef.h>
21695 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21696 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 #include <stdlib.h>
21703 FILE *f = fopen ("conftest.val", "w");
21706 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21708 long int i = longval ();
21709 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21711 fprintf (f, "%ld\n", i);
21715 unsigned long int i = ulongval ();
21716 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21718 fprintf (f, "%lu\n", i);
21720 return ferror (f) || fclose (f) != 0;
21726 rm -f conftest$ac_exeext
21727 if { (ac_try="$ac_link"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_link") 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21737 { (case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_try") 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 fits_in_uint=`cat conftest.val`
21748 echo "$as_me: program exited with status $ac_status" >&5
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ( exit $ac_status )
21755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21759 if test "$fits_in_uint" = 1; then
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 #include <stddef.h>
21768 extern unsigned long foo;
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 if test -z "$result"; then
21806 if test "$fits_in_uint" = 1; then
21807 result="$res_hi$res_lo"U
21809 result="$res_hi$res_lo"UL
21812 result='~(size_t)0'
21815 { echo "$as_me:$LINENO: result: $result" >&5
21816 echo "${ECHO_T}$result" >&6; }
21817 if test "$result" != yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define SIZE_MAX $result
21829 for ac_header in stdint.h
21831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 ac_res=`eval echo '${'$as_ac_Header'}'`
21839 { echo "$as_me:$LINENO: result: $ac_res" >&5
21840 echo "${ECHO_T}$ac_res" >&6; }
21842 # Is the header compilable?
21843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 $ac_includes_default
21852 #include <$ac_header>
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_header_compiler=yes
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_header_compiler=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881 echo "${ECHO_T}$ac_header_compiler" >&6; }
21883 # Is the header present?
21884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 #include <$ac_header>
21894 if { (ac_try="$ac_cpp conftest.$ac_ext"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } >/dev/null && {
21907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21910 ac_header_preproc=yes
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_preproc=no
21918 rm -f conftest.err conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21920 echo "${ECHO_T}$ac_header_preproc" >&6; }
21922 # So? What about this header?
21923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21929 ac_header_preproc=yes
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 eval "$as_ac_Header=\$ac_header_preproc"
21954 ac_res=`eval echo '${'$as_ac_Header'}'`
21955 { echo "$as_me:$LINENO: result: $ac_res" >&5
21956 echo "${ECHO_T}$ac_res" >&6; }
21959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21960 cat >>confdefs.h <<_ACEOF
21961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21975 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21976 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21977 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21987 typedef ptrdiff_t ac__type_new_;
21991 if ((ac__type_new_ *) 0)
21993 if (sizeof (ac__type_new_))
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22016 ac_cv_type_ptrdiff_t=yes
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 ac_cv_type_ptrdiff_t=no
22024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22027 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22028 if test $ac_cv_type_ptrdiff_t = yes; then
22032 cat >>confdefs.h <<\_ACEOF
22033 #define ptrdiff_t long
22049 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22050 stdlib.h string.h unistd.h sys/param.h
22052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 ac_res=`eval echo '${'$as_ac_Header'}'`
22060 { echo "$as_me:$LINENO: result: $ac_res" >&5
22061 echo "${ECHO_T}$ac_res" >&6; }
22063 # Is the header compilable?
22064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 $ac_includes_default
22073 #include <$ac_header>
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_compile") 2>conftest.er1
22084 grep -v '^ *+' conftest.er1 >conftest.err
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && {
22089 test -z "$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22091 } && test -s conftest.$ac_objext; then
22092 ac_header_compiler=yes
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 ac_header_compiler=no
22100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22102 echo "${ECHO_T}$ac_header_compiler" >&6; }
22104 # Is the header present?
22105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22107 cat >conftest.$ac_ext <<_ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 #include <$ac_header>
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } >/dev/null && {
22128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22131 ac_header_preproc=yes
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_header_preproc=no
22139 rm -f conftest.err conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22141 echo "${ECHO_T}$ac_header_preproc" >&6; }
22143 # So? What about this header?
22144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22150 ac_header_preproc=yes
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 eval "$as_ac_Header=\$ac_header_preproc"
22175 ac_res=`eval echo '${'$as_ac_Header'}'`
22176 { echo "$as_me:$LINENO: result: $ac_res" >&5
22177 echo "${ECHO_T}$ac_res" >&6; }
22180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22181 cat >>confdefs.h <<_ACEOF
22182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22212 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22213 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22214 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22231 #define $ac_func innocuous_$ac_func
22233 /* System header to define __stub macros and hopefully few prototypes,
22234 which can conflict with char $ac_func (); below.
22235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22236 <limits.h> exists even on freestanding compilers. */
22239 # include <limits.h>
22241 # include <assert.h>
22246 /* Override any GCC internal prototype to avoid an error.
22247 Use char because int might match the return type of a GCC
22248 builtin and then its argument prototype would still apply. */
22253 /* The GNU C library defines this for functions which it implements
22254 to always fail with ENOSYS. Some functions are actually named
22255 something starting with __ and the normal name is an alias. */
22256 #if defined __stub_$ac_func || defined __stub___$ac_func
22263 return $ac_func ();
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (ac_try="$ac_link"
22270 case "(($ac_try" in
22271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 *) ac_try_echo=$ac_try;;
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 (eval "$ac_link") 2>conftest.er1
22277 grep -v '^ *+' conftest.er1 >conftest.err
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest$ac_exeext &&
22285 $as_test_x conftest$ac_exeext; then
22286 eval "$as_ac_var=yes"
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 eval "$as_ac_var=no"
22294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22295 conftest$ac_exeext conftest.$ac_ext
22297 ac_res=`eval echo '${'$as_ac_var'}'`
22298 { echo "$as_me:$LINENO: result: $ac_res" >&5
22299 echo "${ECHO_T}$ac_res" >&6; }
22300 if test `eval echo '${'$as_ac_var'}'` = yes; then
22301 cat >>confdefs.h <<_ACEOF
22302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22310 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22311 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22312 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 cat >conftest.$ac_ext <<_ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22327 char *p = (char *) _snprintf;
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_compile") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest.$ac_objext; then
22351 ac_cv_have_decl__snprintf=yes
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_cv_have_decl__snprintf=no
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22362 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22363 if test $ac_cv_have_decl__snprintf = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_DECL__SNPRINTF $gt_value
22375 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22376 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22377 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22392 char *p = (char *) _snwprintf;
22399 rm -f conftest.$ac_objext
22400 if { (ac_try="$ac_compile"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_compile") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest.$ac_objext; then
22416 ac_cv_have_decl__snwprintf=yes
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_have_decl__snwprintf=no
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22427 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22428 if test $ac_cv_have_decl__snwprintf = yes; then
22434 cat >>confdefs.h <<_ACEOF
22435 #define HAVE_DECL__SNWPRINTF $gt_value
22441 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22442 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22443 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22457 #ifndef feof_unlocked
22458 char *p = (char *) feof_unlocked;
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_cv_have_decl_feof_unlocked=yes
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_have_decl_feof_unlocked=no
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22493 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22494 if test $ac_cv_have_decl_feof_unlocked = yes; then
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22506 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22507 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22508 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 cat >conftest.$ac_ext <<_ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22522 #ifndef fgets_unlocked
22523 char *p = (char *) fgets_unlocked;
22530 rm -f conftest.$ac_objext
22531 if { (ac_try="$ac_compile"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537 (eval "$ac_compile") 2>conftest.er1
22539 grep -v '^ *+' conftest.er1 >conftest.err
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } && {
22544 test -z "$ac_c_werror_flag" ||
22545 test ! -s conftest.err
22546 } && test -s conftest.$ac_objext; then
22547 ac_cv_have_decl_fgets_unlocked=yes
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ac_cv_have_decl_fgets_unlocked=no
22555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22559 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22571 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22572 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22573 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22587 #ifndef getc_unlocked
22588 char *p = (char *) getc_unlocked;
22595 rm -f conftest.$ac_objext
22596 if { (ac_try="$ac_compile"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_cv_have_decl_getc_unlocked=yes
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_cv_have_decl_getc_unlocked=no
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22623 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22624 if test $ac_cv_have_decl_getc_unlocked = yes; then
22630 cat >>confdefs.h <<_ACEOF
22631 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22636 case $gt_cv_func_printf_posix in
22637 *yes) HAVE_POSIX_PRINTF=1 ;;
22638 *) HAVE_POSIX_PRINTF=0 ;;
22641 if test "$ac_cv_func_asprintf" = yes; then
22647 if test "$ac_cv_func_snprintf" = yes; then
22653 if test "$ac_cv_func_wprintf" = yes; then
22665 am_save_CPPFLAGS="$CPPFLAGS"
22667 for element in $INCICONV; do
22669 for x in $CPPFLAGS; do
22671 acl_save_prefix="$prefix"
22672 prefix="$acl_final_prefix"
22673 acl_save_exec_prefix="$exec_prefix"
22674 exec_prefix="$acl_final_exec_prefix"
22676 exec_prefix="$acl_save_exec_prefix"
22677 prefix="$acl_save_prefix"
22679 if test "X$x" = "X$element"; then
22684 if test -z "$haveit"; then
22685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22690 { echo "$as_me:$LINENO: checking for iconv" >&5
22691 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22692 if test "${am_cv_func_iconv+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 am_cv_func_iconv="no, consider installing GNU libiconv"
22698 cat >conftest.$ac_ext <<_ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22704 #include <stdlib.h>
22709 iconv_t cd = iconv_open("","");
22710 iconv(cd,NULL,NULL,NULL,NULL);
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 am_cv_func_iconv=yes
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22744 if test "$am_cv_func_iconv" != yes; then
22745 am_save_LIBS="$LIBS"
22746 LIBS="$LIBS $LIBICONV"
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 #include <stdlib.h>
22758 iconv_t cd = iconv_open("","");
22759 iconv(cd,NULL,NULL,NULL,NULL);
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest$ac_exeext &&
22782 $as_test_x conftest$ac_exeext; then
22783 am_cv_lib_iconv=yes
22784 am_cv_func_iconv=yes
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22793 conftest$ac_exeext conftest.$ac_ext
22794 LIBS="$am_save_LIBS"
22798 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22799 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22800 if test "$am_cv_func_iconv" = yes; then
22802 cat >>confdefs.h <<\_ACEOF
22803 #define HAVE_ICONV 1
22807 if test "$am_cv_lib_iconv" = yes; then
22808 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22809 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22810 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22811 echo "${ECHO_T}$LIBICONV" >&6; }
22813 CPPFLAGS="$am_save_CPPFLAGS"
22820 if test "$am_cv_func_iconv" = yes; then
22821 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22822 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22823 if test "${am_cv_proto_iconv+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 cat >conftest.$ac_ext <<_ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22834 #include <stdlib.h>
22840 #if defined(__STDC__) || defined(__cplusplus)
22841 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22871 am_cv_proto_iconv_arg1=""
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 am_cv_proto_iconv_arg1="const"
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 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);"
22883 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22884 { echo "$as_me:$LINENO: result: ${ac_t:-
22885 }$am_cv_proto_iconv" >&5
22886 echo "${ECHO_T}${ac_t:-
22887 }$am_cv_proto_iconv" >&6; }
22889 cat >>confdefs.h <<_ACEOF
22890 #define ICONV_CONST $am_cv_proto_iconv_arg1
22896 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22897 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22898 if test "${am_cv_langinfo_codeset+set}" = set; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 cat >conftest.$ac_ext <<_ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 #include <langinfo.h>
22911 char* cs = nl_langinfo(CODESET);
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (ac_try="$ac_link"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_link") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext &&
22933 $as_test_x conftest$ac_exeext; then
22934 am_cv_langinfo_codeset=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 am_cv_langinfo_codeset=no
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22946 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22947 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22948 if test $am_cv_langinfo_codeset = yes; then
22950 cat >>confdefs.h <<\_ACEOF
22951 #define HAVE_LANGINFO_CODESET 1
22956 if test $ac_cv_header_locale_h = yes; then
22958 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22959 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22960 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22969 #include <locale.h>
22978 rm -f conftest.$ac_objext conftest$ac_exeext
22979 if { (ac_try="$ac_link"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_link") 2>conftest.er1
22987 grep -v '^ *+' conftest.er1 >conftest.err
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest$ac_exeext &&
22995 $as_test_x conftest$ac_exeext; then
22996 gt_cv_val_LC_MESSAGES=yes
22998 echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23001 gt_cv_val_LC_MESSAGES=no
23004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23005 conftest$ac_exeext conftest.$ac_ext
23007 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23008 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23009 if test $gt_cv_val_LC_MESSAGES = yes; then
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_LC_MESSAGES 1
23019 if test -n "$INTL_MACOSX_LIBS"; then
23020 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23023 for ac_prog in bison
23025 # Extract the first word of "$ac_prog", so it can be a program name with args.
23026 set dummy $ac_prog; ac_word=$2
23027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23029 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 if test -n "$INTLBISON"; then
23033 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036 for as_dir in $PATH
23039 test -z "$as_dir" && as_dir=.
23040 for ac_exec_ext in '' $ac_executable_extensions; do
23041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23042 ac_cv_prog_INTLBISON="$ac_prog"
23043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23052 INTLBISON=$ac_cv_prog_INTLBISON
23053 if test -n "$INTLBISON"; then
23054 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23055 echo "${ECHO_T}$INTLBISON" >&6; }
23057 { echo "$as_me:$LINENO: result: no" >&5
23058 echo "${ECHO_T}no" >&6; }
23062 test -n "$INTLBISON" && break
23065 if test -z "$INTLBISON"; then
23068 { echo "$as_me:$LINENO: checking version of bison" >&5
23069 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23070 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23071 case $ac_prog_version in
23072 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23073 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23074 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23075 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23077 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23078 echo "${ECHO_T}$ac_prog_version" >&6; }
23080 if test $ac_verc_fail = yes; then
23099 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23100 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23101 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 gt_save_CPPFLAGS="$CPPFLAGS"
23105 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23106 gt_save_LIBS="$LIBS"
23107 LIBS="$LIBS -framework CoreFoundation"
23108 cat >conftest.$ac_ext <<_ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 #include <CFPreferences.h>
23118 CFPreferencesCopyAppValue(NULL, NULL)
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_link") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest$ac_exeext &&
23140 $as_test_x conftest$ac_exeext; then
23141 gt_cv_func_CFPreferencesCopyAppValue=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 gt_cv_func_CFPreferencesCopyAppValue=no
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150 conftest$ac_exeext conftest.$ac_ext
23151 CPPFLAGS="$gt_save_CPPFLAGS"
23152 LIBS="$gt_save_LIBS"
23154 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23155 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23156 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23158 cat >>confdefs.h <<\_ACEOF
23159 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23163 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23164 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23165 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23168 gt_save_CPPFLAGS="$CPPFLAGS"
23169 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23170 gt_save_LIBS="$LIBS"
23171 LIBS="$LIBS -framework CoreFoundation"
23172 cat >conftest.$ac_ext <<_ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 #include <CFLocale.h>
23182 CFLocaleCopyCurrent();
23187 rm -f conftest.$ac_objext conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_link") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest$ac_exeext &&
23204 $as_test_x conftest$ac_exeext; then
23205 gt_cv_func_CFLocaleCopyCurrent=yes
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 gt_cv_func_CFLocaleCopyCurrent=no
23213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23214 conftest$ac_exeext conftest.$ac_ext
23215 CPPFLAGS="$gt_save_CPPFLAGS"
23216 LIBS="$gt_save_LIBS"
23218 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23219 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23220 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23222 cat >>confdefs.h <<\_ACEOF
23223 #define HAVE_CFLOCALECOPYCURRENT 1
23228 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23229 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23235 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23236 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23237 # Check whether --enable-nls was given.
23238 if test "${enable_nls+set}" = set; then
23239 enableval=$enable_nls; USE_NLS=$enableval
23244 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23245 echo "${ECHO_T}$USE_NLS" >&6; }
23250 BUILD_INCLUDED_LIBINTL=no
23251 USE_INCLUDED_LIBINTL=no
23257 if test "$USE_NLS" = "yes"; then
23258 gt_use_preinstalled_gnugettext=no
23260 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23261 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23263 # Check whether --with-included-gettext was given.
23264 if test "${with_included_gettext+set}" = set; then
23265 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23267 nls_cv_force_use_gnu_gettext=no
23270 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23271 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23273 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23274 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23281 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23282 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23283 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 cat >conftest.$ac_ext <<_ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 #include <libintl.h>
23293 extern int _nl_msg_cat_cntr;
23294 extern int *_nl_domain_bindings;
23298 bindtextdomain ("", "");
23299 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (ac_try="$ac_link"
23306 case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_link") 2>conftest.er1
23313 grep -v '^ *+' conftest.er1 >conftest.err
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest$ac_exeext &&
23321 $as_test_x conftest$ac_exeext; then
23322 gt_cv_func_gnugettext1_libc=yes
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 gt_cv_func_gnugettext1_libc=no
23330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23331 conftest$ac_exeext conftest.$ac_ext
23333 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23334 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23336 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23342 acl_save_prefix="$prefix"
23343 prefix="$acl_final_prefix"
23344 acl_save_exec_prefix="$exec_prefix"
23345 exec_prefix="$acl_final_exec_prefix"
23347 eval additional_includedir=\"$includedir\"
23348 eval additional_libdir=\"$libdir\"
23350 exec_prefix="$acl_save_exec_prefix"
23351 prefix="$acl_save_prefix"
23354 # Check whether --with-libintl-prefix was given.
23355 if test "${with_libintl_prefix+set}" = set; then
23356 withval=$with_libintl_prefix;
23357 if test "X$withval" = "Xno"; then
23360 if test "X$withval" = "X"; then
23362 acl_save_prefix="$prefix"
23363 prefix="$acl_final_prefix"
23364 acl_save_exec_prefix="$exec_prefix"
23365 exec_prefix="$acl_final_exec_prefix"
23367 eval additional_includedir=\"$includedir\"
23368 eval additional_libdir=\"$libdir\"
23370 exec_prefix="$acl_save_exec_prefix"
23371 prefix="$acl_save_prefix"
23374 additional_includedir="$withval/include"
23375 additional_libdir="$withval/lib"
23386 names_already_handled=
23387 names_next_round='intl '
23388 while test -n "$names_next_round"; do
23389 names_this_round="$names_next_round"
23391 for name in $names_this_round; do
23393 for n in $names_already_handled; do
23394 if test "$n" = "$name"; then
23395 already_handled=yes
23399 if test -z "$already_handled"; then
23400 names_already_handled="$names_already_handled $name"
23401 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23402 eval value=\"\$HAVE_LIB$uppername\"
23403 if test -n "$value"; then
23404 if test "$value" = yes; then
23405 eval value=\"\$LIB$uppername\"
23406 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23407 eval value=\"\$LTLIB$uppername\"
23408 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23417 if test $use_additional = yes; then
23418 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23419 found_dir="$additional_libdir"
23420 found_so="$additional_libdir/lib$name.$shlibext"
23421 if test -f "$additional_libdir/lib$name.la"; then
23422 found_la="$additional_libdir/lib$name.la"
23425 if test -f "$additional_libdir/lib$name.$libext"; then
23426 found_dir="$additional_libdir"
23427 found_a="$additional_libdir/lib$name.$libext"
23428 if test -f "$additional_libdir/lib$name.la"; then
23429 found_la="$additional_libdir/lib$name.la"
23434 if test "X$found_dir" = "X"; then
23435 for x in $LDFLAGS $LTLIBINTL; do
23437 acl_save_prefix="$prefix"
23438 prefix="$acl_final_prefix"
23439 acl_save_exec_prefix="$exec_prefix"
23440 exec_prefix="$acl_final_exec_prefix"
23442 exec_prefix="$acl_save_exec_prefix"
23443 prefix="$acl_save_prefix"
23447 dir=`echo "X$x" | sed -e 's/^X-L//'`
23448 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23450 found_so="$dir/lib$name.$shlibext"
23451 if test -f "$dir/lib$name.la"; then
23452 found_la="$dir/lib$name.la"
23455 if test -f "$dir/lib$name.$libext"; then
23457 found_a="$dir/lib$name.$libext"
23458 if test -f "$dir/lib$name.la"; then
23459 found_la="$dir/lib$name.la"
23465 if test "X$found_dir" != "X"; then
23470 if test "X$found_dir" != "X"; then
23471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23472 if test "X$found_so" != "X"; then
23473 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23474 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23477 for x in $ltrpathdirs; do
23478 if test "X$x" = "X$found_dir"; then
23483 if test -z "$haveit"; then
23484 ltrpathdirs="$ltrpathdirs $found_dir"
23486 if test "$hardcode_direct" = yes; then
23487 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23489 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23490 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23492 for x in $rpathdirs; do
23493 if test "X$x" = "X$found_dir"; then
23498 if test -z "$haveit"; then
23499 rpathdirs="$rpathdirs $found_dir"
23503 for x in $LDFLAGS $LIBINTL; do
23505 acl_save_prefix="$prefix"
23506 prefix="$acl_final_prefix"
23507 acl_save_exec_prefix="$exec_prefix"
23508 exec_prefix="$acl_final_exec_prefix"
23510 exec_prefix="$acl_save_exec_prefix"
23511 prefix="$acl_save_prefix"
23513 if test "X$x" = "X-L$found_dir"; then
23518 if test -z "$haveit"; then
23519 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23521 if test "$hardcode_minus_L" != no; then
23522 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23524 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23530 if test "X$found_a" != "X"; then
23531 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23536 additional_includedir=
23537 case "$found_dir" in
23539 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23540 additional_includedir="$basedir/include"
23543 if test "X$additional_includedir" != "X"; then
23544 if test "X$additional_includedir" != "X/usr/include"; then
23546 if test "X$additional_includedir" = "X/usr/local/include"; then
23547 if test -n "$GCC"; then
23549 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23553 if test -z "$haveit"; then
23554 for x in $CPPFLAGS $INCINTL; do
23556 acl_save_prefix="$prefix"
23557 prefix="$acl_final_prefix"
23558 acl_save_exec_prefix="$exec_prefix"
23559 exec_prefix="$acl_final_exec_prefix"
23561 exec_prefix="$acl_save_exec_prefix"
23562 prefix="$acl_save_prefix"
23564 if test "X$x" = "X-I$additional_includedir"; then
23569 if test -z "$haveit"; then
23570 if test -d "$additional_includedir"; then
23571 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23577 if test -n "$found_la"; then
23578 save_libdir="$libdir"
23579 case "$found_la" in
23580 */* | *\\*) . "$found_la" ;;
23581 *) . "./$found_la" ;;
23583 libdir="$save_libdir"
23584 for dep in $dependency_libs; do
23587 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23588 if test "X$additional_libdir" != "X/usr/lib"; then
23590 if test "X$additional_libdir" = "X/usr/local/lib"; then
23591 if test -n "$GCC"; then
23593 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23597 if test -z "$haveit"; then
23599 for x in $LDFLAGS $LIBINTL; do
23601 acl_save_prefix="$prefix"
23602 prefix="$acl_final_prefix"
23603 acl_save_exec_prefix="$exec_prefix"
23604 exec_prefix="$acl_final_exec_prefix"
23606 exec_prefix="$acl_save_exec_prefix"
23607 prefix="$acl_save_prefix"
23609 if test "X$x" = "X-L$additional_libdir"; then
23614 if test -z "$haveit"; then
23615 if test -d "$additional_libdir"; then
23616 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23620 for x in $LDFLAGS $LTLIBINTL; do
23622 acl_save_prefix="$prefix"
23623 prefix="$acl_final_prefix"
23624 acl_save_exec_prefix="$exec_prefix"
23625 exec_prefix="$acl_final_exec_prefix"
23627 exec_prefix="$acl_save_exec_prefix"
23628 prefix="$acl_save_prefix"
23630 if test "X$x" = "X-L$additional_libdir"; then
23635 if test -z "$haveit"; then
23636 if test -d "$additional_libdir"; then
23637 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23644 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23645 if test "$enable_rpath" != no; then
23647 for x in $rpathdirs; do
23648 if test "X$x" = "X$dir"; then
23653 if test -z "$haveit"; then
23654 rpathdirs="$rpathdirs $dir"
23657 for x in $ltrpathdirs; do
23658 if test "X$x" = "X$dir"; then
23663 if test -z "$haveit"; then
23664 ltrpathdirs="$ltrpathdirs $dir"
23669 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23672 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23675 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23676 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23682 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23683 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23689 if test "X$rpathdirs" != "X"; then
23690 if test -n "$hardcode_libdir_separator"; then
23692 for found_dir in $rpathdirs; do
23693 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23695 acl_save_libdir="$libdir"
23697 eval flag=\"$hardcode_libdir_flag_spec\"
23698 libdir="$acl_save_libdir"
23699 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23701 for found_dir in $rpathdirs; do
23702 acl_save_libdir="$libdir"
23703 libdir="$found_dir"
23704 eval flag=\"$hardcode_libdir_flag_spec\"
23705 libdir="$acl_save_libdir"
23706 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23710 if test "X$ltrpathdirs" != "X"; then
23711 for found_dir in $ltrpathdirs; do
23712 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23716 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23717 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23718 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23719 echo $ECHO_N "(cached) $ECHO_C" >&6
23721 gt_save_CPPFLAGS="$CPPFLAGS"
23722 CPPFLAGS="$CPPFLAGS $INCINTL"
23723 gt_save_LIBS="$LIBS"
23724 LIBS="$LIBS $LIBINTL"
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 #include <libintl.h>
23732 extern int _nl_msg_cat_cntr;
23737 const char *_nl_expand_alias (const char *);
23741 bindtextdomain ("", "");
23742 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest$ac_exeext &&
23764 $as_test_x conftest$ac_exeext; then
23765 gt_cv_func_gnugettext1_libintl=yes
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 gt_cv_func_gnugettext1_libintl=no
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774 conftest$ac_exeext conftest.$ac_ext
23775 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23776 LIBS="$LIBS $LIBICONV"
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 #include <libintl.h>
23784 extern int _nl_msg_cat_cntr;
23789 const char *_nl_expand_alias (const char *);
23793 bindtextdomain ("", "");
23794 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_link") 2>conftest.er1
23808 grep -v '^ *+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest$ac_exeext &&
23816 $as_test_x conftest$ac_exeext; then
23817 LIBINTL="$LIBINTL $LIBICONV"
23818 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23819 gt_cv_func_gnugettext1_libintl=yes
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23829 conftest$ac_exeext conftest.$ac_ext
23831 CPPFLAGS="$gt_save_CPPFLAGS"
23832 LIBS="$gt_save_LIBS"
23834 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23835 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23838 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23839 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23840 && test "$PACKAGE" != gettext-runtime \
23841 && test "$PACKAGE" != gettext-tools; }; then
23842 gt_use_preinstalled_gnugettext=yes
23850 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23851 nls_cv_use_gnu_gettext=yes
23855 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23856 BUILD_INCLUDED_LIBINTL=yes
23857 USE_INCLUDED_LIBINTL=yes
23858 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23859 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23860 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23864 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23865 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23870 if test -n "$INTL_MACOSX_LIBS"; then
23871 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23872 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23873 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23874 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23878 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23879 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23881 cat >>confdefs.h <<\_ACEOF
23882 #define ENABLE_NLS 1
23890 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23891 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23892 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23893 echo "${ECHO_T}$USE_NLS" >&6; }
23894 if test "$USE_NLS" = "yes"; then
23895 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23896 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23897 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23898 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23899 gt_source="external libintl"
23904 gt_source="included intl directory"
23906 { echo "$as_me:$LINENO: result: $gt_source" >&5
23907 echo "${ECHO_T}$gt_source" >&6; }
23910 if test "$USE_NLS" = "yes"; then
23912 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23915 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23916 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23917 echo "${ECHO_T}$LIBINTL" >&6; }
23919 for element in $INCINTL; do
23921 for x in $CPPFLAGS; do
23923 acl_save_prefix="$prefix"
23924 prefix="$acl_final_prefix"
23925 acl_save_exec_prefix="$exec_prefix"
23926 exec_prefix="$acl_final_exec_prefix"
23928 exec_prefix="$acl_save_exec_prefix"
23929 prefix="$acl_save_prefix"
23931 if test "X$x" = "X$element"; then
23936 if test -z "$haveit"; then
23937 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23944 cat >>confdefs.h <<\_ACEOF
23945 #define HAVE_GETTEXT 1
23949 cat >>confdefs.h <<\_ACEOF
23950 #define HAVE_DCGETTEXT 1
23959 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23960 BUILD_INCLUDED_LIBINTL=yes
23967 nls_cv_header_intl=
23968 nls_cv_header_libgt=
23980 if test "$USE_INCLUDED_LIBINTL" = yes; then
23981 INTLOBJS="\$(GETTOBJS)"
23985 INTL_LIBTOOL_SUFFIX_PREFIX=
23989 INTLLIBS="$LIBINTL"
24001 support_postgresql=no
24003 support_smartalloc=yes
24004 support_readline=yes
24008 support_wx_console=no
24009 support_tray_monitor=no
24014 support_static_tools=no
24015 support_static_fd=no
24016 support_static_sd=no
24017 support_static_dir=no
24018 support_static_cons=no
24020 build_client_only=no
24029 # Check whether --enable-gnome was given.
24030 if test "${enable_gnome+set}" = set; then
24031 enableval=$enable_gnome;
24032 if test x$enableval = xyes; then
24041 if test x$support_gnome = xyes; then
24042 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24044 if test $pkg = 0; then
24045 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24046 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24047 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24048 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24053 GNOME_DIR=src/gnome2-console
24054 gnome_version="Version 2.x"
24056 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24057 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24058 { (exit 1); exit 1; }; }
24063 # Check whether --enable-bat was given.
24064 if test "${enable_bat+set}" = set; then
24065 enableval=$enable_bat;
24066 if test x$enableval = xyes; then
24068 cat >>confdefs.h <<\_ACEOF
24080 if test x$support_bat = xyes; then
24081 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24083 if test $pkg = 0; then
24084 BAT_DIR=src/qt-console
24086 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24087 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24088 { (exit 1); exit 1; }; }
24098 if test x$support_bat = xyes; then
24099 { echo "$as_me:$LINENO: checking for qwt support" >&5
24100 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24102 # Check whether --with-qwt was given.
24103 if test "${with_qwt+set}" = set; then
24105 case "$with_qwt" in
24110 if test -f ${with_qwt}/include/qwt.h; then
24111 QWT_INC="${with_qwt}/include"
24112 QWT_LDFLAGS="-L${with_qwt}/lib"
24123 if test $no_qwt = no; then
24124 if test x$QWT_INC = x; then
24125 for root in /usr /usr/local; do
24126 for ver in qwt qwt5 qwt-qt4; do
24127 if test -f ${root}/include/${ver}/qwt.h; then
24128 QWT_INC="${root}/include/${ver}"
24129 if test -d ${root}/lib64/; then
24130 QWT_LDFLAGS="-L${root}/lib64"
24131 elif test -d ${root}/lib/64/; then
24132 QWT_LDFLAGS="-L${root}/64"
24134 QWT_LDFLAGS="-L${root}/lib"
24145 if test x$QWT_INC = x; then
24146 { echo "$as_me:$LINENO: result: no" >&5
24147 echo "${ECHO_T}no" >&6; }
24150 cat >>confdefs.h <<\_ACEOF
24154 { echo "$as_me:$LINENO: result: yes" >&5
24155 echo "${ECHO_T}yes" >&6; }
24165 # Check whether --enable-bwx-console was given.
24166 if test "${enable_bwx_console+set}" = set; then
24167 enableval=$enable_bwx_console;
24168 if test x$enableval = xyes; then
24169 support_wx_console=yes
24177 if test x$support_wx_console = xyes; then
24178 abc=`$WXCONFIG $WXFLAGS --cppflags`
24180 if test $pkg = 0; then
24181 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24182 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24183 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24187 WX_DIR="src/wx-console"
24190 echo "wx-config program not found. bwx-console disabled."
24192 support_wx_console=no
24197 # Check whether --enable-tray-monitor was given.
24198 if test "${enable_tray_monitor+set}" = set; then
24199 enableval=$enable_tray_monitor;
24200 if test x$enableval = xyes; then
24201 support_tray_monitor=yes
24209 if test x$support_tray_monitor = xyes; then
24210 abc=`$PKGCONFIG --exists gtk+-2.0`
24212 if test $pkg = 0; then
24213 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24214 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24217 TRAY_MONITOR_DIR=src/tray-monitor
24218 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24220 if test $pkg = 0; then
24222 cat >>confdefs.h <<\_ACEOF
24223 #define HAVE_GTK_2_4 1
24231 # Check whether --enable-smartalloc was given.
24232 if test "${enable_smartalloc+set}" = set; then
24233 enableval=$enable_smartalloc;
24234 if test x$enableval = xno; then
24235 support_smartalloc=no
24242 if test x$support_smartalloc = xyes; then
24244 cat >>confdefs.h <<\_ACEOF
24245 #define SMARTALLOC 1
24250 # Check whether --enable-lockmgr was given.
24251 if test "${enable_lockmgr+set}" = set; then
24252 enableval=$enable_lockmgr;
24253 if test x$enableval = xyes; then
24254 support_lockmgr=yes
24261 if test x$support_lockmgr = xyes; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define _USE_LOCKMGR 1
24270 # Check whether --enable-static-tools was given.
24271 if test "${enable_static_tools+set}" = set; then
24272 enableval=$enable_static_tools;
24273 if test x$enableval = xyes; then
24274 if test x$use_libtool = xyes; then
24275 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24278 support_static_tools=yes
24286 if test x$support_static_tools = xyes; then
24287 TTOOL_LDFLAGS="-static"
24291 # Check whether --enable-static-fd was given.
24292 if test "${enable_static_fd+set}" = set; then
24293 enableval=$enable_static_fd;
24294 if test x$enableval = xyes; then
24295 if test x$use_libtool = xyes; then
24296 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24299 support_static_fd=yes
24307 if test x$support_static_fd = xyes; then
24308 STATIC_FD="static-bacula-fd"
24312 # Check whether --enable-static-sd was given.
24313 if test "${enable_static_sd+set}" = set; then
24314 enableval=$enable_static_sd;
24315 if test x$enableval = xyes; then
24316 if test x$use_libtool = xyes; then
24317 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24320 support_static_sd=yes
24328 if test x$support_static_sd = xyes; then
24329 STATIC_SD="static-bacula-sd"
24333 # Check whether --enable-static-dir was given.
24334 if test "${enable_static_dir+set}" = set; then
24335 enableval=$enable_static_dir;
24336 if test x$enableval = xyes; then
24337 if test x$use_libtool = xyes; then
24338 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24341 support_static_dir=yes
24349 if test x$support_static_dir = xyes; then
24350 STATIC_DIR="static-bacula-dir"
24354 # Check whether --enable-static-cons was given.
24355 if test "${enable_static_cons+set}" = set; then
24356 enableval=$enable_static_cons;
24357 if test x$enableval = xyes; then
24358 if test x$use_libtool = xyes; then
24359 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24362 support_static_cons=yes
24372 if test x$support_static_cons = xyes; then
24373 STATIC_CONS="static-bconsole"
24374 STATIC_GNOME_CONS="static-bgnome-console"
24375 STATIC_WX_CONS="static-bwx-console"
24381 # Check whether --enable-client-only was given.
24382 if test "${enable_client_only+set}" = set; then
24383 enableval=$enable_client_only;
24384 if test x$enableval = xyes; then
24385 build_client_only=yes
24393 if test x$build_client_only = xno; then
24400 # Check whether --enable-build-dird was given.
24401 if test "${enable_build_dird+set}" = set; then
24402 enableval=$enable_build_dird;
24403 if test x$enableval = xno; then
24410 if test x$build_dird = xyes; then
24411 DIRD_DIR="src/dird"
24412 DIR_TOOLS="DIRTOOLS"
24415 DIR_TOOLS="NODIRTOOLS"
24420 # Check whether --enable-build-stored was given.
24421 if test "${enable_build_stored+set}" = set; then
24422 enableval=$enable_build_stored;
24423 if test x$enableval = xno; then
24430 if test x$build_stored = xyes; then
24431 STORED_DIR="src/stored"
24437 # Check whether --enable-conio was given.
24438 if test "${enable_conio+set}" = set; then
24439 enableval=$enable_conio;
24440 if test x$enableval = xno; then
24450 # Check whether --enable-ipv6 was given.
24451 if test "${enable_ipv6+set}" = set; then
24452 enableval=$enable_ipv6;
24453 if test x$enableval = xno; then
24461 if test x$support_ipv6 = xyes; then
24462 cat >conftest.$ac_ext <<_ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24468 #include <sys/types.h>
24469 #include <sys/socket.h>
24470 #include <netinet/in.h>
24474 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (ac_try="$ac_link"
24481 case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486 (eval "$ac_link") 2>conftest.er1
24488 grep -v '^ *+' conftest.er1 >conftest.err
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } && {
24493 test -z "$ac_c_werror_flag" ||
24494 test ! -s conftest.err
24495 } && test -s conftest$ac_exeext &&
24496 $as_test_x conftest$ac_exeext; then
24499 echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24506 conftest$ac_exeext conftest.$ac_ext
24509 if test x$support_ipv6 = xyes; then
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_IPV6 1
24518 if test x$support_conio = xyes; then
24519 if test "${ac_cv_header_termcap_h+set}" = set; then
24520 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24521 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24522 if test "${ac_cv_header_termcap_h+set}" = set; then
24523 echo $ECHO_N "(cached) $ECHO_C" >&6
24525 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24526 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24528 # Is the header compilable?
24529 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24530 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24531 cat >conftest.$ac_ext <<_ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537 $ac_includes_default
24538 #include <termcap.h>
24540 rm -f conftest.$ac_objext
24541 if { (ac_try="$ac_compile"
24542 case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_compile") 2>conftest.er1
24549 grep -v '^ *+' conftest.er1 >conftest.err
24551 cat conftest.err >&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } && {
24554 test -z "$ac_c_werror_flag" ||
24555 test ! -s conftest.err
24556 } && test -s conftest.$ac_objext; then
24557 ac_header_compiler=yes
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 ac_header_compiler=no
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24567 echo "${ECHO_T}$ac_header_compiler" >&6; }
24569 # Is the header present?
24570 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24571 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24572 cat >conftest.$ac_ext <<_ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 #include <termcap.h>
24580 if { (ac_try="$ac_cpp conftest.$ac_ext"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24588 grep -v '^ *+' conftest.er1 >conftest.err
24590 cat conftest.err >&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); } >/dev/null && {
24593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24594 test ! -s conftest.err
24596 ac_header_preproc=yes
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_header_preproc=no
24604 rm -f conftest.err conftest.$ac_ext
24605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24606 echo "${ECHO_T}$ac_header_preproc" >&6; }
24608 # So? What about this header?
24609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24611 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24612 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24613 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24614 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24615 ac_header_preproc=yes
24618 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24619 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24620 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24621 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24622 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24623 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24624 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24625 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24626 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24627 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24629 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24633 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24634 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24635 if test "${ac_cv_header_termcap_h+set}" = set; then
24636 echo $ECHO_N "(cached) $ECHO_C" >&6
24638 ac_cv_header_termcap_h=$ac_header_preproc
24640 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24641 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24644 if test $ac_cv_header_termcap_h = yes; then
24645 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24646 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24647 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 ac_check_lib_save_LIBS=$LIBS
24651 LIBS="-ltermcap $LIBS"
24652 cat >conftest.$ac_ext <<_ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24659 /* Override any GCC internal prototype to avoid an error.
24660 Use char because int might match the return type of a GCC
24661 builtin and then its argument prototype would still apply. */
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681 (eval "$ac_link") 2>conftest.er1
24683 grep -v '^ *+' conftest.er1 >conftest.err
24685 cat conftest.err >&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest$ac_exeext &&
24691 $as_test_x conftest$ac_exeext; then
24692 ac_cv_lib_termcap_tgetent=yes
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24697 ac_cv_lib_termcap_tgetent=no
24700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24701 conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24704 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24705 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24706 if test $ac_cv_lib_termcap_tgetent = yes; then
24707 CONS_LIBS="-ltermcap"
24711 support_readline=no
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_CONIO 1
24719 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24720 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24721 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24722 echo $ECHO_N "(cached) $ECHO_C" >&6
24724 ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lncurses $LIBS"
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24733 /* Override any GCC internal prototype to avoid an error.
24734 Use char because int might match the return type of a GCC
24735 builtin and then its argument prototype would still apply. */
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (ac_try="$ac_link"
24750 case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_link") 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } && {
24762 test -z "$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24764 } && test -s conftest$ac_exeext &&
24765 $as_test_x conftest$ac_exeext; then
24766 ac_cv_lib_ncurses_tgetent=yes
24768 echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.$ac_ext >&5
24771 ac_cv_lib_ncurses_tgetent=no
24774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24775 conftest$ac_exeext conftest.$ac_ext
24776 LIBS=$ac_check_lib_save_LIBS
24778 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24779 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24780 if test $ac_cv_lib_ncurses_tgetent = yes; then
24781 CONS_LIBS="-lncurses"
24785 support_readline=no
24787 cat >>confdefs.h <<\_ACEOF
24788 #define HAVE_CONIO 1
24801 for ac_header in curses.h
24803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24808 echo $ECHO_N "(cached) $ECHO_C" >&6
24810 ac_res=`eval echo '${'$as_ac_Header'}'`
24811 { echo "$as_me:$LINENO: result: $ac_res" >&5
24812 echo "${ECHO_T}$ac_res" >&6; }
24814 # Is the header compilable?
24815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24817 cat >conftest.$ac_ext <<_ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 $ac_includes_default
24824 #include <$ac_header>
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 ac_header_compiler=yes
24845 echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24848 ac_header_compiler=no
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24853 echo "${ECHO_T}$ac_header_compiler" >&6; }
24855 # Is the header present?
24856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 #include <$ac_header>
24866 if { (ac_try="$ac_cpp conftest.$ac_ext"
24867 case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24874 grep -v '^ *+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } >/dev/null && {
24879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24882 ac_header_preproc=yes
24884 echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24887 ac_header_preproc=no
24890 rm -f conftest.err conftest.$ac_ext
24891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24892 echo "${ECHO_T}$ac_header_preproc" >&6; }
24894 # So? What about this header?
24895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24901 ac_header_preproc=yes
24904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 eval "$as_ac_Header=\$ac_header_preproc"
24926 ac_res=`eval echo '${'$as_ac_Header'}'`
24927 { echo "$as_me:$LINENO: result: $ac_res" >&5
24928 echo "${ECHO_T}$ac_res" >&6; }
24931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24932 cat >>confdefs.h <<_ACEOF
24933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24940 { echo "$as_me:$LINENO: checking for term.h" >&5
24941 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24942 if test "${ac_cv_header_term_h+set}" = set; then
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24945 cat >conftest.$ac_ext <<_ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24952 #include <curses.h>
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24967 grep -v '^ *+' conftest.er1 >conftest.err
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24975 ac_cv_header_term_h=yes
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_header_term_h=no
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24985 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24986 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24987 if test $ac_cv_header_term_h = yes; then
24988 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24989 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24990 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24991 echo $ECHO_N "(cached) $ECHO_C" >&6
24993 ac_check_lib_save_LIBS=$LIBS
24994 LIBS="-lcurses $LIBS"
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25002 /* Override any GCC internal prototype to avoid an error.
25003 Use char because int might match the return type of a GCC
25004 builtin and then its argument prototype would still apply. */
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_link") 2>conftest.er1
25026 grep -v '^ *+' conftest.er1 >conftest.err
25028 cat conftest.err >&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } && {
25031 test -z "$ac_c_werror_flag" ||
25032 test ! -s conftest.err
25033 } && test -s conftest$ac_exeext &&
25034 $as_test_x conftest$ac_exeext; then
25035 ac_cv_lib_curses_tgetent=yes
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_cv_lib_curses_tgetent=no
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044 conftest$ac_exeext conftest.$ac_ext
25045 LIBS=$ac_check_lib_save_LIBS
25047 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25048 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25049 if test $ac_cv_lib_curses_tgetent = yes; then
25050 CONS_LIBS="-lcurses"
25054 support_readline=no
25056 cat >>confdefs.h <<\_ACEOF
25057 #define HAVE_CONIO 1
25065 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25076 # Check whether --enable-readline was given.
25077 if test "${enable_readline+set}" = set; then
25078 enableval=$enable_readline;
25079 if test x$enableval = xno; then
25080 support_readline=no
25089 if test x$support_readline = xyes; then
25091 # Check whether --with-readline was given.
25092 if test "${with_readline+set}" = set; then
25093 withval=$with_readline;
25094 case "$with_readline" in
25099 if test -f ${with_readline}/readline.h; then
25100 CONS_INC="-I${with_readline}"
25101 CONS_LDFLAGS="-L$with_readline"
25102 elif test -f ${with_readline}/include/readline/readline.h; then
25103 CONS_INC="-I${with_readline}/include/readline"
25104 CONS_LDFLAGS="-L${with_readline}/lib"
25105 with_readline="${with_readline}/include/readline"
25107 with_readline="/usr/include/readline"
25110 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25112 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25113 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 ac_res=`eval echo '${'$as_ac_Header'}'`
25118 { echo "$as_me:$LINENO: result: $ac_res" >&5
25119 echo "${ECHO_T}$ac_res" >&6; }
25121 # Is the header compilable?
25122 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25123 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25124 cat >conftest.$ac_ext <<_ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25130 $ac_includes_default
25131 #include <${with_readline}/readline.h>
25133 rm -f conftest.$ac_objext
25134 if { (ac_try="$ac_compile"
25135 case "(($ac_try" in
25136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_compile") 2>conftest.er1
25142 grep -v '^ *+' conftest.er1 >conftest.err
25144 cat conftest.err >&5
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); } && {
25147 test -z "$ac_c_werror_flag" ||
25148 test ! -s conftest.err
25149 } && test -s conftest.$ac_objext; then
25150 ac_header_compiler=yes
25152 echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25155 ac_header_compiler=no
25158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25160 echo "${ECHO_T}$ac_header_compiler" >&6; }
25162 # Is the header present?
25163 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25164 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25165 cat >conftest.$ac_ext <<_ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25171 #include <${with_readline}/readline.h>
25173 if { (ac_try="$ac_cpp conftest.$ac_ext"
25174 case "(($ac_try" in
25175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176 *) ac_try_echo=$ac_try;;
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } >/dev/null && {
25186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25189 ac_header_preproc=yes
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 ac_header_preproc=no
25197 rm -f conftest.err conftest.$ac_ext
25198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25199 echo "${ECHO_T}$ac_header_preproc" >&6; }
25201 # So? What about this header?
25202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25204 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25205 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25206 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25207 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25208 ac_header_preproc=yes
25211 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25212 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25213 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25214 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25215 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25216 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25217 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25218 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25219 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25220 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25221 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25226 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25227 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 eval "$as_ac_Header=\$ac_header_preproc"
25233 ac_res=`eval echo '${'$as_ac_Header'}'`
25234 { echo "$as_me:$LINENO: result: $ac_res" >&5
25235 echo "${ECHO_T}$ac_res" >&6; }
25238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_READLINE 1
25245 CONS_LIBS="-lreadline -lhistory -ltermcap"
25251 echo "readline.h not found. readline turned off ..."
25263 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25264 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25265 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25266 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25269 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25270 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25272 # Is the header compilable?
25273 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25274 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25275 cat >conftest.$ac_ext <<_ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25281 $ac_includes_default
25282 #include </usr/include/readline/readline.h>
25284 rm -f conftest.$ac_objext
25285 if { (ac_try="$ac_compile"
25286 case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291 (eval "$ac_compile") 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } && {
25298 test -z "$ac_c_werror_flag" ||
25299 test ! -s conftest.err
25300 } && test -s conftest.$ac_objext; then
25301 ac_header_compiler=yes
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ac_header_compiler=no
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25311 echo "${ECHO_T}$ac_header_compiler" >&6; }
25313 # Is the header present?
25314 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25315 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 #include </usr/include/readline/readline.h>
25324 if { (ac_try="$ac_cpp conftest.$ac_ext"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } >/dev/null && {
25337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25338 test ! -s conftest.err
25340 ac_header_preproc=yes
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_header_preproc=no
25348 rm -f conftest.err conftest.$ac_ext
25349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25350 echo "${ECHO_T}$ac_header_preproc" >&6; }
25352 # So? What about this header?
25353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25355 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25356 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25358 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25359 ac_header_preproc=yes
25362 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25363 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25364 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25365 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25366 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25367 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25368 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25369 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25370 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25371 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25372 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25377 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25378 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25379 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25380 echo $ECHO_N "(cached) $ECHO_C" >&6
25382 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25384 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25385 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25388 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_READLINE 1
25396 CONS_INC="-I/usr/include/readline"
25397 CONS_LIBS="-lreadline -ltermcap"
25401 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25403 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25404 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25406 echo $ECHO_N "(cached) $ECHO_C" >&6
25408 ac_res=`eval echo '${'$as_ac_Header'}'`
25409 { echo "$as_me:$LINENO: result: $ac_res" >&5
25410 echo "${ECHO_T}$ac_res" >&6; }
25412 # Is the header compilable?
25413 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25414 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25415 cat >conftest.$ac_ext <<_ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25421 $ac_includes_default
25422 #include <${TOP_DIR}/depkgs/readline/readline.h>
25424 rm -f conftest.$ac_objext
25425 if { (ac_try="$ac_compile"
25426 case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_compile") 2>conftest.er1
25433 grep -v '^ *+' conftest.er1 >conftest.err
25435 cat conftest.err >&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest.$ac_objext; then
25441 ac_header_compiler=yes
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ac_header_compiler=no
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25451 echo "${ECHO_T}$ac_header_compiler" >&6; }
25453 # Is the header present?
25454 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25455 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25456 cat >conftest.$ac_ext <<_ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #include <${TOP_DIR}/depkgs/readline/readline.h>
25464 if { (ac_try="$ac_cpp conftest.$ac_ext"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } >/dev/null && {
25477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25480 ac_header_preproc=yes
25482 echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_preproc=no
25488 rm -f conftest.err conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 echo "${ECHO_T}$ac_header_preproc" >&6; }
25492 # So? What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25495 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25496 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25498 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25499 ac_header_preproc=yes
25502 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25503 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25504 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25505 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25507 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25509 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25510 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25511 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25512 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25517 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25518 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 eval "$as_ac_Header=\$ac_header_preproc"
25524 ac_res=`eval echo '${'$as_ac_Header'}'`
25525 { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25532 cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_READLINE 1
25537 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25538 CONS_LIBS="-lreadline -lhistory -ltermcap"
25539 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25540 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25545 echo "readline.h not found. readline turned off ..."
25572 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25573 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25574 if test "${ac_cv_header_stat_broken+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 #include <sys/types.h>
25584 #include <sys/stat.h>
25586 #if defined S_ISBLK && defined S_IFDIR
25587 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25590 #if defined S_ISBLK && defined S_IFCHR
25591 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25594 #if defined S_ISLNK && defined S_IFREG
25595 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25598 #if defined S_ISSOCK && defined S_IFREG
25599 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25603 rm -f conftest.$ac_objext
25604 if { (ac_try="$ac_compile"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_compile") 2>conftest.er1
25612 grep -v '^ *+' conftest.er1 >conftest.err
25614 cat conftest.err >&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); } && {
25617 test -z "$ac_c_werror_flag" ||
25618 test ! -s conftest.err
25619 } && test -s conftest.$ac_objext; then
25620 ac_cv_header_stat_broken=no
25622 echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25625 ac_cv_header_stat_broken=yes
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25631 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25632 if test $ac_cv_header_stat_broken = yes; then
25634 cat >>confdefs.h <<\_ACEOF
25635 #define STAT_MACROS_BROKEN 1
25645 ac_header_dirent=no
25646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25647 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25648 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25649 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25651 echo $ECHO_N "(cached) $ECHO_C" >&6
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 #include <sys/types.h>
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25680 grep -v '^ *+' conftest.er1 >conftest.err
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.$ac_objext; then
25688 eval "$as_ac_Header=yes"
25690 echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25693 eval "$as_ac_Header=no"
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 ac_res=`eval echo '${'$as_ac_Header'}'`
25699 { echo "$as_me:$LINENO: result: $ac_res" >&5
25700 echo "${ECHO_T}$ac_res" >&6; }
25701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25702 cat >>confdefs.h <<_ACEOF
25703 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25706 ac_header_dirent=$ac_hdr; break
25710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25711 if test $ac_header_dirent = dirent.h; then
25712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25714 if test "${ac_cv_search_opendir+set}" = set; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 ac_func_search_save_LIBS=$LIBS
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25725 /* Override any GCC internal prototype to avoid an error.
25726 Use char because int might match the return type of a GCC
25727 builtin and then its argument prototype would still apply. */
25740 for ac_lib in '' dir; do
25741 if test -z "$ac_lib"; then
25742 ac_res="none required"
25745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25747 rm -f conftest.$ac_objext conftest$ac_exeext
25748 if { (ac_try="$ac_link"
25749 case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_link") 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest$ac_exeext &&
25764 $as_test_x conftest$ac_exeext; then
25765 ac_cv_search_opendir=$ac_res
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25775 if test "${ac_cv_search_opendir+set}" = set; then
25779 if test "${ac_cv_search_opendir+set}" = set; then
25782 ac_cv_search_opendir=no
25784 rm conftest.$ac_ext
25785 LIBS=$ac_func_search_save_LIBS
25787 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25788 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25789 ac_res=$ac_cv_search_opendir
25790 if test "$ac_res" != no; then
25791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25796 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25798 if test "${ac_cv_search_opendir+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 ac_func_search_save_LIBS=$LIBS
25802 cat >conftest.$ac_ext <<_ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h. */
25809 /* Override any GCC internal prototype to avoid an error.
25810 Use char because int might match the return type of a GCC
25811 builtin and then its argument prototype would still apply. */
25824 for ac_lib in '' x; do
25825 if test -z "$ac_lib"; then
25826 ac_res="none required"
25829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25831 rm -f conftest.$ac_objext conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838 (eval "$ac_link") 2>conftest.er1
25840 grep -v '^ *+' conftest.er1 >conftest.err
25842 cat conftest.err >&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } && {
25845 test -z "$ac_c_werror_flag" ||
25846 test ! -s conftest.err
25847 } && test -s conftest$ac_exeext &&
25848 $as_test_x conftest$ac_exeext; then
25849 ac_cv_search_opendir=$ac_res
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25859 if test "${ac_cv_search_opendir+set}" = set; then
25863 if test "${ac_cv_search_opendir+set}" = set; then
25866 ac_cv_search_opendir=no
25868 rm conftest.$ac_ext
25869 LIBS=$ac_func_search_save_LIBS
25871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25873 ac_res=$ac_cv_search_opendir
25874 if test "$ac_res" != no; then
25875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25888 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25896 cat >conftest.$ac_ext <<_ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25904 #define $ac_func innocuous_$ac_func
25906 /* System header to define __stub macros and hopefully few prototypes,
25907 which can conflict with char $ac_func (); below.
25908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25909 <limits.h> exists even on freestanding compilers. */
25912 # include <limits.h>
25914 # include <assert.h>
25919 /* Override any GCC internal prototype to avoid an error.
25920 Use char because int might match the return type of a GCC
25921 builtin and then its argument prototype would still apply. */
25926 /* The GNU C library defines this for functions which it implements
25927 to always fail with ENOSYS. Some functions are actually named
25928 something starting with __ and the normal name is an alias. */
25929 #if defined __stub_$ac_func || defined __stub___$ac_func
25936 return $ac_func ();
25941 rm -f conftest.$ac_objext conftest$ac_exeext
25942 if { (ac_try="$ac_link"
25943 case "(($ac_try" in
25944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945 *) ac_try_echo=$ac_try;;
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948 (eval "$ac_link") 2>conftest.er1
25950 grep -v '^ *+' conftest.er1 >conftest.err
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } && {
25955 test -z "$ac_c_werror_flag" ||
25956 test ! -s conftest.err
25957 } && test -s conftest$ac_exeext &&
25958 $as_test_x conftest$ac_exeext; then
25959 eval "$as_ac_var=yes"
25961 echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 eval "$as_ac_var=no"
25967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25968 conftest$ac_exeext conftest.$ac_ext
25970 ac_res=`eval echo '${'$as_ac_var'}'`
25971 { echo "$as_me:$LINENO: result: $ac_res" >&5
25972 echo "${ECHO_T}$ac_res" >&6; }
25973 if test `eval echo '${'$as_ac_var'}'` = yes; then
25974 cat >>confdefs.h <<_ACEOF
25975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25983 for ac_func in nanosleep nl_langinfo
25985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25999 #define $ac_func innocuous_$ac_func
26001 /* System header to define __stub macros and hopefully few prototypes,
26002 which can conflict with char $ac_func (); below.
26003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26004 <limits.h> exists even on freestanding compilers. */
26007 # include <limits.h>
26009 # include <assert.h>
26014 /* Override any GCC internal prototype to avoid an error.
26015 Use char because int might match the return type of a GCC
26016 builtin and then its argument prototype would still apply. */
26021 /* The GNU C library defines this for functions which it implements
26022 to always fail with ENOSYS. Some functions are actually named
26023 something starting with __ and the normal name is an alias. */
26024 #if defined __stub_$ac_func || defined __stub___$ac_func
26031 return $ac_func ();
26036 rm -f conftest.$ac_objext conftest$ac_exeext
26037 if { (ac_try="$ac_link"
26038 case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043 (eval "$ac_link") 2>conftest.er1
26045 grep -v '^ *+' conftest.er1 >conftest.err
26047 cat conftest.err >&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } && {
26050 test -z "$ac_c_werror_flag" ||
26051 test ! -s conftest.err
26052 } && test -s conftest$ac_exeext &&
26053 $as_test_x conftest$ac_exeext; then
26054 eval "$as_ac_var=yes"
26056 echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 eval "$as_ac_var=no"
26062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26063 conftest$ac_exeext conftest.$ac_ext
26065 ac_res=`eval echo '${'$as_ac_var'}'`
26066 { echo "$as_me:$LINENO: result: $ac_res" >&5
26067 echo "${ECHO_T}$ac_res" >&6; }
26068 if test `eval echo '${'$as_ac_var'}'` = yes; then
26069 cat >>confdefs.h <<_ACEOF
26070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26077 for ac_header in varargs.h
26079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 ac_res=`eval echo '${'$as_ac_Header'}'`
26087 { echo "$as_me:$LINENO: result: $ac_res" >&5
26088 echo "${ECHO_T}$ac_res" >&6; }
26090 # Is the header compilable?
26091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26093 cat >conftest.$ac_ext <<_ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26099 $ac_includes_default
26100 #include <$ac_header>
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109 (eval "$ac_compile") 2>conftest.er1
26111 grep -v '^ *+' conftest.er1 >conftest.err
26113 cat conftest.err >&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } && {
26116 test -z "$ac_c_werror_flag" ||
26117 test ! -s conftest.err
26118 } && test -s conftest.$ac_objext; then
26119 ac_header_compiler=yes
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 ac_header_compiler=no
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26129 echo "${ECHO_T}$ac_header_compiler" >&6; }
26131 # Is the header present?
26132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26134 cat >conftest.$ac_ext <<_ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h. */
26140 #include <$ac_header>
26142 if { (ac_try="$ac_cpp conftest.$ac_ext"
26143 case "(($ac_try" in
26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145 *) ac_try_echo=$ac_try;;
26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26150 grep -v '^ *+' conftest.er1 >conftest.err
26152 cat conftest.err >&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } >/dev/null && {
26155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26156 test ! -s conftest.err
26158 ac_header_preproc=yes
26160 echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26163 ac_header_preproc=no
26166 rm -f conftest.err conftest.$ac_ext
26167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26168 echo "${ECHO_T}$ac_header_preproc" >&6; }
26170 # So? What about this header?
26171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26177 ac_header_preproc=yes
26180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 eval "$as_ac_Header=\$ac_header_preproc"
26202 ac_res=`eval echo '${'$as_ac_Header'}'`
26203 { echo "$as_me:$LINENO: result: $ac_res" >&5
26204 echo "${ECHO_T}$ac_res" >&6; }
26207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26208 cat >>confdefs.h <<_ACEOF
26209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26218 { echo "$as_me:$LINENO: checking for Python support" >&5
26219 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26221 # Check whether --with-python was given.
26222 if test "${with_python+set}" = set; then
26223 withval=$with_python;
26226 if test "$withval" != "no"; then
26227 if test "$withval" = "yes"; then
26228 for python_root in /usr /usr/local /usr/sfw; do
26229 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26230 if test -f $python_root/include/${ver}/Python.h; then
26231 PYTHON_INCDIR=-I$python_root/include/${ver}
26232 if test -d $python_root/lib64/${ver}/config; then
26233 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26235 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26242 if test x$PYTHON_INCDIR = x; then
26243 if test -f $prefix/include/Python.h; then
26244 PYTHON_INCDIR=-I$prefix/include
26245 if test -d $prefix/lib64/config; then
26246 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26248 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26251 { echo "$as_me:$LINENO: result: no" >&5
26252 echo "${ECHO_T}no" >&6; }
26253 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26254 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26255 { (exit 1); exit 1; }; }
26259 if test -f $withval/Python.h; then
26260 PYTHON_INCDIR=-I$withval
26261 PYTHON_LIBS="-L$withval/config -lpython"
26262 elif test -f $withval/include/Python.h; then
26263 PYTHON_INCDIR=-I$withval/include
26264 if test -d $withval/lib64/config; then
26265 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26267 PYTHON_LIBS="-L$withval/lib/config -lpython"
26269 elif test -f $withval/include/python/Python.h; then
26270 PYTHON_INCDIR=-I$withval/include/python
26271 if test -d $withval/lib64/python/config; then
26272 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26274 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26277 { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26280 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26281 { (exit 1); exit 1; }; }
26285 cat >>confdefs.h <<\_ACEOF
26286 #define HAVE_PYTHON 1
26289 { echo "$as_me:$LINENO: result: yes" >&5
26290 echo "${ECHO_T}yes" >&6; }
26292 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26293 echo "$as_me: checking for more Python libs" >&6;}
26294 saved_LIBS="$LIBS"; LIBS=
26295 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26296 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26297 if test "${ac_cv_search_shm_open+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 ac_func_search_save_LIBS=$LIBS
26301 cat >conftest.$ac_ext <<_ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26308 /* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26318 return shm_open ();
26323 for ac_lib in '' rt; do
26324 if test -z "$ac_lib"; then
26325 ac_res="none required"
26328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (ac_try="$ac_link"
26332 case "(($ac_try" in
26333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334 *) ac_try_echo=$ac_try;;
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_link") 2>conftest.er1
26339 grep -v '^ *+' conftest.er1 >conftest.err
26341 cat conftest.err >&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } && {
26344 test -z "$ac_c_werror_flag" ||
26345 test ! -s conftest.err
26346 } && test -s conftest$ac_exeext &&
26347 $as_test_x conftest$ac_exeext; then
26348 ac_cv_search_shm_open=$ac_res
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26358 if test "${ac_cv_search_shm_open+set}" = set; then
26362 if test "${ac_cv_search_shm_open+set}" = set; then
26365 ac_cv_search_shm_open=no
26367 rm conftest.$ac_ext
26368 LIBS=$ac_func_search_save_LIBS
26370 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26371 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26372 ac_res=$ac_cv_search_shm_open
26373 if test "$ac_res" != no; then
26374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26379 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26380 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26381 if test "${ac_cv_lib_util_openpty+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26384 ac_check_lib_save_LIBS=$LIBS
26385 LIBS="-lutil $LIBS"
26386 cat >conftest.$ac_ext <<_ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h. */
26393 /* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_link") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
26426 ac_cv_lib_util_openpty=yes
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 ac_cv_lib_util_openpty=no
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435 conftest$ac_exeext conftest.$ac_ext
26436 LIBS=$ac_check_lib_save_LIBS
26438 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26439 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26440 if test $ac_cv_lib_util_openpty = yes; then
26441 cat >>confdefs.h <<_ACEOF
26442 #define HAVE_LIBUTIL 1
26445 LIBS="-lutil $LIBS"
26449 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26452 { echo "$as_me:$LINENO: result: no" >&5
26453 echo "${ECHO_T}no" >&6; }
26458 { echo "$as_me:$LINENO: result: no" >&5
26459 echo "${ECHO_T}no" >&6; }
26467 { echo "$as_me:$LINENO: checking for socket" >&5
26468 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26469 if test "${ac_cv_func_socket+set}" = set; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 cat >conftest.$ac_ext <<_ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26478 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26480 #define socket innocuous_socket
26482 /* System header to define __stub macros and hopefully few prototypes,
26483 which can conflict with char socket (); below.
26484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26485 <limits.h> exists even on freestanding compilers. */
26488 # include <limits.h>
26490 # include <assert.h>
26495 /* Override any GCC internal prototype to avoid an error.
26496 Use char because int might match the return type of a GCC
26497 builtin and then its argument prototype would still apply. */
26502 /* The GNU C library defines this for functions which it implements
26503 to always fail with ENOSYS. Some functions are actually named
26504 something starting with __ and the normal name is an alias. */
26505 #if defined __stub_socket || defined __stub___socket
26517 rm -f conftest.$ac_objext conftest$ac_exeext
26518 if { (ac_try="$ac_link"
26519 case "(($ac_try" in
26520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521 *) ac_try_echo=$ac_try;;
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524 (eval "$ac_link") 2>conftest.er1
26526 grep -v '^ *+' conftest.er1 >conftest.err
26528 cat conftest.err >&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } && {
26531 test -z "$ac_c_werror_flag" ||
26532 test ! -s conftest.err
26533 } && test -s conftest$ac_exeext &&
26534 $as_test_x conftest$ac_exeext; then
26535 ac_cv_func_socket=yes
26537 echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26540 ac_cv_func_socket=no
26543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26544 conftest$ac_exeext conftest.$ac_ext
26546 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26547 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26548 if test $ac_cv_func_socket = yes; then
26549 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26550 echo "${ECHO_T}using libc's socket" >&6; }
26553 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 ac_check_lib_save_LIBS=$LIBS
26559 LIBS="-lxnet $LIBS"
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26567 /* Override any GCC internal prototype to avoid an error.
26568 Use char because int might match the return type of a GCC
26569 builtin and then its argument prototype would still apply. */
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589 (eval "$ac_link") 2>conftest.er1
26591 grep -v '^ *+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } && {
26596 test -z "$ac_c_werror_flag" ||
26597 test ! -s conftest.err
26598 } && test -s conftest$ac_exeext &&
26599 $as_test_x conftest$ac_exeext; then
26600 ac_cv_lib_xnet_socket=yes
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 ac_cv_lib_xnet_socket=no
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609 conftest$ac_exeext conftest.$ac_ext
26610 LIBS=$ac_check_lib_save_LIBS
26612 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26613 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26614 if test $ac_cv_lib_xnet_socket = yes; then
26615 cat >>confdefs.h <<_ACEOF
26616 #define HAVE_LIBXNET 1
26619 LIBS="-lxnet $LIBS"
26624 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26626 if test "${ac_cv_lib_socket_socket+set}" = set; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 ac_check_lib_save_LIBS=$LIBS
26630 LIBS="-lsocket $LIBS"
26631 cat >conftest.$ac_ext <<_ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26638 /* Override any GCC internal prototype to avoid an error.
26639 Use char because int might match the return type of a GCC
26640 builtin and then its argument prototype would still apply. */
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (ac_try="$ac_link"
26655 case "(($ac_try" in
26656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657 *) ac_try_echo=$ac_try;;
26659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660 (eval "$ac_link") 2>conftest.er1
26662 grep -v '^ *+' conftest.er1 >conftest.err
26664 cat conftest.err >&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); } && {
26667 test -z "$ac_c_werror_flag" ||
26668 test ! -s conftest.err
26669 } && test -s conftest$ac_exeext &&
26670 $as_test_x conftest$ac_exeext; then
26671 ac_cv_lib_socket_socket=yes
26673 echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26676 ac_cv_lib_socket_socket=no
26679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26680 conftest$ac_exeext conftest.$ac_ext
26681 LIBS=$ac_check_lib_save_LIBS
26683 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26684 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26685 if test $ac_cv_lib_socket_socket = yes; then
26686 cat >>confdefs.h <<_ACEOF
26687 #define HAVE_LIBSOCKET 1
26690 LIBS="-lsocket $LIBS"
26695 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26696 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26697 if test "${ac_cv_lib_inet_socket+set}" = set; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 ac_check_lib_save_LIBS=$LIBS
26701 LIBS="-linet $LIBS"
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26709 /* Override any GCC internal prototype to avoid an error.
26710 Use char because int might match the return type of a GCC
26711 builtin and then its argument prototype would still apply. */
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731 (eval "$ac_link") 2>conftest.er1
26733 grep -v '^ *+' conftest.er1 >conftest.err
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } && {
26738 test -z "$ac_c_werror_flag" ||
26739 test ! -s conftest.err
26740 } && test -s conftest$ac_exeext &&
26741 $as_test_x conftest$ac_exeext; then
26742 ac_cv_lib_inet_socket=yes
26744 echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26747 ac_cv_lib_inet_socket=no
26750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26751 conftest$ac_exeext conftest.$ac_ext
26752 LIBS=$ac_check_lib_save_LIBS
26754 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26755 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26756 if test $ac_cv_lib_inet_socket = yes; then
26757 cat >>confdefs.h <<_ACEOF
26758 #define HAVE_LIBINET 1
26761 LIBS="-linet $LIBS"
26771 # Check whether --with-tcp-wrappers was given.
26772 if test "${with_tcp_wrappers+set}" = set; then
26773 withval=$with_tcp_wrappers;
26774 if test "x$withval" != "xno" ; then
26776 LIBS="$saved_LIBS -lwrap"
26777 { echo "$as_me:$LINENO: checking for libwrap" >&5
26778 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26779 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26780 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26781 if test "${ac_cv_search_nanosleep+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 ac_func_search_save_LIBS=$LIBS
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26792 /* Override any GCC internal prototype to avoid an error.
26793 Use char because int might match the return type of a GCC
26794 builtin and then its argument prototype would still apply. */
26802 return nanosleep ();
26807 for ac_lib in '' rt; do
26808 if test -z "$ac_lib"; then
26809 ac_res="none required"
26812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26814 rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_link") 2>conftest.er1
26823 grep -v '^ *+' conftest.er1 >conftest.err
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } && {
26828 test -z "$ac_c_werror_flag" ||
26829 test ! -s conftest.err
26830 } && test -s conftest$ac_exeext &&
26831 $as_test_x conftest$ac_exeext; then
26832 ac_cv_search_nanosleep=$ac_res
26834 echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26842 if test "${ac_cv_search_nanosleep+set}" = set; then
26846 if test "${ac_cv_search_nanosleep+set}" = set; then
26849 ac_cv_search_nanosleep=no
26851 rm conftest.$ac_ext
26852 LIBS=$ac_func_search_save_LIBS
26854 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26855 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26856 ac_res=$ac_cv_search_nanosleep
26857 if test "$ac_res" != no; then
26858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26862 cat >conftest.$ac_ext <<_ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26869 #include <sys/types.h>
26871 int deny_severity = 0;
26872 int allow_severity = 0;
26873 struct request_info *req;
26885 rm -f conftest.$ac_objext conftest$ac_exeext
26886 if { (ac_try="$ac_link"
26887 case "(($ac_try" in
26888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892 (eval "$ac_link") 2>conftest.er1
26894 grep -v '^ *+' conftest.er1 >conftest.err
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } && {
26899 test -z "$ac_c_werror_flag" ||
26900 test ! -s conftest.err
26901 } && test -s conftest$ac_exeext &&
26902 $as_test_x conftest$ac_exeext; then
26904 { echo "$as_me:$LINENO: result: yes" >&5
26905 echo "${ECHO_T}yes" >&6; }
26907 cat >>confdefs.h <<\_ACEOF
26908 #define HAVE_LIBWRAP 1
26916 echo "$as_me: failed program was:" >&5
26917 sed 's/^/| /' conftest.$ac_ext >&5
26920 LIBS="$saved_LIBS -lwrap -lnsl"
26921 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26922 cat >conftest.$ac_ext <<_ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26929 #include <sys/types.h>
26931 int deny_severity = 0;
26932 int allow_severity = 0;
26933 struct request_info *req;
26945 rm -f conftest.$ac_objext conftest$ac_exeext
26946 if { (ac_try="$ac_link"
26947 case "(($ac_try" in
26948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949 *) ac_try_echo=$ac_try;;
26951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26952 (eval "$ac_link") 2>conftest.er1
26954 grep -v '^ *+' conftest.er1 >conftest.err
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } && {
26959 test -z "$ac_c_werror_flag" ||
26960 test ! -s conftest.err
26961 } && test -s conftest$ac_exeext &&
26962 $as_test_x conftest$ac_exeext; then
26964 { echo "$as_me:$LINENO: result: yes" >&5
26965 echo "${ECHO_T}yes" >&6; }
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_LIBWRAP 1
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26980 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26981 echo "$as_me: error: *** libwrap missing" >&2;}
26982 { (exit 1); exit 1; }; }
26987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26988 conftest$ac_exeext conftest.$ac_ext
26993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26994 conftest$ac_exeext conftest.$ac_ext
27001 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27002 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27004 # Check whether --with-openssl was given.
27005 if test "${with_openssl+set}" = set; then
27006 withval=$with_openssl;
27007 with_openssl_directory=${withval}
27013 if test "x$with_openssl_directory" != "xno"; then
27014 OPENSSL_LIBS="-lssl -lcrypto"
27017 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27019 # Make sure the $with_openssl_directory also makes sense
27021 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27022 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27023 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27027 saved_LIBS="${LIBS}"
27028 saved_CFLAGS="${CFLAGS}"
27029 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27030 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27032 cat >conftest.$ac_ext <<_ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27039 #include <openssl/ssl.h>
27045 CRYPTO_set_id_callback(NULL);
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (ac_try="$ac_link"
27053 case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_link") 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } && {
27065 test -z "$ac_c_werror_flag" ||
27066 test ! -s conftest.err
27067 } && test -s conftest$ac_exeext &&
27068 $as_test_x conftest$ac_exeext; then
27071 support_crypto="yes"
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27084 conftest$ac_exeext conftest.$ac_ext
27086 cat >conftest.$ac_ext <<_ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h. */
27093 #include <openssl/evp.h>
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (ac_try="$ac_link"
27107 case "(($ac_try" in
27108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27109 *) ac_try_echo=$ac_try;;
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112 (eval "$ac_link") 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } && {
27119 test -z "$ac_c_werror_flag" ||
27120 test ! -s conftest.err
27121 } && test -s conftest$ac_exeext &&
27122 $as_test_x conftest$ac_exeext; then
27124 ac_cv_openssl_sha2="yes"
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27131 ac_cv_openssl_sha2="no"
27136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27137 conftest$ac_exeext conftest.$ac_ext
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27146 #include <openssl/evp.h>
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (ac_try="$ac_link"
27160 case "(($ac_try" in
27161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27162 *) ac_try_echo=$ac_try;;
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165 (eval "$ac_link") 2>conftest.er1
27167 grep -v '^ *+' conftest.er1 >conftest.err
27169 cat conftest.err >&5
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); } && {
27172 test -z "$ac_c_werror_flag" ||
27173 test ! -s conftest.err
27174 } && test -s conftest$ac_exeext &&
27175 $as_test_x conftest$ac_exeext; then
27177 ac_cv_openssl_export="no"
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27184 ac_cv_openssl_export="yes"
27189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27190 conftest$ac_exeext conftest.$ac_ext
27192 LIBS="${saved_LIBS}"
27193 CFLAGS="${saved_CFLAGS}"
27195 if test "$support_tls" = "yes"; then
27197 cat >>confdefs.h <<\_ACEOF
27198 #define HAVE_OPENSSL 1
27202 cat >>confdefs.h <<\_ACEOF
27207 cat >>confdefs.h <<\_ACEOF
27208 #define HAVE_CRYPTO 1
27213 if test "$ac_cv_openssl_sha2" = "yes"; then
27215 cat >>confdefs.h <<\_ACEOF
27216 #define HAVE_SHA2 1
27221 if test "$ac_cv_openssl_export" = "yes"; then
27223 cat >>confdefs.h <<\_ACEOF
27224 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27230 support_crypto="no"
27235 { echo "$as_me:$LINENO: result: $support_tls" >&5
27236 echo "${ECHO_T}$support_tls" >&6; }
27240 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27241 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27242 if test "${ac_cv_search_dlopen+set}" = set; then
27243 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 ac_func_search_save_LIBS=$LIBS
27246 cat >conftest.$ac_ext <<_ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h. */
27253 /* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27268 for ac_lib in '' dl; do
27269 if test -z "$ac_lib"; then
27270 ac_res="none required"
27273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282 (eval "$ac_link") 2>conftest.er1
27284 grep -v '^ *+' conftest.er1 >conftest.err
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } && {
27289 test -z "$ac_c_werror_flag" ||
27290 test ! -s conftest.err
27291 } && test -s conftest$ac_exeext &&
27292 $as_test_x conftest$ac_exeext; then
27293 ac_cv_search_dlopen=$ac_res
27295 echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27303 if test "${ac_cv_search_dlopen+set}" = set; then
27307 if test "${ac_cv_search_dlopen+set}" = set; then
27310 ac_cv_search_dlopen=no
27312 rm conftest.$ac_ext
27313 LIBS=$ac_func_search_save_LIBS
27315 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27316 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27317 ac_res=$ac_cv_search_dlopen
27318 if test "$ac_res" != no; then
27319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27324 working_dir=`eval echo ${prefix}/var/bacula/working`
27326 # Check whether --with-working-dir was given.
27327 if test "${with_working_dir+set}" = set; then
27328 withval=$with_working_dir;
27329 if test "x$withval" != "xno" ; then
27330 working_dir=$withval
27341 # Check whether --with-archivedir was given.
27342 if test "${with_archivedir+set}" = set; then
27343 withval=$with_archivedir;
27344 if test "x$withval" != "xno" ; then
27345 archivedir=$withval
27354 scriptdir=`eval echo ${sysconfdir}`
27356 # Check whether --with-scriptdir was given.
27357 if test "${with_scriptdir+set}" = set; then
27358 withval=$with_scriptdir;
27359 if test "x$withval" != "xno" ; then
27372 # Check whether --with-bsrdir was given.
27373 if test "${with_bsrdir+set}" = set; then
27374 withval=$with_bsrdir;
27375 if test "x$withval" != "xno" ; then
27387 # Check whether --with-logdir was given.
27388 if test "${with_logdir+set}" = set; then
27389 withval=$with_logdir;
27390 if test "x$withval" != "xno" ; then
27401 # ------------------------------------------
27402 # Where to place plugindir (plugin files)
27403 # ------------------------------------------
27404 plugindir=`eval echo ${libdir}`
27406 # Check whether --with-plugindir was given.
27407 if test "${with_plugindir+set}" = set; then
27408 withval=$with_plugindir;
27409 if test "x$withval" != "xno" ; then
27419 dump_email=root@localhost
27421 # Check whether --with-dump-email was given.
27422 if test "${with_dump_email+set}" = set; then
27423 withval=$with_dump_email;
27424 if test "x$withval" != "xno" ; then
27425 dump_email=$withval
27434 job_email=root@localhost
27436 # Check whether --with-job-email was given.
27437 if test "${with_job_email+set}" = set; then
27438 withval=$with_job_email;
27439 if test "x$withval" != "xno" ; then
27449 smtp_host=localhost
27451 # Check whether --with-smtp_host was given.
27452 if test "${with_smtp_host+set}" = set; then
27453 withval=$with_smtp_host;
27454 if test "x$withval" != "xno" ; then
27466 # Check whether --with-pid-dir was given.
27467 if test "${with_pid_dir+set}" = set; then
27468 withval=$with_pid_dir;
27469 if test "x$withval" != "xno" ; then
27477 cat >>confdefs.h <<_ACEOF
27478 #define _PATH_BACULA_PIDDIR "$piddir"
27483 subsysdir=/var/run/subsys
27484 if test -d /var/run/subsys; then
27485 subsysdir=/var/run/subsys
27486 elif test -d /var/lock/subsys; then
27487 subsysdir=/var/lock/subsys
27489 subsysdir=/var/run/subsys
27492 # Check whether --with-subsys-dir was given.
27493 if test "${with_subsys_dir+set}" = set; then
27494 withval=$with_subsys_dir;
27495 if test "x$withval" != "xno" ; then
27507 # Check whether --with-baseport was given.
27508 if test "${with_baseport+set}" = set; then
27509 withval=$with_baseport;
27510 if test "x$withval" != "xno" ; then
27519 dir_port=`expr $baseport`
27520 fd_port=`expr $baseport + 1`
27521 sd_port=`expr $fd_port + 1`
27529 # Check whether --with-dir-password was given.
27530 if test "${with_dir_password+set}" = set; then
27531 withval=$with_dir_password;
27532 if test "x$withval" != "xno" ; then
27533 dir_password=$withval
27540 if test "x$dir_password" = "x" ; then
27541 if test "x$OPENSSL" = "xnone" ; then
27542 key=`autoconf/randpass 33`
27544 key=`openssl rand -base64 33`
27551 # Check whether --with-fd-password was given.
27552 if test "${with_fd_password+set}" = set; then
27553 withval=$with_fd_password;
27554 if test "x$withval" != "xno" ; then
27555 fd_password=$withval
27562 if test "x$fd_password" = "x" ; then
27563 if test "x$OPENSSL" = "xnone" ; then
27564 key=`autoconf/randpass 37`
27566 key=`openssl rand -base64 33`
27573 # Check whether --with-sd-password was given.
27574 if test "${with_sd_password+set}" = set; then
27575 withval=$with_sd_password;
27576 if test "x$withval" != "xno" ; then
27577 sd_password=$withval
27584 if test "x$sd_password" = "x" ; then
27585 if test "x$OPENSSL" = "xnone" ; then
27586 key=`autoconf/randpass 41`
27588 key=`openssl rand -base64 33`
27595 # Check whether --with-mon-dir-password was given.
27596 if test "${with_mon_dir_password+set}" = set; then
27597 withval=$with_mon_dir_password;
27598 if test "x$withval" != "xno" ; then
27599 mon_dir_password=$withval
27606 if test "x$mon_dir_password" = "x" ; then
27607 if test "x$OPENSSL" = "xnone" ; then
27608 key=`autoconf/randpass 33`
27610 key=`openssl rand -base64 33`
27612 mon_dir_password=$key
27617 # Check whether --with-mon-fd-password was given.
27618 if test "${with_mon_fd_password+set}" = set; then
27619 withval=$with_mon_fd_password;
27620 if test "x$withval" != "xno" ; then
27621 mon_fd_password=$withval
27628 if test "x$mon_fd_password" = "x" ; then
27629 if test "x$OPENSSL" = "xnone" ; then
27630 key=`autoconf/randpass 37`
27632 key=`openssl rand -base64 33`
27634 mon_fd_password=$key
27639 # Check whether --with-mon-sd-password was given.
27640 if test "${with_mon_sd_password+set}" = set; then
27641 withval=$with_mon_sd_password;
27642 if test "x$withval" != "xno" ; then
27643 mon_sd_password=$withval
27650 if test "x$mon_sd_password" = "x" ; then
27651 if test "x$OPENSSL" = "xnone" ; then
27652 key=`autoconf/randpass 41`
27654 key=`openssl rand -base64 33`
27656 mon_sd_password=$key
27668 # Check whether --with-db_name was given.
27669 if test "${with_db_name+set}" = set; then
27670 withval=$with_db_name;
27671 if test "x$withval" != "x" ; then
27682 # Check whether --with-db_user was given.
27683 if test "${with_db_user+set}" = set; then
27684 withval=$with_db_user;
27685 if test "x$withval" != "x" ; then
27696 # Check whether --with-db_password was given.
27697 if test "${with_db_password+set}" = set; then
27698 withval=$with_db_password;
27699 if test "x$withval" != "x" ; then
27700 db_password=$withval
27710 # Check whether --with-db_port was given.
27711 if test "${with_db_port+set}" = set; then
27712 withval=$with_db_port;
27713 if test "x$withval" != "x" ; then
27723 # Handle users and groups for each daemon
27727 # Check whether --with-dir_user was given.
27728 if test "${with_dir_user+set}" = set; then
27729 withval=$with_dir_user;
27730 if test "x$withval" != "x" ; then
27740 # Check whether --with-dir_group was given.
27741 if test "${with_dir_group+set}" = set; then
27742 withval=$with_dir_group;
27743 if test "x$withval" != "x" ; then
27753 # Check whether --with-sd_user was given.
27754 if test "${with_sd_user+set}" = set; then
27755 withval=$with_sd_user;
27756 if test "x$withval" != "x" ; then
27766 # Check whether --with-sd_group was given.
27767 if test "${with_sd_group+set}" = set; then
27768 withval=$with_sd_group;
27769 if test "x$withval" != "x" ; then
27779 # Check whether --with-fd_user was given.
27780 if test "${with_fd_user+set}" = set; then
27781 withval=$with_fd_user;
27782 if test "x$withval" != "x" ; then
27792 # Check whether --with-fd_group was given.
27793 if test "${with_fd_group+set}" = set; then
27794 withval=$with_fd_group;
27795 if test "x$withval" != "x" ; then
27812 # Check whether --with-sbin-perm was given.
27813 if test "${with_sbin_perm+set}" = set; then
27814 withval=$with_sbin_perm;
27815 if test "x$withval" != "x" ; then
27828 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27829 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27831 # Check whether --with-postgresql was given.
27832 if test "${with_postgresql+set}" = set; then
27833 withval=$with_postgresql;
27834 if test "$withval" != "no"; then
27835 if test "$db_found" = "yes"; then
27836 { echo "$as_me:$LINENO: result: error" >&5
27837 echo "${ECHO_T}error" >&6; }
27838 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27839 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27840 { (exit 1); exit 1; }; };
27842 if test "$withval" = "yes"; then
27843 PG_CONFIG=`which pg_config`
27844 if test -n "$PG_CONFIG";then
27845 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27846 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27847 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27848 elif test -f /usr/local/include/libpq-fe.h; then
27849 POSTGRESQL_INCDIR=/usr/local/include
27850 if test -d /usr/local/lib64; then
27851 POSTGRESQL_LIBDIR=/usr/local/lib64
27853 POSTGRESQL_LIBDIR=/usr/local/lib
27855 POSTGRESQL_BINDIR=/usr/local/bin
27856 elif test -f /usr/include/libpq-fe.h; then
27857 POSTGRESQL_INCDIR=/usr/include
27858 if test -d /usr/lib64; then
27859 POSTGRESQL_LIBDIR=/usr/lib64
27861 POSTGRESQL_LIBDIR=/usr/lib
27863 POSTGRESQL_BINDIR=/usr/bin
27864 elif test -f /usr/include/pgsql/libpq-fe.h; then
27865 POSTGRESQL_INCDIR=/usr/include/pgsql
27866 if test -d /usr/lib64/pgsql; then
27867 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27869 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27871 POSTGRESQL_BINDIR=/usr/bin
27872 elif test -f /usr/include/postgresql/libpq-fe.h; then
27873 POSTGRESQL_INCDIR=/usr/include/postgresql
27874 if test -d /usr/lib64/postgresql; then
27875 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27877 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27879 POSTGRESQL_BINDIR=/usr/bin
27881 { echo "$as_me:$LINENO: result: no" >&5
27882 echo "${ECHO_T}no" >&6; }
27883 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27884 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27885 { (exit 1); exit 1; }; }
27887 elif test -f $withval/include/libpq-fe.h; then
27888 POSTGRESQL_INCDIR=$withval/include
27889 POSTGRESQL_LIBDIR=$withval/lib
27890 POSTGRESQL_BINDIR=$withval/bin
27891 elif test -f $withval/include/postgresql/libpq-fe.h; then
27892 POSTGRESQL_INCDIR=$withval/include/postgresql
27893 if test -d $withval/lib64; then
27894 POSTGRESQL_LIBDIR=$withval/lib64
27896 POSTGRESQL_LIBDIR=$withval/lib
27898 POSTGRESQL_BINDIR=$withval/bin
27900 { echo "$as_me:$LINENO: result: no" >&5
27901 echo "${ECHO_T}no" >&6; }
27902 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27903 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27904 { (exit 1); exit 1; }; }
27906 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27907 { echo "$as_me:$LINENO: checking for crypt" >&5
27908 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27909 if test "${ac_cv_func_crypt+set}" = set; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 cat >conftest.$ac_ext <<_ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h. */
27918 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27920 #define crypt innocuous_crypt
27922 /* System header to define __stub macros and hopefully few prototypes,
27923 which can conflict with char crypt (); below.
27924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27925 <limits.h> exists even on freestanding compilers. */
27928 # include <limits.h>
27930 # include <assert.h>
27935 /* Override any GCC internal prototype to avoid an error.
27936 Use char because int might match the return type of a GCC
27937 builtin and then its argument prototype would still apply. */
27942 /* The GNU C library defines this for functions which it implements
27943 to always fail with ENOSYS. Some functions are actually named
27944 something starting with __ and the normal name is an alias. */
27945 #if defined __stub_crypt || defined __stub___crypt
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (ac_try="$ac_link"
27959 case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_link") 2>conftest.er1
27966 grep -v '^ *+' conftest.er1 >conftest.err
27968 cat conftest.err >&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); } && {
27971 test -z "$ac_c_werror_flag" ||
27972 test ! -s conftest.err
27973 } && test -s conftest$ac_exeext &&
27974 $as_test_x conftest$ac_exeext; then
27975 ac_cv_func_crypt=yes
27977 echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27980 ac_cv_func_crypt=no
27983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27984 conftest$ac_exeext conftest.$ac_ext
27986 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27987 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27988 if test $ac_cv_func_crypt = yes; then
27991 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27992 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27993 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27994 echo $ECHO_N "(cached) $ECHO_C" >&6
27996 ac_check_lib_save_LIBS=$LIBS
27997 LIBS="-lcrypt $LIBS"
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28005 /* Override any GCC internal prototype to avoid an error.
28006 Use char because int might match the return type of a GCC
28007 builtin and then its argument prototype would still apply. */
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (ac_try="$ac_link"
28022 case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_link") 2>conftest.er1
28029 grep -v '^ *+' conftest.er1 >conftest.err
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } && {
28034 test -z "$ac_c_werror_flag" ||
28035 test ! -s conftest.err
28036 } && test -s conftest$ac_exeext &&
28037 $as_test_x conftest$ac_exeext; then
28038 ac_cv_lib_crypt_crypt=yes
28040 echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28043 ac_cv_lib_crypt_crypt=no
28046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28047 conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28050 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28051 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28052 if test $ac_cv_lib_crypt_crypt = yes; then
28053 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28058 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28059 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28060 SQL_BINDIR=$POSTGRESQL_BINDIR
28061 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28063 cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_POSTGRESQL 1
28067 { echo "$as_me:$LINENO: result: yes" >&5
28068 echo "${ECHO_T}yes" >&6; }
28070 support_postgresql=yes
28074 { echo "$as_me:$LINENO: result: no" >&5
28075 echo "${ECHO_T}no" >&6; }
28080 { echo "$as_me:$LINENO: result: no" >&5
28081 echo "${ECHO_T}no" >&6; }
28093 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28094 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28096 # Check whether --with-mysql was given.
28097 if test "${with_mysql+set}" = set; then
28098 withval=$with_mysql;
28099 if test "$withval" != "no"; then
28100 if test "$withval" = "yes"; then
28101 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28102 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28103 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28104 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28105 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28107 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28109 MYSQL_BINDIR=/usr/local/mysql/bin
28110 elif test -f /usr/include/mysql/mysql.h; then
28111 MYSQL_INCDIR=/usr/include/mysql
28112 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28113 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28114 MYSQL_LIBDIR=/usr/lib64/mysql
28115 elif test -f /usr/lib64/libmysqlclient_r.a \
28116 -o -f /usr/lib64/libmysqlclient_r.so; then
28117 MYSQL_LIBDIR=/usr/lib64
28118 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28119 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28120 MYSQL_LIBDIR=/usr/lib/mysql
28122 MYSQL_LIBDIR=/usr/lib
28124 MYSQL_BINDIR=/usr/bin
28125 elif test -f /usr/include/mysql.h; then
28126 MYSQL_INCDIR=/usr/include
28127 if test -f /usr/lib64/libmysqlclient_r.a \
28128 -o -f /usr/lib64/libmysqlclient_r.so; then
28129 MYSQL_LIBDIR=/usr/lib64
28131 MYSQL_LIBDIR=/usr/lib
28133 MYSQL_BINDIR=/usr/bin
28134 elif test -f /usr/local/include/mysql/mysql.h; then
28135 MYSQL_INCDIR=/usr/local/include/mysql
28136 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28137 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28138 MYSQL_LIBDIR=/usr/local/lib64/mysql
28140 MYSQL_LIBDIR=/usr/local/lib/mysql
28142 MYSQL_BINDIR=/usr/local/bin
28143 elif test -f /usr/local/include/mysql.h; then
28144 MYSQL_INCDIR=/usr/local/include
28145 if test -f /usr/local/lib64/libmysqlclient_r.a \
28146 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28147 MYSQL_LIBDIR=/usr/local/lib64
28149 MYSQL_LIBDIR=/usr/local/lib
28151 MYSQL_BINDIR=/usr/local/bin
28153 { echo "$as_me:$LINENO: result: no" >&5
28154 echo "${ECHO_T}no" >&6; }
28155 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28156 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28157 { (exit 1); exit 1; }; }
28160 if test -f $withval/include/mysql/mysql.h; then
28161 MYSQL_INCDIR=$withval/include/mysql
28162 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28163 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28164 MYSQL_LIBDIR=$withval/lib64/mysql
28165 elif test -f $withval/lib64/libmysqlclient_r.a \
28166 -o -f $withval/lib64/libmysqlclient_r.so; then
28167 MYSQL_LIBDIR=$withval/lib64
28168 elif test -f $withval/lib/libmysqlclient_r.a \
28169 -o -f $withval/lib/libmysqlclient_r.so; then
28170 MYSQL_LIBDIR=$withval/lib
28172 MYSQL_LIBDIR=$withval/lib/mysql
28174 MYSQL_BINDIR=$withval/bin
28175 elif test -f $withval/include/mysql.h; then
28176 MYSQL_INCDIR=$withval/include
28177 if test -f $withval/lib64/libmysqlclient_r.a \
28178 -o -f $withval/lib64/libmysqlclient_r.so; then
28179 MYSQL_LIBDIR=$withval/lib64
28181 MYSQL_LIBDIR=$withval/lib
28183 MYSQL_BINDIR=$withval/bin
28185 { echo "$as_me:$LINENO: result: no" >&5
28186 echo "${ECHO_T}no" >&6; }
28187 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28188 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28189 { (exit 1); exit 1; }; }
28192 SQL_INCLUDE=-I$MYSQL_INCDIR
28193 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28194 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28195 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28196 cat >>confdefs.h <<\_ACEOF
28197 #define HAVE_THREAD_SAFE_MYSQL 1
28201 SQL_BINDIR=$MYSQL_BINDIR
28202 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28204 cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_MYSQL 1
28208 { echo "$as_me:$LINENO: result: yes" >&5
28209 echo "${ECHO_T}yes" >&6; }
28216 { echo "$as_me:$LINENO: result: no" >&5
28217 echo "${ECHO_T}no" >&6; }
28225 # Check whether --with-embedded-mysql was given.
28226 if test "${with_embedded_mysql+set}" = set; then
28227 withval=$with_embedded_mysql;
28228 if test "$withval" != "no"; then
28229 if test "$withval" = "yes"; then
28230 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28231 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28232 if test -d /usr/local/mysql/lib64/mysql; then
28233 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28235 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28237 MYSQL_BINDIR=/usr/local/mysql/bin
28238 elif test -f /usr/include/mysql/mysql.h; then
28239 MYSQL_INCDIR=/usr/include/mysql
28240 if test -d /usr/lib64/mysql; then
28241 MYSQL_LIBDIR=/usr/lib64/mysql
28243 MYSQL_LIBDIR=/usr/lib/mysql
28245 MYSQL_BINDIR=/usr/bin
28246 elif test -f /usr/include/mysql.h; then
28247 MYSQL_INCDIR=/usr/include
28248 if test -d /usr/lib64; then
28249 MYSQL_LIBDIR=/usr/lib64
28251 MYSQL_LIBDIR=/usr/lib
28253 MYSQL_BINDIR=/usr/bin
28254 elif test -f /usr/local/include/mysql/mysql.h; then
28255 MYSQL_INCDIR=/usr/local/include/mysql
28256 if test -d /usr/local/lib64/mysql; then
28257 MYSQL_LIBDIR=/usr/local/lib64/mysql
28259 MYSQL_LIBDIR=/usr/local/lib/mysql
28261 MYSQL_BINDIR=/usr/local/bin
28262 elif test -f /usr/local/include/mysql.h; then
28263 MYSQL_INCDIR=/usr/local/include
28264 if test -d /usr/local/lib64; then
28265 MYSQL_LIBDIR=/usr/local/lib64
28267 MYSQL_LIBDIR=/usr/local/lib
28269 MYSQL_BINDIR=/usr/local/bin
28271 { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28274 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28275 { (exit 1); exit 1; }; }
28278 if test -f $withval/include/mysql/mysql.h; then
28279 MYSQL_INCDIR=$withval/include/mysql
28280 if test -d $withval/lib64/mysql; then
28281 MYSQL_LIBDIR=$withval/lib64/mysql
28283 MYSQL_LIBDIR=$withval/lib/mysql
28285 MYSQL_BINDIR=$withval/bin
28286 elif test -f $withval/include/mysql.h; then
28287 MYSQL_INCDIR=$withval/include
28288 if test -d $withval/lib64; then
28289 MYSQL_LIBDIR=$withval/lib64
28291 MYSQL_LIBDIR=$withval/lib
28293 MYSQL_BINDIR=$withval/bin
28295 { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28297 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28298 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28299 { (exit 1); exit 1; }; }
28302 SQL_INCLUDE=-I$MYSQL_INCDIR
28303 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28304 SQL_BINDIR=$MYSQL_BINDIR
28305 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28307 cat >>confdefs.h <<\_ACEOF
28308 #define HAVE_MYSQL 1
28311 cat >>confdefs.h <<\_ACEOF
28312 #define HAVE_EMBEDDED_MYSQL 1
28315 { echo "$as_me:$LINENO: result: yes" >&5
28316 echo "${ECHO_T}yes" >&6; }
28323 { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28340 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28341 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28343 # Check whether --with-sqlite3 was given.
28344 if test "${with_sqlite3+set}" = set; then
28345 withval=$with_sqlite3;
28346 if test "$withval" != "no"; then
28347 if test "$withval" = "yes"; then
28348 if test -f /usr/local/include/sqlite3.h; then
28349 SQLITE_INCDIR=/usr/local/include
28350 if test -d /usr/local/lib64; then
28351 SQLITE_LIBDIR=/usr/local/lib64
28353 SQLITE_LIBDIR=/usr/local/lib
28355 SQLITE_BINDIR=/usr/local/bin
28356 elif test -f /usr/include/sqlite3.h; then
28357 SQLITE_INCDIR=/usr/include
28358 if test -d /usr/lib64; then
28359 SQLITE_LIBDIR=/usr/lib64
28361 SQLITE_LIBDIR=/usr/lib
28363 SQLITE_BINDIR=/usr/bin
28364 elif test -f $prefix/include/sqlite3.h; then
28365 SQLITE_INCDIR=$prefix/include
28366 if test -d $prefix/lib64; then
28367 SQLITE_LIBDIR=$prefix/lib64
28369 SQLITE_LIBDIR=$prefix/lib
28371 SQLITE_BINDIR=$prefix/bin
28373 { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28375 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28376 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28377 { (exit 1); exit 1; }; }
28380 if test -f $withval/sqlite3.h; then
28381 SQLITE_INCDIR=$withval
28382 SQLITE_LIBDIR=$withval
28383 SQLITE_BINDIR=$withval
28384 elif test -f $withval/include/sqlite3.h; then
28385 SQLITE_INCDIR=$withval/include
28386 if test -d $withval/lib64; then
28387 SQLITE_LIBDIR=$withval/lib64
28389 SQLITE_LIBDIR=$withval/lib
28391 SQLITE_BINDIR=$withval/bin
28393 { echo "$as_me:$LINENO: result: no" >&5
28394 echo "${ECHO_T}no" >&6; }
28395 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28396 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28397 { (exit 1); exit 1; }; }
28400 SQL_INCLUDE=-I$SQLITE_INCDIR
28401 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28402 SQL_BINDIR=$SQLITE_BINDIR
28403 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28405 cat >>confdefs.h <<\_ACEOF
28406 #define HAVE_SQLITE3 1
28409 { echo "$as_me:$LINENO: result: yes" >&5
28410 echo "${ECHO_T}yes" >&6; }
28412 support_sqlite3=yes
28417 { echo "$as_me:$LINENO: result: no" >&5
28418 echo "${ECHO_T}no" >&6; }
28423 { echo "$as_me:$LINENO: result: no" >&5
28424 echo "${ECHO_T}no" >&6; }
28436 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28437 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28439 # Check whether --with-sqlite was given.
28440 if test "${with_sqlite+set}" = set; then
28441 withval=$with_sqlite;
28442 if test "$withval" != "no"; then
28443 if test "$withval" = "yes"; then
28444 if test -f /usr/local/include/sqlite.h; then
28445 SQLITE_INCDIR=/usr/local/include
28446 if test -d /usr/local/lib64; then
28447 SQLITE_LIBDIR=/usr/local/lib64
28449 SQLITE_LIBDIR=/usr/local/lib
28451 SQLITE_BINDIR=/usr/local/bin
28452 elif test -f /usr/include/sqlite.h; then
28453 SQLITE_INCDIR=/usr/include
28454 if test -d /usr/lib64; then
28455 SQLITE_LIBDIR=/usr/lib64
28457 SQLITE_LIBDIR=/usr/lib
28459 SQLITE_BINDIR=/usr/bin
28460 elif test -f $prefix/include/sqlite.h; then
28461 SQLITE_INCDIR=$prefix/include
28462 if test -d $prefix/lib64; then
28463 SQLITE_LIBDIR=$prefix/lib64
28465 SQLITE_LIBDIR=$prefix/lib
28467 SQLITE_BINDIR=$prefix/bin
28469 { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28471 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28472 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28473 { (exit 1); exit 1; }; }
28476 if test -f $withval/sqlite.h; then
28477 SQLITE_INCDIR=$withval
28478 SQLITE_LIBDIR=$withval
28479 SQLITE_BINDIR=$withval
28480 elif test -f $withval/include/sqlite.h; then
28481 SQLITE_INCDIR=$withval/include
28482 if test -d $withval/lib64; then
28483 SQLITE_LIBDIR=$withval/lib64
28485 SQLITE_LIBDIR=$withval/lib
28487 SQLITE_BINDIR=$withval/bin
28489 { echo "$as_me:$LINENO: result: no" >&5
28490 echo "${ECHO_T}no" >&6; }
28491 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28492 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28493 { (exit 1); exit 1; }; }
28496 SQL_INCLUDE=-I$SQLITE_INCDIR
28497 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28498 SQL_BINDIR=$SQLITE_BINDIR
28499 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28501 cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_SQLITE 1
28505 { echo "$as_me:$LINENO: result: yes" >&5
28506 echo "${ECHO_T}yes" >&6; }
28513 { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28519 { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28532 { echo "$as_me:$LINENO: checking for DBI support" >&5
28533 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28535 # Check whether --with-dbi was given.
28536 if test "${with_dbi+set}" = set; then
28538 if test "$withval" != "no"; then
28539 if test "$withval" = "yes"; then
28540 if test -f /usr/local/include/dbi/dbi.h; then
28541 DBI_INCDIR=/usr/local/dbi/include
28542 if test -d /usr/local/lib64; then
28543 DBI_LIBDIR=/usr/local/lib64
28545 DBI_LIBDIR=/usr/local/lib
28547 DBI_BINDIR=/usr/local/bin
28548 elif test -f /usr/include/dbi/dbi.h; then
28549 DBI_INCDIR=/usr/include
28550 if test -d /usr/lib64; then
28551 DBI_LIBDIR=/usr/lib64
28553 DBI_LIBDIR=/usr/lib
28555 DBI_BINDIR=/usr/bin
28556 elif test -f $prefix/include/dbi/dbi.h; then
28557 DBI_INCDIR=$prefix/include
28558 if test -d $prefix/lib64; then
28559 DBI_LIBDIR=$prefix/lib64
28561 DBI_LIBDIR=$prefix/lib
28563 DBI_BINDIR=$prefix/bin
28565 { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28567 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28568 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28569 { (exit 1); exit 1; }; }
28571 if test -d /usr/local/lib/dbd; then
28572 DRIVERDIR=/usr/local/lib/dbd
28573 if test -d /usr/local/lib64/dbd; then
28574 DRIVERDIR=/usr/local/lib64/dbd
28576 DRIVERDIR=/usr/local/lib/dbd
28578 elif test -d /usr/lib/dbd; then
28579 DRIVERDIR=/usr/lib/dbd
28580 if test -d /usr/lib64/dbd; then
28581 DRIVERDIR=/usr/lib64/dbd
28583 DRIVERDIR=/usr/lib/dbd
28585 elif test -d $prefix/lib/dbd; then
28586 if test -d $prefix/lib64/dbd; then
28587 DRIVERDIR=$prefix/lib64/dbd
28589 DRIVERDIR=$prefix/lib/dbd
28592 { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28595 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28596 { (exit 1); exit 1; }; }
28599 if test -f $withval/dbi.h; then
28600 DBI_INCDIR=$withval
28601 DBI_LIBDIR=$withval
28602 DBI_BINDIR=$withval
28603 elif test -f $withval/include/dbi/dbi.h; then
28604 DBI_INCDIR=$withval/include
28605 if test -d $withval/lib64; then
28606 DBI_LIBDIR=$withval/lib64
28608 DBI_LIBDIR=$withval/lib
28610 DBI_BINDIR=$withval/bin
28612 { echo "$as_me:$LINENO: result: no" >&5
28613 echo "${ECHO_T}no" >&6; }
28614 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28615 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28616 { (exit 1); exit 1; }; }
28618 if test -d $withval/dbd; then
28619 DRIVERDIR=$withval/dbd
28620 elif test -d $withval/lib/; then
28621 if test -d $withval/lib64/dbd; then
28622 DRIVERDIR=$withval/lib64/dbd
28624 DRIVERDIR=$withval/lib/dbd
28627 { echo "$as_me:$LINENO: result: no" >&5
28628 echo "${ECHO_T}no" >&6; }
28629 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28630 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28631 { (exit 1); exit 1; }; }
28634 SQL_INCLUDE=-I$DBI_INCDIR
28635 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28636 SQL_BINDIR=$DBI_BINDIR
28637 SQL_LIB=$DBI_LIBDIR/libdbi.a
28638 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28641 cat >>confdefs.h <<\_ACEOF
28645 { echo "$as_me:$LINENO: result: yes" >&5
28646 echo "${ECHO_T}yes" >&6; }
28654 { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28660 { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28676 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28677 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28679 # Check whether --with-dbi-driver was given.
28680 if test "${with_dbi_driver+set}" = set; then
28681 withval=$with_dbi_driver;
28682 if test "$withval" != "no"; then
28686 if test -f /usr/local/mysql/bin/mysql; then
28687 SQL_BINDIR=/usr/local/mysql/bin
28688 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28689 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28690 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28692 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28694 elif test -f /usr/bin/mysql; then
28695 SQL_BINDIR=/usr/bin
28696 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28697 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28698 SQL_LIBDIR=/usr/lib64/mysql
28699 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28700 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28701 SQL_LIBDIR=/usr/lib/mysql
28703 SQL_LIBDIR=/usr/lib
28705 elif test -f /usr/local/bin/mysql; then
28706 SQL_BINDIR=/usr/local/bin
28707 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28708 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28709 SQL_LIBDIR=/usr/local/lib64/mysql
28710 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28711 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28712 SQL_LIBDIR=/usr/local/lib/mysql
28714 SQL_LIBDIR=/usr/local/lib
28716 elif test -f $withval/bin/mysql; then
28717 SQL_BINDIR=$withval/bin
28718 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28719 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28720 SQL_LIBDIR=$withval/lib64/mysql
28721 elif test -f $withval/lib64/libmysqlclient_r.a \
28722 -o -f $withval/lib64/libmysqlclient_r.so; then
28723 SQL_LIBDIR=$withval/lib64
28724 elif test -f $withval/lib/libmysqlclient_r.a \
28725 -o -f $withval/lib/libmysqlclient_r.so; then
28726 SQL_LIBDIR=$withval/lib/
28728 SQL_LIBDIR=$withval/lib/mysql
28731 { echo "$as_me:$LINENO: result: no" >&5
28732 echo "${ECHO_T}no" >&6; }
28733 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28734 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28735 { (exit 1); exit 1; }; }
28737 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28738 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28740 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28744 db_prog="postgresql"
28745 PG_CONFIG=`which pg_config`
28746 if test -n "$PG_CONFIG"; then
28747 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28748 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28749 elif test -f /usr/local/bin/psql; then
28750 SQL_BINDIR=/usr/local/bin
28751 if test -d /usr/local/lib64; then
28752 SQL_LIBDIR=/usr/local/lib64
28754 SQL_LIBDIR=/usr/local/lib
28756 elif test -f /usr/bin/psql; then
28757 SQL_BINDIR=/usr/local/bin
28758 if test -d /usr/lib64/postgresql; then
28759 SQL_LIBDIR=/usr/lib64/postgresql
28760 elif test -d /usr/lib/postgresql; then
28761 SQL_LIBDIR=/usr/lib/postgresql
28762 elif test -d /usr/lib64; then
28763 SQL_LIBDIR=/usr/lib64
28765 SQL_LIBDIR=/usr/lib
28767 elif test -f $withval/bin/psql; then
28768 SQL_BINDIR=$withval/bin
28769 if test -d $withval/lib64; then
28770 SQL_LIBDIR=$withval/lib64
28772 SQL_LIBDIR=$withval/lib
28775 { echo "$as_me:$LINENO: result: no" >&5
28776 echo "${ECHO_T}no" >&6; }
28777 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28778 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28779 { (exit 1); exit 1; }; }
28781 if test -f $SQL_LIBDIR/libpq.so; then
28782 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28784 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28789 if test -f /usr/local/bin/sqlite; then
28790 SQL_BINDIR=/usr/local/bin
28791 if test -d /usr/local/lib64; then
28792 SQL_LIBDIR=/usr/local/lib64
28794 SQL_LIBDIR=/usr/local/lib
28796 elif test -f /usr/bin/sqlite; then
28797 SQL_BINDIR=/usr/bin
28798 if test -d /usr/lib64; then
28799 SQL_LIBDIR=/usr/lib64
28801 SQL_LIBDIR=/usr/lib
28803 elif test -f $withval/bin/sqlite; then
28804 SQL_BINDIR=$withval/bin
28805 if test -d $withval/lib64; then
28806 SQL_LIBDIR=$withval/lib64
28808 SQL_LIBDIR=$withval/lib
28811 { echo "$as_me:$LINENO: result: no" >&5
28812 echo "${ECHO_T}no" >&6; }
28813 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28814 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28815 { (exit 1); exit 1; }; }
28817 if test -f $SQL_LIBDIR/libsqlite.so; then
28818 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28820 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28825 if test -f /usr/local/bin/sqlite3; then
28826 SQL_BINDIR=/usr/local/bin
28827 if test -d /usr/local/lib64; then
28828 SQL_LIBDIR=/usr/local/lib64
28830 SQL_LIBDIR=/usr/local/lib
28832 elif test -f /usr/bin/sqlite3; then
28833 SQL_BINDIR=/usr/bin
28834 if test -d /usr/lib64; then
28835 SQL_LIBDIR=/usr/lib64
28837 SQL_LIBDIR=/usr/lib
28839 elif test -f $withval/bin/sqlite3; then
28840 SQL_BINDIR=$withval/bin
28841 if test -d $withval/lib64; then
28842 SQL_LIBDIR=$withval/lib64
28844 SQL_LIBDIR=$withval/lib
28847 { echo "$as_me:$LINENO: result: no" >&5
28848 echo "${ECHO_T}no" >&6; }
28849 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28850 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28851 { (exit 1); exit 1; }; }
28853 if test -f $SQL_LIBDIR/libsqlite3.so; then
28854 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28856 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28860 { echo "$as_me:$LINENO: result: no" >&5
28861 echo "${ECHO_T}no" >&6; }
28862 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28863 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28864 { (exit 1); exit 1; }; }
28868 { echo "$as_me:$LINENO: result: yes" >&5
28869 echo "${ECHO_T}yes" >&6; }
28872 { echo "$as_me:$LINENO: result: no" >&5
28873 echo "${ECHO_T}no" >&6; }
28878 { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28892 support_batch_insert=no
28893 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28895 if test $pkg = 0; then
28896 support_batch_insert=yes
28897 # Check whether --enable-batch-insert was given.
28898 if test "${enable_batch_insert+set}" = set; then
28899 enableval=$enable_batch_insert;
28900 if test x$enableval = xno; then
28901 support_batch_insert=no
28903 support_batch_insert=yes
28911 if test x$DB_TYPE = xpostgresql; then
28912 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28914 if test $pkg != 0; then
28915 support_batch_insert=no
28919 if test x$DB_TYPE = xdbi; then
28923 if test $DB_PROG = postgresql; then
28924 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28928 if test $DB_PROG = mysql; then
28929 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28933 if test $DB_PROG = sqlite3; then
28934 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28938 if test $pkg = 0; then
28939 # Check whether --enable-batch-insert was given.
28940 if test "${enable_batch_insert+set}" = set; then
28941 enableval=$enable_batch_insert;
28942 if test x$enableval = xno; then
28943 support_batch_insert=no
28945 support_batch_insert=yes
28958 if test $support_batch_insert = yes ; then
28960 cat >>confdefs.h <<\_ACEOF
28961 #define HAVE_BATCH_FILE_INSERT 1
28966 cat >>confdefs.h <<\_ACEOF
28967 #define PROTOTYPES 1
28971 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28972 if test -z "$CCOPTS"; then
28973 CCOPTS='-g -O2 -Wall'
28980 largefile_support="no"
28982 # Check whether --enable-largefile was given.
28983 if test "${enable_largefile+set}" = set; then
28984 enableval=$enable_largefile;
28987 if test "$enable_largefile" != no; then
28988 if test -n "$ac_tool_prefix"; then
28989 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28990 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28993 if test "${ac_cv_prog_GETCONF+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 if test -n "$GETCONF"; then
28997 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29000 for as_dir in $PATH
29003 test -z "$as_dir" && as_dir=.
29004 for ac_exec_ext in '' $ac_executable_extensions; do
29005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29006 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29016 GETCONF=$ac_cv_prog_GETCONF
29017 if test -n "$GETCONF"; then
29018 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29019 echo "${ECHO_T}$GETCONF" >&6; }
29021 { echo "$as_me:$LINENO: result: no" >&5
29022 echo "${ECHO_T}no" >&6; }
29027 if test -z "$ac_cv_prog_GETCONF"; then
29028 ac_ct_GETCONF=$GETCONF
29029 # Extract the first word of "getconf", so it can be a program name with args.
29030 set dummy getconf; ac_word=$2
29031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29033 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 if test -n "$ac_ct_GETCONF"; then
29037 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29040 for as_dir in $PATH
29043 test -z "$as_dir" && as_dir=.
29044 for ac_exec_ext in '' $ac_executable_extensions; do
29045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29046 ac_cv_prog_ac_ct_GETCONF="getconf"
29047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29056 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29057 if test -n "$ac_ct_GETCONF"; then
29058 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29059 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29061 { echo "$as_me:$LINENO: result: no" >&5
29062 echo "${ECHO_T}no" >&6; }
29065 if test "x$ac_ct_GETCONF" = x; then
29068 case $cross_compiling:$ac_tool_warned in
29070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29071 whose name does not start with the host triplet. If you think this
29072 configuration is useful to you, please write to autoconf@gnu.org." >&5
29073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29074 whose name does not start with the host triplet. If you think this
29075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29076 ac_tool_warned=yes ;;
29078 GETCONF=$ac_ct_GETCONF
29081 GETCONF="$ac_cv_prog_GETCONF"
29084 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29085 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29090 ac_cv_sys_largefile_CFLAGS=no
29092 # IRIX 6.2 and later require cc -n32.
29093 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29094 if test "$GCC" != yes; then
29095 ac_cv_sys_largefile_CFLAGS=-n32
29098 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29114 rm -f conftest.$ac_objext conftest$ac_exeext
29115 if { (ac_try="$ac_link"
29116 case "(($ac_try" in
29117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118 *) ac_try_echo=$ac_try;;
29120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121 (eval "$ac_link") 2>conftest.er1
29123 grep -v '^ *+' conftest.er1 >conftest.err
29125 cat conftest.err >&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } && {
29128 test -z "$ac_c_werror_flag" ||
29129 test ! -s conftest.err
29130 } && test -s conftest$ac_exeext &&
29131 $as_test_x conftest$ac_exeext; then
29134 echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29137 ac_cv_sys_largefile_CFLAGS=no
29140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29141 conftest$ac_exeext conftest.$ac_ext
29146 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29147 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29148 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29149 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29150 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29151 echo $ECHO_N "(cached) $ECHO_C" >&6
29153 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29154 ac_cv_sys_largefile_LDFLAGS=no
29158 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29159 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29160 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29161 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29162 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29165 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29166 ac_cv_sys_largefile_LIBS=no
29170 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29171 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29173 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29176 -D_FILE_OFFSET_BITS=*) ;;
29177 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29178 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29183 case "$CPPFLAGS" in
29184 '') CPPFLAGS="$ac_flag" ;;
29185 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29193 '') CFLAGS="$ac_flag" ;;
29194 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29199 case "$ac_cv_sys_largefile_LDFLAGS" in
29203 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29204 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29207 case "$ac_cv_sys_largefile_LIBS" in
29211 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29212 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29215 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29216 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29217 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 ac_cv_sys_file_offset_bits=no
29221 ac_cv_sys_file_offset_bits=64
29222 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29224 -D_FILE_OFFSET_BITS)
29225 ac_cv_sys_file_offset_bits=1 ;;
29226 -D_FILE_OFFSET_BITS=*)
29227 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29232 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29233 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29234 if test "$ac_cv_sys_file_offset_bits" != no; then
29236 cat >>confdefs.h <<_ACEOF
29237 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29241 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29242 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29243 if test "${ac_cv_sys_largefile_source+set}" = set; then
29244 echo $ECHO_N "(cached) $ECHO_C" >&6
29246 ac_cv_sys_largefile_source=no
29247 ac_cv_sys_largefile_source=1
29248 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29250 -D_LARGEFILE_SOURCE)
29251 ac_cv_sys_largefile_source=1 ;;
29252 -D_LARGEFILE_SOURCE=*)
29253 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29258 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29259 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29260 if test "$ac_cv_sys_largefile_source" != no; then
29262 cat >>confdefs.h <<_ACEOF
29263 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29267 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29268 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29269 if test "${ac_cv_sys_large_files+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 ac_cv_sys_large_files=no
29273 ac_cv_sys_large_files=1
29274 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29277 ac_cv_sys_large_files=1 ;;
29279 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29284 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29285 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29286 if test "$ac_cv_sys_large_files" != no; then
29288 cat >>confdefs.h <<_ACEOF
29289 #define _LARGE_FILES $ac_cv_sys_large_files
29296 { echo "$as_me:$LINENO: checking for X" >&5
29297 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29300 # Check whether --with-x was given.
29301 if test "${with_x+set}" = set; then
29305 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29306 if test "x$with_x" = xno; then
29307 # The user explicitly disabled X.
29310 case $x_includes,$x_libraries in #(
29311 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29312 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29313 { (exit 1); exit 1; }; };; #(
29314 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29317 # One or both of the vars are not set, and there is no cached value.
29318 ac_x_includes=no ac_x_libraries=no
29319 rm -f -r conftest.dir
29320 if mkdir conftest.dir; then
29322 cat >Imakefile <<'_ACEOF'
29324 @echo incroot='${INCROOT}'
29326 @echo usrlibdir='${USRLIBDIR}'
29328 @echo libdir='${LIBDIR}'
29330 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29332 for ac_var in incroot usrlibdir libdir; do
29333 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29335 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29336 for ac_extension in a so sl; do
29337 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29338 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29339 ac_im_usrlibdir=$ac_im_libdir; break
29342 # Screen out bogus values from the imake configuration. They are
29343 # bogus both because they are the default anyway, and because
29344 # using them would break gcc on systems where it needs fixed includes.
29345 case $ac_im_incroot in
29346 /usr/include) ac_x_includes= ;;
29347 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29349 case $ac_im_usrlibdir in
29350 /usr/lib | /lib) ;;
29351 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29355 rm -f -r conftest.dir
29358 # Standard set of common directories for X headers.
29359 # Check X11 before X11Rn because it is often a symlink to the current release.
29371 /usr/local/X11/include
29372 /usr/local/X11R6/include
29373 /usr/local/X11R5/include
29374 /usr/local/X11R4/include
29376 /usr/local/include/X11
29377 /usr/local/include/X11R6
29378 /usr/local/include/X11R5
29379 /usr/local/include/X11R4
29383 /usr/XFree86/include/X11
29387 /usr/unsupported/include
29388 /usr/athena/include
29389 /usr/local/x11r5/include
29390 /usr/lpp/Xamples/include
29392 /usr/openwin/include
29393 /usr/openwin/share/include'
29395 if test "$ac_x_includes" = no; then
29396 # Guess where to find include files, by looking for Xlib.h.
29397 # First, try using that file with no special directory specified.
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29404 #include <X11/Xlib.h>
29406 if { (ac_try="$ac_cpp conftest.$ac_ext"
29407 case "(($ac_try" in
29408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29409 *) ac_try_echo=$ac_try;;
29411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29414 grep -v '^ *+' conftest.er1 >conftest.err
29416 cat conftest.err >&5
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); } >/dev/null && {
29419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29420 test ! -s conftest.err
29422 # We can compile using X headers with no special include directory.
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29428 for ac_dir in $ac_x_header_dirs; do
29429 if test -r "$ac_dir/X11/Xlib.h"; then
29430 ac_x_includes=$ac_dir
29436 rm -f conftest.err conftest.$ac_ext
29437 fi # $ac_x_includes = no
29439 if test "$ac_x_libraries" = no; then
29440 # Check for the libraries.
29441 # See if we find them without any special options.
29442 # Don't add to $LIBS permanently.
29445 cat >conftest.$ac_ext <<_ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <X11/Xlib.h>
29460 rm -f conftest.$ac_objext conftest$ac_exeext
29461 if { (ac_try="$ac_link"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_link") 2>conftest.er1
29469 grep -v '^ *+' conftest.er1 >conftest.err
29471 cat conftest.err >&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } && {
29474 test -z "$ac_c_werror_flag" ||
29475 test ! -s conftest.err
29476 } && test -s conftest$ac_exeext &&
29477 $as_test_x conftest$ac_exeext; then
29479 # We can link X programs with no special library path.
29482 echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29486 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29488 # Don't even attempt the hair of trying to link an X program!
29489 for ac_extension in a so sl; do
29490 if test -r "$ac_dir/libX11.$ac_extension"; then
29491 ac_x_libraries=$ac_dir
29498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29499 conftest$ac_exeext conftest.$ac_ext
29500 fi # $ac_x_libraries = no
29502 case $ac_x_includes,$ac_x_libraries in #(
29503 no,* | *,no | *\'*)
29504 # Didn't find X, or a directory has "'" in its name.
29505 ac_cv_have_x="have_x=no";; #(
29507 # Record where we found X for the cache.
29508 ac_cv_have_x="have_x=yes\
29509 ac_x_includes='$ac_x_includes'\
29510 ac_x_libraries='$ac_x_libraries'"
29516 eval "$ac_cv_have_x"
29519 if test "$have_x" != yes; then
29520 { echo "$as_me:$LINENO: result: $have_x" >&5
29521 echo "${ECHO_T}$have_x" >&6; }
29524 # If each of the values was on the command line, it overrides each guess.
29525 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29526 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29527 # Update the cache value to reflect the command line values.
29528 ac_cv_have_x="have_x=yes\
29529 ac_x_includes='$x_includes'\
29530 ac_x_libraries='$x_libraries'"
29531 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29532 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29535 if test "$no_x" = yes; then
29536 # Not all programs may use this symbol, but it does not hurt to define it.
29538 cat >>confdefs.h <<\_ACEOF
29539 #define X_DISPLAY_MISSING 1
29542 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29544 if test -n "$x_includes"; then
29545 X_CFLAGS="$X_CFLAGS -I$x_includes"
29548 # It would also be nice to do this for all -L options, not just this one.
29549 if test -n "$x_libraries"; then
29550 X_LIBS="$X_LIBS -L$x_libraries"
29551 # For Solaris; some versions of Sun CC require a space after -R and
29552 # others require no space. Words are not sufficient . . . .
29553 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29554 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29555 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29556 ac_xsave_c_werror_flag=$ac_c_werror_flag
29557 ac_c_werror_flag=yes
29558 cat >conftest.$ac_ext <<_ACEOF
29561 cat confdefs.h >>conftest.$ac_ext
29562 cat >>conftest.$ac_ext <<_ACEOF
29563 /* end confdefs.h. */
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (ac_try="$ac_link"
29575 case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_link") 2>conftest.er1
29582 grep -v '^ *+' conftest.er1 >conftest.err
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } && {
29587 test -z "$ac_c_werror_flag" ||
29588 test ! -s conftest.err
29589 } && test -s conftest$ac_exeext &&
29590 $as_test_x conftest$ac_exeext; then
29591 { echo "$as_me:$LINENO: result: no" >&5
29592 echo "${ECHO_T}no" >&6; }
29593 X_LIBS="$X_LIBS -R$x_libraries"
29595 echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29598 LIBS="$ac_xsave_LIBS -R $x_libraries"
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29614 rm -f conftest.$ac_objext conftest$ac_exeext
29615 if { (ac_try="$ac_link"
29616 case "(($ac_try" in
29617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618 *) ac_try_echo=$ac_try;;
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621 (eval "$ac_link") 2>conftest.er1
29623 grep -v '^ *+' conftest.er1 >conftest.err
29625 cat conftest.err >&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); } && {
29628 test -z "$ac_c_werror_flag" ||
29629 test ! -s conftest.err
29630 } && test -s conftest$ac_exeext &&
29631 $as_test_x conftest$ac_exeext; then
29632 { echo "$as_me:$LINENO: result: yes" >&5
29633 echo "${ECHO_T}yes" >&6; }
29634 X_LIBS="$X_LIBS -R $x_libraries"
29636 echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29639 { echo "$as_me:$LINENO: result: neither works" >&5
29640 echo "${ECHO_T}neither works" >&6; }
29643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29644 conftest$ac_exeext conftest.$ac_ext
29647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29648 conftest$ac_exeext conftest.$ac_ext
29649 ac_c_werror_flag=$ac_xsave_c_werror_flag
29650 LIBS=$ac_xsave_LIBS
29653 # Check for system-dependent libraries X programs must link with.
29654 # Do this before checking for the system-independent R6 libraries
29655 # (-lICE), since we may need -lsocket or whatever for X linking.
29657 if test "$ISC" = yes; then
29658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29660 # Martyn Johnson says this is needed for Ultrix, if the X
29661 # libraries were built with DECnet support. And Karl Berry says
29662 # the Alpha needs dnet_stub (dnet does not exist).
29663 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29664 cat >conftest.$ac_ext <<_ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h. */
29671 /* Override any GCC internal prototype to avoid an error.
29672 Use char because int might match the return type of a GCC
29673 builtin and then its argument prototype would still apply. */
29677 char XOpenDisplay ();
29681 return XOpenDisplay ();
29686 rm -f conftest.$ac_objext conftest$ac_exeext
29687 if { (ac_try="$ac_link"
29688 case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_link") 2>conftest.er1
29695 grep -v '^ *+' conftest.er1 >conftest.err
29697 cat conftest.err >&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } && {
29700 test -z "$ac_c_werror_flag" ||
29701 test ! -s conftest.err
29702 } && test -s conftest$ac_exeext &&
29703 $as_test_x conftest$ac_exeext; then
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29709 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29710 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29711 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29714 ac_check_lib_save_LIBS=$LIBS
29715 LIBS="-ldnet $LIBS"
29716 cat >conftest.$ac_ext <<_ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h. */
29723 /* Override any GCC internal prototype to avoid an error.
29724 Use char because int might match the return type of a GCC
29725 builtin and then its argument prototype would still apply. */
29733 return dnet_ntoa ();
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (ac_try="$ac_link"
29740 case "(($ac_try" in
29741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742 *) ac_try_echo=$ac_try;;
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745 (eval "$ac_link") 2>conftest.er1
29747 grep -v '^ *+' conftest.er1 >conftest.err
29749 cat conftest.err >&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && {
29752 test -z "$ac_c_werror_flag" ||
29753 test ! -s conftest.err
29754 } && test -s conftest$ac_exeext &&
29755 $as_test_x conftest$ac_exeext; then
29756 ac_cv_lib_dnet_dnet_ntoa=yes
29758 echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29761 ac_cv_lib_dnet_dnet_ntoa=no
29764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29765 conftest$ac_exeext conftest.$ac_ext
29766 LIBS=$ac_check_lib_save_LIBS
29768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29769 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29770 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29771 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29774 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29775 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29776 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29777 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29780 ac_check_lib_save_LIBS=$LIBS
29781 LIBS="-ldnet_stub $LIBS"
29782 cat >conftest.$ac_ext <<_ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h. */
29789 /* Override any GCC internal prototype to avoid an error.
29790 Use char because int might match the return type of a GCC
29791 builtin and then its argument prototype would still apply. */
29799 return dnet_ntoa ();
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (ac_try="$ac_link"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_link") 2>conftest.er1
29813 grep -v '^ *+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest$ac_exeext &&
29821 $as_test_x conftest$ac_exeext; then
29822 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.$ac_ext >&5
29827 ac_cv_lib_dnet_stub_dnet_ntoa=no
29830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29831 conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29834 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29835 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29836 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29837 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29844 conftest$ac_exeext conftest.$ac_ext
29845 LIBS="$ac_xsave_LIBS"
29847 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29848 # to get the SysV transport functions.
29849 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29851 # The nsl library prevents programs from opening the X display
29852 # on Irix 5.2, according to T.E. Dickey.
29853 # The functions gethostbyname, getservbyname, and inet_addr are
29854 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29855 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29856 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29857 if test "${ac_cv_func_gethostbyname+set}" = set; then
29858 echo $ECHO_N "(cached) $ECHO_C" >&6
29860 cat >conftest.$ac_ext <<_ACEOF
29863 cat confdefs.h >>conftest.$ac_ext
29864 cat >>conftest.$ac_ext <<_ACEOF
29865 /* end confdefs.h. */
29866 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29868 #define gethostbyname innocuous_gethostbyname
29870 /* System header to define __stub macros and hopefully few prototypes,
29871 which can conflict with char gethostbyname (); below.
29872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873 <limits.h> exists even on freestanding compilers. */
29876 # include <limits.h>
29878 # include <assert.h>
29881 #undef gethostbyname
29883 /* Override any GCC internal prototype to avoid an error.
29884 Use char because int might match the return type of a GCC
29885 builtin and then its argument prototype would still apply. */
29889 char gethostbyname ();
29890 /* The GNU C library defines this for functions which it implements
29891 to always fail with ENOSYS. Some functions are actually named
29892 something starting with __ and the normal name is an alias. */
29893 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29900 return gethostbyname ();
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (ac_try="$ac_link"
29907 case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_link") 2>conftest.er1
29914 grep -v '^ *+' conftest.er1 >conftest.err
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } && {
29919 test -z "$ac_c_werror_flag" ||
29920 test ! -s conftest.err
29921 } && test -s conftest$ac_exeext &&
29922 $as_test_x conftest$ac_exeext; then
29923 ac_cv_func_gethostbyname=yes
29925 echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29928 ac_cv_func_gethostbyname=no
29931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29932 conftest$ac_exeext conftest.$ac_ext
29934 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29935 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29937 if test $ac_cv_func_gethostbyname = no; then
29938 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29941 echo $ECHO_N "(cached) $ECHO_C" >&6
29943 ac_check_lib_save_LIBS=$LIBS
29945 cat >conftest.$ac_ext <<_ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29952 /* Override any GCC internal prototype to avoid an error.
29953 Use char because int might match the return type of a GCC
29954 builtin and then its argument prototype would still apply. */
29958 char gethostbyname ();
29962 return gethostbyname ();
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971 *) ac_try_echo=$ac_try;;
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974 (eval "$ac_link") 2>conftest.er1
29976 grep -v '^ *+' conftest.er1 >conftest.err
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } && {
29981 test -z "$ac_c_werror_flag" ||
29982 test ! -s conftest.err
29983 } && test -s conftest$ac_exeext &&
29984 $as_test_x conftest$ac_exeext; then
29985 ac_cv_lib_nsl_gethostbyname=yes
29987 echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29990 ac_cv_lib_nsl_gethostbyname=no
29993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29994 conftest$ac_exeext conftest.$ac_ext
29995 LIBS=$ac_check_lib_save_LIBS
29997 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30003 if test $ac_cv_lib_nsl_gethostbyname = no; then
30004 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30007 echo $ECHO_N "(cached) $ECHO_C" >&6
30009 ac_check_lib_save_LIBS=$LIBS
30011 cat >conftest.$ac_ext <<_ACEOF
30014 cat confdefs.h >>conftest.$ac_ext
30015 cat >>conftest.$ac_ext <<_ACEOF
30016 /* end confdefs.h. */
30018 /* Override any GCC internal prototype to avoid an error.
30019 Use char because int might match the return type of a GCC
30020 builtin and then its argument prototype would still apply. */
30024 char gethostbyname ();
30028 return gethostbyname ();
30033 rm -f conftest.$ac_objext conftest$ac_exeext
30034 if { (ac_try="$ac_link"
30035 case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_link") 2>conftest.er1
30042 grep -v '^ *+' conftest.er1 >conftest.err
30044 cat conftest.err >&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } && {
30047 test -z "$ac_c_werror_flag" ||
30048 test ! -s conftest.err
30049 } && test -s conftest$ac_exeext &&
30050 $as_test_x conftest$ac_exeext; then
30051 ac_cv_lib_bsd_gethostbyname=yes
30053 echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30056 ac_cv_lib_bsd_gethostbyname=no
30059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30060 conftest$ac_exeext conftest.$ac_ext
30061 LIBS=$ac_check_lib_save_LIBS
30063 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30064 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30065 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30072 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30073 # socket/setsockopt and other routines are undefined under SCO ODT
30074 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30075 # on later versions), says Simon Leinen: it contains gethostby*
30076 # variants that don't use the name server (or something). -lsocket
30077 # must be given before -lnsl if both are needed. We assume that
30078 # if connect needs -lnsl, so does gethostbyname.
30079 { echo "$as_me:$LINENO: checking for connect" >&5
30080 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30081 if test "${ac_cv_func_connect+set}" = set; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30084 cat >conftest.$ac_ext <<_ACEOF
30087 cat confdefs.h >>conftest.$ac_ext
30088 cat >>conftest.$ac_ext <<_ACEOF
30089 /* end confdefs.h. */
30090 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30092 #define connect innocuous_connect
30094 /* System header to define __stub macros and hopefully few prototypes,
30095 which can conflict with char connect (); below.
30096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30097 <limits.h> exists even on freestanding compilers. */
30100 # include <limits.h>
30102 # include <assert.h>
30107 /* Override any GCC internal prototype to avoid an error.
30108 Use char because int might match the return type of a GCC
30109 builtin and then its argument prototype would still apply. */
30114 /* The GNU C library defines this for functions which it implements
30115 to always fail with ENOSYS. Some functions are actually named
30116 something starting with __ and the normal name is an alias. */
30117 #if defined __stub_connect || defined __stub___connect
30129 rm -f conftest.$ac_objext conftest$ac_exeext
30130 if { (ac_try="$ac_link"
30131 case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136 (eval "$ac_link") 2>conftest.er1
30138 grep -v '^ *+' conftest.er1 >conftest.err
30140 cat conftest.err >&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } && {
30143 test -z "$ac_c_werror_flag" ||
30144 test ! -s conftest.err
30145 } && test -s conftest$ac_exeext &&
30146 $as_test_x conftest$ac_exeext; then
30147 ac_cv_func_connect=yes
30149 echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30152 ac_cv_func_connect=no
30155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30156 conftest$ac_exeext conftest.$ac_ext
30158 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30159 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30161 if test $ac_cv_func_connect = no; then
30162 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30163 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30164 if test "${ac_cv_lib_socket_connect+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30167 ac_check_lib_save_LIBS=$LIBS
30168 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30169 cat >conftest.$ac_ext <<_ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30176 /* Override any GCC internal prototype to avoid an error.
30177 Use char because int might match the return type of a GCC
30178 builtin and then its argument prototype would still apply. */
30191 rm -f conftest.$ac_objext conftest$ac_exeext
30192 if { (ac_try="$ac_link"
30193 case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_link") 2>conftest.er1
30200 grep -v '^ *+' conftest.er1 >conftest.err
30202 cat conftest.err >&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); } && {
30205 test -z "$ac_c_werror_flag" ||
30206 test ! -s conftest.err
30207 } && test -s conftest$ac_exeext &&
30208 $as_test_x conftest$ac_exeext; then
30209 ac_cv_lib_socket_connect=yes
30211 echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.$ac_ext >&5
30214 ac_cv_lib_socket_connect=no
30217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30218 conftest$ac_exeext conftest.$ac_ext
30219 LIBS=$ac_check_lib_save_LIBS
30221 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30222 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30223 if test $ac_cv_lib_socket_connect = yes; then
30224 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30229 # Guillermo Gomez says -lposix is necessary on A/UX.
30230 { echo "$as_me:$LINENO: checking for remove" >&5
30231 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30232 if test "${ac_cv_func_remove+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 cat >conftest.$ac_ext <<_ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h. */
30241 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30243 #define remove innocuous_remove
30245 /* System header to define __stub macros and hopefully few prototypes,
30246 which can conflict with char remove (); below.
30247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30248 <limits.h> exists even on freestanding compilers. */
30251 # include <limits.h>
30253 # include <assert.h>
30258 /* Override any GCC internal prototype to avoid an error.
30259 Use char because int might match the return type of a GCC
30260 builtin and then its argument prototype would still apply. */
30265 /* The GNU C library defines this for functions which it implements
30266 to always fail with ENOSYS. Some functions are actually named
30267 something starting with __ and the normal name is an alias. */
30268 #if defined __stub_remove || defined __stub___remove
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_link") 2>conftest.er1
30289 grep -v '^ *+' conftest.er1 >conftest.err
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest$ac_exeext &&
30297 $as_test_x conftest$ac_exeext; then
30298 ac_cv_func_remove=yes
30300 echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 ac_cv_func_remove=no
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307 conftest$ac_exeext conftest.$ac_ext
30309 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30310 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30312 if test $ac_cv_func_remove = no; then
30313 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30314 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30315 if test "${ac_cv_lib_posix_remove+set}" = set; then
30316 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 ac_check_lib_save_LIBS=$LIBS
30319 LIBS="-lposix $LIBS"
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30327 /* Override any GCC internal prototype to avoid an error.
30328 Use char because int might match the return type of a GCC
30329 builtin and then its argument prototype would still apply. */
30342 rm -f conftest.$ac_objext conftest$ac_exeext
30343 if { (ac_try="$ac_link"
30344 case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_link") 2>conftest.er1
30351 grep -v '^ *+' conftest.er1 >conftest.err
30353 cat conftest.err >&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); } && {
30356 test -z "$ac_c_werror_flag" ||
30357 test ! -s conftest.err
30358 } && test -s conftest$ac_exeext &&
30359 $as_test_x conftest$ac_exeext; then
30360 ac_cv_lib_posix_remove=yes
30362 echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30365 ac_cv_lib_posix_remove=no
30368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30369 conftest$ac_exeext conftest.$ac_ext
30370 LIBS=$ac_check_lib_save_LIBS
30372 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30373 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30374 if test $ac_cv_lib_posix_remove = yes; then
30375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30380 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30381 { echo "$as_me:$LINENO: checking for shmat" >&5
30382 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30383 if test "${ac_cv_func_shmat+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30386 cat >conftest.$ac_ext <<_ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h. */
30392 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30394 #define shmat innocuous_shmat
30396 /* System header to define __stub macros and hopefully few prototypes,
30397 which can conflict with char shmat (); below.
30398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30399 <limits.h> exists even on freestanding compilers. */
30402 # include <limits.h>
30404 # include <assert.h>
30409 /* Override any GCC internal prototype to avoid an error.
30410 Use char because int might match the return type of a GCC
30411 builtin and then its argument prototype would still apply. */
30416 /* The GNU C library defines this for functions which it implements
30417 to always fail with ENOSYS. Some functions are actually named
30418 something starting with __ and the normal name is an alias. */
30419 #if defined __stub_shmat || defined __stub___shmat
30431 rm -f conftest.$ac_objext conftest$ac_exeext
30432 if { (ac_try="$ac_link"
30433 case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_link") 2>conftest.er1
30440 grep -v '^ *+' conftest.er1 >conftest.err
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } && {
30445 test -z "$ac_c_werror_flag" ||
30446 test ! -s conftest.err
30447 } && test -s conftest$ac_exeext &&
30448 $as_test_x conftest$ac_exeext; then
30449 ac_cv_func_shmat=yes
30451 echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30454 ac_cv_func_shmat=no
30457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30458 conftest$ac_exeext conftest.$ac_ext
30460 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30461 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30463 if test $ac_cv_func_shmat = no; then
30464 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30465 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30466 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30469 ac_check_lib_save_LIBS=$LIBS
30471 cat >conftest.$ac_ext <<_ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h. */
30478 /* Override any GCC internal prototype to avoid an error.
30479 Use char because int might match the return type of a GCC
30480 builtin and then its argument prototype would still apply. */
30493 rm -f conftest.$ac_objext conftest$ac_exeext
30494 if { (ac_try="$ac_link"
30495 case "(($ac_try" in
30496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497 *) ac_try_echo=$ac_try;;
30499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500 (eval "$ac_link") 2>conftest.er1
30502 grep -v '^ *+' conftest.er1 >conftest.err
30504 cat conftest.err >&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); } && {
30507 test -z "$ac_c_werror_flag" ||
30508 test ! -s conftest.err
30509 } && test -s conftest$ac_exeext &&
30510 $as_test_x conftest$ac_exeext; then
30511 ac_cv_lib_ipc_shmat=yes
30513 echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30516 ac_cv_lib_ipc_shmat=no
30519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30520 conftest$ac_exeext conftest.$ac_ext
30521 LIBS=$ac_check_lib_save_LIBS
30523 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30524 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30525 if test $ac_cv_lib_ipc_shmat = yes; then
30526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30532 # Check for libraries that X11R6 Xt/Xaw programs need.
30533 ac_save_LDFLAGS=$LDFLAGS
30534 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30535 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30536 # check for ICE first), but we must link in the order -lSM -lICE or
30537 # we get undefined symbols. So assume we have SM if we have ICE.
30538 # These have to be linked with before -lX11, unlike the other
30539 # libraries we check for below, so use a different variable.
30540 # John Interrante, Karl Berry
30541 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30542 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30546 ac_check_lib_save_LIBS=$LIBS
30547 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30561 char IceConnectionNumber ();
30565 return IceConnectionNumber ();
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_link") 2>conftest.er1
30579 grep -v '^ *+' conftest.er1 >conftest.err
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest$ac_exeext &&
30587 $as_test_x conftest$ac_exeext; then
30588 ac_cv_lib_ICE_IceConnectionNumber=yes
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 ac_cv_lib_ICE_IceConnectionNumber=no
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597 conftest$ac_exeext conftest.$ac_ext
30598 LIBS=$ac_check_lib_save_LIBS
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30601 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30602 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30603 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30606 LDFLAGS=$ac_save_LDFLAGS
30672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30679 ac_res=`eval echo '${'$as_ac_Header'}'`
30680 { echo "$as_me:$LINENO: result: $ac_res" >&5
30681 echo "${ECHO_T}$ac_res" >&6; }
30683 # Is the header compilable?
30684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30686 cat >conftest.$ac_ext <<_ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h. */
30692 $ac_includes_default
30693 #include <$ac_header>
30695 rm -f conftest.$ac_objext
30696 if { (ac_try="$ac_compile"
30697 case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_compile") 2>conftest.er1
30704 grep -v '^ *+' conftest.er1 >conftest.err
30706 cat conftest.err >&5
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); } && {
30709 test -z "$ac_c_werror_flag" ||
30710 test ! -s conftest.err
30711 } && test -s conftest.$ac_objext; then
30712 ac_header_compiler=yes
30714 echo "$as_me: failed program was:" >&5
30715 sed 's/^/| /' conftest.$ac_ext >&5
30717 ac_header_compiler=no
30720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30722 echo "${ECHO_T}$ac_header_compiler" >&6; }
30724 # Is the header present?
30725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30727 cat >conftest.$ac_ext <<_ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h. */
30733 #include <$ac_header>
30735 if { (ac_try="$ac_cpp conftest.$ac_ext"
30736 case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30743 grep -v '^ *+' conftest.er1 >conftest.err
30745 cat conftest.err >&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } >/dev/null && {
30748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30749 test ! -s conftest.err
30751 ac_header_preproc=yes
30753 echo "$as_me: failed program was:" >&5
30754 sed 's/^/| /' conftest.$ac_ext >&5
30756 ac_header_preproc=no
30759 rm -f conftest.err conftest.$ac_ext
30760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30761 echo "${ECHO_T}$ac_header_preproc" >&6; }
30763 # So? What about this header?
30764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30770 ac_header_preproc=yes
30773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30791 echo $ECHO_N "(cached) $ECHO_C" >&6
30793 eval "$as_ac_Header=\$ac_header_preproc"
30795 ac_res=`eval echo '${'$as_ac_Header'}'`
30796 { echo "$as_me:$LINENO: result: $ac_res" >&5
30797 echo "${ECHO_T}$ac_res" >&6; }
30800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30801 cat >>confdefs.h <<_ACEOF
30802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30811 if test "${ac_cv_header_stdc+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30814 cat >conftest.$ac_ext <<_ACEOF
30817 cat confdefs.h >>conftest.$ac_ext
30818 cat >>conftest.$ac_ext <<_ACEOF
30819 /* end confdefs.h. */
30820 #include <stdlib.h>
30821 #include <stdarg.h>
30822 #include <string.h>
30833 rm -f conftest.$ac_objext
30834 if { (ac_try="$ac_compile"
30835 case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_compile") 2>conftest.er1
30842 grep -v '^ *+' conftest.er1 >conftest.err
30844 cat conftest.err >&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); } && {
30847 test -z "$ac_c_werror_flag" ||
30848 test ! -s conftest.err
30849 } && test -s conftest.$ac_objext; then
30850 ac_cv_header_stdc=yes
30852 echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30855 ac_cv_header_stdc=no
30858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30860 if test $ac_cv_header_stdc = yes; then
30861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30862 cat >conftest.$ac_ext <<_ACEOF
30865 cat confdefs.h >>conftest.$ac_ext
30866 cat >>conftest.$ac_ext <<_ACEOF
30867 /* end confdefs.h. */
30868 #include <string.h>
30871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30872 $EGREP "memchr" >/dev/null 2>&1; then
30875 ac_cv_header_stdc=no
30881 if test $ac_cv_header_stdc = yes; then
30882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30883 cat >conftest.$ac_ext <<_ACEOF
30886 cat confdefs.h >>conftest.$ac_ext
30887 cat >>conftest.$ac_ext <<_ACEOF
30888 /* end confdefs.h. */
30889 #include <stdlib.h>
30892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30893 $EGREP "free" >/dev/null 2>&1; then
30896 ac_cv_header_stdc=no
30902 if test $ac_cv_header_stdc = yes; then
30903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30904 if test "$cross_compiling" = yes; then
30907 cat >conftest.$ac_ext <<_ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h. */
30914 #include <stdlib.h>
30915 #if ((' ' & 0x0FF) == 0x020)
30916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30919 # define ISLOWER(c) \
30920 (('a' <= (c) && (c) <= 'i') \
30921 || ('j' <= (c) && (c) <= 'r') \
30922 || ('s' <= (c) && (c) <= 'z'))
30923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30931 for (i = 0; i < 256; i++)
30932 if (XOR (islower (i), ISLOWER (i))
30933 || toupper (i) != TOUPPER (i))
30938 rm -f conftest$ac_exeext
30939 if { (ac_try="$ac_link"
30940 case "(($ac_try" in
30941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30942 *) ac_try_echo=$ac_try;;
30944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30945 (eval "$ac_link") 2>&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30949 { (case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_try") 2>&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; }; then
30960 echo "$as_me: program exited with status $ac_status" >&5
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30964 ( exit $ac_status )
30965 ac_cv_header_stdc=no
30967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30975 if test $ac_cv_header_stdc = yes; then
30977 cat >>confdefs.h <<\_ACEOF
30978 #define STDC_HEADERS 1
30983 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30984 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30985 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30988 cat >conftest.$ac_ext <<_ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h. */
30994 #include <sys/types.h>
30998 return makedev(0, 0);
31003 rm -f conftest.$ac_objext conftest$ac_exeext
31004 if { (ac_try="$ac_link"
31005 case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_link") 2>conftest.er1
31012 grep -v '^ *+' conftest.er1 >conftest.err
31014 cat conftest.err >&5
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); } && {
31017 test -z "$ac_c_werror_flag" ||
31018 test ! -s conftest.err
31019 } && test -s conftest$ac_exeext &&
31020 $as_test_x conftest$ac_exeext; then
31021 ac_cv_header_sys_types_h_makedev=yes
31023 echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31026 ac_cv_header_sys_types_h_makedev=no
31029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31030 conftest$ac_exeext conftest.$ac_ext
31033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31034 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31036 if test $ac_cv_header_sys_types_h_makedev = no; then
31037 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31038 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31039 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31040 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31041 echo $ECHO_N "(cached) $ECHO_C" >&6
31043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31044 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31046 # Is the header compilable?
31047 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31048 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31049 cat >conftest.$ac_ext <<_ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h. */
31055 $ac_includes_default
31056 #include <sys/mkdev.h>
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_compile") 2>conftest.er1
31067 grep -v '^ *+' conftest.er1 >conftest.err
31069 cat conftest.err >&5
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } && {
31072 test -z "$ac_c_werror_flag" ||
31073 test ! -s conftest.err
31074 } && test -s conftest.$ac_objext; then
31075 ac_header_compiler=yes
31077 echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31080 ac_header_compiler=no
31083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31085 echo "${ECHO_T}$ac_header_compiler" >&6; }
31087 # Is the header present?
31088 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31089 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31090 cat >conftest.$ac_ext <<_ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31096 #include <sys/mkdev.h>
31098 if { (ac_try="$ac_cpp conftest.$ac_ext"
31099 case "(($ac_try" in
31100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31106 grep -v '^ *+' conftest.er1 >conftest.err
31108 cat conftest.err >&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } >/dev/null && {
31111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31112 test ! -s conftest.err
31114 ac_header_preproc=yes
31116 echo "$as_me: failed program was:" >&5
31117 sed 's/^/| /' conftest.$ac_ext >&5
31119 ac_header_preproc=no
31122 rm -f conftest.err conftest.$ac_ext
31123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31124 echo "${ECHO_T}$ac_header_preproc" >&6; }
31126 # So? What about this header?
31127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31130 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31131 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31132 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31133 ac_header_preproc=yes
31136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31137 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31139 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31141 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31143 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31145 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31147 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31151 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31152 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31153 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31154 echo $ECHO_N "(cached) $ECHO_C" >&6
31156 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31159 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31162 if test $ac_cv_header_sys_mkdev_h = yes; then
31164 cat >>confdefs.h <<\_ACEOF
31165 #define MAJOR_IN_MKDEV 1
31172 if test $ac_cv_header_sys_mkdev_h = no; then
31173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31174 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31177 echo $ECHO_N "(cached) $ECHO_C" >&6
31179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31180 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31182 # Is the header compilable?
31183 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31184 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31185 cat >conftest.$ac_ext <<_ACEOF
31188 cat confdefs.h >>conftest.$ac_ext
31189 cat >>conftest.$ac_ext <<_ACEOF
31190 /* end confdefs.h. */
31191 $ac_includes_default
31192 #include <sys/sysmacros.h>
31194 rm -f conftest.$ac_objext
31195 if { (ac_try="$ac_compile"
31196 case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_compile") 2>conftest.er1
31203 grep -v '^ *+' conftest.er1 >conftest.err
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } && {
31208 test -z "$ac_c_werror_flag" ||
31209 test ! -s conftest.err
31210 } && test -s conftest.$ac_objext; then
31211 ac_header_compiler=yes
31213 echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31216 ac_header_compiler=no
31219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31221 echo "${ECHO_T}$ac_header_compiler" >&6; }
31223 # Is the header present?
31224 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31225 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31226 cat >conftest.$ac_ext <<_ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h. */
31232 #include <sys/sysmacros.h>
31234 if { (ac_try="$ac_cpp conftest.$ac_ext"
31235 case "(($ac_try" in
31236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237 *) ac_try_echo=$ac_try;;
31239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31242 grep -v '^ *+' conftest.er1 >conftest.err
31244 cat conftest.err >&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } >/dev/null && {
31247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31248 test ! -s conftest.err
31250 ac_header_preproc=yes
31252 echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.$ac_ext >&5
31255 ac_header_preproc=no
31258 rm -f conftest.err conftest.$ac_ext
31259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31260 echo "${ECHO_T}$ac_header_preproc" >&6; }
31262 # So? What about this header?
31263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31266 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31268 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31269 ac_header_preproc=yes
31272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31273 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31274 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31275 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31276 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31277 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31278 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31279 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31280 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31281 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31282 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31283 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31287 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31288 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31289 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31290 echo $ECHO_N "(cached) $ECHO_C" >&6
31292 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31295 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31298 if test $ac_cv_header_sys_sysmacros_h = yes; then
31300 cat >>confdefs.h <<\_ACEOF
31301 #define MAJOR_IN_SYSMACROS 1
31315 ac_header_dirent=no
31316 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31317 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31318 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31319 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 #include <sys/types.h>
31341 rm -f conftest.$ac_objext
31342 if { (ac_try="$ac_compile"
31343 case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_compile") 2>conftest.er1
31350 grep -v '^ *+' conftest.er1 >conftest.err
31352 cat conftest.err >&5
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); } && {
31355 test -z "$ac_c_werror_flag" ||
31356 test ! -s conftest.err
31357 } && test -s conftest.$ac_objext; then
31358 eval "$as_ac_Header=yes"
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 eval "$as_ac_Header=no"
31366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368 ac_res=`eval echo '${'$as_ac_Header'}'`
31369 { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31372 cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31376 ac_header_dirent=$ac_hdr; break
31380 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31381 if test $ac_header_dirent = dirent.h; then
31382 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31383 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31384 if test "${ac_cv_search_opendir+set}" = set; then
31385 echo $ECHO_N "(cached) $ECHO_C" >&6
31387 ac_func_search_save_LIBS=$LIBS
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31395 /* Override any GCC internal prototype to avoid an error.
31396 Use char because int might match the return type of a GCC
31397 builtin and then its argument prototype would still apply. */
31410 for ac_lib in '' dir; do
31411 if test -z "$ac_lib"; then
31412 ac_res="none required"
31415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (ac_try="$ac_link"
31419 case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_link") 2>conftest.er1
31426 grep -v '^ *+' conftest.er1 >conftest.err
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } && {
31431 test -z "$ac_c_werror_flag" ||
31432 test ! -s conftest.err
31433 } && test -s conftest$ac_exeext &&
31434 $as_test_x conftest$ac_exeext; then
31435 ac_cv_search_opendir=$ac_res
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31445 if test "${ac_cv_search_opendir+set}" = set; then
31449 if test "${ac_cv_search_opendir+set}" = set; then
31452 ac_cv_search_opendir=no
31454 rm conftest.$ac_ext
31455 LIBS=$ac_func_search_save_LIBS
31457 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31458 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31459 ac_res=$ac_cv_search_opendir
31460 if test "$ac_res" != no; then
31461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31468 if test "${ac_cv_search_opendir+set}" = set; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 ac_func_search_save_LIBS=$LIBS
31472 cat >conftest.$ac_ext <<_ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h. */
31479 /* Override any GCC internal prototype to avoid an error.
31480 Use char because int might match the return type of a GCC
31481 builtin and then its argument prototype would still apply. */
31494 for ac_lib in '' x; do
31495 if test -z "$ac_lib"; then
31496 ac_res="none required"
31499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31501 rm -f conftest.$ac_objext conftest$ac_exeext
31502 if { (ac_try="$ac_link"
31503 case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_link") 2>conftest.er1
31510 grep -v '^ *+' conftest.er1 >conftest.err
31512 cat conftest.err >&5
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } && {
31515 test -z "$ac_c_werror_flag" ||
31516 test ! -s conftest.err
31517 } && test -s conftest$ac_exeext &&
31518 $as_test_x conftest$ac_exeext; then
31519 ac_cv_search_opendir=$ac_res
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31529 if test "${ac_cv_search_opendir+set}" = set; then
31533 if test "${ac_cv_search_opendir+set}" = set; then
31536 ac_cv_search_opendir=no
31538 rm conftest.$ac_ext
31539 LIBS=$ac_func_search_save_LIBS
31541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31543 ac_res=$ac_cv_search_opendir
31544 if test "$ac_res" != no; then
31545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31551 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31552 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31553 if test "${ac_cv_header_stat_broken+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31556 cat >conftest.$ac_ext <<_ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h. */
31562 #include <sys/types.h>
31563 #include <sys/stat.h>
31565 #if defined S_ISBLK && defined S_IFDIR
31566 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31569 #if defined S_ISBLK && defined S_IFCHR
31570 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31573 #if defined S_ISLNK && defined S_IFREG
31574 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31577 #if defined S_ISSOCK && defined S_IFREG
31578 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31582 rm -f conftest.$ac_objext
31583 if { (ac_try="$ac_compile"
31584 case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_compile") 2>conftest.er1
31591 grep -v '^ *+' conftest.er1 >conftest.err
31593 cat conftest.err >&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } && {
31596 test -z "$ac_c_werror_flag" ||
31597 test ! -s conftest.err
31598 } && test -s conftest.$ac_objext; then
31599 ac_cv_header_stat_broken=no
31601 echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31604 ac_cv_header_stat_broken=yes
31607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31609 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31610 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31611 if test $ac_cv_header_stat_broken = yes; then
31613 cat >>confdefs.h <<\_ACEOF
31614 #define STAT_MACROS_BROKEN 1
31619 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31620 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31621 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31624 cat >conftest.$ac_ext <<_ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31630 #include <sys/types.h>
31631 #include <sys/wait.h>
31632 #ifndef WEXITSTATUS
31633 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31636 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31644 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31649 rm -f conftest.$ac_objext
31650 if { (ac_try="$ac_compile"
31651 case "(($ac_try" in
31652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653 *) ac_try_echo=$ac_try;;
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_compile") 2>conftest.er1
31658 grep -v '^ *+' conftest.er1 >conftest.err
31660 cat conftest.err >&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); } && {
31663 test -z "$ac_c_werror_flag" ||
31664 test ! -s conftest.err
31665 } && test -s conftest.$ac_objext; then
31666 ac_cv_header_sys_wait_h=yes
31668 echo "$as_me: failed program was:" >&5
31669 sed 's/^/| /' conftest.$ac_ext >&5
31671 ac_cv_header_sys_wait_h=no
31674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31677 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31678 if test $ac_cv_header_sys_wait_h = yes; then
31680 cat >>confdefs.h <<\_ACEOF
31681 #define HAVE_SYS_WAIT_H 1
31686 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31688 if test "${ac_cv_header_time+set}" = set; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31691 cat >conftest.$ac_ext <<_ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h. */
31697 #include <sys/types.h>
31698 #include <sys/time.h>
31704 if ((struct tm *) 0)
31710 rm -f conftest.$ac_objext
31711 if { (ac_try="$ac_compile"
31712 case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717 (eval "$ac_compile") 2>conftest.er1
31719 grep -v '^ *+' conftest.er1 >conftest.err
31721 cat conftest.err >&5
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); } && {
31724 test -z "$ac_c_werror_flag" ||
31725 test ! -s conftest.err
31726 } && test -s conftest.$ac_objext; then
31727 ac_cv_header_time=yes
31729 echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31732 ac_cv_header_time=no
31735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31737 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31738 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31739 if test $ac_cv_header_time = yes; then
31741 cat >>confdefs.h <<\_ACEOF
31742 #define TIME_WITH_SYS_TIME 1
31747 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31748 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31749 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31752 cat >conftest.$ac_ext <<_ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h. */
31758 $ac_includes_default
31762 static struct stat ac_aggr;
31763 if (ac_aggr.st_blksize)
31769 rm -f conftest.$ac_objext
31770 if { (ac_try="$ac_compile"
31771 case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_compile") 2>conftest.er1
31778 grep -v '^ *+' conftest.er1 >conftest.err
31780 cat conftest.err >&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } && {
31783 test -z "$ac_c_werror_flag" ||
31784 test ! -s conftest.err
31785 } && test -s conftest.$ac_objext; then
31786 ac_cv_member_struct_stat_st_blksize=yes
31788 echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31791 cat >conftest.$ac_ext <<_ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h. */
31797 $ac_includes_default
31801 static struct stat ac_aggr;
31802 if (sizeof ac_aggr.st_blksize)
31808 rm -f conftest.$ac_objext
31809 if { (ac_try="$ac_compile"
31810 case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_compile") 2>conftest.er1
31817 grep -v '^ *+' conftest.er1 >conftest.err
31819 cat conftest.err >&5
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); } && {
31822 test -z "$ac_c_werror_flag" ||
31823 test ! -s conftest.err
31824 } && test -s conftest.$ac_objext; then
31825 ac_cv_member_struct_stat_st_blksize=yes
31827 echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31830 ac_cv_member_struct_stat_st_blksize=no
31833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31838 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31840 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31842 cat >>confdefs.h <<_ACEOF
31843 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31847 cat >>confdefs.h <<\_ACEOF
31848 #define HAVE_ST_BLKSIZE 1
31854 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31855 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31856 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31857 echo $ECHO_N "(cached) $ECHO_C" >&6
31859 cat >conftest.$ac_ext <<_ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31865 $ac_includes_default
31869 static struct stat ac_aggr;
31870 if (ac_aggr.st_blocks)
31876 rm -f conftest.$ac_objext
31877 if { (ac_try="$ac_compile"
31878 case "(($ac_try" in
31879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880 *) ac_try_echo=$ac_try;;
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883 (eval "$ac_compile") 2>conftest.er1
31885 grep -v '^ *+' conftest.er1 >conftest.err
31887 cat conftest.err >&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } && {
31890 test -z "$ac_c_werror_flag" ||
31891 test ! -s conftest.err
31892 } && test -s conftest.$ac_objext; then
31893 ac_cv_member_struct_stat_st_blocks=yes
31895 echo "$as_me: failed program was:" >&5
31896 sed 's/^/| /' conftest.$ac_ext >&5
31898 cat >conftest.$ac_ext <<_ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 $ac_includes_default
31908 static struct stat ac_aggr;
31909 if (sizeof ac_aggr.st_blocks)
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
31924 grep -v '^ *+' conftest.er1 >conftest.err
31926 cat conftest.err >&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } && {
31929 test -z "$ac_c_werror_flag" ||
31930 test ! -s conftest.err
31931 } && test -s conftest.$ac_objext; then
31932 ac_cv_member_struct_stat_st_blocks=yes
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_cv_member_struct_stat_st_blocks=no
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31947 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31949 cat >>confdefs.h <<_ACEOF
31950 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_ST_BLOCKS 1
31959 case " $LIBOBJS " in
31960 *" fileblocks.$ac_objext "* ) ;;
31961 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31968 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31969 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31970 if test "${ac_cv_struct_tm+set}" = set; then
31971 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 cat >conftest.$ac_ext <<_ACEOF
31976 cat confdefs.h >>conftest.$ac_ext
31977 cat >>conftest.$ac_ext <<_ACEOF
31978 /* end confdefs.h. */
31979 #include <sys/types.h>
31986 int *p = &tm.tm_sec;
31992 rm -f conftest.$ac_objext
31993 if { (ac_try="$ac_compile"
31994 case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999 (eval "$ac_compile") 2>conftest.er1
32001 grep -v '^ *+' conftest.er1 >conftest.err
32003 cat conftest.err >&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } && {
32006 test -z "$ac_c_werror_flag" ||
32007 test ! -s conftest.err
32008 } && test -s conftest.$ac_objext; then
32009 ac_cv_struct_tm=time.h
32011 echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32014 ac_cv_struct_tm=sys/time.h
32017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32019 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32020 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32021 if test $ac_cv_struct_tm = sys/time.h; then
32023 cat >>confdefs.h <<\_ACEOF
32024 #define TM_IN_SYS_TIME 1
32029 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32030 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32031 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32034 cat >conftest.$ac_ext <<_ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h. */
32040 #include <sys/types.h>
32041 #include <$ac_cv_struct_tm>
32047 static struct tm ac_aggr;
32048 if (ac_aggr.tm_zone)
32054 rm -f conftest.$ac_objext
32055 if { (ac_try="$ac_compile"
32056 case "(($ac_try" in
32057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058 *) ac_try_echo=$ac_try;;
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061 (eval "$ac_compile") 2>conftest.er1
32063 grep -v '^ *+' conftest.er1 >conftest.err
32065 cat conftest.err >&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); } && {
32068 test -z "$ac_c_werror_flag" ||
32069 test ! -s conftest.err
32070 } && test -s conftest.$ac_objext; then
32071 ac_cv_member_struct_tm_tm_zone=yes
32073 echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32076 cat >conftest.$ac_ext <<_ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h. */
32082 #include <sys/types.h>
32083 #include <$ac_cv_struct_tm>
32089 static struct tm ac_aggr;
32090 if (sizeof ac_aggr.tm_zone)
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
32105 grep -v '^ *+' conftest.er1 >conftest.err
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } && {
32110 test -z "$ac_c_werror_flag" ||
32111 test ! -s conftest.err
32112 } && test -s conftest.$ac_objext; then
32113 ac_cv_member_struct_tm_tm_zone=yes
32115 echo "$as_me: failed program was:" >&5
32116 sed 's/^/| /' conftest.$ac_ext >&5
32118 ac_cv_member_struct_tm_tm_zone=no
32121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32130 cat >>confdefs.h <<_ACEOF
32131 #define HAVE_STRUCT_TM_TM_ZONE 1
32137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32139 cat >>confdefs.h <<\_ACEOF
32140 #define HAVE_TM_ZONE 1
32144 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32145 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32146 if test "${ac_cv_have_decl_tzname+set}" = set; then
32147 echo $ECHO_N "(cached) $ECHO_C" >&6
32149 cat >conftest.$ac_ext <<_ACEOF
32152 cat confdefs.h >>conftest.$ac_ext
32153 cat >>conftest.$ac_ext <<_ACEOF
32154 /* end confdefs.h. */
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } && {
32182 test -z "$ac_c_werror_flag" ||
32183 test ! -s conftest.err
32184 } && test -s conftest.$ac_objext; then
32185 ac_cv_have_decl_tzname=yes
32187 echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32190 ac_cv_have_decl_tzname=no
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32195 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32196 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32197 if test $ac_cv_have_decl_tzname = yes; then
32199 cat >>confdefs.h <<_ACEOF
32200 #define HAVE_DECL_TZNAME 1
32205 cat >>confdefs.h <<_ACEOF
32206 #define HAVE_DECL_TZNAME 0
32213 { echo "$as_me:$LINENO: checking for tzname" >&5
32214 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32215 if test "${ac_cv_var_tzname+set}" = set; then
32216 echo $ECHO_N "(cached) $ECHO_C" >&6
32218 cat >conftest.$ac_ext <<_ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h. */
32225 #if !HAVE_DECL_TZNAME
32226 extern char *tzname[];
32232 return tzname[0][0];
32237 rm -f conftest.$ac_objext conftest$ac_exeext
32238 if { (ac_try="$ac_link"
32239 case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_link") 2>conftest.er1
32246 grep -v '^ *+' conftest.er1 >conftest.err
32248 cat conftest.err >&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } && {
32251 test -z "$ac_c_werror_flag" ||
32252 test ! -s conftest.err
32253 } && test -s conftest$ac_exeext &&
32254 $as_test_x conftest$ac_exeext; then
32255 ac_cv_var_tzname=yes
32257 echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32260 ac_cv_var_tzname=no
32263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32264 conftest$ac_exeext conftest.$ac_ext
32266 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32267 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32268 if test $ac_cv_var_tzname = yes; then
32270 cat >>confdefs.h <<\_ACEOF
32271 #define HAVE_TZNAME 1
32278 { echo "$as_me:$LINENO: checking for utime.h" >&5
32279 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32280 if test "${ba_cv_header_utime_h+set}" = set; then
32281 echo $ECHO_N "(cached) $ECHO_C" >&6
32284 cat >conftest.$ac_ext <<_ACEOF
32287 cat confdefs.h >>conftest.$ac_ext
32288 cat >>conftest.$ac_ext <<_ACEOF
32289 /* end confdefs.h. */
32291 #include <sys/types.h>
32304 rm -f conftest.$ac_objext
32305 if { (ac_try="$ac_compile"
32306 case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_compile") 2>conftest.er1
32313 grep -v '^ *+' conftest.er1 >conftest.err
32315 cat conftest.err >&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); } && {
32318 test -z "$ac_c_werror_flag" ||
32319 test ! -s conftest.err
32320 } && test -s conftest.$ac_objext; then
32322 ba_cv_header_utime_h=yes
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32329 ba_cv_header_utime_h=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32338 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32339 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32340 test $ba_cv_header_utime_h = yes &&
32341 cat >>confdefs.h <<\_ACEOF
32342 #define HAVE_UTIME_H 1
32346 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32347 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32348 if test "${ba_cv_header_socklen_t+set}" = set; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32359 #include <sys/types.h>
32360 #include <sys/socket.h>
32372 rm -f conftest.$ac_objext
32373 if { (ac_try="$ac_compile"
32374 case "(($ac_try" in
32375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379 (eval "$ac_compile") 2>conftest.er1
32381 grep -v '^ *+' conftest.er1 >conftest.err
32383 cat conftest.err >&5
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); } && {
32386 test -z "$ac_c_werror_flag" ||
32387 test ! -s conftest.err
32388 } && test -s conftest.$ac_objext; then
32390 ba_cv_header_socklen_t=yes
32393 echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32397 ba_cv_header_socklen_t=no
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32407 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32408 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32409 #define HAVE_SOCKLEN_T 1
32413 { echo "$as_me:$LINENO: checking for bigendian" >&5
32414 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32415 if test "${ba_cv_bigendian+set}" = set; then
32416 echo $ECHO_N "(cached) $ECHO_C" >&6
32419 if test "$cross_compiling" = yes; then
32425 cat >conftest.$ac_ext <<_ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h. */
32432 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32435 rm -f conftest$ac_exeext
32436 if { (ac_try="$ac_link"
32437 case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_link") 2>&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32446 { (case "(($ac_try" in
32447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32448 *) ac_try_echo=$ac_try;;
32450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32451 (eval "$ac_try") 2>&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; }; then
32456 ba_cv_bigendian=yes
32459 echo "$as_me: program exited with status $ac_status" >&5
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32463 ( exit $ac_status )
32468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32475 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32476 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32477 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32478 #define HAVE_BIGENDIAN 1
32483 ac_cpp='$CXXCPP $CPPFLAGS'
32484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32488 { echo "$as_me:$LINENO: checking for typeof" >&5
32489 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32490 if test "${ba_cv_have_typeof+set}" = set; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32494 if test "$cross_compiling" = yes; then
32496 ba_cv_have_typeof=no
32500 cat >conftest.$ac_ext <<_ACEOF
32503 cat confdefs.h >>conftest.$ac_ext
32504 cat >>conftest.$ac_ext <<_ACEOF
32505 /* end confdefs.h. */
32507 main(){char *a = 0; a = (typeof a)a;}
32510 rm -f conftest$ac_exeext
32511 if { (ac_try="$ac_link"
32512 case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_link") 2>&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32521 { (case "(($ac_try" in
32522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32523 *) ac_try_echo=$ac_try;;
32525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32526 (eval "$ac_try") 2>&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); }; }; then
32531 ba_cv_have_typeof=yes
32534 echo "$as_me: program exited with status $ac_status" >&5
32535 echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32538 ( exit $ac_status )
32540 ba_cv_have_typeof=no
32543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32550 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32551 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32552 test $ba_cv_have_typeof = yes &&
32553 cat >>confdefs.h <<\_ACEOF
32554 #define HAVE_TYPEOF 1
32558 ac_cpp='$CPP $CPPFLAGS'
32559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32564 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32565 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32566 if test "${ac_cv_c_const+set}" = set; then
32567 echo $ECHO_N "(cached) $ECHO_C" >&6
32569 cat >conftest.$ac_ext <<_ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h. */
32579 /* FIXME: Include the comments suggested by Paul. */
32580 #ifndef __cplusplus
32581 /* Ultrix mips cc rejects this. */
32582 typedef int charset[2];
32584 /* SunOS 4.1.1 cc rejects this. */
32585 char const *const *pcpcc;
32587 /* NEC SVR4.0.2 mips cc rejects this. */
32588 struct point {int x, y;};
32589 static struct point const zero = {0,0};
32590 /* AIX XL C 1.02.0.0 rejects this.
32591 It does not let you subtract one const X* pointer from another in
32592 an arm of an if-expression whose if-part is not a constant
32594 const char *g = "string";
32595 pcpcc = &g + (g ? g-g : 0);
32596 /* HPUX 7.0 cc rejects these. */
32598 ppc = (char**) pcpcc;
32599 pcpcc = (char const *const *) ppc;
32600 { /* SCO 3.2v4 cc rejects this. */
32602 char const *s = 0 ? (char *) 0 : (char const *) 0;
32607 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32608 int x[] = {25, 17};
32609 const int *foo = &x[0];
32612 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32613 typedef const int *iptr;
32617 { /* AIX XL C 1.02.0.0 rejects this saying
32618 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32619 struct s { int j; const int *ap[3]; };
32620 struct s *b; b->j = 5;
32622 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32623 const int foo = 10;
32624 if (!foo) return 0;
32626 return !cs[0] && !zero.x;
32633 rm -f conftest.$ac_objext
32634 if { (ac_try="$ac_compile"
32635 case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_compile") 2>conftest.er1
32642 grep -v '^ *+' conftest.er1 >conftest.err
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } && {
32647 test -z "$ac_c_werror_flag" ||
32648 test ! -s conftest.err
32649 } && test -s conftest.$ac_objext; then
32652 echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.$ac_ext >&5
32658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32662 if test $ac_cv_c_const = no; then
32664 cat >>confdefs.h <<\_ACEOF
32671 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32672 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32674 # The order of these tests is important.
32675 cat >conftest.$ac_ext <<_ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32682 #include <sys/statvfs.h>
32683 #include <sys/fstyp.h>
32686 if { (ac_try="$ac_cpp conftest.$ac_ext"
32687 case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32694 grep -v '^ *+' conftest.er1 >conftest.err
32696 cat conftest.err >&5
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); } >/dev/null && {
32699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32700 test ! -s conftest.err
32702 cat >>confdefs.h <<\_ACEOF
32703 #define FSTYPE_STATVFS 1
32708 echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32714 rm -f conftest.err conftest.$ac_ext
32715 if test $fstype = no; then
32716 cat >conftest.$ac_ext <<_ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h. */
32723 #include <sys/statfs.h>
32724 #include <sys/fstyp.h>
32727 if { (ac_try="$ac_cpp conftest.$ac_ext"
32728 case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32735 grep -v '^ *+' conftest.er1 >conftest.err
32737 cat conftest.err >&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); } >/dev/null && {
32740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32741 test ! -s conftest.err
32743 cat >>confdefs.h <<\_ACEOF
32744 #define FSTYPE_USG_STATFS 1
32749 echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32755 rm -f conftest.err conftest.$ac_ext
32757 if test $fstype = no; then
32758 cat >conftest.$ac_ext <<_ACEOF
32761 cat confdefs.h >>conftest.$ac_ext
32762 cat >>conftest.$ac_ext <<_ACEOF
32763 /* end confdefs.h. */
32765 #include <sys/statfs.h>
32766 #include <sys/vmount.h>
32769 if { (ac_try="$ac_cpp conftest.$ac_ext"
32770 case "(($ac_try" in
32771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772 *) ac_try_echo=$ac_try;;
32774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32777 grep -v '^ *+' conftest.er1 >conftest.err
32779 cat conftest.err >&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); } >/dev/null && {
32782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32783 test ! -s conftest.err
32785 cat >>confdefs.h <<\_ACEOF
32786 #define FSTYPE_AIX_STATFS 1
32791 echo "$as_me: failed program was:" >&5
32792 sed 's/^/| /' conftest.$ac_ext >&5
32797 rm -f conftest.err conftest.$ac_ext
32799 if test $fstype = no; then
32800 cat >conftest.$ac_ext <<_ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h. */
32807 #include <mntent.h>
32810 if { (ac_try="$ac_cpp conftest.$ac_ext"
32811 case "(($ac_try" in
32812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 *) ac_try_echo=$ac_try;;
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32818 grep -v '^ *+' conftest.er1 >conftest.err
32820 cat conftest.err >&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } >/dev/null && {
32823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32824 test ! -s conftest.err
32826 cat >>confdefs.h <<\_ACEOF
32827 #define FSTYPE_MNTENT 1
32832 echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32838 rm -f conftest.err conftest.$ac_ext
32840 if test $fstype = no; then
32841 cat >conftest.$ac_ext <<_ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h. */
32847 #include <sys/mount.h>
32850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32851 $EGREP "f_type;" >/dev/null 2>&1; then
32852 cat >>confdefs.h <<\_ACEOF
32853 #define FSTYPE_STATFS 1
32860 if test $fstype = no; then
32861 cat >conftest.$ac_ext <<_ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32868 #include <sys/mount.h>
32869 #include <sys/fs_types.h>
32872 if { (ac_try="$ac_cpp conftest.$ac_ext"
32873 case "(($ac_try" in
32874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32875 *) ac_try_echo=$ac_try;;
32877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } >/dev/null && {
32885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32886 test ! -s conftest.err
32888 cat >>confdefs.h <<\_ACEOF
32889 #define FSTYPE_GETMNT 1
32894 echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32900 rm -f conftest.err conftest.$ac_ext
32902 { echo "$as_me:$LINENO: result: $fstype" >&5
32903 echo "${ECHO_T}$fstype" >&6; }
32905 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32906 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32907 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32908 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32909 echo $ECHO_N "(cached) $ECHO_C" >&6
32911 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32912 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32914 # Is the header compilable?
32915 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32916 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32917 cat >conftest.$ac_ext <<_ACEOF
32920 cat confdefs.h >>conftest.$ac_ext
32921 cat >>conftest.$ac_ext <<_ACEOF
32922 /* end confdefs.h. */
32923 $ac_includes_default
32924 #include <sys/statvfs.h>
32926 rm -f conftest.$ac_objext
32927 if { (ac_try="$ac_compile"
32928 case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_compile") 2>conftest.er1
32935 grep -v '^ *+' conftest.er1 >conftest.err
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } && {
32940 test -z "$ac_c_werror_flag" ||
32941 test ! -s conftest.err
32942 } && test -s conftest.$ac_objext; then
32943 ac_header_compiler=yes
32945 echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32948 ac_header_compiler=no
32951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32953 echo "${ECHO_T}$ac_header_compiler" >&6; }
32955 # Is the header present?
32956 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32957 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32958 cat >conftest.$ac_ext <<_ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h. */
32964 #include <sys/statvfs.h>
32966 if { (ac_try="$ac_cpp conftest.$ac_ext"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } >/dev/null && {
32979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32980 test ! -s conftest.err
32982 ac_header_preproc=yes
32984 echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32987 ac_header_preproc=no
32990 rm -f conftest.err conftest.$ac_ext
32991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32992 echo "${ECHO_T}$ac_header_preproc" >&6; }
32994 # So? What about this header?
32995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32997 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32998 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32999 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33000 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33001 ac_header_preproc=yes
33004 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33005 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33006 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33007 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33008 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33009 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33010 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33011 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33012 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33013 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33014 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33015 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33019 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33020 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33021 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33024 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33026 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33027 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33030 if test $ac_cv_header_sys_statvfs_h = yes; then
33032 cat >>confdefs.h <<\_ACEOF
33033 #define HAVE_SYS_STATVFS_H 1
33040 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33041 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33042 if test "${ac_cv_type_signal+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&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 #include <sys/types.h>
33052 #include <signal.h>
33057 return *(signal (0, 0)) (0) == 1;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069 (eval "$ac_compile") 2>conftest.er1
33071 grep -v '^ *+' conftest.er1 >conftest.err
33073 cat conftest.err >&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } && {
33076 test -z "$ac_c_werror_flag" ||
33077 test ! -s conftest.err
33078 } && test -s conftest.$ac_objext; then
33079 ac_cv_type_signal=int
33081 echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33084 ac_cv_type_signal=void
33087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33089 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33090 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33092 cat >>confdefs.h <<_ACEOF
33093 #define RETSIGTYPE $ac_cv_type_signal
33098 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33099 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33100 if test "${bash_cv_signal_vintage+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
33104 cat >conftest.$ac_ext <<_ACEOF
33107 cat confdefs.h >>conftest.$ac_ext
33108 cat >>conftest.$ac_ext <<_ACEOF
33109 /* end confdefs.h. */
33110 #include <signal.h>
33116 struct sigaction sa;
33117 sigemptyset(&ss); sigsuspend(&ss);
33118 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33119 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33125 rm -f conftest.$ac_objext conftest$ac_exeext
33126 if { (ac_try="$ac_link"
33127 case "(($ac_try" in
33128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129 *) ac_try_echo=$ac_try;;
33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132 (eval "$ac_link") 2>conftest.er1
33134 grep -v '^ *+' conftest.er1 >conftest.err
33136 cat conftest.err >&5
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } && {
33139 test -z "$ac_c_werror_flag" ||
33140 test ! -s conftest.err
33141 } && test -s conftest$ac_exeext &&
33142 $as_test_x conftest$ac_exeext; then
33143 bash_cv_signal_vintage="posix"
33145 echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33149 cat >conftest.$ac_ext <<_ACEOF
33152 cat confdefs.h >>conftest.$ac_ext
33153 cat >>conftest.$ac_ext <<_ACEOF
33154 /* end confdefs.h. */
33155 #include <signal.h>
33160 int mask = sigmask(SIGINT);
33161 sigsetmask(mask); sigblock(mask); sigpause(mask);
33167 rm -f conftest.$ac_objext conftest$ac_exeext
33168 if { (ac_try="$ac_link"
33169 case "(($ac_try" in
33170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33171 *) ac_try_echo=$ac_try;;
33173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33174 (eval "$ac_link") 2>conftest.er1
33176 grep -v '^ *+' conftest.er1 >conftest.err
33178 cat conftest.err >&5
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); } && {
33181 test -z "$ac_c_werror_flag" ||
33182 test ! -s conftest.err
33183 } && test -s conftest$ac_exeext &&
33184 $as_test_x conftest$ac_exeext; then
33185 bash_cv_signal_vintage="4.2bsd"
33187 echo "$as_me: failed program was:" >&5
33188 sed 's/^/| /' conftest.$ac_ext >&5
33191 cat >conftest.$ac_ext <<_ACEOF
33194 cat confdefs.h >>conftest.$ac_ext
33195 cat >>conftest.$ac_ext <<_ACEOF
33196 /* end confdefs.h. */
33198 #include <signal.h>
33199 RETSIGTYPE foo() { }
33204 int mask = sigmask(SIGINT);
33205 sigset(SIGINT, foo); sigrelse(SIGINT);
33206 sighold(SIGINT); sigpause(SIGINT);
33212 rm -f conftest.$ac_objext conftest$ac_exeext
33213 if { (ac_try="$ac_link"
33214 case "(($ac_try" in
33215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216 *) ac_try_echo=$ac_try;;
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219 (eval "$ac_link") 2>conftest.er1
33221 grep -v '^ *+' conftest.er1 >conftest.err
33223 cat conftest.err >&5
33224 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_exeext &&
33229 $as_test_x conftest$ac_exeext; then
33230 bash_cv_signal_vintage="svr3"
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 bash_cv_signal_vintage="v7"
33239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240 conftest$ac_exeext conftest.$ac_ext
33244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33245 conftest$ac_exeext conftest.$ac_ext
33249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33250 conftest$ac_exeext conftest.$ac_ext
33254 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33255 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33256 if test "$bash_cv_signal_vintage" = "posix"; then
33257 cat >>confdefs.h <<\_ACEOF
33258 #define HAVE_POSIX_SIGNALS 1
33261 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33262 cat >>confdefs.h <<\_ACEOF
33263 #define HAVE_BSD_SIGNALS 1
33266 elif test "$bash_cv_signal_vintage" = "svr3"; then
33267 cat >>confdefs.h <<\_ACEOF
33268 #define HAVE_USG_SIGHOLD 1
33273 { echo "$as_me:$LINENO: checking for mode_t" >&5
33274 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33275 if test "${ac_cv_type_mode_t+set}" = set; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33278 cat >conftest.$ac_ext <<_ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33284 $ac_includes_default
33285 typedef mode_t ac__type_new_;
33289 if ((ac__type_new_ *) 0)
33291 if (sizeof (ac__type_new_))
33297 rm -f conftest.$ac_objext
33298 if { (ac_try="$ac_compile"
33299 case "(($ac_try" in
33300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301 *) ac_try_echo=$ac_try;;
33303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33304 (eval "$ac_compile") 2>conftest.er1
33306 grep -v '^ *+' conftest.er1 >conftest.err
33308 cat conftest.err >&5
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); } && {
33311 test -z "$ac_c_werror_flag" ||
33312 test ! -s conftest.err
33313 } && test -s conftest.$ac_objext; then
33314 ac_cv_type_mode_t=yes
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33319 ac_cv_type_mode_t=no
33322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33324 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33325 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33326 if test $ac_cv_type_mode_t = yes; then
33330 cat >>confdefs.h <<_ACEOF
33336 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33337 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33338 if test "${ac_cv_type_uid_t+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33341 cat >conftest.$ac_ext <<_ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h. */
33347 #include <sys/types.h>
33350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33351 $EGREP "uid_t" >/dev/null 2>&1; then
33352 ac_cv_type_uid_t=yes
33354 ac_cv_type_uid_t=no
33359 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33360 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33361 if test $ac_cv_type_uid_t = no; then
33363 cat >>confdefs.h <<\_ACEOF
33368 cat >>confdefs.h <<\_ACEOF
33374 { echo "$as_me:$LINENO: checking for size_t" >&5
33375 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33376 if test "${ac_cv_type_size_t+set}" = set; then
33377 echo $ECHO_N "(cached) $ECHO_C" >&6
33379 cat >conftest.$ac_ext <<_ACEOF
33382 cat confdefs.h >>conftest.$ac_ext
33383 cat >>conftest.$ac_ext <<_ACEOF
33384 /* end confdefs.h. */
33385 $ac_includes_default
33386 typedef size_t ac__type_new_;
33390 if ((ac__type_new_ *) 0)
33392 if (sizeof (ac__type_new_))
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_compile") 2>conftest.er1
33407 grep -v '^ *+' conftest.er1 >conftest.err
33409 cat conftest.err >&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); } && {
33412 test -z "$ac_c_werror_flag" ||
33413 test ! -s conftest.err
33414 } && test -s conftest.$ac_objext; then
33415 ac_cv_type_size_t=yes
33417 echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33420 ac_cv_type_size_t=no
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33425 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33426 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33427 if test $ac_cv_type_size_t = yes; then
33431 cat >>confdefs.h <<_ACEOF
33432 #define size_t unsigned int
33437 { echo "$as_me:$LINENO: checking for pid_t" >&5
33438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33439 if test "${ac_cv_type_pid_t+set}" = set; then
33440 echo $ECHO_N "(cached) $ECHO_C" >&6
33442 cat >conftest.$ac_ext <<_ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h. */
33448 $ac_includes_default
33449 typedef pid_t ac__type_new_;
33453 if ((ac__type_new_ *) 0)
33455 if (sizeof (ac__type_new_))
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
33470 grep -v '^ *+' conftest.er1 >conftest.err
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } && {
33475 test -z "$ac_c_werror_flag" ||
33476 test ! -s conftest.err
33477 } && test -s conftest.$ac_objext; then
33478 ac_cv_type_pid_t=yes
33480 echo "$as_me: failed program was:" >&5
33481 sed 's/^/| /' conftest.$ac_ext >&5
33483 ac_cv_type_pid_t=no
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33488 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33489 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33490 if test $ac_cv_type_pid_t = yes; then
33494 cat >>confdefs.h <<_ACEOF
33500 { echo "$as_me:$LINENO: checking for off_t" >&5
33501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33502 if test "${ac_cv_type_off_t+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 cat >conftest.$ac_ext <<_ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h. */
33511 $ac_includes_default
33512 typedef off_t ac__type_new_;
33516 if ((ac__type_new_ *) 0)
33518 if (sizeof (ac__type_new_))
33524 rm -f conftest.$ac_objext
33525 if { (ac_try="$ac_compile"
33526 case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_compile") 2>conftest.er1
33533 grep -v '^ *+' conftest.er1 >conftest.err
33535 cat conftest.err >&5
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); } && {
33538 test -z "$ac_c_werror_flag" ||
33539 test ! -s conftest.err
33540 } && test -s conftest.$ac_objext; then
33541 ac_cv_type_off_t=yes
33543 echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33546 ac_cv_type_off_t=no
33549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33551 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33552 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33553 if test $ac_cv_type_off_t = yes; then
33557 cat >>confdefs.h <<_ACEOF
33558 #define off_t long int
33564 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33565 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33566 if test "${ac_cv_type_intptr_t+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33569 cat >conftest.$ac_ext <<_ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h. */
33575 $ac_includes_default
33576 typedef intptr_t ac__type_new_;
33580 if ((ac__type_new_ *) 0)
33582 if (sizeof (ac__type_new_))
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595 (eval "$ac_compile") 2>conftest.er1
33597 grep -v '^ *+' conftest.er1 >conftest.err
33599 cat conftest.err >&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); } && {
33602 test -z "$ac_c_werror_flag" ||
33603 test ! -s conftest.err
33604 } && test -s conftest.$ac_objext; then
33605 ac_cv_type_intptr_t=yes
33607 echo "$as_me: failed program was:" >&5
33608 sed 's/^/| /' conftest.$ac_ext >&5
33610 ac_cv_type_intptr_t=no
33613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33615 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33616 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33617 if test $ac_cv_type_intptr_t = yes; then
33619 cat >>confdefs.h <<\_ACEOF
33620 #define HAVE_INTPTR_T 1
33624 for ac_type in 'int' 'long int' 'long long int'; do
33625 cat >conftest.$ac_ext <<_ACEOF
33628 cat confdefs.h >>conftest.$ac_ext
33629 cat >>conftest.$ac_ext <<_ACEOF
33630 /* end confdefs.h. */
33631 $ac_includes_default
33635 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33642 rm -f conftest.$ac_objext
33643 if { (ac_try="$ac_compile"
33644 case "(($ac_try" in
33645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646 *) ac_try_echo=$ac_try;;
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649 (eval "$ac_compile") 2>conftest.er1
33651 grep -v '^ *+' conftest.er1 >conftest.err
33653 cat conftest.err >&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } && {
33656 test -z "$ac_c_werror_flag" ||
33657 test ! -s conftest.err
33658 } && test -s conftest.$ac_objext; then
33660 cat >>confdefs.h <<_ACEOF
33661 #define intptr_t $ac_type
33666 echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673 test -z "$ac_type" && break
33679 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33680 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33681 if test "${ac_cv_type_uintptr_t+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33684 cat >conftest.$ac_ext <<_ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h. */
33690 $ac_includes_default
33691 typedef uintptr_t ac__type_new_;
33695 if ((ac__type_new_ *) 0)
33697 if (sizeof (ac__type_new_))
33703 rm -f conftest.$ac_objext
33704 if { (ac_try="$ac_compile"
33705 case "(($ac_try" in
33706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707 *) ac_try_echo=$ac_try;;
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710 (eval "$ac_compile") 2>conftest.er1
33712 grep -v '^ *+' conftest.er1 >conftest.err
33714 cat conftest.err >&5
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } && {
33717 test -z "$ac_c_werror_flag" ||
33718 test ! -s conftest.err
33719 } && test -s conftest.$ac_objext; then
33720 ac_cv_type_uintptr_t=yes
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33725 ac_cv_type_uintptr_t=no
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33730 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33731 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33732 if test $ac_cv_type_uintptr_t = yes; then
33734 cat >>confdefs.h <<\_ACEOF
33735 #define HAVE_UINTPTR_T 1
33739 for ac_type in 'unsigned int' 'unsigned long int' \
33740 'unsigned long long int'; do
33741 cat >conftest.$ac_ext <<_ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h. */
33747 $ac_includes_default
33751 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33758 rm -f conftest.$ac_objext
33759 if { (ac_try="$ac_compile"
33760 case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_compile") 2>conftest.er1
33767 grep -v '^ *+' conftest.er1 >conftest.err
33769 cat conftest.err >&5
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } && {
33772 test -z "$ac_c_werror_flag" ||
33773 test ! -s conftest.err
33774 } && test -s conftest.$ac_objext; then
33776 cat >>confdefs.h <<_ACEOF
33777 #define uintptr_t $ac_type
33782 echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.$ac_ext >&5
33788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33789 test -z "$ac_type" && break
33794 { echo "$as_me:$LINENO: checking for ino_t" >&5
33795 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33796 if test "${ac_cv_type_ino_t+set}" = set; then
33797 echo $ECHO_N "(cached) $ECHO_C" >&6
33799 cat >conftest.$ac_ext <<_ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33805 $ac_includes_default
33806 typedef ino_t ac__type_new_;
33810 if ((ac__type_new_ *) 0)
33812 if (sizeof (ac__type_new_))
33818 rm -f conftest.$ac_objext
33819 if { (ac_try="$ac_compile"
33820 case "(($ac_try" in
33821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822 *) ac_try_echo=$ac_try;;
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_compile") 2>conftest.er1
33827 grep -v '^ *+' conftest.er1 >conftest.err
33829 cat conftest.err >&5
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); } && {
33832 test -z "$ac_c_werror_flag" ||
33833 test ! -s conftest.err
33834 } && test -s conftest.$ac_objext; then
33835 ac_cv_type_ino_t=yes
33837 echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33840 ac_cv_type_ino_t=no
33843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33845 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33846 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33847 if test $ac_cv_type_ino_t = yes; then
33851 cat >>confdefs.h <<_ACEOF
33852 #define ino_t unsigned long
33857 { echo "$as_me:$LINENO: checking for dev_t" >&5
33858 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33859 if test "${ac_cv_type_dev_t+set}" = set; then
33860 echo $ECHO_N "(cached) $ECHO_C" >&6
33862 cat >conftest.$ac_ext <<_ACEOF
33865 cat confdefs.h >>conftest.$ac_ext
33866 cat >>conftest.$ac_ext <<_ACEOF
33867 /* end confdefs.h. */
33868 $ac_includes_default
33869 typedef dev_t ac__type_new_;
33873 if ((ac__type_new_ *) 0)
33875 if (sizeof (ac__type_new_))
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885 *) ac_try_echo=$ac_try;;
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888 (eval "$ac_compile") 2>conftest.er1
33890 grep -v '^ *+' conftest.er1 >conftest.err
33892 cat conftest.err >&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); } && {
33895 test -z "$ac_c_werror_flag" ||
33896 test ! -s conftest.err
33897 } && test -s conftest.$ac_objext; then
33898 ac_cv_type_dev_t=yes
33900 echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33903 ac_cv_type_dev_t=no
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33908 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33909 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33910 if test $ac_cv_type_dev_t = yes; then
33914 cat >>confdefs.h <<_ACEOF
33915 #define dev_t unsigned long
33920 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33921 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33922 if test "${ac_cv_type_daddr_t+set}" = set; then
33923 echo $ECHO_N "(cached) $ECHO_C" >&6
33925 cat >conftest.$ac_ext <<_ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h. */
33931 $ac_includes_default
33932 typedef daddr_t ac__type_new_;
33936 if ((ac__type_new_ *) 0)
33938 if (sizeof (ac__type_new_))
33944 rm -f conftest.$ac_objext
33945 if { (ac_try="$ac_compile"
33946 case "(($ac_try" in
33947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948 *) ac_try_echo=$ac_try;;
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951 (eval "$ac_compile") 2>conftest.er1
33953 grep -v '^ *+' conftest.er1 >conftest.err
33955 cat conftest.err >&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); } && {
33958 test -z "$ac_c_werror_flag" ||
33959 test ! -s conftest.err
33960 } && test -s conftest.$ac_objext; then
33961 ac_cv_type_daddr_t=yes
33963 echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33966 ac_cv_type_daddr_t=no
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33971 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33972 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33973 if test $ac_cv_type_daddr_t = yes; then
33977 cat >>confdefs.h <<_ACEOF
33978 #define daddr_t long
33983 { echo "$as_me:$LINENO: checking for major_t" >&5
33984 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33985 if test "${ac_cv_type_major_t+set}" = set; then
33986 echo $ECHO_N "(cached) $ECHO_C" >&6
33988 cat >conftest.$ac_ext <<_ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h. */
33994 $ac_includes_default
33995 typedef major_t ac__type_new_;
33999 if ((ac__type_new_ *) 0)
34001 if (sizeof (ac__type_new_))
34007 rm -f conftest.$ac_objext
34008 if { (ac_try="$ac_compile"
34009 case "(($ac_try" in
34010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011 *) ac_try_echo=$ac_try;;
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014 (eval "$ac_compile") 2>conftest.er1
34016 grep -v '^ *+' conftest.er1 >conftest.err
34018 cat conftest.err >&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } && {
34021 test -z "$ac_c_werror_flag" ||
34022 test ! -s conftest.err
34023 } && test -s conftest.$ac_objext; then
34024 ac_cv_type_major_t=yes
34026 echo "$as_me: failed program was:" >&5
34027 sed 's/^/| /' conftest.$ac_ext >&5
34029 ac_cv_type_major_t=no
34032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34034 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34035 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34036 if test $ac_cv_type_major_t = yes; then
34040 cat >>confdefs.h <<_ACEOF
34041 #define major_t int
34046 { echo "$as_me:$LINENO: checking for minor_t" >&5
34047 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34048 if test "${ac_cv_type_minor_t+set}" = set; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34051 cat >conftest.$ac_ext <<_ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h. */
34057 $ac_includes_default
34058 typedef minor_t ac__type_new_;
34062 if ((ac__type_new_ *) 0)
34064 if (sizeof (ac__type_new_))
34070 rm -f conftest.$ac_objext
34071 if { (ac_try="$ac_compile"
34072 case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_compile") 2>conftest.er1
34079 grep -v '^ *+' conftest.er1 >conftest.err
34081 cat conftest.err >&5
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); } && {
34084 test -z "$ac_c_werror_flag" ||
34085 test ! -s conftest.err
34086 } && test -s conftest.$ac_objext; then
34087 ac_cv_type_minor_t=yes
34089 echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34092 ac_cv_type_minor_t=no
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34097 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34098 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34099 if test $ac_cv_type_minor_t = yes; then
34103 cat >>confdefs.h <<_ACEOF
34104 #define minor_t int
34109 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34110 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34111 if test "${ac_cv_type_ssize_t+set}" = set; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34114 cat >conftest.$ac_ext <<_ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h. */
34120 $ac_includes_default
34121 typedef ssize_t ac__type_new_;
34125 if ((ac__type_new_ *) 0)
34127 if (sizeof (ac__type_new_))
34133 rm -f conftest.$ac_objext
34134 if { (ac_try="$ac_compile"
34135 case "(($ac_try" in
34136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34137 *) ac_try_echo=$ac_try;;
34139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34140 (eval "$ac_compile") 2>conftest.er1
34142 grep -v '^ *+' conftest.er1 >conftest.err
34144 cat conftest.err >&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); } && {
34147 test -z "$ac_c_werror_flag" ||
34148 test ! -s conftest.err
34149 } && test -s conftest.$ac_objext; then
34150 ac_cv_type_ssize_t=yes
34152 echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34155 ac_cv_type_ssize_t=no
34158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34160 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34161 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34162 if test $ac_cv_type_ssize_t = yes; then
34166 cat >>confdefs.h <<_ACEOF
34167 #define ssize_t int
34172 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34173 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34174 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34175 echo $ECHO_N "(cached) $ECHO_C" >&6
34177 cat >conftest.$ac_ext <<_ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h. */
34183 $ac_includes_default
34187 static struct stat ac_aggr;
34188 if (ac_aggr.st_blocks)
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198 *) ac_try_echo=$ac_try;;
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201 (eval "$ac_compile") 2>conftest.er1
34203 grep -v '^ *+' conftest.er1 >conftest.err
34205 cat conftest.err >&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); } && {
34208 test -z "$ac_c_werror_flag" ||
34209 test ! -s conftest.err
34210 } && test -s conftest.$ac_objext; then
34211 ac_cv_member_struct_stat_st_blocks=yes
34213 echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34216 cat >conftest.$ac_ext <<_ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h. */
34222 $ac_includes_default
34226 static struct stat ac_aggr;
34227 if (sizeof ac_aggr.st_blocks)
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237 *) ac_try_echo=$ac_try;;
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240 (eval "$ac_compile") 2>conftest.er1
34242 grep -v '^ *+' conftest.er1 >conftest.err
34244 cat conftest.err >&5
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } && {
34247 test -z "$ac_c_werror_flag" ||
34248 test ! -s conftest.err
34249 } && test -s conftest.$ac_objext; then
34250 ac_cv_member_struct_stat_st_blocks=yes
34252 echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34255 ac_cv_member_struct_stat_st_blocks=no
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34264 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34265 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34267 cat >>confdefs.h <<_ACEOF
34268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34272 cat >>confdefs.h <<\_ACEOF
34273 #define HAVE_ST_BLOCKS 1
34277 case " $LIBOBJS " in
34278 *" fileblocks.$ac_objext "* ) ;;
34279 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34286 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34287 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34288 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34289 echo $ECHO_N "(cached) $ECHO_C" >&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 $ac_includes_default
34301 static struct stat ac_aggr;
34302 if (ac_aggr.st_rdev)
34308 rm -f conftest.$ac_objext
34309 if { (ac_try="$ac_compile"
34310 case "(($ac_try" in
34311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312 *) ac_try_echo=$ac_try;;
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315 (eval "$ac_compile") 2>conftest.er1
34317 grep -v '^ *+' conftest.er1 >conftest.err
34319 cat conftest.err >&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } && {
34322 test -z "$ac_c_werror_flag" ||
34323 test ! -s conftest.err
34324 } && test -s conftest.$ac_objext; then
34325 ac_cv_member_struct_stat_st_rdev=yes
34327 echo "$as_me: failed program was:" >&5
34328 sed 's/^/| /' conftest.$ac_ext >&5
34330 cat >conftest.$ac_ext <<_ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h. */
34336 $ac_includes_default
34340 static struct stat ac_aggr;
34341 if (sizeof ac_aggr.st_rdev)
34347 rm -f conftest.$ac_objext
34348 if { (ac_try="$ac_compile"
34349 case "(($ac_try" in
34350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34351 *) ac_try_echo=$ac_try;;
34353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34354 (eval "$ac_compile") 2>conftest.er1
34356 grep -v '^ *+' conftest.er1 >conftest.err
34358 cat conftest.err >&5
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); } && {
34361 test -z "$ac_c_werror_flag" ||
34362 test ! -s conftest.err
34363 } && test -s conftest.$ac_objext; then
34364 ac_cv_member_struct_stat_st_rdev=yes
34366 echo "$as_me: failed program was:" >&5
34367 sed 's/^/| /' conftest.$ac_ext >&5
34369 ac_cv_member_struct_stat_st_rdev=no
34372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34378 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34379 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_STRUCT_STAT_ST_RDEV 1
34386 cat >>confdefs.h <<\_ACEOF
34387 #define HAVE_ST_RDEV 1
34393 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34395 if test "${ac_cv_struct_tm+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34398 cat >conftest.$ac_ext <<_ACEOF
34401 cat confdefs.h >>conftest.$ac_ext
34402 cat >>conftest.$ac_ext <<_ACEOF
34403 /* end confdefs.h. */
34404 #include <sys/types.h>
34411 int *p = &tm.tm_sec;
34417 rm -f conftest.$ac_objext
34418 if { (ac_try="$ac_compile"
34419 case "(($ac_try" in
34420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34421 *) ac_try_echo=$ac_try;;
34423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34424 (eval "$ac_compile") 2>conftest.er1
34426 grep -v '^ *+' conftest.er1 >conftest.err
34428 cat conftest.err >&5
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } && {
34431 test -z "$ac_c_werror_flag" ||
34432 test ! -s conftest.err
34433 } && test -s conftest.$ac_objext; then
34434 ac_cv_struct_tm=time.h
34436 echo "$as_me: failed program was:" >&5
34437 sed 's/^/| /' conftest.$ac_ext >&5
34439 ac_cv_struct_tm=sys/time.h
34442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34444 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34445 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34446 if test $ac_cv_struct_tm = sys/time.h; then
34448 cat >>confdefs.h <<\_ACEOF
34449 #define TM_IN_SYS_TIME 1
34454 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34456 if test "${ac_cv_c_const+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34459 cat >conftest.$ac_ext <<_ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h. */
34469 /* FIXME: Include the comments suggested by Paul. */
34470 #ifndef __cplusplus
34471 /* Ultrix mips cc rejects this. */
34472 typedef int charset[2];
34474 /* SunOS 4.1.1 cc rejects this. */
34475 char const *const *pcpcc;
34477 /* NEC SVR4.0.2 mips cc rejects this. */
34478 struct point {int x, y;};
34479 static struct point const zero = {0,0};
34480 /* AIX XL C 1.02.0.0 rejects this.
34481 It does not let you subtract one const X* pointer from another in
34482 an arm of an if-expression whose if-part is not a constant
34484 const char *g = "string";
34485 pcpcc = &g + (g ? g-g : 0);
34486 /* HPUX 7.0 cc rejects these. */
34488 ppc = (char**) pcpcc;
34489 pcpcc = (char const *const *) ppc;
34490 { /* SCO 3.2v4 cc rejects this. */
34492 char const *s = 0 ? (char *) 0 : (char const *) 0;
34497 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34498 int x[] = {25, 17};
34499 const int *foo = &x[0];
34502 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34503 typedef const int *iptr;
34507 { /* AIX XL C 1.02.0.0 rejects this saying
34508 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34509 struct s { int j; const int *ap[3]; };
34510 struct s *b; b->j = 5;
34512 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34513 const int foo = 10;
34514 if (!foo) return 0;
34516 return !cs[0] && !zero.x;
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527 *) ac_try_echo=$ac_try;;
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530 (eval "$ac_compile") 2>conftest.er1
34532 grep -v '^ *+' conftest.er1 >conftest.err
34534 cat conftest.err >&5
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); } && {
34537 test -z "$ac_c_werror_flag" ||
34538 test ! -s conftest.err
34539 } && test -s conftest.$ac_objext; then
34542 echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34550 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34551 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34552 if test $ac_cv_c_const = no; then
34554 cat >>confdefs.h <<\_ACEOF
34561 { echo "$as_me:$LINENO: checking for char" >&5
34562 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34563 if test "${ac_cv_type_char+set}" = set; then
34564 echo $ECHO_N "(cached) $ECHO_C" >&6
34566 cat >conftest.$ac_ext <<_ACEOF
34569 cat confdefs.h >>conftest.$ac_ext
34570 cat >>conftest.$ac_ext <<_ACEOF
34571 /* end confdefs.h. */
34572 $ac_includes_default
34573 typedef char ac__type_new_;
34577 if ((ac__type_new_ *) 0)
34579 if (sizeof (ac__type_new_))
34585 rm -f conftest.$ac_objext
34586 if { (ac_try="$ac_compile"
34587 case "(($ac_try" in
34588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34589 *) ac_try_echo=$ac_try;;
34591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34592 (eval "$ac_compile") 2>conftest.er1
34594 grep -v '^ *+' conftest.er1 >conftest.err
34596 cat conftest.err >&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } && {
34599 test -z "$ac_c_werror_flag" ||
34600 test ! -s conftest.err
34601 } && test -s conftest.$ac_objext; then
34602 ac_cv_type_char=yes
34604 echo "$as_me: failed program was:" >&5
34605 sed 's/^/| /' conftest.$ac_ext >&5
34610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34612 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34613 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34615 # The cast to long int works around a bug in the HP C Compiler
34616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34618 # This bug is HP SR number 8606223364.
34619 { echo "$as_me:$LINENO: checking size of char" >&5
34620 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34621 if test "${ac_cv_sizeof_char+set}" = set; then
34622 echo $ECHO_N "(cached) $ECHO_C" >&6
34624 if test "$cross_compiling" = yes; then
34625 # Depending upon the size, compute the lo and hi bounds.
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
34633 typedef char ac__type_sizeof_;
34637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34644 rm -f conftest.$ac_objext
34645 if { (ac_try="$ac_compile"
34646 case "(($ac_try" in
34647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34648 *) ac_try_echo=$ac_try;;
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651 (eval "$ac_compile") 2>conftest.er1
34653 grep -v '^ *+' conftest.er1 >conftest.err
34655 cat conftest.err >&5
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); } && {
34658 test -z "$ac_c_werror_flag" ||
34659 test ! -s conftest.err
34660 } && test -s conftest.$ac_objext; then
34663 cat >conftest.$ac_ext <<_ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h. */
34669 $ac_includes_default
34670 typedef char ac__type_sizeof_;
34674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34681 rm -f conftest.$ac_objext
34682 if { (ac_try="$ac_compile"
34683 case "(($ac_try" in
34684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685 *) ac_try_echo=$ac_try;;
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688 (eval "$ac_compile") 2>conftest.er1
34690 grep -v '^ *+' conftest.er1 >conftest.err
34692 cat conftest.err >&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } && {
34695 test -z "$ac_c_werror_flag" ||
34696 test ! -s conftest.err
34697 } && test -s conftest.$ac_objext; then
34698 ac_hi=$ac_mid; break
34700 echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34703 ac_lo=`expr $ac_mid + 1`
34704 if test $ac_lo -le $ac_mid; then
34708 ac_mid=`expr 2 '*' $ac_mid + 1`
34711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34714 echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34717 cat >conftest.$ac_ext <<_ACEOF
34720 cat confdefs.h >>conftest.$ac_ext
34721 cat >>conftest.$ac_ext <<_ACEOF
34722 /* end confdefs.h. */
34723 $ac_includes_default
34724 typedef char ac__type_sizeof_;
34728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34735 rm -f conftest.$ac_objext
34736 if { (ac_try="$ac_compile"
34737 case "(($ac_try" in
34738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34739 *) ac_try_echo=$ac_try;;
34741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34742 (eval "$ac_compile") 2>conftest.er1
34744 grep -v '^ *+' conftest.er1 >conftest.err
34746 cat conftest.err >&5
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); } && {
34749 test -z "$ac_c_werror_flag" ||
34750 test ! -s conftest.err
34751 } && test -s conftest.$ac_objext; then
34754 cat >conftest.$ac_ext <<_ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h. */
34760 $ac_includes_default
34761 typedef char ac__type_sizeof_;
34765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34772 rm -f conftest.$ac_objext
34773 if { (ac_try="$ac_compile"
34774 case "(($ac_try" in
34775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34776 *) ac_try_echo=$ac_try;;
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779 (eval "$ac_compile") 2>conftest.er1
34781 grep -v '^ *+' conftest.er1 >conftest.err
34783 cat conftest.err >&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); } && {
34786 test -z "$ac_c_werror_flag" ||
34787 test ! -s conftest.err
34788 } && test -s conftest.$ac_objext; then
34789 ac_lo=$ac_mid; break
34791 echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34794 ac_hi=`expr '(' $ac_mid ')' - 1`
34795 if test $ac_mid -le $ac_hi; then
34799 ac_mid=`expr 2 '*' $ac_mid`
34802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34805 echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815 # Binary search between lo and hi bounds.
34816 while test "x$ac_lo" != "x$ac_hi"; do
34817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34824 $ac_includes_default
34825 typedef char ac__type_sizeof_;
34829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840 *) ac_try_echo=$ac_try;;
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843 (eval "$ac_compile") 2>conftest.er1
34845 grep -v '^ *+' conftest.er1 >conftest.err
34847 cat conftest.err >&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); } && {
34850 test -z "$ac_c_werror_flag" ||
34851 test ! -s conftest.err
34852 } && test -s conftest.$ac_objext; then
34855 echo "$as_me: failed program was:" >&5
34856 sed 's/^/| /' conftest.$ac_ext >&5
34858 ac_lo=`expr '(' $ac_mid ')' + 1`
34861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864 ?*) ac_cv_sizeof_char=$ac_lo;;
34865 '') if test "$ac_cv_type_char" = yes; then
34866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34867 See \`config.log' for more details." >&5
34868 echo "$as_me: error: cannot compute sizeof (char)
34869 See \`config.log' for more details." >&2;}
34870 { (exit 77); exit 77; }; }
34872 ac_cv_sizeof_char=0
34876 cat >conftest.$ac_ext <<_ACEOF
34879 cat confdefs.h >>conftest.$ac_ext
34880 cat >>conftest.$ac_ext <<_ACEOF
34881 /* end confdefs.h. */
34882 $ac_includes_default
34883 typedef char ac__type_sizeof_;
34884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34887 #include <stdlib.h>
34892 FILE *f = fopen ("conftest.val", "w");
34895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34897 long int i = longval ();
34898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34900 fprintf (f, "%ld\n", i);
34904 unsigned long int i = ulongval ();
34905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34907 fprintf (f, "%lu\n", i);
34909 return ferror (f) || fclose (f) != 0;
34915 rm -f conftest$ac_exeext
34916 if { (ac_try="$ac_link"
34917 case "(($ac_try" in
34918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919 *) ac_try_echo=$ac_try;;
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922 (eval "$ac_link") 2>&5
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34926 { (case "(($ac_try" in
34927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34928 *) ac_try_echo=$ac_try;;
34930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34931 (eval "$ac_try") 2>&5
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); }; }; then
34935 ac_cv_sizeof_char=`cat conftest.val`
34937 echo "$as_me: program exited with status $ac_status" >&5
34938 echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34941 ( exit $ac_status )
34942 if test "$ac_cv_type_char" = yes; then
34943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34944 See \`config.log' for more details." >&5
34945 echo "$as_me: error: cannot compute sizeof (char)
34946 See \`config.log' for more details." >&2;}
34947 { (exit 77); exit 77; }; }
34949 ac_cv_sizeof_char=0
34952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34957 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34961 cat >>confdefs.h <<_ACEOF
34962 #define SIZEOF_CHAR $ac_cv_sizeof_char
34966 { echo "$as_me:$LINENO: checking for short int" >&5
34967 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34968 if test "${ac_cv_type_short_int+set}" = set; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34971 cat >conftest.$ac_ext <<_ACEOF
34974 cat confdefs.h >>conftest.$ac_ext
34975 cat >>conftest.$ac_ext <<_ACEOF
34976 /* end confdefs.h. */
34977 $ac_includes_default
34978 typedef short int ac__type_new_;
34982 if ((ac__type_new_ *) 0)
34984 if (sizeof (ac__type_new_))
34990 rm -f conftest.$ac_objext
34991 if { (ac_try="$ac_compile"
34992 case "(($ac_try" in
34993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34994 *) ac_try_echo=$ac_try;;
34996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34997 (eval "$ac_compile") 2>conftest.er1
34999 grep -v '^ *+' conftest.er1 >conftest.err
35001 cat conftest.err >&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); } && {
35004 test -z "$ac_c_werror_flag" ||
35005 test ! -s conftest.err
35006 } && test -s conftest.$ac_objext; then
35007 ac_cv_type_short_int=yes
35009 echo "$as_me: failed program was:" >&5
35010 sed 's/^/| /' conftest.$ac_ext >&5
35012 ac_cv_type_short_int=no
35015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35017 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35018 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35020 # The cast to long int works around a bug in the HP C Compiler
35021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35023 # This bug is HP SR number 8606223364.
35024 { echo "$as_me:$LINENO: checking size of short int" >&5
35025 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35026 if test "${ac_cv_sizeof_short_int+set}" = set; then
35027 echo $ECHO_N "(cached) $ECHO_C" >&6
35029 if test "$cross_compiling" = yes; then
35030 # Depending upon the size, compute the lo and hi bounds.
35031 cat >conftest.$ac_ext <<_ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h. */
35037 $ac_includes_default
35038 typedef short int ac__type_sizeof_;
35042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053 *) ac_try_echo=$ac_try;;
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_compile") 2>conftest.er1
35058 grep -v '^ *+' conftest.er1 >conftest.err
35060 cat conftest.err >&5
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } && {
35063 test -z "$ac_c_werror_flag" ||
35064 test ! -s conftest.err
35065 } && test -s conftest.$ac_objext; then
35068 cat >conftest.$ac_ext <<_ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h. */
35074 $ac_includes_default
35075 typedef short int ac__type_sizeof_;
35079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35086 rm -f conftest.$ac_objext
35087 if { (ac_try="$ac_compile"
35088 case "(($ac_try" in
35089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090 *) ac_try_echo=$ac_try;;
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093 (eval "$ac_compile") 2>conftest.er1
35095 grep -v '^ *+' conftest.er1 >conftest.err
35097 cat conftest.err >&5
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } && {
35100 test -z "$ac_c_werror_flag" ||
35101 test ! -s conftest.err
35102 } && test -s conftest.$ac_objext; then
35103 ac_hi=$ac_mid; break
35105 echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35108 ac_lo=`expr $ac_mid + 1`
35109 if test $ac_lo -le $ac_mid; then
35113 ac_mid=`expr 2 '*' $ac_mid + 1`
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35119 echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35122 cat >conftest.$ac_ext <<_ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h. */
35128 $ac_includes_default
35129 typedef short int ac__type_sizeof_;
35133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35140 rm -f conftest.$ac_objext
35141 if { (ac_try="$ac_compile"
35142 case "(($ac_try" in
35143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144 *) ac_try_echo=$ac_try;;
35146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35147 (eval "$ac_compile") 2>conftest.er1
35149 grep -v '^ *+' conftest.er1 >conftest.err
35151 cat conftest.err >&5
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); } && {
35154 test -z "$ac_c_werror_flag" ||
35155 test ! -s conftest.err
35156 } && test -s conftest.$ac_objext; then
35159 cat >conftest.$ac_ext <<_ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h. */
35165 $ac_includes_default
35166 typedef short int ac__type_sizeof_;
35170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35177 rm -f conftest.$ac_objext
35178 if { (ac_try="$ac_compile"
35179 case "(($ac_try" in
35180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181 *) ac_try_echo=$ac_try;;
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184 (eval "$ac_compile") 2>conftest.er1
35186 grep -v '^ *+' conftest.er1 >conftest.err
35188 cat conftest.err >&5
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); } && {
35191 test -z "$ac_c_werror_flag" ||
35192 test ! -s conftest.err
35193 } && test -s conftest.$ac_objext; then
35194 ac_lo=$ac_mid; break
35196 echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35199 ac_hi=`expr '(' $ac_mid ')' - 1`
35200 if test $ac_mid -le $ac_hi; then
35204 ac_mid=`expr 2 '*' $ac_mid`
35207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220 # Binary search between lo and hi bounds.
35221 while test "x$ac_lo" != "x$ac_hi"; do
35222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35223 cat >conftest.$ac_ext <<_ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h. */
35229 $ac_includes_default
35230 typedef short int ac__type_sizeof_;
35234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245 *) ac_try_echo=$ac_try;;
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248 (eval "$ac_compile") 2>conftest.er1
35250 grep -v '^ *+' conftest.er1 >conftest.err
35252 cat conftest.err >&5
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); } && {
35255 test -z "$ac_c_werror_flag" ||
35256 test ! -s conftest.err
35257 } && test -s conftest.$ac_objext; then
35260 echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35263 ac_lo=`expr '(' $ac_mid ')' + 1`
35266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35269 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35270 '') if test "$ac_cv_type_short_int" = yes; then
35271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35272 See \`config.log' for more details." >&5
35273 echo "$as_me: error: cannot compute sizeof (short int)
35274 See \`config.log' for more details." >&2;}
35275 { (exit 77); exit 77; }; }
35277 ac_cv_sizeof_short_int=0
35281 cat >conftest.$ac_ext <<_ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h. */
35287 $ac_includes_default
35288 typedef short int ac__type_sizeof_;
35289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35292 #include <stdlib.h>
35297 FILE *f = fopen ("conftest.val", "w");
35300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35302 long int i = longval ();
35303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35305 fprintf (f, "%ld\n", i);
35309 unsigned long int i = ulongval ();
35310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35312 fprintf (f, "%lu\n", i);
35314 return ferror (f) || fclose (f) != 0;
35320 rm -f conftest$ac_exeext
35321 if { (ac_try="$ac_link"
35322 case "(($ac_try" in
35323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324 *) ac_try_echo=$ac_try;;
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327 (eval "$ac_link") 2>&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35331 { (case "(($ac_try" in
35332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333 *) ac_try_echo=$ac_try;;
35335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35336 (eval "$ac_try") 2>&5
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); }; }; then
35340 ac_cv_sizeof_short_int=`cat conftest.val`
35342 echo "$as_me: program exited with status $ac_status" >&5
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35346 ( exit $ac_status )
35347 if test "$ac_cv_type_short_int" = yes; then
35348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35349 See \`config.log' for more details." >&5
35350 echo "$as_me: error: cannot compute sizeof (short int)
35351 See \`config.log' for more details." >&2;}
35352 { (exit 77); exit 77; }; }
35354 ac_cv_sizeof_short_int=0
35357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35362 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35366 cat >>confdefs.h <<_ACEOF
35367 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35371 { echo "$as_me:$LINENO: checking for int" >&5
35372 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35373 if test "${ac_cv_type_int+set}" = set; then
35374 echo $ECHO_N "(cached) $ECHO_C" >&6
35376 cat >conftest.$ac_ext <<_ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 $ac_includes_default
35383 typedef int ac__type_new_;
35387 if ((ac__type_new_ *) 0)
35389 if (sizeof (ac__type_new_))
35395 rm -f conftest.$ac_objext
35396 if { (ac_try="$ac_compile"
35397 case "(($ac_try" in
35398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35399 *) ac_try_echo=$ac_try;;
35401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35402 (eval "$ac_compile") 2>conftest.er1
35404 grep -v '^ *+' conftest.er1 >conftest.err
35406 cat conftest.err >&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } && {
35409 test -z "$ac_c_werror_flag" ||
35410 test ! -s conftest.err
35411 } && test -s conftest.$ac_objext; then
35414 echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35422 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35423 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35425 # The cast to long int works around a bug in the HP C Compiler
35426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35428 # This bug is HP SR number 8606223364.
35429 { echo "$as_me:$LINENO: checking size of int" >&5
35430 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35431 if test "${ac_cv_sizeof_int+set}" = set; then
35432 echo $ECHO_N "(cached) $ECHO_C" >&6
35434 if test "$cross_compiling" = yes; then
35435 # Depending upon the size, compute the lo and hi bounds.
35436 cat >conftest.$ac_ext <<_ACEOF
35439 cat confdefs.h >>conftest.$ac_ext
35440 cat >>conftest.$ac_ext <<_ACEOF
35441 /* end confdefs.h. */
35442 $ac_includes_default
35443 typedef int ac__type_sizeof_;
35447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35454 rm -f conftest.$ac_objext
35455 if { (ac_try="$ac_compile"
35456 case "(($ac_try" in
35457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458 *) ac_try_echo=$ac_try;;
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461 (eval "$ac_compile") 2>conftest.er1
35463 grep -v '^ *+' conftest.er1 >conftest.err
35465 cat conftest.err >&5
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); } && {
35468 test -z "$ac_c_werror_flag" ||
35469 test ! -s conftest.err
35470 } && test -s conftest.$ac_objext; then
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35479 $ac_includes_default
35480 typedef int ac__type_sizeof_;
35484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35491 rm -f conftest.$ac_objext
35492 if { (ac_try="$ac_compile"
35493 case "(($ac_try" in
35494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35495 *) ac_try_echo=$ac_try;;
35497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35498 (eval "$ac_compile") 2>conftest.er1
35500 grep -v '^ *+' conftest.er1 >conftest.err
35502 cat conftest.err >&5
35503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504 (exit $ac_status); } && {
35505 test -z "$ac_c_werror_flag" ||
35506 test ! -s conftest.err
35507 } && test -s conftest.$ac_objext; then
35508 ac_hi=$ac_mid; break
35510 echo "$as_me: failed program was:" >&5
35511 sed 's/^/| /' conftest.$ac_ext >&5
35513 ac_lo=`expr $ac_mid + 1`
35514 if test $ac_lo -le $ac_mid; then
35518 ac_mid=`expr 2 '*' $ac_mid + 1`
35521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 cat >conftest.$ac_ext <<_ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h. */
35533 $ac_includes_default
35534 typedef int ac__type_sizeof_;
35538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35545 rm -f conftest.$ac_objext
35546 if { (ac_try="$ac_compile"
35547 case "(($ac_try" in
35548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35549 *) ac_try_echo=$ac_try;;
35551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35552 (eval "$ac_compile") 2>conftest.er1
35554 grep -v '^ *+' conftest.er1 >conftest.err
35556 cat conftest.err >&5
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); } && {
35559 test -z "$ac_c_werror_flag" ||
35560 test ! -s conftest.err
35561 } && test -s conftest.$ac_objext; then
35564 cat >conftest.$ac_ext <<_ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h. */
35570 $ac_includes_default
35571 typedef int ac__type_sizeof_;
35575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35582 rm -f conftest.$ac_objext
35583 if { (ac_try="$ac_compile"
35584 case "(($ac_try" in
35585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586 *) ac_try_echo=$ac_try;;
35588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35589 (eval "$ac_compile") 2>conftest.er1
35591 grep -v '^ *+' conftest.er1 >conftest.err
35593 cat conftest.err >&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); } && {
35596 test -z "$ac_c_werror_flag" ||
35597 test ! -s conftest.err
35598 } && test -s conftest.$ac_objext; then
35599 ac_lo=$ac_mid; break
35601 echo "$as_me: failed program was:" >&5
35602 sed 's/^/| /' conftest.$ac_ext >&5
35604 ac_hi=`expr '(' $ac_mid ')' - 1`
35605 if test $ac_mid -le $ac_hi; then
35609 ac_mid=`expr 2 '*' $ac_mid`
35612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35615 echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35625 # Binary search between lo and hi bounds.
35626 while test "x$ac_lo" != "x$ac_hi"; do
35627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35628 cat >conftest.$ac_ext <<_ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h. */
35634 $ac_includes_default
35635 typedef int ac__type_sizeof_;
35639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35646 rm -f conftest.$ac_objext
35647 if { (ac_try="$ac_compile"
35648 case "(($ac_try" in
35649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35650 *) ac_try_echo=$ac_try;;
35652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35653 (eval "$ac_compile") 2>conftest.er1
35655 grep -v '^ *+' conftest.er1 >conftest.err
35657 cat conftest.err >&5
35658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); } && {
35660 test -z "$ac_c_werror_flag" ||
35661 test ! -s conftest.err
35662 } && test -s conftest.$ac_objext; then
35665 echo "$as_me: failed program was:" >&5
35666 sed 's/^/| /' conftest.$ac_ext >&5
35668 ac_lo=`expr '(' $ac_mid ')' + 1`
35671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35674 ?*) ac_cv_sizeof_int=$ac_lo;;
35675 '') if test "$ac_cv_type_int" = yes; then
35676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35677 See \`config.log' for more details." >&5
35678 echo "$as_me: error: cannot compute sizeof (int)
35679 See \`config.log' for more details." >&2;}
35680 { (exit 77); exit 77; }; }
35686 cat >conftest.$ac_ext <<_ACEOF
35689 cat confdefs.h >>conftest.$ac_ext
35690 cat >>conftest.$ac_ext <<_ACEOF
35691 /* end confdefs.h. */
35692 $ac_includes_default
35693 typedef int ac__type_sizeof_;
35694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35697 #include <stdlib.h>
35702 FILE *f = fopen ("conftest.val", "w");
35705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35707 long int i = longval ();
35708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35710 fprintf (f, "%ld\n", i);
35714 unsigned long int i = ulongval ();
35715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35717 fprintf (f, "%lu\n", i);
35719 return ferror (f) || fclose (f) != 0;
35725 rm -f conftest$ac_exeext
35726 if { (ac_try="$ac_link"
35727 case "(($ac_try" in
35728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729 *) ac_try_echo=$ac_try;;
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732 (eval "$ac_link") 2>&5
35734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35736 { (case "(($ac_try" in
35737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35738 *) ac_try_echo=$ac_try;;
35740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35741 (eval "$ac_try") 2>&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); }; }; then
35745 ac_cv_sizeof_int=`cat conftest.val`
35747 echo "$as_me: program exited with status $ac_status" >&5
35748 echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35751 ( exit $ac_status )
35752 if test "$ac_cv_type_int" = yes; then
35753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35754 See \`config.log' for more details." >&5
35755 echo "$as_me: error: cannot compute sizeof (int)
35756 See \`config.log' for more details." >&2;}
35757 { (exit 77); exit 77; }; }
35762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35767 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35771 cat >>confdefs.h <<_ACEOF
35772 #define SIZEOF_INT $ac_cv_sizeof_int
35776 { echo "$as_me:$LINENO: checking for long int" >&5
35777 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35778 if test "${ac_cv_type_long_int+set}" = set; then
35779 echo $ECHO_N "(cached) $ECHO_C" >&6
35781 cat >conftest.$ac_ext <<_ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h. */
35787 $ac_includes_default
35788 typedef long int ac__type_new_;
35792 if ((ac__type_new_ *) 0)
35794 if (sizeof (ac__type_new_))
35800 rm -f conftest.$ac_objext
35801 if { (ac_try="$ac_compile"
35802 case "(($ac_try" in
35803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35804 *) ac_try_echo=$ac_try;;
35806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35807 (eval "$ac_compile") 2>conftest.er1
35809 grep -v '^ *+' conftest.er1 >conftest.err
35811 cat conftest.err >&5
35812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 (exit $ac_status); } && {
35814 test -z "$ac_c_werror_flag" ||
35815 test ! -s conftest.err
35816 } && test -s conftest.$ac_objext; then
35817 ac_cv_type_long_int=yes
35819 echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35822 ac_cv_type_long_int=no
35825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35827 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35828 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35830 # The cast to long int works around a bug in the HP C Compiler
35831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35833 # This bug is HP SR number 8606223364.
35834 { echo "$as_me:$LINENO: checking size of long int" >&5
35835 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35836 if test "${ac_cv_sizeof_long_int+set}" = set; then
35837 echo $ECHO_N "(cached) $ECHO_C" >&6
35839 if test "$cross_compiling" = yes; then
35840 # Depending upon the size, compute the lo and hi bounds.
35841 cat >conftest.$ac_ext <<_ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h. */
35847 $ac_includes_default
35848 typedef long int ac__type_sizeof_;
35852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35859 rm -f conftest.$ac_objext
35860 if { (ac_try="$ac_compile"
35861 case "(($ac_try" in
35862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35863 *) ac_try_echo=$ac_try;;
35865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35866 (eval "$ac_compile") 2>conftest.er1
35868 grep -v '^ *+' conftest.er1 >conftest.err
35870 cat conftest.err >&5
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); } && {
35873 test -z "$ac_c_werror_flag" ||
35874 test ! -s conftest.err
35875 } && test -s conftest.$ac_objext; then
35878 cat >conftest.$ac_ext <<_ACEOF
35881 cat confdefs.h >>conftest.$ac_ext
35882 cat >>conftest.$ac_ext <<_ACEOF
35883 /* end confdefs.h. */
35884 $ac_includes_default
35885 typedef long int ac__type_sizeof_;
35889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35896 rm -f conftest.$ac_objext
35897 if { (ac_try="$ac_compile"
35898 case "(($ac_try" in
35899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35900 *) ac_try_echo=$ac_try;;
35902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35903 (eval "$ac_compile") 2>conftest.er1
35905 grep -v '^ *+' conftest.er1 >conftest.err
35907 cat conftest.err >&5
35908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909 (exit $ac_status); } && {
35910 test -z "$ac_c_werror_flag" ||
35911 test ! -s conftest.err
35912 } && test -s conftest.$ac_objext; then
35913 ac_hi=$ac_mid; break
35915 echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35918 ac_lo=`expr $ac_mid + 1`
35919 if test $ac_lo -le $ac_mid; then
35923 ac_mid=`expr 2 '*' $ac_mid + 1`
35926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35929 echo "$as_me: failed program was:" >&5
35930 sed 's/^/| /' conftest.$ac_ext >&5
35932 cat >conftest.$ac_ext <<_ACEOF
35935 cat confdefs.h >>conftest.$ac_ext
35936 cat >>conftest.$ac_ext <<_ACEOF
35937 /* end confdefs.h. */
35938 $ac_includes_default
35939 typedef long int ac__type_sizeof_;
35943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35950 rm -f conftest.$ac_objext
35951 if { (ac_try="$ac_compile"
35952 case "(($ac_try" in
35953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954 *) ac_try_echo=$ac_try;;
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957 (eval "$ac_compile") 2>conftest.er1
35959 grep -v '^ *+' conftest.er1 >conftest.err
35961 cat conftest.err >&5
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); } && {
35964 test -z "$ac_c_werror_flag" ||
35965 test ! -s conftest.err
35966 } && test -s conftest.$ac_objext; then
35969 cat >conftest.$ac_ext <<_ACEOF
35972 cat confdefs.h >>conftest.$ac_ext
35973 cat >>conftest.$ac_ext <<_ACEOF
35974 /* end confdefs.h. */
35975 $ac_includes_default
35976 typedef long int ac__type_sizeof_;
35980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35987 rm -f conftest.$ac_objext
35988 if { (ac_try="$ac_compile"
35989 case "(($ac_try" in
35990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991 *) ac_try_echo=$ac_try;;
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994 (eval "$ac_compile") 2>conftest.er1
35996 grep -v '^ *+' conftest.er1 >conftest.err
35998 cat conftest.err >&5
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); } && {
36001 test -z "$ac_c_werror_flag" ||
36002 test ! -s conftest.err
36003 } && test -s conftest.$ac_objext; then
36004 ac_lo=$ac_mid; break
36006 echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36009 ac_hi=`expr '(' $ac_mid ')' - 1`
36010 if test $ac_mid -le $ac_hi; then
36014 ac_mid=`expr 2 '*' $ac_mid`
36017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36020 echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36030 # Binary search between lo and hi bounds.
36031 while test "x$ac_lo" != "x$ac_hi"; do
36032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36033 cat >conftest.$ac_ext <<_ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h. */
36039 $ac_includes_default
36040 typedef long int ac__type_sizeof_;
36044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36051 rm -f conftest.$ac_objext
36052 if { (ac_try="$ac_compile"
36053 case "(($ac_try" in
36054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055 *) ac_try_echo=$ac_try;;
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058 (eval "$ac_compile") 2>conftest.er1
36060 grep -v '^ *+' conftest.er1 >conftest.err
36062 cat conftest.err >&5
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); } && {
36065 test -z "$ac_c_werror_flag" ||
36066 test ! -s conftest.err
36067 } && test -s conftest.$ac_objext; then
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36073 ac_lo=`expr '(' $ac_mid ')' + 1`
36076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36079 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36080 '') if test "$ac_cv_type_long_int" = yes; then
36081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36082 See \`config.log' for more details." >&5
36083 echo "$as_me: error: cannot compute sizeof (long int)
36084 See \`config.log' for more details." >&2;}
36085 { (exit 77); exit 77; }; }
36087 ac_cv_sizeof_long_int=0
36091 cat >conftest.$ac_ext <<_ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h. */
36097 $ac_includes_default
36098 typedef long int ac__type_sizeof_;
36099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36102 #include <stdlib.h>
36107 FILE *f = fopen ("conftest.val", "w");
36110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36112 long int i = longval ();
36113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36115 fprintf (f, "%ld\n", i);
36119 unsigned long int i = ulongval ();
36120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36122 fprintf (f, "%lu\n", i);
36124 return ferror (f) || fclose (f) != 0;
36130 rm -f conftest$ac_exeext
36131 if { (ac_try="$ac_link"
36132 case "(($ac_try" in
36133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134 *) ac_try_echo=$ac_try;;
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137 (eval "$ac_link") 2>&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36141 { (case "(($ac_try" in
36142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36143 *) ac_try_echo=$ac_try;;
36145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36146 (eval "$ac_try") 2>&5
36148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149 (exit $ac_status); }; }; then
36150 ac_cv_sizeof_long_int=`cat conftest.val`
36152 echo "$as_me: program exited with status $ac_status" >&5
36153 echo "$as_me: failed program was:" >&5
36154 sed 's/^/| /' conftest.$ac_ext >&5
36156 ( exit $ac_status )
36157 if test "$ac_cv_type_long_int" = yes; then
36158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36159 See \`config.log' for more details." >&5
36160 echo "$as_me: error: cannot compute sizeof (long int)
36161 See \`config.log' for more details." >&2;}
36162 { (exit 77); exit 77; }; }
36164 ac_cv_sizeof_long_int=0
36167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36172 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36176 cat >>confdefs.h <<_ACEOF
36177 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36181 { echo "$as_me:$LINENO: checking for long long int" >&5
36182 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36183 if test "${ac_cv_type_long_long_int+set}" = set; then
36184 echo $ECHO_N "(cached) $ECHO_C" >&6
36186 cat >conftest.$ac_ext <<_ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h. */
36192 $ac_includes_default
36193 typedef long long int ac__type_new_;
36197 if ((ac__type_new_ *) 0)
36199 if (sizeof (ac__type_new_))
36205 rm -f conftest.$ac_objext
36206 if { (ac_try="$ac_compile"
36207 case "(($ac_try" in
36208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36209 *) ac_try_echo=$ac_try;;
36211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36212 (eval "$ac_compile") 2>conftest.er1
36214 grep -v '^ *+' conftest.er1 >conftest.err
36216 cat conftest.err >&5
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); } && {
36219 test -z "$ac_c_werror_flag" ||
36220 test ! -s conftest.err
36221 } && test -s conftest.$ac_objext; then
36222 ac_cv_type_long_long_int=yes
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36227 ac_cv_type_long_long_int=no
36230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36232 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36235 # The cast to long int works around a bug in the HP C Compiler
36236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36238 # This bug is HP SR number 8606223364.
36239 { echo "$as_me:$LINENO: checking size of long long int" >&5
36240 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36241 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36242 echo $ECHO_N "(cached) $ECHO_C" >&6
36244 if test "$cross_compiling" = yes; then
36245 # Depending upon the size, compute the lo and hi bounds.
36246 cat >conftest.$ac_ext <<_ACEOF
36249 cat confdefs.h >>conftest.$ac_ext
36250 cat >>conftest.$ac_ext <<_ACEOF
36251 /* end confdefs.h. */
36252 $ac_includes_default
36253 typedef long long int ac__type_sizeof_;
36257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36264 rm -f conftest.$ac_objext
36265 if { (ac_try="$ac_compile"
36266 case "(($ac_try" in
36267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36268 *) ac_try_echo=$ac_try;;
36270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36271 (eval "$ac_compile") 2>conftest.er1
36273 grep -v '^ *+' conftest.er1 >conftest.err
36275 cat conftest.err >&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } && {
36278 test -z "$ac_c_werror_flag" ||
36279 test ! -s conftest.err
36280 } && test -s conftest.$ac_objext; then
36283 cat >conftest.$ac_ext <<_ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h. */
36289 $ac_includes_default
36290 typedef long long int ac__type_sizeof_;
36294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305 *) ac_try_echo=$ac_try;;
36307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36308 (eval "$ac_compile") 2>conftest.er1
36310 grep -v '^ *+' conftest.er1 >conftest.err
36312 cat conftest.err >&5
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); } && {
36315 test -z "$ac_c_werror_flag" ||
36316 test ! -s conftest.err
36317 } && test -s conftest.$ac_objext; then
36318 ac_hi=$ac_mid; break
36320 echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36323 ac_lo=`expr $ac_mid + 1`
36324 if test $ac_lo -le $ac_mid; then
36328 ac_mid=`expr 2 '*' $ac_mid + 1`
36331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36334 echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36337 cat >conftest.$ac_ext <<_ACEOF
36340 cat confdefs.h >>conftest.$ac_ext
36341 cat >>conftest.$ac_ext <<_ACEOF
36342 /* end confdefs.h. */
36343 $ac_includes_default
36344 typedef long long int ac__type_sizeof_;
36348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36355 rm -f conftest.$ac_objext
36356 if { (ac_try="$ac_compile"
36357 case "(($ac_try" in
36358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36359 *) ac_try_echo=$ac_try;;
36361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36362 (eval "$ac_compile") 2>conftest.er1
36364 grep -v '^ *+' conftest.er1 >conftest.err
36366 cat conftest.err >&5
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); } && {
36369 test -z "$ac_c_werror_flag" ||
36370 test ! -s conftest.err
36371 } && test -s conftest.$ac_objext; then
36374 cat >conftest.$ac_ext <<_ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h. */
36380 $ac_includes_default
36381 typedef long long int ac__type_sizeof_;
36385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36392 rm -f conftest.$ac_objext
36393 if { (ac_try="$ac_compile"
36394 case "(($ac_try" in
36395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36396 *) ac_try_echo=$ac_try;;
36398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36399 (eval "$ac_compile") 2>conftest.er1
36401 grep -v '^ *+' conftest.er1 >conftest.err
36403 cat conftest.err >&5
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } && {
36406 test -z "$ac_c_werror_flag" ||
36407 test ! -s conftest.err
36408 } && test -s conftest.$ac_objext; then
36409 ac_lo=$ac_mid; break
36411 echo "$as_me: failed program was:" >&5
36412 sed 's/^/| /' conftest.$ac_ext >&5
36414 ac_hi=`expr '(' $ac_mid ')' - 1`
36415 if test $ac_mid -le $ac_hi; then
36419 ac_mid=`expr 2 '*' $ac_mid`
36422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36435 # Binary search between lo and hi bounds.
36436 while test "x$ac_lo" != "x$ac_hi"; do
36437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36438 cat >conftest.$ac_ext <<_ACEOF
36441 cat confdefs.h >>conftest.$ac_ext
36442 cat >>conftest.$ac_ext <<_ACEOF
36443 /* end confdefs.h. */
36444 $ac_includes_default
36445 typedef long long int ac__type_sizeof_;
36449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36456 rm -f conftest.$ac_objext
36457 if { (ac_try="$ac_compile"
36458 case "(($ac_try" in
36459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36460 *) ac_try_echo=$ac_try;;
36462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36463 (eval "$ac_compile") 2>conftest.er1
36465 grep -v '^ *+' conftest.er1 >conftest.err
36467 cat conftest.err >&5
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } && {
36470 test -z "$ac_c_werror_flag" ||
36471 test ! -s conftest.err
36472 } && test -s conftest.$ac_objext; then
36475 echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36478 ac_lo=`expr '(' $ac_mid ')' + 1`
36481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36485 '') if test "$ac_cv_type_long_long_int" = yes; then
36486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36487 See \`config.log' for more details." >&5
36488 echo "$as_me: error: cannot compute sizeof (long long int)
36489 See \`config.log' for more details." >&2;}
36490 { (exit 77); exit 77; }; }
36492 ac_cv_sizeof_long_long_int=0
36496 cat >conftest.$ac_ext <<_ACEOF
36499 cat confdefs.h >>conftest.$ac_ext
36500 cat >>conftest.$ac_ext <<_ACEOF
36501 /* end confdefs.h. */
36502 $ac_includes_default
36503 typedef long long int ac__type_sizeof_;
36504 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36505 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36507 #include <stdlib.h>
36512 FILE *f = fopen ("conftest.val", "w");
36515 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36517 long int i = longval ();
36518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36520 fprintf (f, "%ld\n", i);
36524 unsigned long int i = ulongval ();
36525 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36527 fprintf (f, "%lu\n", i);
36529 return ferror (f) || fclose (f) != 0;
36535 rm -f conftest$ac_exeext
36536 if { (ac_try="$ac_link"
36537 case "(($ac_try" in
36538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539 *) ac_try_echo=$ac_try;;
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542 (eval "$ac_link") 2>&5
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36546 { (case "(($ac_try" in
36547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36548 *) ac_try_echo=$ac_try;;
36550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36551 (eval "$ac_try") 2>&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; }; then
36555 ac_cv_sizeof_long_long_int=`cat conftest.val`
36557 echo "$as_me: program exited with status $ac_status" >&5
36558 echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36561 ( exit $ac_status )
36562 if test "$ac_cv_type_long_long_int" = yes; then
36563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36564 See \`config.log' for more details." >&5
36565 echo "$as_me: error: cannot compute sizeof (long long int)
36566 See \`config.log' for more details." >&2;}
36567 { (exit 77); exit 77; }; }
36569 ac_cv_sizeof_long_long_int=0
36572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36577 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36581 cat >>confdefs.h <<_ACEOF
36582 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36586 { echo "$as_me:$LINENO: checking for int *" >&5
36587 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36588 if test "${ac_cv_type_int_p+set}" = set; then
36589 echo $ECHO_N "(cached) $ECHO_C" >&6
36591 cat >conftest.$ac_ext <<_ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h. */
36597 $ac_includes_default
36598 typedef int * ac__type_new_;
36602 if ((ac__type_new_ *) 0)
36604 if (sizeof (ac__type_new_))
36610 rm -f conftest.$ac_objext
36611 if { (ac_try="$ac_compile"
36612 case "(($ac_try" in
36613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614 *) ac_try_echo=$ac_try;;
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617 (eval "$ac_compile") 2>conftest.er1
36619 grep -v '^ *+' conftest.er1 >conftest.err
36621 cat conftest.err >&5
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } && {
36624 test -z "$ac_c_werror_flag" ||
36625 test ! -s conftest.err
36626 } && test -s conftest.$ac_objext; then
36627 ac_cv_type_int_p=yes
36629 echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36632 ac_cv_type_int_p=no
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36637 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36638 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36640 # The cast to long int works around a bug in the HP C Compiler
36641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36643 # This bug is HP SR number 8606223364.
36644 { echo "$as_me:$LINENO: checking size of int *" >&5
36645 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36646 if test "${ac_cv_sizeof_int_p+set}" = set; then
36647 echo $ECHO_N "(cached) $ECHO_C" >&6
36649 if test "$cross_compiling" = yes; then
36650 # Depending upon the size, compute the lo and hi bounds.
36651 cat >conftest.$ac_ext <<_ACEOF
36654 cat confdefs.h >>conftest.$ac_ext
36655 cat >>conftest.$ac_ext <<_ACEOF
36656 /* end confdefs.h. */
36657 $ac_includes_default
36658 typedef int * ac__type_sizeof_;
36662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36669 rm -f conftest.$ac_objext
36670 if { (ac_try="$ac_compile"
36671 case "(($ac_try" in
36672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36673 *) ac_try_echo=$ac_try;;
36675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36676 (eval "$ac_compile") 2>conftest.er1
36678 grep -v '^ *+' conftest.er1 >conftest.err
36680 cat conftest.err >&5
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); } && {
36683 test -z "$ac_c_werror_flag" ||
36684 test ! -s conftest.err
36685 } && test -s conftest.$ac_objext; then
36688 cat >conftest.$ac_ext <<_ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h. */
36694 $ac_includes_default
36695 typedef int * ac__type_sizeof_;
36699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36706 rm -f conftest.$ac_objext
36707 if { (ac_try="$ac_compile"
36708 case "(($ac_try" in
36709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36710 *) ac_try_echo=$ac_try;;
36712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36713 (eval "$ac_compile") 2>conftest.er1
36715 grep -v '^ *+' conftest.er1 >conftest.err
36717 cat conftest.err >&5
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); } && {
36720 test -z "$ac_c_werror_flag" ||
36721 test ! -s conftest.err
36722 } && test -s conftest.$ac_objext; then
36723 ac_hi=$ac_mid; break
36725 echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36728 ac_lo=`expr $ac_mid + 1`
36729 if test $ac_lo -le $ac_mid; then
36733 ac_mid=`expr 2 '*' $ac_mid + 1`
36736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36739 echo "$as_me: failed program was:" >&5
36740 sed 's/^/| /' conftest.$ac_ext >&5
36742 cat >conftest.$ac_ext <<_ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h. */
36748 $ac_includes_default
36749 typedef int * ac__type_sizeof_;
36753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36760 rm -f conftest.$ac_objext
36761 if { (ac_try="$ac_compile"
36762 case "(($ac_try" in
36763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36764 *) ac_try_echo=$ac_try;;
36766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36767 (eval "$ac_compile") 2>conftest.er1
36769 grep -v '^ *+' conftest.er1 >conftest.err
36771 cat conftest.err >&5
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); } && {
36774 test -z "$ac_c_werror_flag" ||
36775 test ! -s conftest.err
36776 } && test -s conftest.$ac_objext; then
36779 cat >conftest.$ac_ext <<_ACEOF
36782 cat confdefs.h >>conftest.$ac_ext
36783 cat >>conftest.$ac_ext <<_ACEOF
36784 /* end confdefs.h. */
36785 $ac_includes_default
36786 typedef int * ac__type_sizeof_;
36790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36797 rm -f conftest.$ac_objext
36798 if { (ac_try="$ac_compile"
36799 case "(($ac_try" in
36800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801 *) ac_try_echo=$ac_try;;
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804 (eval "$ac_compile") 2>conftest.er1
36806 grep -v '^ *+' conftest.er1 >conftest.err
36808 cat conftest.err >&5
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); } && {
36811 test -z "$ac_c_werror_flag" ||
36812 test ! -s conftest.err
36813 } && test -s conftest.$ac_objext; then
36814 ac_lo=$ac_mid; break
36816 echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36819 ac_hi=`expr '(' $ac_mid ')' - 1`
36820 if test $ac_mid -le $ac_hi; then
36824 ac_mid=`expr 2 '*' $ac_mid`
36827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36830 echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36840 # Binary search between lo and hi bounds.
36841 while test "x$ac_lo" != "x$ac_hi"; do
36842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36843 cat >conftest.$ac_ext <<_ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h. */
36849 $ac_includes_default
36850 typedef int * ac__type_sizeof_;
36854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36861 rm -f conftest.$ac_objext
36862 if { (ac_try="$ac_compile"
36863 case "(($ac_try" in
36864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36865 *) ac_try_echo=$ac_try;;
36867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36868 (eval "$ac_compile") 2>conftest.er1
36870 grep -v '^ *+' conftest.er1 >conftest.err
36872 cat conftest.err >&5
36873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 (exit $ac_status); } && {
36875 test -z "$ac_c_werror_flag" ||
36876 test ! -s conftest.err
36877 } && test -s conftest.$ac_objext; then
36880 echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36883 ac_lo=`expr '(' $ac_mid ')' + 1`
36886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36889 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36890 '') if test "$ac_cv_type_int_p" = yes; then
36891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36892 See \`config.log' for more details." >&5
36893 echo "$as_me: error: cannot compute sizeof (int *)
36894 See \`config.log' for more details." >&2;}
36895 { (exit 77); exit 77; }; }
36897 ac_cv_sizeof_int_p=0
36901 cat >conftest.$ac_ext <<_ACEOF
36904 cat confdefs.h >>conftest.$ac_ext
36905 cat >>conftest.$ac_ext <<_ACEOF
36906 /* end confdefs.h. */
36907 $ac_includes_default
36908 typedef int * ac__type_sizeof_;
36909 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36910 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36912 #include <stdlib.h>
36917 FILE *f = fopen ("conftest.val", "w");
36920 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36922 long int i = longval ();
36923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36925 fprintf (f, "%ld\n", i);
36929 unsigned long int i = ulongval ();
36930 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36932 fprintf (f, "%lu\n", i);
36934 return ferror (f) || fclose (f) != 0;
36940 rm -f conftest$ac_exeext
36941 if { (ac_try="$ac_link"
36942 case "(($ac_try" in
36943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944 *) ac_try_echo=$ac_try;;
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947 (eval "$ac_link") 2>&5
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36951 { (case "(($ac_try" in
36952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36953 *) ac_try_echo=$ac_try;;
36955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36956 (eval "$ac_try") 2>&5
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; }; then
36960 ac_cv_sizeof_int_p=`cat conftest.val`
36962 echo "$as_me: program exited with status $ac_status" >&5
36963 echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36966 ( exit $ac_status )
36967 if test "$ac_cv_type_int_p" = yes; then
36968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36969 See \`config.log' for more details." >&5
36970 echo "$as_me: error: cannot compute sizeof (int *)
36971 See \`config.log' for more details." >&2;}
36972 { (exit 77); exit 77; }; }
36974 ac_cv_sizeof_int_p=0
36977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36982 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36986 cat >>confdefs.h <<_ACEOF
36987 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36992 { echo "$as_me:$LINENO: checking for u_int type" >&5
36993 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36994 if test "${ac_cv_have_u_int+set}" = set; then
36995 echo $ECHO_N "(cached) $ECHO_C" >&6
36998 cat >conftest.$ac_ext <<_ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h. */
37005 #include <sys/types.h>
37017 rm -f conftest.$ac_objext
37018 if { (ac_try="$ac_compile"
37019 case "(($ac_try" in
37020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37021 *) ac_try_echo=$ac_try;;
37023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37024 (eval "$ac_compile") 2>conftest.er1
37026 grep -v '^ *+' conftest.er1 >conftest.err
37028 cat conftest.err >&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); } && {
37031 test -z "$ac_c_werror_flag" ||
37032 test ! -s conftest.err
37033 } && test -s conftest.$ac_objext; then
37035 ac_cv_have_u_int="yes"
37038 echo "$as_me: failed program was:" >&5
37039 sed 's/^/| /' conftest.$ac_ext >&5
37042 ac_cv_have_u_int="no"
37047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37051 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37052 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37053 if test "x$ac_cv_have_u_int" = "xyes" ; then
37054 cat >>confdefs.h <<\_ACEOF
37055 #define HAVE_U_INT 1
37061 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37062 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37063 if test "${ac_cv_have_intmax_t+set}" = set; then
37064 echo $ECHO_N "(cached) $ECHO_C" >&6
37067 cat >conftest.$ac_ext <<_ACEOF
37070 cat confdefs.h >>conftest.$ac_ext
37071 cat >>conftest.$ac_ext <<_ACEOF
37072 /* end confdefs.h. */
37074 #include <sys/types.h>
37086 rm -f conftest.$ac_objext
37087 if { (ac_try="$ac_compile"
37088 case "(($ac_try" in
37089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090 *) ac_try_echo=$ac_try;;
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093 (eval "$ac_compile") 2>conftest.er1
37095 grep -v '^ *+' conftest.er1 >conftest.err
37097 cat conftest.err >&5
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } && {
37100 test -z "$ac_c_werror_flag" ||
37101 test ! -s conftest.err
37102 } && test -s conftest.$ac_objext; then
37104 ac_cv_have_intmax_t="yes"
37107 echo "$as_me: failed program was:" >&5
37108 sed 's/^/| /' conftest.$ac_ext >&5
37111 cat >conftest.$ac_ext <<_ACEOF
37114 cat confdefs.h >>conftest.$ac_ext
37115 cat >>conftest.$ac_ext <<_ACEOF
37116 /* end confdefs.h. */
37118 #include <stdint.h>
37130 rm -f conftest.$ac_objext
37131 if { (ac_try="$ac_compile"
37132 case "(($ac_try" in
37133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37134 *) ac_try_echo=$ac_try;;
37136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37137 (eval "$ac_compile") 2>conftest.er1
37139 grep -v '^ *+' conftest.er1 >conftest.err
37141 cat conftest.err >&5
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); } && {
37144 test -z "$ac_c_werror_flag" ||
37145 test ! -s conftest.err
37146 } && test -s conftest.$ac_objext; then
37148 ac_cv_have_intmax_t="yes"
37151 echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37155 ac_cv_have_intmax_t="no"
37160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37169 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37170 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37172 cat >>confdefs.h <<\_ACEOF
37173 #define HAVE_INTMAX_T 1
37179 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37180 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37181 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37182 echo $ECHO_N "(cached) $ECHO_C" >&6
37185 cat >conftest.$ac_ext <<_ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h. */
37192 #include <sys/types.h>
37198 u_intmax_t a; a = 1;
37204 rm -f conftest.$ac_objext
37205 if { (ac_try="$ac_compile"
37206 case "(($ac_try" in
37207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37208 *) ac_try_echo=$ac_try;;
37210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37211 (eval "$ac_compile") 2>conftest.er1
37213 grep -v '^ *+' conftest.er1 >conftest.err
37215 cat conftest.err >&5
37216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217 (exit $ac_status); } && {
37218 test -z "$ac_c_werror_flag" ||
37219 test ! -s conftest.err
37220 } && test -s conftest.$ac_objext; then
37222 ac_cv_have_u_intmax_t="yes"
37225 echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37229 cat >conftest.$ac_ext <<_ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h. */
37236 #include <stdint.h>
37242 u_intmax_t a; a = 1;
37248 rm -f conftest.$ac_objext
37249 if { (ac_try="$ac_compile"
37250 case "(($ac_try" in
37251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37252 *) ac_try_echo=$ac_try;;
37254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37255 (eval "$ac_compile") 2>conftest.er1
37257 grep -v '^ *+' conftest.er1 >conftest.err
37259 cat conftest.err >&5
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); } && {
37262 test -z "$ac_c_werror_flag" ||
37263 test ! -s conftest.err
37264 } && test -s conftest.$ac_objext; then
37266 ac_cv_have_u_intmax_t="yes"
37269 echo "$as_me: failed program was:" >&5
37270 sed 's/^/| /' conftest.$ac_ext >&5
37273 ac_cv_have_u_intmax_t="no"
37278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37287 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37288 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37289 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37290 cat >>confdefs.h <<\_ACEOF
37291 #define HAVE_U_INTMAX_T 1
37297 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37298 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37299 if test "${ac_cv_have_intxx_t+set}" = set; then
37300 echo $ECHO_N "(cached) $ECHO_C" >&6
37303 cat >conftest.$ac_ext <<_ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37310 #include <sys/types.h>
37316 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37322 rm -f conftest.$ac_objext
37323 if { (ac_try="$ac_compile"
37324 case "(($ac_try" in
37325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37326 *) ac_try_echo=$ac_try;;
37328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37329 (eval "$ac_compile") 2>conftest.er1
37331 grep -v '^ *+' conftest.er1 >conftest.err
37333 cat conftest.err >&5
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); } && {
37336 test -z "$ac_c_werror_flag" ||
37337 test ! -s conftest.err
37338 } && test -s conftest.$ac_objext; then
37340 ac_cv_have_intxx_t="yes"
37343 echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.$ac_ext >&5
37347 ac_cv_have_intxx_t="no"
37352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37356 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37357 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37358 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37359 cat >>confdefs.h <<\_ACEOF
37360 #define HAVE_INTXX_T 1
37366 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37367 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37368 if test "${ac_cv_have_int64_t+set}" = set; then
37369 echo $ECHO_N "(cached) $ECHO_C" >&6
37372 cat >conftest.$ac_ext <<_ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h. */
37379 #include <sys/types.h>
37391 rm -f conftest.$ac_objext
37392 if { (ac_try="$ac_compile"
37393 case "(($ac_try" in
37394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395 *) ac_try_echo=$ac_try;;
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398 (eval "$ac_compile") 2>conftest.er1
37400 grep -v '^ *+' conftest.er1 >conftest.err
37402 cat conftest.err >&5
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); } && {
37405 test -z "$ac_c_werror_flag" ||
37406 test ! -s conftest.err
37407 } && test -s conftest.$ac_objext; then
37409 ac_cv_have_int64_t="yes"
37412 echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37416 ac_cv_have_int64_t="no"
37421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37425 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37426 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37427 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37428 cat >>confdefs.h <<\_ACEOF
37429 #define HAVE_INT64_T 1
37435 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37436 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37437 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37438 echo $ECHO_N "(cached) $ECHO_C" >&6
37441 cat >conftest.$ac_ext <<_ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h. */
37448 #include <sys/types.h>
37454 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37460 rm -f conftest.$ac_objext
37461 if { (ac_try="$ac_compile"
37462 case "(($ac_try" in
37463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37464 *) ac_try_echo=$ac_try;;
37466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37467 (eval "$ac_compile") 2>conftest.er1
37469 grep -v '^ *+' conftest.er1 >conftest.err
37471 cat conftest.err >&5
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } && {
37474 test -z "$ac_c_werror_flag" ||
37475 test ! -s conftest.err
37476 } && test -s conftest.$ac_objext; then
37478 ac_cv_have_u_intxx_t="yes"
37481 echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37485 ac_cv_have_u_intxx_t="no"
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37494 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37495 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37496 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37497 cat >>confdefs.h <<\_ACEOF
37498 #define HAVE_U_INTXX_T 1
37504 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37505 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37506 if test "${ac_cv_have_u_int64_t+set}" = set; then
37507 echo $ECHO_N "(cached) $ECHO_C" >&6
37510 cat >conftest.$ac_ext <<_ACEOF
37513 cat confdefs.h >>conftest.$ac_ext
37514 cat >>conftest.$ac_ext <<_ACEOF
37515 /* end confdefs.h. */
37517 #include <sys/types.h>
37523 u_int64_t a; a = 1;
37529 rm -f conftest.$ac_objext
37530 if { (ac_try="$ac_compile"
37531 case "(($ac_try" in
37532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37533 *) ac_try_echo=$ac_try;;
37535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37536 (eval "$ac_compile") 2>conftest.er1
37538 grep -v '^ *+' conftest.er1 >conftest.err
37540 cat conftest.err >&5
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } && {
37543 test -z "$ac_c_werror_flag" ||
37544 test ! -s conftest.err
37545 } && test -s conftest.$ac_objext; then
37547 ac_cv_have_u_int64_t="yes"
37550 echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37554 ac_cv_have_u_int64_t="no"
37559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37563 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37564 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37565 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37566 cat >>confdefs.h <<\_ACEOF
37567 #define HAVE_U_INT64_T 1
37573 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37574 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37576 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37577 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37578 cat >conftest.$ac_ext <<_ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h. */
37585 #include <sys/bitypes.h>
37591 int8_t a; int16_t b; int32_t c;
37592 u_int8_t e; u_int16_t f; u_int32_t g;
37593 a = b = c = e = f = g = 1;
37599 rm -f conftest.$ac_objext
37600 if { (ac_try="$ac_compile"
37601 case "(($ac_try" in
37602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37603 *) ac_try_echo=$ac_try;;
37605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37606 (eval "$ac_compile") 2>conftest.er1
37608 grep -v '^ *+' conftest.er1 >conftest.err
37610 cat conftest.err >&5
37611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37612 (exit $ac_status); } && {
37613 test -z "$ac_c_werror_flag" ||
37614 test ! -s conftest.err
37615 } && test -s conftest.$ac_objext; then
37617 cat >>confdefs.h <<\_ACEOF
37618 #define HAVE_U_INTXX_T 1
37621 cat >>confdefs.h <<\_ACEOF
37622 #define HAVE_INTXX_T 1
37625 cat >>confdefs.h <<\_ACEOF
37626 #define HAVE_SYS_BITYPES_H 1
37629 { echo "$as_me:$LINENO: result: yes" >&5
37630 echo "${ECHO_T}yes" >&6; }
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37637 { echo "$as_me:$LINENO: result: no" >&5
37638 echo "${ECHO_T}no" >&6; }
37643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37646 if test -z "$have_u_intxx_t" ; then
37647 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37648 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37649 if test "${ac_cv_have_uintxx_t+set}" = set; then
37650 echo $ECHO_N "(cached) $ECHO_C" >&6
37653 cat >conftest.$ac_ext <<_ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h. */
37660 #include <sys/types.h>
37666 uint8_t a; uint16_t b;
37667 uint32_t c; a = b = c = 1;
37673 rm -f conftest.$ac_objext
37674 if { (ac_try="$ac_compile"
37675 case "(($ac_try" in
37676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677 *) ac_try_echo=$ac_try;;
37679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680 (eval "$ac_compile") 2>conftest.er1
37682 grep -v '^ *+' conftest.er1 >conftest.err
37684 cat conftest.err >&5
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); } && {
37687 test -z "$ac_c_werror_flag" ||
37688 test ! -s conftest.err
37689 } && test -s conftest.$ac_objext; then
37691 ac_cv_have_uintxx_t="yes"
37694 echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37698 ac_cv_have_uintxx_t="no"
37703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37707 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37708 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37709 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37710 cat >>confdefs.h <<\_ACEOF
37711 #define HAVE_UINTXX_T 1
37717 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37718 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37720 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37721 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37722 cat >conftest.$ac_ext <<_ACEOF
37725 cat confdefs.h >>conftest.$ac_ext
37726 cat >>conftest.$ac_ext <<_ACEOF
37727 /* end confdefs.h. */
37729 #include <sys/bitypes.h>
37735 int64_t a; u_int64_t b;
37742 rm -f conftest.$ac_objext
37743 if { (ac_try="$ac_compile"
37744 case "(($ac_try" in
37745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37746 *) ac_try_echo=$ac_try;;
37748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37749 (eval "$ac_compile") 2>conftest.er1
37751 grep -v '^ *+' conftest.er1 >conftest.err
37753 cat conftest.err >&5
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); } && {
37756 test -z "$ac_c_werror_flag" ||
37757 test ! -s conftest.err
37758 } && test -s conftest.$ac_objext; then
37760 cat >>confdefs.h <<\_ACEOF
37761 #define HAVE_U_INT64_T 1
37764 cat >>confdefs.h <<\_ACEOF
37765 #define HAVE_INT64_T 1
37768 { echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6; }
37772 echo "$as_me: failed program was:" >&5
37773 sed 's/^/| /' conftest.$ac_ext >&5
37776 { echo "$as_me:$LINENO: result: no" >&5
37777 echo "${ECHO_T}no" >&6; }
37782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37785 if (test -z "$have_uintxx_t" && \
37786 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37788 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37789 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37790 cat >conftest.$ac_ext <<_ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h. */
37797 #include <sys/bitypes.h>
37803 uint8_t a; uint16_t b;
37804 uint32_t c; a = b = c = 1;
37810 rm -f conftest.$ac_objext
37811 if { (ac_try="$ac_compile"
37812 case "(($ac_try" in
37813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37814 *) ac_try_echo=$ac_try;;
37816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37817 (eval "$ac_compile") 2>conftest.er1
37819 grep -v '^ *+' conftest.er1 >conftest.err
37821 cat conftest.err >&5
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); } && {
37824 test -z "$ac_c_werror_flag" ||
37825 test ! -s conftest.err
37826 } && test -s conftest.$ac_objext; then
37828 cat >>confdefs.h <<\_ACEOF
37829 #define HAVE_UINTXX_T 1
37832 { echo "$as_me:$LINENO: result: yes" >&5
37833 echo "${ECHO_T}yes" >&6; }
37836 echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37840 { echo "$as_me:$LINENO: result: no" >&5
37841 echo "${ECHO_T}no" >&6; }
37846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37882 echo $ECHO_N "(cached) $ECHO_C" >&6
37884 cat >conftest.$ac_ext <<_ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h. */
37890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37892 #define $ac_func innocuous_$ac_func
37894 /* System header to define __stub macros and hopefully few prototypes,
37895 which can conflict with char $ac_func (); below.
37896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897 <limits.h> exists even on freestanding compilers. */
37900 # include <limits.h>
37902 # include <assert.h>
37907 /* Override any GCC internal prototype to avoid an error.
37908 Use char because int might match the return type of a GCC
37909 builtin and then its argument prototype would still apply. */
37914 /* The GNU C library defines this for functions which it implements
37915 to always fail with ENOSYS. Some functions are actually named
37916 something starting with __ and the normal name is an alias. */
37917 #if defined __stub_$ac_func || defined __stub___$ac_func
37924 return $ac_func ();
37929 rm -f conftest.$ac_objext conftest$ac_exeext
37930 if { (ac_try="$ac_link"
37931 case "(($ac_try" in
37932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933 *) ac_try_echo=$ac_try;;
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936 (eval "$ac_link") 2>conftest.er1
37938 grep -v '^ *+' conftest.er1 >conftest.err
37940 cat conftest.err >&5
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } && {
37943 test -z "$ac_c_werror_flag" ||
37944 test ! -s conftest.err
37945 } && test -s conftest$ac_exeext &&
37946 $as_test_x conftest$ac_exeext; then
37947 eval "$as_ac_var=yes"
37949 echo "$as_me: failed program was:" >&5
37950 sed 's/^/| /' conftest.$ac_ext >&5
37952 eval "$as_ac_var=no"
37955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37956 conftest$ac_exeext conftest.$ac_ext
37958 ac_res=`eval echo '${'$as_ac_var'}'`
37959 { echo "$as_me:$LINENO: result: $ac_res" >&5
37960 echo "${ECHO_T}$ac_res" >&6; }
37961 if test `eval echo '${'$as_ac_var'}'` = yes; then
37962 cat >>confdefs.h <<_ACEOF
37963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37967 echo 'configure: cannot find needed function.'; exit 1
37974 for ac_func in fchdir
37976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37980 echo $ECHO_N "(cached) $ECHO_C" >&6
37982 cat >conftest.$ac_ext <<_ACEOF
37985 cat confdefs.h >>conftest.$ac_ext
37986 cat >>conftest.$ac_ext <<_ACEOF
37987 /* end confdefs.h. */
37988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37990 #define $ac_func innocuous_$ac_func
37992 /* System header to define __stub macros and hopefully few prototypes,
37993 which can conflict with char $ac_func (); below.
37994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37995 <limits.h> exists even on freestanding compilers. */
37998 # include <limits.h>
38000 # include <assert.h>
38005 /* Override any GCC internal prototype to avoid an error.
38006 Use char because int might match the return type of a GCC
38007 builtin and then its argument prototype would still apply. */
38012 /* The GNU C library defines this for functions which it implements
38013 to always fail with ENOSYS. Some functions are actually named
38014 something starting with __ and the normal name is an alias. */
38015 #if defined __stub_$ac_func || defined __stub___$ac_func
38022 return $ac_func ();
38027 rm -f conftest.$ac_objext conftest$ac_exeext
38028 if { (ac_try="$ac_link"
38029 case "(($ac_try" in
38030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38031 *) ac_try_echo=$ac_try;;
38033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38034 (eval "$ac_link") 2>conftest.er1
38036 grep -v '^ *+' conftest.er1 >conftest.err
38038 cat conftest.err >&5
38039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040 (exit $ac_status); } && {
38041 test -z "$ac_c_werror_flag" ||
38042 test ! -s conftest.err
38043 } && test -s conftest$ac_exeext &&
38044 $as_test_x conftest$ac_exeext; then
38045 eval "$as_ac_var=yes"
38047 echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38050 eval "$as_ac_var=no"
38053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38054 conftest$ac_exeext conftest.$ac_ext
38056 ac_res=`eval echo '${'$as_ac_var'}'`
38057 { echo "$as_me:$LINENO: result: $ac_res" >&5
38058 echo "${ECHO_T}$ac_res" >&6; }
38059 if test `eval echo '${'$as_ac_var'}'` = yes; then
38060 cat >>confdefs.h <<_ACEOF
38061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38063 cat >>confdefs.h <<\_ACEOF
38064 #define HAVE_FCHDIR 1
38071 for ac_func in strtoll
38073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38077 echo $ECHO_N "(cached) $ECHO_C" >&6
38079 cat >conftest.$ac_ext <<_ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38087 #define $ac_func innocuous_$ac_func
38089 /* System header to define __stub macros and hopefully few prototypes,
38090 which can conflict with char $ac_func (); below.
38091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38092 <limits.h> exists even on freestanding compilers. */
38095 # include <limits.h>
38097 # include <assert.h>
38102 /* Override any GCC internal prototype to avoid an error.
38103 Use char because int might match the return type of a GCC
38104 builtin and then its argument prototype would still apply. */
38109 /* The GNU C library defines this for functions which it implements
38110 to always fail with ENOSYS. Some functions are actually named
38111 something starting with __ and the normal name is an alias. */
38112 #if defined __stub_$ac_func || defined __stub___$ac_func
38119 return $ac_func ();
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (ac_try="$ac_link"
38126 case "(($ac_try" in
38127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128 *) ac_try_echo=$ac_try;;
38130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38131 (eval "$ac_link") 2>conftest.er1
38133 grep -v '^ *+' conftest.er1 >conftest.err
38135 cat conftest.err >&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); } && {
38138 test -z "$ac_c_werror_flag" ||
38139 test ! -s conftest.err
38140 } && test -s conftest$ac_exeext &&
38141 $as_test_x conftest$ac_exeext; then
38142 eval "$as_ac_var=yes"
38144 echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38147 eval "$as_ac_var=no"
38150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38151 conftest$ac_exeext conftest.$ac_ext
38153 ac_res=`eval echo '${'$as_ac_var'}'`
38154 { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_var'}'` = yes; then
38157 cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38160 cat >>confdefs.h <<\_ACEOF
38161 #define HAVE_STRTOLL 1
38168 for ac_func in posix_fadvise
38170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38174 echo $ECHO_N "(cached) $ECHO_C" >&6
38176 cat >conftest.$ac_ext <<_ACEOF
38179 cat confdefs.h >>conftest.$ac_ext
38180 cat >>conftest.$ac_ext <<_ACEOF
38181 /* end confdefs.h. */
38182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38184 #define $ac_func innocuous_$ac_func
38186 /* System header to define __stub macros and hopefully few prototypes,
38187 which can conflict with char $ac_func (); below.
38188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38189 <limits.h> exists even on freestanding compilers. */
38192 # include <limits.h>
38194 # include <assert.h>
38199 /* Override any GCC internal prototype to avoid an error.
38200 Use char because int might match the return type of a GCC
38201 builtin and then its argument prototype would still apply. */
38206 /* The GNU C library defines this for functions which it implements
38207 to always fail with ENOSYS. Some functions are actually named
38208 something starting with __ and the normal name is an alias. */
38209 #if defined __stub_$ac_func || defined __stub___$ac_func
38216 return $ac_func ();
38221 rm -f conftest.$ac_objext conftest$ac_exeext
38222 if { (ac_try="$ac_link"
38223 case "(($ac_try" in
38224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38225 *) ac_try_echo=$ac_try;;
38227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38228 (eval "$ac_link") 2>conftest.er1
38230 grep -v '^ *+' conftest.er1 >conftest.err
38232 cat conftest.err >&5
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); } && {
38235 test -z "$ac_c_werror_flag" ||
38236 test ! -s conftest.err
38237 } && test -s conftest$ac_exeext &&
38238 $as_test_x conftest$ac_exeext; then
38239 eval "$as_ac_var=yes"
38241 echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38244 eval "$as_ac_var=no"
38247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38248 conftest$ac_exeext conftest.$ac_ext
38250 ac_res=`eval echo '${'$as_ac_var'}'`
38251 { echo "$as_me:$LINENO: result: $ac_res" >&5
38252 echo "${ECHO_T}$ac_res" >&6; }
38253 if test `eval echo '${'$as_ac_var'}'` = yes; then
38254 cat >>confdefs.h <<_ACEOF
38255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38262 for ac_func in fdatasync
38264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38268 echo $ECHO_N "(cached) $ECHO_C" >&6
38270 cat >conftest.$ac_ext <<_ACEOF
38273 cat confdefs.h >>conftest.$ac_ext
38274 cat >>conftest.$ac_ext <<_ACEOF
38275 /* end confdefs.h. */
38276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38278 #define $ac_func innocuous_$ac_func
38280 /* System header to define __stub macros and hopefully few prototypes,
38281 which can conflict with char $ac_func (); below.
38282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38283 <limits.h> exists even on freestanding compilers. */
38286 # include <limits.h>
38288 # include <assert.h>
38293 /* Override any GCC internal prototype to avoid an error.
38294 Use char because int might match the return type of a GCC
38295 builtin and then its argument prototype would still apply. */
38300 /* The GNU C library defines this for functions which it implements
38301 to always fail with ENOSYS. Some functions are actually named
38302 something starting with __ and the normal name is an alias. */
38303 #if defined __stub_$ac_func || defined __stub___$ac_func
38310 return $ac_func ();
38315 rm -f conftest.$ac_objext conftest$ac_exeext
38316 if { (ac_try="$ac_link"
38317 case "(($ac_try" in
38318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38319 *) ac_try_echo=$ac_try;;
38321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38322 (eval "$ac_link") 2>conftest.er1
38324 grep -v '^ *+' conftest.er1 >conftest.err
38326 cat conftest.err >&5
38327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328 (exit $ac_status); } && {
38329 test -z "$ac_c_werror_flag" ||
38330 test ! -s conftest.err
38331 } && test -s conftest$ac_exeext &&
38332 $as_test_x conftest$ac_exeext; then
38333 eval "$as_ac_var=yes"
38335 echo "$as_me: failed program was:" >&5
38336 sed 's/^/| /' conftest.$ac_ext >&5
38338 eval "$as_ac_var=no"
38341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38342 conftest$ac_exeext conftest.$ac_ext
38344 ac_res=`eval echo '${'$as_ac_var'}'`
38345 { echo "$as_me:$LINENO: result: $ac_res" >&5
38346 echo "${ECHO_T}$ac_res" >&6; }
38347 if test `eval echo '${'$as_ac_var'}'` = yes; then
38348 cat >>confdefs.h <<_ACEOF
38349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38357 for ac_func in chflags
38359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38363 echo $ECHO_N "(cached) $ECHO_C" >&6
38365 cat >conftest.$ac_ext <<_ACEOF
38368 cat confdefs.h >>conftest.$ac_ext
38369 cat >>conftest.$ac_ext <<_ACEOF
38370 /* end confdefs.h. */
38371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38373 #define $ac_func innocuous_$ac_func
38375 /* System header to define __stub macros and hopefully few prototypes,
38376 which can conflict with char $ac_func (); below.
38377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38378 <limits.h> exists even on freestanding compilers. */
38381 # include <limits.h>
38383 # include <assert.h>
38388 /* Override any GCC internal prototype to avoid an error.
38389 Use char because int might match the return type of a GCC
38390 builtin and then its argument prototype would still apply. */
38395 /* The GNU C library defines this for functions which it implements
38396 to always fail with ENOSYS. Some functions are actually named
38397 something starting with __ and the normal name is an alias. */
38398 #if defined __stub_$ac_func || defined __stub___$ac_func
38405 return $ac_func ();
38410 rm -f conftest.$ac_objext conftest$ac_exeext
38411 if { (ac_try="$ac_link"
38412 case "(($ac_try" in
38413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38414 *) ac_try_echo=$ac_try;;
38416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38417 (eval "$ac_link") 2>conftest.er1
38419 grep -v '^ *+' conftest.er1 >conftest.err
38421 cat conftest.err >&5
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); } && {
38424 test -z "$ac_c_werror_flag" ||
38425 test ! -s conftest.err
38426 } && test -s conftest$ac_exeext &&
38427 $as_test_x conftest$ac_exeext; then
38428 eval "$as_ac_var=yes"
38430 echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38433 eval "$as_ac_var=no"
38436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38437 conftest$ac_exeext conftest.$ac_ext
38439 ac_res=`eval echo '${'$as_ac_var'}'`
38440 { echo "$as_me:$LINENO: result: $ac_res" >&5
38441 echo "${ECHO_T}$ac_res" >&6; }
38442 if test `eval echo '${'$as_ac_var'}'` = yes; then
38443 cat >>confdefs.h <<_ACEOF
38444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38455 for ac_func in snprintf vsnprintf gethostid fseeko
38457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38461 echo $ECHO_N "(cached) $ECHO_C" >&6
38463 cat >conftest.$ac_ext <<_ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h. */
38469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38471 #define $ac_func innocuous_$ac_func
38473 /* System header to define __stub macros and hopefully few prototypes,
38474 which can conflict with char $ac_func (); below.
38475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38476 <limits.h> exists even on freestanding compilers. */
38479 # include <limits.h>
38481 # include <assert.h>
38486 /* Override any GCC internal prototype to avoid an error.
38487 Use char because int might match the return type of a GCC
38488 builtin and then its argument prototype would still apply. */
38493 /* The GNU C library defines this for functions which it implements
38494 to always fail with ENOSYS. Some functions are actually named
38495 something starting with __ and the normal name is an alias. */
38496 #if defined __stub_$ac_func || defined __stub___$ac_func
38503 return $ac_func ();
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512 *) ac_try_echo=$ac_try;;
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515 (eval "$ac_link") 2>conftest.er1
38517 grep -v '^ *+' conftest.er1 >conftest.err
38519 cat conftest.err >&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); } && {
38522 test -z "$ac_c_werror_flag" ||
38523 test ! -s conftest.err
38524 } && test -s conftest$ac_exeext &&
38525 $as_test_x conftest$ac_exeext; then
38526 eval "$as_ac_var=yes"
38528 echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38531 eval "$as_ac_var=no"
38534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38535 conftest$ac_exeext conftest.$ac_ext
38537 ac_res=`eval echo '${'$as_ac_var'}'`
38538 { echo "$as_me:$LINENO: result: $ac_res" >&5
38539 echo "${ECHO_T}$ac_res" >&6; }
38540 if test `eval echo '${'$as_ac_var'}'` = yes; then
38541 cat >>confdefs.h <<_ACEOF
38542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38549 { echo "$as_me:$LINENO: checking for va_copy" >&5
38550 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38551 if test "${ba_cv_va_copy+set}" = set; then
38552 echo $ECHO_N "(cached) $ECHO_C" >&6
38555 cat >conftest.$ac_ext <<_ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h. */
38562 #include <stdarg.h>
38563 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38564 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38570 call_use_va_copy(1,2,3)
38576 rm -f conftest.$ac_objext conftest$ac_exeext
38577 if { (ac_try="$ac_link"
38578 case "(($ac_try" in
38579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38580 *) ac_try_echo=$ac_try;;
38582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38583 (eval "$ac_link") 2>conftest.er1
38585 grep -v '^ *+' conftest.er1 >conftest.err
38587 cat conftest.err >&5
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); } && {
38590 test -z "$ac_c_werror_flag" ||
38591 test ! -s conftest.err
38592 } && test -s conftest$ac_exeext &&
38593 $as_test_x conftest$ac_exeext; then
38598 echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38608 conftest$ac_exeext conftest.$ac_ext
38612 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38613 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38614 test $ba_cv_va_copy = yes &&
38615 cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_VA_COPY 1
38624 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38630 echo $ECHO_N "(cached) $ECHO_C" >&6
38632 cat >conftest.$ac_ext <<_ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h. */
38638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38640 #define $ac_func innocuous_$ac_func
38642 /* System header to define __stub macros and hopefully few prototypes,
38643 which can conflict with char $ac_func (); below.
38644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645 <limits.h> exists even on freestanding compilers. */
38648 # include <limits.h>
38650 # include <assert.h>
38655 /* Override any GCC internal prototype to avoid an error.
38656 Use char because int might match the return type of a GCC
38657 builtin and then its argument prototype would still apply. */
38662 /* The GNU C library defines this for functions which it implements
38663 to always fail with ENOSYS. Some functions are actually named
38664 something starting with __ and the normal name is an alias. */
38665 #if defined __stub_$ac_func || defined __stub___$ac_func
38672 return $ac_func ();
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (ac_try="$ac_link"
38679 case "(($ac_try" in
38680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681 *) ac_try_echo=$ac_try;;
38683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38684 (eval "$ac_link") 2>conftest.er1
38686 grep -v '^ *+' conftest.er1 >conftest.err
38688 cat conftest.err >&5
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); } && {
38691 test -z "$ac_c_werror_flag" ||
38692 test ! -s conftest.err
38693 } && test -s conftest$ac_exeext &&
38694 $as_test_x conftest$ac_exeext; then
38695 eval "$as_ac_var=yes"
38697 echo "$as_me: failed program was:" >&5
38698 sed 's/^/| /' conftest.$ac_ext >&5
38700 eval "$as_ac_var=no"
38703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38704 conftest$ac_exeext conftest.$ac_ext
38706 ac_res=`eval echo '${'$as_ac_var'}'`
38707 { echo "$as_me:$LINENO: result: $ac_res" >&5
38708 echo "${ECHO_T}$ac_res" >&6; }
38709 if test `eval echo '${'$as_ac_var'}'` = yes; then
38710 cat >>confdefs.h <<_ACEOF
38711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38718 # If resolver functions are not in libc check for -lnsl or -lresolv.
38719 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38722 echo $ECHO_N "(cached) $ECHO_C" >&6
38724 cat >conftest.$ac_ext <<_ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h. */
38730 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38732 #define gethostbyname_r innocuous_gethostbyname_r
38734 /* System header to define __stub macros and hopefully few prototypes,
38735 which can conflict with char gethostbyname_r (); below.
38736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38737 <limits.h> exists even on freestanding compilers. */
38740 # include <limits.h>
38742 # include <assert.h>
38745 #undef gethostbyname_r
38747 /* Override any GCC internal prototype to avoid an error.
38748 Use char because int might match the return type of a GCC
38749 builtin and then its argument prototype would still apply. */
38753 char gethostbyname_r ();
38754 /* The GNU C library defines this for functions which it implements
38755 to always fail with ENOSYS. Some functions are actually named
38756 something starting with __ and the normal name is an alias. */
38757 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38764 return gethostbyname_r ();
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (ac_try="$ac_link"
38771 case "(($ac_try" in
38772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773 *) ac_try_echo=$ac_try;;
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776 (eval "$ac_link") 2>conftest.er1
38778 grep -v '^ *+' conftest.er1 >conftest.err
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest$ac_exeext &&
38786 $as_test_x conftest$ac_exeext; then
38787 ac_cv_func_gethostbyname_r=yes
38789 echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38792 ac_cv_func_gethostbyname_r=no
38795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38796 conftest$ac_exeext conftest.$ac_ext
38798 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38800 if test $ac_cv_func_gethostbyname_r = yes; then
38801 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38802 echo "${ECHO_T}using libc's resolver" >&6; }
38805 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38808 echo $ECHO_N "(cached) $ECHO_C" >&6
38810 ac_check_lib_save_LIBS=$LIBS
38812 cat >conftest.$ac_ext <<_ACEOF
38815 cat confdefs.h >>conftest.$ac_ext
38816 cat >>conftest.$ac_ext <<_ACEOF
38817 /* end confdefs.h. */
38819 /* Override any GCC internal prototype to avoid an error.
38820 Use char because int might match the return type of a GCC
38821 builtin and then its argument prototype would still apply. */
38825 char gethostbyname_r ();
38829 return gethostbyname_r ();
38834 rm -f conftest.$ac_objext conftest$ac_exeext
38835 if { (ac_try="$ac_link"
38836 case "(($ac_try" in
38837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38838 *) ac_try_echo=$ac_try;;
38840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38841 (eval "$ac_link") 2>conftest.er1
38843 grep -v '^ *+' conftest.er1 >conftest.err
38845 cat conftest.err >&5
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } && {
38848 test -z "$ac_c_werror_flag" ||
38849 test ! -s conftest.err
38850 } && test -s conftest$ac_exeext &&
38851 $as_test_x conftest$ac_exeext; then
38852 ac_cv_lib_nsl_gethostbyname_r=yes
38854 echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38857 ac_cv_lib_nsl_gethostbyname_r=no
38860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38861 conftest$ac_exeext conftest.$ac_ext
38862 LIBS=$ac_check_lib_save_LIBS
38864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38866 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38867 cat >>confdefs.h <<_ACEOF
38868 #define HAVE_LIBNSL 1
38876 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38877 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38878 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38879 echo $ECHO_N "(cached) $ECHO_C" >&6
38881 ac_check_lib_save_LIBS=$LIBS
38882 LIBS="-lresolv $LIBS"
38883 cat >conftest.$ac_ext <<_ACEOF
38886 cat confdefs.h >>conftest.$ac_ext
38887 cat >>conftest.$ac_ext <<_ACEOF
38888 /* end confdefs.h. */
38890 /* Override any GCC internal prototype to avoid an error.
38891 Use char because int might match the return type of a GCC
38892 builtin and then its argument prototype would still apply. */
38896 char gethostbyname_r ();
38900 return gethostbyname_r ();
38905 rm -f conftest.$ac_objext conftest$ac_exeext
38906 if { (ac_try="$ac_link"
38907 case "(($ac_try" in
38908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38909 *) ac_try_echo=$ac_try;;
38911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38912 (eval "$ac_link") 2>conftest.er1
38914 grep -v '^ *+' conftest.er1 >conftest.err
38916 cat conftest.err >&5
38917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38918 (exit $ac_status); } && {
38919 test -z "$ac_c_werror_flag" ||
38920 test ! -s conftest.err
38921 } && test -s conftest$ac_exeext &&
38922 $as_test_x conftest$ac_exeext; then
38923 ac_cv_lib_resolv_gethostbyname_r=yes
38925 echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38928 ac_cv_lib_resolv_gethostbyname_r=no
38931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38932 conftest$ac_exeext conftest.$ac_ext
38933 LIBS=$ac_check_lib_save_LIBS
38935 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38936 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38937 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38938 cat >>confdefs.h <<_ACEOF
38939 #define HAVE_LIBRESOLV 1
38942 LIBS="-lresolv $LIBS"
38950 for ac_func in inet_pton
38952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38956 echo $ECHO_N "(cached) $ECHO_C" >&6
38958 cat >conftest.$ac_ext <<_ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h. */
38964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38966 #define $ac_func innocuous_$ac_func
38968 /* System header to define __stub macros and hopefully few prototypes,
38969 which can conflict with char $ac_func (); below.
38970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971 <limits.h> exists even on freestanding compilers. */
38974 # include <limits.h>
38976 # include <assert.h>
38981 /* Override any GCC internal prototype to avoid an error.
38982 Use char because int might match the return type of a GCC
38983 builtin and then its argument prototype would still apply. */
38988 /* The GNU C library defines this for functions which it implements
38989 to always fail with ENOSYS. Some functions are actually named
38990 something starting with __ and the normal name is an alias. */
38991 #if defined __stub_$ac_func || defined __stub___$ac_func
38998 return $ac_func ();
39003 rm -f conftest.$ac_objext conftest$ac_exeext
39004 if { (ac_try="$ac_link"
39005 case "(($ac_try" in
39006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39007 *) ac_try_echo=$ac_try;;
39009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39010 (eval "$ac_link") 2>conftest.er1
39012 grep -v '^ *+' conftest.er1 >conftest.err
39014 cat conftest.err >&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } && {
39017 test -z "$ac_c_werror_flag" ||
39018 test ! -s conftest.err
39019 } && test -s conftest$ac_exeext &&
39020 $as_test_x conftest$ac_exeext; then
39021 eval "$as_ac_var=yes"
39023 echo "$as_me: failed program was:" >&5
39024 sed 's/^/| /' conftest.$ac_ext >&5
39026 eval "$as_ac_var=no"
39029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39030 conftest$ac_exeext conftest.$ac_ext
39032 ac_res=`eval echo '${'$as_ac_var'}'`
39033 { echo "$as_me:$LINENO: result: $ac_res" >&5
39034 echo "${ECHO_T}$ac_res" >&6; }
39035 if test `eval echo '${'$as_ac_var'}'` = yes; then
39036 cat >>confdefs.h <<_ACEOF
39037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39039 cat >>confdefs.h <<\_ACEOF
39040 #define HAVE_INET_PTON 1
39047 for ac_func in inet_ntop
39049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39053 echo $ECHO_N "(cached) $ECHO_C" >&6
39055 cat >conftest.$ac_ext <<_ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h. */
39061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39063 #define $ac_func innocuous_$ac_func
39065 /* System header to define __stub macros and hopefully few prototypes,
39066 which can conflict with char $ac_func (); below.
39067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39068 <limits.h> exists even on freestanding compilers. */
39071 # include <limits.h>
39073 # include <assert.h>
39078 /* Override any GCC internal prototype to avoid an error.
39079 Use char because int might match the return type of a GCC
39080 builtin and then its argument prototype would still apply. */
39085 /* The GNU C library defines this for functions which it implements
39086 to always fail with ENOSYS. Some functions are actually named
39087 something starting with __ and the normal name is an alias. */
39088 #if defined __stub_$ac_func || defined __stub___$ac_func
39095 return $ac_func ();
39100 rm -f conftest.$ac_objext conftest$ac_exeext
39101 if { (ac_try="$ac_link"
39102 case "(($ac_try" in
39103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39104 *) ac_try_echo=$ac_try;;
39106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39107 (eval "$ac_link") 2>conftest.er1
39109 grep -v '^ *+' conftest.er1 >conftest.err
39111 cat conftest.err >&5
39112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113 (exit $ac_status); } && {
39114 test -z "$ac_c_werror_flag" ||
39115 test ! -s conftest.err
39116 } && test -s conftest$ac_exeext &&
39117 $as_test_x conftest$ac_exeext; then
39118 eval "$as_ac_var=yes"
39120 echo "$as_me: failed program was:" >&5
39121 sed 's/^/| /' conftest.$ac_ext >&5
39123 eval "$as_ac_var=no"
39126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39127 conftest$ac_exeext conftest.$ac_ext
39129 ac_res=`eval echo '${'$as_ac_var'}'`
39130 { echo "$as_me:$LINENO: result: $ac_res" >&5
39131 echo "${ECHO_T}$ac_res" >&6; }
39132 if test `eval echo '${'$as_ac_var'}'` = yes; then
39133 cat >>confdefs.h <<_ACEOF
39134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39136 cat >>confdefs.h <<\_ACEOF
39137 #define HAVE_INET_NTOP 1
39144 for ac_func in gethostbyname2
39146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39150 echo $ECHO_N "(cached) $ECHO_C" >&6
39152 cat >conftest.$ac_ext <<_ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h. */
39158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39160 #define $ac_func innocuous_$ac_func
39162 /* System header to define __stub macros and hopefully few prototypes,
39163 which can conflict with char $ac_func (); below.
39164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165 <limits.h> exists even on freestanding compilers. */
39168 # include <limits.h>
39170 # include <assert.h>
39175 /* Override any GCC internal prototype to avoid an error.
39176 Use char because int might match the return type of a GCC
39177 builtin and then its argument prototype would still apply. */
39182 /* The GNU C library defines this for functions which it implements
39183 to always fail with ENOSYS. Some functions are actually named
39184 something starting with __ and the normal name is an alias. */
39185 #if defined __stub_$ac_func || defined __stub___$ac_func
39192 return $ac_func ();
39197 rm -f conftest.$ac_objext conftest$ac_exeext
39198 if { (ac_try="$ac_link"
39199 case "(($ac_try" in
39200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39201 *) ac_try_echo=$ac_try;;
39203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39204 (eval "$ac_link") 2>conftest.er1
39206 grep -v '^ *+' conftest.er1 >conftest.err
39208 cat conftest.err >&5
39209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210 (exit $ac_status); } && {
39211 test -z "$ac_c_werror_flag" ||
39212 test ! -s conftest.err
39213 } && test -s conftest$ac_exeext &&
39214 $as_test_x conftest$ac_exeext; then
39215 eval "$as_ac_var=yes"
39217 echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39220 eval "$as_ac_var=no"
39223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39224 conftest$ac_exeext conftest.$ac_ext
39226 ac_res=`eval echo '${'$as_ac_var'}'`
39227 { echo "$as_me:$LINENO: result: $ac_res" >&5
39228 echo "${ECHO_T}$ac_res" >&6; }
39229 if test `eval echo '${'$as_ac_var'}'` = yes; then
39230 cat >>confdefs.h <<_ACEOF
39231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39233 cat >>confdefs.h <<\_ACEOF
39234 #define HAVE_GETHOSTBYNAME2 1
39241 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39242 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39243 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39244 echo $ECHO_N "(cached) $ECHO_C" >&6
39247 cat >conftest.$ac_ext <<_ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h. */
39254 #include <sys/socket.h>
39260 struct sockaddr s; s.sa_len;
39266 rm -f conftest.$ac_objext
39267 if { (ac_try="$ac_compile"
39268 case "(($ac_try" in
39269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39270 *) ac_try_echo=$ac_try;;
39272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39273 (eval "$ac_compile") 2>conftest.er1
39275 grep -v '^ *+' conftest.er1 >conftest.err
39277 cat conftest.err >&5
39278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279 (exit $ac_status); } && {
39280 test -z "$ac_c_werror_flag" ||
39281 test ! -s conftest.err
39282 } && test -s conftest.$ac_objext; then
39284 ac_cv_struct_sockaddr_sa_len=yes
39287 echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.$ac_ext >&5
39290 ac_cv_struct_sockaddr_sa_len=no
39295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39299 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39300 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39302 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39304 cat >>confdefs.h <<\_ACEOF
39305 #define HAVE_SA_LEN 1
39311 for ac_func in strftime
39313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39317 echo $ECHO_N "(cached) $ECHO_C" >&6
39319 cat >conftest.$ac_ext <<_ACEOF
39322 cat confdefs.h >>conftest.$ac_ext
39323 cat >>conftest.$ac_ext <<_ACEOF
39324 /* end confdefs.h. */
39325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39327 #define $ac_func innocuous_$ac_func
39329 /* System header to define __stub macros and hopefully few prototypes,
39330 which can conflict with char $ac_func (); below.
39331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39332 <limits.h> exists even on freestanding compilers. */
39335 # include <limits.h>
39337 # include <assert.h>
39342 /* Override any GCC internal prototype to avoid an error.
39343 Use char because int might match the return type of a GCC
39344 builtin and then its argument prototype would still apply. */
39349 /* The GNU C library defines this for functions which it implements
39350 to always fail with ENOSYS. Some functions are actually named
39351 something starting with __ and the normal name is an alias. */
39352 #if defined __stub_$ac_func || defined __stub___$ac_func
39359 return $ac_func ();
39364 rm -f conftest.$ac_objext conftest$ac_exeext
39365 if { (ac_try="$ac_link"
39366 case "(($ac_try" in
39367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39368 *) ac_try_echo=$ac_try;;
39370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39371 (eval "$ac_link") 2>conftest.er1
39373 grep -v '^ *+' conftest.er1 >conftest.err
39375 cat conftest.err >&5
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); } && {
39378 test -z "$ac_c_werror_flag" ||
39379 test ! -s conftest.err
39380 } && test -s conftest$ac_exeext &&
39381 $as_test_x conftest$ac_exeext; then
39382 eval "$as_ac_var=yes"
39384 echo "$as_me: failed program was:" >&5
39385 sed 's/^/| /' conftest.$ac_ext >&5
39387 eval "$as_ac_var=no"
39390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39391 conftest$ac_exeext conftest.$ac_ext
39393 ac_res=`eval echo '${'$as_ac_var'}'`
39394 { echo "$as_me:$LINENO: result: $ac_res" >&5
39395 echo "${ECHO_T}$ac_res" >&6; }
39396 if test `eval echo '${'$as_ac_var'}'` = yes; then
39397 cat >>confdefs.h <<_ACEOF
39398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39402 # strftime is in -lintl on SCO UNIX.
39403 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39404 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39405 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39406 echo $ECHO_N "(cached) $ECHO_C" >&6
39408 ac_check_lib_save_LIBS=$LIBS
39409 LIBS="-lintl $LIBS"
39410 cat >conftest.$ac_ext <<_ACEOF
39413 cat confdefs.h >>conftest.$ac_ext
39414 cat >>conftest.$ac_ext <<_ACEOF
39415 /* end confdefs.h. */
39417 /* Override any GCC internal prototype to avoid an error.
39418 Use char because int might match the return type of a GCC
39419 builtin and then its argument prototype would still apply. */
39427 return strftime ();
39432 rm -f conftest.$ac_objext conftest$ac_exeext
39433 if { (ac_try="$ac_link"
39434 case "(($ac_try" in
39435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39436 *) ac_try_echo=$ac_try;;
39438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39439 (eval "$ac_link") 2>conftest.er1
39441 grep -v '^ *+' conftest.er1 >conftest.err
39443 cat conftest.err >&5
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); } && {
39446 test -z "$ac_c_werror_flag" ||
39447 test ! -s conftest.err
39448 } && test -s conftest$ac_exeext &&
39449 $as_test_x conftest$ac_exeext; then
39450 ac_cv_lib_intl_strftime=yes
39452 echo "$as_me: failed program was:" >&5
39453 sed 's/^/| /' conftest.$ac_ext >&5
39455 ac_cv_lib_intl_strftime=no
39458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39459 conftest$ac_exeext conftest.$ac_ext
39460 LIBS=$ac_check_lib_save_LIBS
39462 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39463 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39464 if test $ac_cv_lib_intl_strftime = yes; then
39465 cat >>confdefs.h <<\_ACEOF
39466 #define HAVE_STRFTIME 1
39469 LIBS="-lintl $LIBS"
39476 for ac_func in vprintf
39478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39482 echo $ECHO_N "(cached) $ECHO_C" >&6
39484 cat >conftest.$ac_ext <<_ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h. */
39490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39492 #define $ac_func innocuous_$ac_func
39494 /* System header to define __stub macros and hopefully few prototypes,
39495 which can conflict with char $ac_func (); below.
39496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39497 <limits.h> exists even on freestanding compilers. */
39500 # include <limits.h>
39502 # include <assert.h>
39507 /* Override any GCC internal prototype to avoid an error.
39508 Use char because int might match the return type of a GCC
39509 builtin and then its argument prototype would still apply. */
39514 /* The GNU C library defines this for functions which it implements
39515 to always fail with ENOSYS. Some functions are actually named
39516 something starting with __ and the normal name is an alias. */
39517 #if defined __stub_$ac_func || defined __stub___$ac_func
39524 return $ac_func ();
39529 rm -f conftest.$ac_objext conftest$ac_exeext
39530 if { (ac_try="$ac_link"
39531 case "(($ac_try" in
39532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39533 *) ac_try_echo=$ac_try;;
39535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39536 (eval "$ac_link") 2>conftest.er1
39538 grep -v '^ *+' conftest.er1 >conftest.err
39540 cat conftest.err >&5
39541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39542 (exit $ac_status); } && {
39543 test -z "$ac_c_werror_flag" ||
39544 test ! -s conftest.err
39545 } && test -s conftest$ac_exeext &&
39546 $as_test_x conftest$ac_exeext; then
39547 eval "$as_ac_var=yes"
39549 echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39552 eval "$as_ac_var=no"
39555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39556 conftest$ac_exeext conftest.$ac_ext
39558 ac_res=`eval echo '${'$as_ac_var'}'`
39559 { echo "$as_me:$LINENO: result: $ac_res" >&5
39560 echo "${ECHO_T}$ac_res" >&6; }
39561 if test `eval echo '${'$as_ac_var'}'` = yes; then
39562 cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39566 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39568 if test "${ac_cv_func__doprnt+set}" = set; then
39569 echo $ECHO_N "(cached) $ECHO_C" >&6
39571 cat >conftest.$ac_ext <<_ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39579 #define _doprnt innocuous__doprnt
39581 /* System header to define __stub macros and hopefully few prototypes,
39582 which can conflict with char _doprnt (); below.
39583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39584 <limits.h> exists even on freestanding compilers. */
39587 # include <limits.h>
39589 # include <assert.h>
39594 /* Override any GCC internal prototype to avoid an error.
39595 Use char because int might match the return type of a GCC
39596 builtin and then its argument prototype would still apply. */
39601 /* The GNU C library defines this for functions which it implements
39602 to always fail with ENOSYS. Some functions are actually named
39603 something starting with __ and the normal name is an alias. */
39604 #if defined __stub__doprnt || defined __stub____doprnt
39616 rm -f conftest.$ac_objext conftest$ac_exeext
39617 if { (ac_try="$ac_link"
39618 case "(($ac_try" in
39619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620 *) ac_try_echo=$ac_try;;
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623 (eval "$ac_link") 2>conftest.er1
39625 grep -v '^ *+' conftest.er1 >conftest.err
39627 cat conftest.err >&5
39628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629 (exit $ac_status); } && {
39630 test -z "$ac_c_werror_flag" ||
39631 test ! -s conftest.err
39632 } && test -s conftest$ac_exeext &&
39633 $as_test_x conftest$ac_exeext; then
39634 ac_cv_func__doprnt=yes
39636 echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39639 ac_cv_func__doprnt=no
39642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39643 conftest$ac_exeext conftest.$ac_ext
39645 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39646 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39647 if test $ac_cv_func__doprnt = yes; then
39649 cat >>confdefs.h <<\_ACEOF
39650 #define HAVE_DOPRNT 1
39659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39660 # for constant arguments. Useless!
39661 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39663 if test "${ac_cv_working_alloca_h+set}" = set; then
39664 echo $ECHO_N "(cached) $ECHO_C" >&6
39666 cat >conftest.$ac_ext <<_ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39672 #include <alloca.h>
39676 char *p = (char *) alloca (2 * sizeof (int));
39682 rm -f conftest.$ac_objext conftest$ac_exeext
39683 if { (ac_try="$ac_link"
39684 case "(($ac_try" in
39685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39686 *) ac_try_echo=$ac_try;;
39688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39689 (eval "$ac_link") 2>conftest.er1
39691 grep -v '^ *+' conftest.er1 >conftest.err
39693 cat conftest.err >&5
39694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695 (exit $ac_status); } && {
39696 test -z "$ac_c_werror_flag" ||
39697 test ! -s conftest.err
39698 } && test -s conftest$ac_exeext &&
39699 $as_test_x conftest$ac_exeext; then
39700 ac_cv_working_alloca_h=yes
39702 echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39705 ac_cv_working_alloca_h=no
39708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39709 conftest$ac_exeext conftest.$ac_ext
39711 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39712 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39713 if test $ac_cv_working_alloca_h = yes; then
39715 cat >>confdefs.h <<\_ACEOF
39716 #define HAVE_ALLOCA_H 1
39721 { echo "$as_me:$LINENO: checking for alloca" >&5
39722 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39723 if test "${ac_cv_func_alloca_works+set}" = set; then
39724 echo $ECHO_N "(cached) $ECHO_C" >&6
39726 cat >conftest.$ac_ext <<_ACEOF
39729 cat confdefs.h >>conftest.$ac_ext
39730 cat >>conftest.$ac_ext <<_ACEOF
39731 /* end confdefs.h. */
39733 # define alloca __builtin_alloca
39736 # include <malloc.h>
39737 # define alloca _alloca
39739 # ifdef HAVE_ALLOCA_H
39740 # include <alloca.h>
39745 # ifndef alloca /* predefined by HP cc +Olibcalls */
39756 char *p = (char *) alloca (1);
39762 rm -f conftest.$ac_objext conftest$ac_exeext
39763 if { (ac_try="$ac_link"
39764 case "(($ac_try" in
39765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39766 *) ac_try_echo=$ac_try;;
39768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39769 (eval "$ac_link") 2>conftest.er1
39771 grep -v '^ *+' conftest.er1 >conftest.err
39773 cat conftest.err >&5
39774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39775 (exit $ac_status); } && {
39776 test -z "$ac_c_werror_flag" ||
39777 test ! -s conftest.err
39778 } && test -s conftest$ac_exeext &&
39779 $as_test_x conftest$ac_exeext; then
39780 ac_cv_func_alloca_works=yes
39782 echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39785 ac_cv_func_alloca_works=no
39788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39789 conftest$ac_exeext conftest.$ac_ext
39791 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39794 if test $ac_cv_func_alloca_works = yes; then
39796 cat >>confdefs.h <<\_ACEOF
39797 #define HAVE_ALLOCA 1
39801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39802 # that cause trouble. Some versions do not even contain alloca or
39803 # contain a buggy version. If you still want to use their alloca,
39804 # use ar to extract alloca.o from them instead of compiling alloca.c.
39806 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39808 cat >>confdefs.h <<\_ACEOF
39813 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39815 if test "${ac_cv_os_cray+set}" = set; then
39816 echo $ECHO_N "(cached) $ECHO_C" >&6
39818 cat >conftest.$ac_ext <<_ACEOF
39821 cat confdefs.h >>conftest.$ac_ext
39822 cat >>conftest.$ac_ext <<_ACEOF
39823 /* end confdefs.h. */
39824 #if defined CRAY && ! defined CRAY2
39831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39832 $EGREP "webecray" >/dev/null 2>&1; then
39840 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39841 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39842 if test $ac_cv_os_cray = yes; then
39843 for ac_func in _getb67 GETB67 getb67; do
39844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39848 echo $ECHO_N "(cached) $ECHO_C" >&6
39850 cat >conftest.$ac_ext <<_ACEOF
39853 cat confdefs.h >>conftest.$ac_ext
39854 cat >>conftest.$ac_ext <<_ACEOF
39855 /* end confdefs.h. */
39856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39858 #define $ac_func innocuous_$ac_func
39860 /* System header to define __stub macros and hopefully few prototypes,
39861 which can conflict with char $ac_func (); below.
39862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39863 <limits.h> exists even on freestanding compilers. */
39866 # include <limits.h>
39868 # include <assert.h>
39873 /* Override any GCC internal prototype to avoid an error.
39874 Use char because int might match the return type of a GCC
39875 builtin and then its argument prototype would still apply. */
39880 /* The GNU C library defines this for functions which it implements
39881 to always fail with ENOSYS. Some functions are actually named
39882 something starting with __ and the normal name is an alias. */
39883 #if defined __stub_$ac_func || defined __stub___$ac_func
39890 return $ac_func ();
39895 rm -f conftest.$ac_objext conftest$ac_exeext
39896 if { (ac_try="$ac_link"
39897 case "(($ac_try" in
39898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39899 *) ac_try_echo=$ac_try;;
39901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39902 (eval "$ac_link") 2>conftest.er1
39904 grep -v '^ *+' conftest.er1 >conftest.err
39906 cat conftest.err >&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); } && {
39909 test -z "$ac_c_werror_flag" ||
39910 test ! -s conftest.err
39911 } && test -s conftest$ac_exeext &&
39912 $as_test_x conftest$ac_exeext; then
39913 eval "$as_ac_var=yes"
39915 echo "$as_me: failed program was:" >&5
39916 sed 's/^/| /' conftest.$ac_ext >&5
39918 eval "$as_ac_var=no"
39921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39922 conftest$ac_exeext conftest.$ac_ext
39924 ac_res=`eval echo '${'$as_ac_var'}'`
39925 { echo "$as_me:$LINENO: result: $ac_res" >&5
39926 echo "${ECHO_T}$ac_res" >&6; }
39927 if test `eval echo '${'$as_ac_var'}'` = yes; then
39929 cat >>confdefs.h <<_ACEOF
39930 #define CRAY_STACKSEG_END $ac_func
39939 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39940 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39941 if test "${ac_cv_c_stack_direction+set}" = set; then
39942 echo $ECHO_N "(cached) $ECHO_C" >&6
39944 if test "$cross_compiling" = yes; then
39945 ac_cv_c_stack_direction=0
39947 cat >conftest.$ac_ext <<_ACEOF
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h. */
39953 $ac_includes_default
39955 find_stack_direction ()
39957 static char *addr = 0;
39962 return find_stack_direction ();
39965 return (&dummy > addr) ? 1 : -1;
39971 return find_stack_direction () < 0;
39974 rm -f conftest$ac_exeext
39975 if { (ac_try="$ac_link"
39976 case "(($ac_try" in
39977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978 *) ac_try_echo=$ac_try;;
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981 (eval "$ac_link") 2>&5
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39985 { (case "(($ac_try" in
39986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39987 *) ac_try_echo=$ac_try;;
39989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39990 (eval "$ac_try") 2>&5
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); }; }; then
39994 ac_cv_c_stack_direction=1
39996 echo "$as_me: program exited with status $ac_status" >&5
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
40000 ( exit $ac_status )
40001 ac_cv_c_stack_direction=-1
40003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40008 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40009 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40011 cat >>confdefs.h <<_ACEOF
40012 #define STACK_DIRECTION $ac_cv_c_stack_direction
40018 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40019 # -lseq on Dynix/PTX, -lgen on Unixware.
40020 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40021 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40022 if test "${ac_cv_search_getmntent+set}" = set; then
40023 echo $ECHO_N "(cached) $ECHO_C" >&6
40025 ac_func_search_save_LIBS=$LIBS
40026 cat >conftest.$ac_ext <<_ACEOF
40029 cat confdefs.h >>conftest.$ac_ext
40030 cat >>conftest.$ac_ext <<_ACEOF
40031 /* end confdefs.h. */
40033 /* Override any GCC internal prototype to avoid an error.
40034 Use char because int might match the return type of a GCC
40035 builtin and then its argument prototype would still apply. */
40043 return getmntent ();
40048 for ac_lib in '' sun seq gen; do
40049 if test -z "$ac_lib"; then
40050 ac_res="none required"
40053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40055 rm -f conftest.$ac_objext conftest$ac_exeext
40056 if { (ac_try="$ac_link"
40057 case "(($ac_try" in
40058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40059 *) ac_try_echo=$ac_try;;
40061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40062 (eval "$ac_link") 2>conftest.er1
40064 grep -v '^ *+' conftest.er1 >conftest.err
40066 cat conftest.err >&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); } && {
40069 test -z "$ac_c_werror_flag" ||
40070 test ! -s conftest.err
40071 } && test -s conftest$ac_exeext &&
40072 $as_test_x conftest$ac_exeext; then
40073 ac_cv_search_getmntent=$ac_res
40075 echo "$as_me: failed program was:" >&5
40076 sed 's/^/| /' conftest.$ac_ext >&5
40081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40083 if test "${ac_cv_search_getmntent+set}" = set; then
40087 if test "${ac_cv_search_getmntent+set}" = set; then
40090 ac_cv_search_getmntent=no
40092 rm conftest.$ac_ext
40093 LIBS=$ac_func_search_save_LIBS
40095 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40096 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40097 ac_res=$ac_cv_search_getmntent
40098 if test "$ac_res" != no; then
40099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40100 ac_cv_func_getmntent=yes
40102 cat >>confdefs.h <<\_ACEOF
40103 #define HAVE_GETMNTENT 1
40107 ac_cv_func_getmntent=no
40111 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40112 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40113 if test "${ac_cv_func_closedir_void+set}" = set; then
40114 echo $ECHO_N "(cached) $ECHO_C" >&6
40116 if test "$cross_compiling" = yes; then
40117 ac_cv_func_closedir_void=yes
40119 cat >conftest.$ac_ext <<_ACEOF
40122 cat confdefs.h >>conftest.$ac_ext
40123 cat >>conftest.$ac_ext <<_ACEOF
40124 /* end confdefs.h. */
40125 $ac_includes_default
40126 #include <$ac_header_dirent>
40127 #ifndef __cplusplus
40134 return closedir (opendir (".")) != 0;
40139 rm -f conftest$ac_exeext
40140 if { (ac_try="$ac_link"
40141 case "(($ac_try" in
40142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143 *) ac_try_echo=$ac_try;;
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146 (eval "$ac_link") 2>&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40150 { (case "(($ac_try" in
40151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40152 *) ac_try_echo=$ac_try;;
40154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40155 (eval "$ac_try") 2>&5
40157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); }; }; then
40159 ac_cv_func_closedir_void=no
40161 echo "$as_me: program exited with status $ac_status" >&5
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40165 ( exit $ac_status )
40166 ac_cv_func_closedir_void=yes
40168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40173 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40174 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40175 if test $ac_cv_func_closedir_void = yes; then
40177 cat >>confdefs.h <<\_ACEOF
40178 #define CLOSEDIR_VOID 1
40183 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40184 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40185 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40186 echo $ECHO_N "(cached) $ECHO_C" >&6
40188 if test "$cross_compiling" = yes; then
40189 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40190 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40191 { (exit 1); exit 1; }; }
40193 cat >conftest.$ac_ext <<_ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h. */
40199 $ac_includes_default
40203 /* If this system has a BSD-style setpgrp which takes arguments,
40204 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40205 exit successfully. */
40206 return setpgrp (1,1) != -1;
40211 rm -f conftest$ac_exeext
40212 if { (ac_try="$ac_link"
40213 case "(($ac_try" in
40214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215 *) ac_try_echo=$ac_try;;
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218 (eval "$ac_link") 2>&5
40220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40222 { (case "(($ac_try" in
40223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40224 *) ac_try_echo=$ac_try;;
40226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40227 (eval "$ac_try") 2>&5
40229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230 (exit $ac_status); }; }; then
40231 ac_cv_func_setpgrp_void=no
40233 echo "$as_me: program exited with status $ac_status" >&5
40234 echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40237 ( exit $ac_status )
40238 ac_cv_func_setpgrp_void=yes
40240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40245 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40246 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40247 if test $ac_cv_func_setpgrp_void = yes; then
40249 cat >>confdefs.h <<\_ACEOF
40250 #define SETPGRP_VOID 1
40254 # AC_FUNC_FNMATCH dnl use local version
40256 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40257 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40258 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40261 ac_check_lib_save_LIBS=$LIBS
40262 LIBS="-lintl $LIBS"
40263 cat >conftest.$ac_ext <<_ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h. */
40270 /* Override any GCC internal prototype to avoid an error.
40271 Use char because int might match the return type of a GCC
40272 builtin and then its argument prototype would still apply. */
40285 rm -f conftest.$ac_objext conftest$ac_exeext
40286 if { (ac_try="$ac_link"
40287 case "(($ac_try" in
40288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40289 *) ac_try_echo=$ac_try;;
40291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40292 (eval "$ac_link") 2>conftest.er1
40294 grep -v '^ *+' conftest.er1 >conftest.err
40296 cat conftest.err >&5
40297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); } && {
40299 test -z "$ac_c_werror_flag" ||
40300 test ! -s conftest.err
40301 } && test -s conftest$ac_exeext &&
40302 $as_test_x conftest$ac_exeext; then
40303 ac_cv_lib_intl_gettext=yes
40305 echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40308 ac_cv_lib_intl_gettext=no
40311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40312 conftest$ac_exeext conftest.$ac_ext
40313 LIBS=$ac_check_lib_save_LIBS
40315 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40316 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40317 if test $ac_cv_lib_intl_gettext = yes; then
40318 LIBS="$LIBS -lintl"
40323 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40324 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40325 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40326 echo $ECHO_N "(cached) $ECHO_C" >&6
40328 ac_check_lib_save_LIBS=$LIBS
40330 cat >conftest.$ac_ext <<_ACEOF
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h. */
40337 /* Override any GCC internal prototype to avoid an error.
40338 Use char because int might match the return type of a GCC
40339 builtin and then its argument prototype would still apply. */
40347 return getpwnam ();
40352 rm -f conftest.$ac_objext conftest$ac_exeext
40353 if { (ac_try="$ac_link"
40354 case "(($ac_try" in
40355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40356 *) ac_try_echo=$ac_try;;
40358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40359 (eval "$ac_link") 2>conftest.er1
40361 grep -v '^ *+' conftest.er1 >conftest.err
40363 cat conftest.err >&5
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); } && {
40366 test -z "$ac_c_werror_flag" ||
40367 test ! -s conftest.err
40368 } && test -s conftest$ac_exeext &&
40369 $as_test_x conftest$ac_exeext; then
40370 ac_cv_lib_sun_getpwnam=yes
40372 echo "$as_me: failed program was:" >&5
40373 sed 's/^/| /' conftest.$ac_ext >&5
40375 ac_cv_lib_sun_getpwnam=no
40378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40379 conftest$ac_exeext conftest.$ac_ext
40380 LIBS=$ac_check_lib_save_LIBS
40382 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40383 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40384 if test $ac_cv_lib_sun_getpwnam = yes; then
40385 cat >>confdefs.h <<_ACEOF
40386 #define HAVE_LIBSUN 1
40395 for ac_header in zlib.h
40397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40402 echo $ECHO_N "(cached) $ECHO_C" >&6
40404 ac_res=`eval echo '${'$as_ac_Header'}'`
40405 { echo "$as_me:$LINENO: result: $ac_res" >&5
40406 echo "${ECHO_T}$ac_res" >&6; }
40408 # Is the header compilable?
40409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40411 cat >conftest.$ac_ext <<_ACEOF
40414 cat confdefs.h >>conftest.$ac_ext
40415 cat >>conftest.$ac_ext <<_ACEOF
40416 /* end confdefs.h. */
40417 $ac_includes_default
40418 #include <$ac_header>
40420 rm -f conftest.$ac_objext
40421 if { (ac_try="$ac_compile"
40422 case "(($ac_try" in
40423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40424 *) ac_try_echo=$ac_try;;
40426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40427 (eval "$ac_compile") 2>conftest.er1
40429 grep -v '^ *+' conftest.er1 >conftest.err
40431 cat conftest.err >&5
40432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433 (exit $ac_status); } && {
40434 test -z "$ac_c_werror_flag" ||
40435 test ! -s conftest.err
40436 } && test -s conftest.$ac_objext; then
40437 ac_header_compiler=yes
40439 echo "$as_me: failed program was:" >&5
40440 sed 's/^/| /' conftest.$ac_ext >&5
40442 ac_header_compiler=no
40445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40447 echo "${ECHO_T}$ac_header_compiler" >&6; }
40449 # Is the header present?
40450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40452 cat >conftest.$ac_ext <<_ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h. */
40458 #include <$ac_header>
40460 if { (ac_try="$ac_cpp conftest.$ac_ext"
40461 case "(($ac_try" in
40462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40463 *) ac_try_echo=$ac_try;;
40465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40468 grep -v '^ *+' conftest.er1 >conftest.err
40470 cat conftest.err >&5
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } >/dev/null && {
40473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40474 test ! -s conftest.err
40476 ac_header_preproc=yes
40478 echo "$as_me: failed program was:" >&5
40479 sed 's/^/| /' conftest.$ac_ext >&5
40481 ac_header_preproc=no
40484 rm -f conftest.err conftest.$ac_ext
40485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40486 echo "${ECHO_T}$ac_header_preproc" >&6; }
40488 # So? What about this header?
40489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40495 ac_header_preproc=yes
40498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40516 echo $ECHO_N "(cached) $ECHO_C" >&6
40518 eval "$as_ac_Header=\$ac_header_preproc"
40520 ac_res=`eval echo '${'$as_ac_Header'}'`
40521 { echo "$as_me:$LINENO: result: $ac_res" >&5
40522 echo "${ECHO_T}$ac_res" >&6; }
40525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40526 cat >>confdefs.h <<_ACEOF
40527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40534 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40535 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40536 if test "${ac_cv_lib_z_deflate+set}" = set; then
40537 echo $ECHO_N "(cached) $ECHO_C" >&6
40539 ac_check_lib_save_LIBS=$LIBS
40541 cat >conftest.$ac_ext <<_ACEOF
40544 cat confdefs.h >>conftest.$ac_ext
40545 cat >>conftest.$ac_ext <<_ACEOF
40546 /* end confdefs.h. */
40548 /* Override any GCC internal prototype to avoid an error.
40549 Use char because int might match the return type of a GCC
40550 builtin and then its argument prototype would still apply. */
40563 rm -f conftest.$ac_objext conftest$ac_exeext
40564 if { (ac_try="$ac_link"
40565 case "(($ac_try" in
40566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567 *) ac_try_echo=$ac_try;;
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570 (eval "$ac_link") 2>conftest.er1
40572 grep -v '^ *+' conftest.er1 >conftest.err
40574 cat conftest.err >&5
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); } && {
40577 test -z "$ac_c_werror_flag" ||
40578 test ! -s conftest.err
40579 } && test -s conftest$ac_exeext &&
40580 $as_test_x conftest$ac_exeext; then
40581 ac_cv_lib_z_deflate=yes
40583 echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40586 ac_cv_lib_z_deflate=no
40589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40590 conftest$ac_exeext conftest.$ac_ext
40591 LIBS=$ac_check_lib_save_LIBS
40593 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40594 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40595 if test $ac_cv_lib_z_deflate = yes; then
40600 if test x$FDLIBS = x-lz; then
40601 cat >>confdefs.h <<\_ACEOF
40602 #define HAVE_LIBZ 1
40609 # Check whether --enable-acl was given.
40610 if test "${enable_acl+set}" = set; then
40611 enableval=$enable_acl;
40612 if test x$enableval = xno; then
40621 have_extended_acl=no
40622 if test x$support_acl = xyes; then
40623 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40624 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40625 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40627 echo $ECHO_N "(cached) $ECHO_C" >&6
40629 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40630 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40632 # Is the header compilable?
40633 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40634 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40635 cat >conftest.$ac_ext <<_ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h. */
40641 $ac_includes_default
40642 #include <sys/acl.h>
40644 rm -f conftest.$ac_objext
40645 if { (ac_try="$ac_compile"
40646 case "(($ac_try" in
40647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648 *) ac_try_echo=$ac_try;;
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651 (eval "$ac_compile") 2>conftest.er1
40653 grep -v '^ *+' conftest.er1 >conftest.err
40655 cat conftest.err >&5
40656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657 (exit $ac_status); } && {
40658 test -z "$ac_c_werror_flag" ||
40659 test ! -s conftest.err
40660 } && test -s conftest.$ac_objext; then
40661 ac_header_compiler=yes
40663 echo "$as_me: failed program was:" >&5
40664 sed 's/^/| /' conftest.$ac_ext >&5
40666 ac_header_compiler=no
40669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40671 echo "${ECHO_T}$ac_header_compiler" >&6; }
40673 # Is the header present?
40674 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40675 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40676 cat >conftest.$ac_ext <<_ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h. */
40682 #include <sys/acl.h>
40684 if { (ac_try="$ac_cpp conftest.$ac_ext"
40685 case "(($ac_try" in
40686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40687 *) ac_try_echo=$ac_try;;
40689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40692 grep -v '^ *+' conftest.er1 >conftest.err
40694 cat conftest.err >&5
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); } >/dev/null && {
40697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40698 test ! -s conftest.err
40700 ac_header_preproc=yes
40702 echo "$as_me: failed program was:" >&5
40703 sed 's/^/| /' conftest.$ac_ext >&5
40705 ac_header_preproc=no
40708 rm -f conftest.err conftest.$ac_ext
40709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40710 echo "${ECHO_T}$ac_header_preproc" >&6; }
40712 # So? What about this header?
40713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40715 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40716 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40717 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40718 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40719 ac_header_preproc=yes
40722 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40723 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40724 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40725 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40726 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40727 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40728 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40729 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40730 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40731 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40733 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40737 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40738 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40739 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40740 echo $ECHO_N "(cached) $ECHO_C" >&6
40742 ac_cv_header_sys_acl_h=$ac_header_preproc
40744 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40745 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40748 if test $ac_cv_header_sys_acl_h = yes; then
40750 cat >>confdefs.h <<\_ACEOF
40751 #define HAVE_SYS_ACL_H 1
40757 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40758 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40759 if test "${ac_cv_func_acl_get_file+set}" = set; then
40760 echo $ECHO_N "(cached) $ECHO_C" >&6
40762 cat >conftest.$ac_ext <<_ACEOF
40765 cat confdefs.h >>conftest.$ac_ext
40766 cat >>conftest.$ac_ext <<_ACEOF
40767 /* end confdefs.h. */
40768 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40770 #define acl_get_file innocuous_acl_get_file
40772 /* System header to define __stub macros and hopefully few prototypes,
40773 which can conflict with char acl_get_file (); below.
40774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40775 <limits.h> exists even on freestanding compilers. */
40778 # include <limits.h>
40780 # include <assert.h>
40783 #undef acl_get_file
40785 /* Override any GCC internal prototype to avoid an error.
40786 Use char because int might match the return type of a GCC
40787 builtin and then its argument prototype would still apply. */
40791 char acl_get_file ();
40792 /* The GNU C library defines this for functions which it implements
40793 to always fail with ENOSYS. Some functions are actually named
40794 something starting with __ and the normal name is an alias. */
40795 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40802 return acl_get_file ();
40807 rm -f conftest.$ac_objext conftest$ac_exeext
40808 if { (ac_try="$ac_link"
40809 case "(($ac_try" in
40810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40811 *) ac_try_echo=$ac_try;;
40813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40814 (eval "$ac_link") 2>conftest.er1
40816 grep -v '^ *+' conftest.er1 >conftest.err
40818 cat conftest.err >&5
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } && {
40821 test -z "$ac_c_werror_flag" ||
40822 test ! -s conftest.err
40823 } && test -s conftest$ac_exeext &&
40824 $as_test_x conftest$ac_exeext; then
40825 ac_cv_func_acl_get_file=yes
40827 echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40830 ac_cv_func_acl_get_file=no
40833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40834 conftest$ac_exeext conftest.$ac_ext
40836 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40837 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40838 if test $ac_cv_func_acl_get_file = yes; then
40844 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40845 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40846 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40847 echo $ECHO_N "(cached) $ECHO_C" >&6
40849 ac_check_lib_save_LIBS=$LIBS
40851 cat >conftest.$ac_ext <<_ACEOF
40854 cat confdefs.h >>conftest.$ac_ext
40855 cat >>conftest.$ac_ext <<_ACEOF
40856 /* end confdefs.h. */
40858 /* Override any GCC internal prototype to avoid an error.
40859 Use char because int might match the return type of a GCC
40860 builtin and then its argument prototype would still apply. */
40864 char acl_get_file ();
40868 return acl_get_file ();
40873 rm -f conftest.$ac_objext conftest$ac_exeext
40874 if { (ac_try="$ac_link"
40875 case "(($ac_try" in
40876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40877 *) ac_try_echo=$ac_try;;
40879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40880 (eval "$ac_link") 2>conftest.er1
40882 grep -v '^ *+' conftest.er1 >conftest.err
40884 cat conftest.err >&5
40885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 (exit $ac_status); } && {
40887 test -z "$ac_c_werror_flag" ||
40888 test ! -s conftest.err
40889 } && test -s conftest$ac_exeext &&
40890 $as_test_x conftest$ac_exeext; then
40891 ac_cv_lib_acl_acl_get_file=yes
40893 echo "$as_me: failed program was:" >&5
40894 sed 's/^/| /' conftest.$ac_ext >&5
40896 ac_cv_lib_acl_acl_get_file=no
40899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40900 conftest$ac_exeext conftest.$ac_ext
40901 LIBS=$ac_check_lib_save_LIBS
40903 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40904 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40905 if test $ac_cv_lib_acl_acl_get_file = yes; then
40908 FDLIBS="-lacl $FDLIBS"
40912 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40913 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40914 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40915 echo $ECHO_N "(cached) $ECHO_C" >&6
40917 ac_check_lib_save_LIBS=$LIBS
40918 LIBS="-lpacl $LIBS"
40919 cat >conftest.$ac_ext <<_ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h. */
40926 /* Override any GCC internal prototype to avoid an error.
40927 Use char because int might match the return type of a GCC
40928 builtin and then its argument prototype would still apply. */
40932 char acl_get_file ();
40936 return acl_get_file ();
40941 rm -f conftest.$ac_objext conftest$ac_exeext
40942 if { (ac_try="$ac_link"
40943 case "(($ac_try" in
40944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40945 *) ac_try_echo=$ac_try;;
40947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40948 (eval "$ac_link") 2>conftest.er1
40950 grep -v '^ *+' conftest.er1 >conftest.err
40952 cat conftest.err >&5
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); } && {
40955 test -z "$ac_c_werror_flag" ||
40956 test ! -s conftest.err
40957 } && test -s conftest$ac_exeext &&
40958 $as_test_x conftest$ac_exeext; then
40959 ac_cv_lib_pacl_acl_get_file=yes
40961 echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40964 ac_cv_lib_pacl_acl_get_file=no
40967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40968 conftest$ac_exeext conftest.$ac_ext
40969 LIBS=$ac_check_lib_save_LIBS
40971 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40972 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40973 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40976 FDLIBS="-lpacl $FDLIBS"
40980 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40981 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40982 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40983 echo $ECHO_N "(cached) $ECHO_C" >&6
40985 ac_check_lib_save_LIBS=$LIBS
40987 cat >conftest.$ac_ext <<_ACEOF
40990 cat confdefs.h >>conftest.$ac_ext
40991 cat >>conftest.$ac_ext <<_ACEOF
40992 /* end confdefs.h. */
40994 /* Override any GCC internal prototype to avoid an error.
40995 Use char because int might match the return type of a GCC
40996 builtin and then its argument prototype would still apply. */
41004 return acltotext ();
41009 rm -f conftest.$ac_objext conftest$ac_exeext
41010 if { (ac_try="$ac_link"
41011 case "(($ac_try" in
41012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41013 *) ac_try_echo=$ac_try;;
41015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41016 (eval "$ac_link") 2>conftest.er1
41018 grep -v '^ *+' conftest.er1 >conftest.err
41020 cat conftest.err >&5
41021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); } && {
41023 test -z "$ac_c_werror_flag" ||
41024 test ! -s conftest.err
41025 } && test -s conftest$ac_exeext &&
41026 $as_test_x conftest$ac_exeext; then
41027 ac_cv_lib_sec_acltotext=yes
41029 echo "$as_me: failed program was:" >&5
41030 sed 's/^/| /' conftest.$ac_ext >&5
41032 ac_cv_lib_sec_acltotext=no
41035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41036 conftest$ac_exeext conftest.$ac_ext
41037 LIBS=$ac_check_lib_save_LIBS
41039 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41040 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41041 if test $ac_cv_lib_sec_acltotext = yes; then
41044 FDLIBS="-lsec $FDLIBS"
41046 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41047 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41048 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41049 echo $ECHO_N "(cached) $ECHO_C" >&6
41051 ac_check_lib_save_LIBS=$LIBS
41053 cat >conftest.$ac_ext <<_ACEOF
41056 cat confdefs.h >>conftest.$ac_ext
41057 cat >>conftest.$ac_ext <<_ACEOF
41058 /* end confdefs.h. */
41060 /* Override any GCC internal prototype to avoid an error.
41061 Use char because int might match the return type of a GCC
41062 builtin and then its argument prototype would still apply. */
41066 char acl_totext ();
41070 return acl_totext ();
41075 rm -f conftest.$ac_objext conftest$ac_exeext
41076 if { (ac_try="$ac_link"
41077 case "(($ac_try" in
41078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41079 *) ac_try_echo=$ac_try;;
41081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41082 (eval "$ac_link") 2>conftest.er1
41084 grep -v '^ *+' conftest.er1 >conftest.err
41086 cat conftest.err >&5
41087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088 (exit $ac_status); } && {
41089 test -z "$ac_c_werror_flag" ||
41090 test ! -s conftest.err
41091 } && test -s conftest$ac_exeext &&
41092 $as_test_x conftest$ac_exeext; then
41093 ac_cv_lib_sec_acl_totext=yes
41095 echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41098 ac_cv_lib_sec_acl_totext=no
41101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41102 conftest$ac_exeext conftest.$ac_ext
41103 LIBS=$ac_check_lib_save_LIBS
41105 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41106 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41107 if test $ac_cv_lib_sec_acl_totext = yes; then
41109 have_extended_acl=yes
41130 if test $have_acl = yes; then
41132 cat >>confdefs.h <<\_ACEOF
41138 if test $have_extended_acl = yes; then
41140 cat >>confdefs.h <<\_ACEOF
41141 #define HAVE_EXTENDED_ACL
41148 # Check whether --enable-xattr was given.
41149 if test "${enable_xattr+set}" = set; then
41150 enableval=$enable_xattr;
41151 if test x$enableval = xno; then
41160 if test x$support_xattr = xyes; then
41161 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41162 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41163 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41164 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41165 echo $ECHO_N "(cached) $ECHO_C" >&6
41167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41168 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41170 # Is the header compilable?
41171 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41172 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&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 $ac_includes_default
41180 #include <sys/xattr.h>
41182 rm -f conftest.$ac_objext
41183 if { (ac_try="$ac_compile"
41184 case "(($ac_try" in
41185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41186 *) ac_try_echo=$ac_try;;
41188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41189 (eval "$ac_compile") 2>conftest.er1
41191 grep -v '^ *+' conftest.er1 >conftest.err
41193 cat conftest.err >&5
41194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195 (exit $ac_status); } && {
41196 test -z "$ac_c_werror_flag" ||
41197 test ! -s conftest.err
41198 } && test -s conftest.$ac_objext; then
41199 ac_header_compiler=yes
41201 echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41204 ac_header_compiler=no
41207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41209 echo "${ECHO_T}$ac_header_compiler" >&6; }
41211 # Is the header present?
41212 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41213 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41214 cat >conftest.$ac_ext <<_ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h. */
41220 #include <sys/xattr.h>
41222 if { (ac_try="$ac_cpp conftest.$ac_ext"
41223 case "(($ac_try" in
41224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41225 *) ac_try_echo=$ac_try;;
41227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41230 grep -v '^ *+' conftest.er1 >conftest.err
41232 cat conftest.err >&5
41233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); } >/dev/null && {
41235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41236 test ! -s conftest.err
41238 ac_header_preproc=yes
41240 echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41243 ac_header_preproc=no
41246 rm -f conftest.err conftest.$ac_ext
41247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41248 echo "${ECHO_T}$ac_header_preproc" >&6; }
41250 # So? What about this header?
41251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41253 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41254 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41255 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41256 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41257 ac_header_preproc=yes
41260 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41261 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41262 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41263 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41264 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41265 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41266 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41267 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41268 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41269 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41270 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41271 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41275 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41276 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41277 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41278 echo $ECHO_N "(cached) $ECHO_C" >&6
41280 ac_cv_header_sys_xattr_h=$ac_header_preproc
41282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41283 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41286 if test $ac_cv_header_sys_xattr_h = yes; then
41288 cat >>confdefs.h <<\_ACEOF
41289 #define HAVE_SYS_XATTR_H 1
41298 for ac_func in llistxattr lgetxattr lsetxattr
41300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41304 echo $ECHO_N "(cached) $ECHO_C" >&6
41306 cat >conftest.$ac_ext <<_ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h. */
41312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41314 #define $ac_func innocuous_$ac_func
41316 /* System header to define __stub macros and hopefully few prototypes,
41317 which can conflict with char $ac_func (); below.
41318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41319 <limits.h> exists even on freestanding compilers. */
41322 # include <limits.h>
41324 # include <assert.h>
41329 /* Override any GCC internal prototype to avoid an error.
41330 Use char because int might match the return type of a GCC
41331 builtin and then its argument prototype would still apply. */
41336 /* The GNU C library defines this for functions which it implements
41337 to always fail with ENOSYS. Some functions are actually named
41338 something starting with __ and the normal name is an alias. */
41339 #if defined __stub_$ac_func || defined __stub___$ac_func
41346 return $ac_func ();
41351 rm -f conftest.$ac_objext conftest$ac_exeext
41352 if { (ac_try="$ac_link"
41353 case "(($ac_try" in
41354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41355 *) ac_try_echo=$ac_try;;
41357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41358 (eval "$ac_link") 2>conftest.er1
41360 grep -v '^ *+' conftest.er1 >conftest.err
41362 cat conftest.err >&5
41363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364 (exit $ac_status); } && {
41365 test -z "$ac_c_werror_flag" ||
41366 test ! -s conftest.err
41367 } && test -s conftest$ac_exeext &&
41368 $as_test_x conftest$ac_exeext; then
41369 eval "$as_ac_var=yes"
41371 echo "$as_me: failed program was:" >&5
41372 sed 's/^/| /' conftest.$ac_ext >&5
41374 eval "$as_ac_var=no"
41377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41378 conftest$ac_exeext conftest.$ac_ext
41380 ac_res=`eval echo '${'$as_ac_var'}'`
41381 { echo "$as_me:$LINENO: result: $ac_res" >&5
41382 echo "${ECHO_T}$ac_res" >&6; }
41383 if test `eval echo '${'$as_ac_var'}'` = yes; then
41384 cat >>confdefs.h <<_ACEOF
41385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41390 cat >>confdefs.h <<\_ACEOF
41391 #define HAVE_LLISTXATTR
41395 cat >>confdefs.h <<\_ACEOF
41396 #define HAVE_LGETXATTR
41400 cat >>confdefs.h <<\_ACEOF
41401 #define HAVE_LSETXATTR
41413 if test $have_xattr = no; then
41417 for ac_func in listxattr getxattr setxattr
41419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41423 echo $ECHO_N "(cached) $ECHO_C" >&6
41425 cat >conftest.$ac_ext <<_ACEOF
41428 cat confdefs.h >>conftest.$ac_ext
41429 cat >>conftest.$ac_ext <<_ACEOF
41430 /* end confdefs.h. */
41431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41433 #define $ac_func innocuous_$ac_func
41435 /* System header to define __stub macros and hopefully few prototypes,
41436 which can conflict with char $ac_func (); below.
41437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41438 <limits.h> exists even on freestanding compilers. */
41441 # include <limits.h>
41443 # include <assert.h>
41448 /* Override any GCC internal prototype to avoid an error.
41449 Use char because int might match the return type of a GCC
41450 builtin and then its argument prototype would still apply. */
41455 /* The GNU C library defines this for functions which it implements
41456 to always fail with ENOSYS. Some functions are actually named
41457 something starting with __ and the normal name is an alias. */
41458 #if defined __stub_$ac_func || defined __stub___$ac_func
41465 return $ac_func ();
41470 rm -f conftest.$ac_objext conftest$ac_exeext
41471 if { (ac_try="$ac_link"
41472 case "(($ac_try" in
41473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41474 *) ac_try_echo=$ac_try;;
41476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41477 (eval "$ac_link") 2>conftest.er1
41479 grep -v '^ *+' conftest.er1 >conftest.err
41481 cat conftest.err >&5
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); } && {
41484 test -z "$ac_c_werror_flag" ||
41485 test ! -s conftest.err
41486 } && test -s conftest$ac_exeext &&
41487 $as_test_x conftest$ac_exeext; then
41488 eval "$as_ac_var=yes"
41490 echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41493 eval "$as_ac_var=no"
41496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41497 conftest$ac_exeext conftest.$ac_ext
41499 ac_res=`eval echo '${'$as_ac_var'}'`
41500 { echo "$as_me:$LINENO: result: $ac_res" >&5
41501 echo "${ECHO_T}$ac_res" >&6; }
41502 if test `eval echo '${'$as_ac_var'}'` = yes; then
41503 cat >>confdefs.h <<_ACEOF
41504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41509 cat >>confdefs.h <<\_ACEOF
41510 #define HAVE_LLISTXATTR
41514 cat >>confdefs.h <<\_ACEOF
41515 #define HAVE_LGETXATTR
41519 cat >>confdefs.h <<\_ACEOF
41520 #define HAVE_LSETXATTR
41533 if test $have_xattr = no; then
41534 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41535 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41536 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41537 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41538 echo $ECHO_N "(cached) $ECHO_C" >&6
41540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41541 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41543 # Is the header compilable?
41544 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41545 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41546 cat >conftest.$ac_ext <<_ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h. */
41552 $ac_includes_default
41553 #include <sys/attr.h>
41555 rm -f conftest.$ac_objext
41556 if { (ac_try="$ac_compile"
41557 case "(($ac_try" in
41558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41559 *) ac_try_echo=$ac_try;;
41561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41562 (eval "$ac_compile") 2>conftest.er1
41564 grep -v '^ *+' conftest.er1 >conftest.err
41566 cat conftest.err >&5
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); } && {
41569 test -z "$ac_c_werror_flag" ||
41570 test ! -s conftest.err
41571 } && test -s conftest.$ac_objext; then
41572 ac_header_compiler=yes
41574 echo "$as_me: failed program was:" >&5
41575 sed 's/^/| /' conftest.$ac_ext >&5
41577 ac_header_compiler=no
41580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41582 echo "${ECHO_T}$ac_header_compiler" >&6; }
41584 # Is the header present?
41585 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41586 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41587 cat >conftest.$ac_ext <<_ACEOF
41590 cat confdefs.h >>conftest.$ac_ext
41591 cat >>conftest.$ac_ext <<_ACEOF
41592 /* end confdefs.h. */
41593 #include <sys/attr.h>
41595 if { (ac_try="$ac_cpp conftest.$ac_ext"
41596 case "(($ac_try" in
41597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41598 *) ac_try_echo=$ac_try;;
41600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41603 grep -v '^ *+' conftest.er1 >conftest.err
41605 cat conftest.err >&5
41606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607 (exit $ac_status); } >/dev/null && {
41608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41609 test ! -s conftest.err
41611 ac_header_preproc=yes
41613 echo "$as_me: failed program was:" >&5
41614 sed 's/^/| /' conftest.$ac_ext >&5
41616 ac_header_preproc=no
41619 rm -f conftest.err conftest.$ac_ext
41620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41621 echo "${ECHO_T}$ac_header_preproc" >&6; }
41623 # So? What about this header?
41624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41626 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41627 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41628 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41629 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41630 ac_header_preproc=yes
41633 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41634 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41635 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41636 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41637 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41638 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41639 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41640 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41641 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41642 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41643 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41644 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41648 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41649 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41650 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41651 echo $ECHO_N "(cached) $ECHO_C" >&6
41653 ac_cv_header_sys_attr_h=$ac_header_preproc
41655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41656 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41659 if test $ac_cv_header_sys_attr_h = yes; then
41661 cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_SYS_ATTR_H 1
41668 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41669 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41670 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41671 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41672 echo $ECHO_N "(cached) $ECHO_C" >&6
41674 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41675 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41677 # Is the header compilable?
41678 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41679 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41680 cat >conftest.$ac_ext <<_ACEOF
41683 cat confdefs.h >>conftest.$ac_ext
41684 cat >>conftest.$ac_ext <<_ACEOF
41685 /* end confdefs.h. */
41686 $ac_includes_default
41687 #include <sys/nvpair.h>
41689 rm -f conftest.$ac_objext
41690 if { (ac_try="$ac_compile"
41691 case "(($ac_try" in
41692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41693 *) ac_try_echo=$ac_try;;
41695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41696 (eval "$ac_compile") 2>conftest.er1
41698 grep -v '^ *+' conftest.er1 >conftest.err
41700 cat conftest.err >&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); } && {
41703 test -z "$ac_c_werror_flag" ||
41704 test ! -s conftest.err
41705 } && test -s conftest.$ac_objext; then
41706 ac_header_compiler=yes
41708 echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41711 ac_header_compiler=no
41714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41716 echo "${ECHO_T}$ac_header_compiler" >&6; }
41718 # Is the header present?
41719 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41720 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41721 cat >conftest.$ac_ext <<_ACEOF
41724 cat confdefs.h >>conftest.$ac_ext
41725 cat >>conftest.$ac_ext <<_ACEOF
41726 /* end confdefs.h. */
41727 #include <sys/nvpair.h>
41729 if { (ac_try="$ac_cpp conftest.$ac_ext"
41730 case "(($ac_try" in
41731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41732 *) ac_try_echo=$ac_try;;
41734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41737 grep -v '^ *+' conftest.er1 >conftest.err
41739 cat conftest.err >&5
41740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741 (exit $ac_status); } >/dev/null && {
41742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41743 test ! -s conftest.err
41745 ac_header_preproc=yes
41747 echo "$as_me: failed program was:" >&5
41748 sed 's/^/| /' conftest.$ac_ext >&5
41750 ac_header_preproc=no
41753 rm -f conftest.err conftest.$ac_ext
41754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41755 echo "${ECHO_T}$ac_header_preproc" >&6; }
41757 # So? What about this header?
41758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41760 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41761 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41762 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41763 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41764 ac_header_preproc=yes
41767 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41768 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41769 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41770 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41771 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41772 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41773 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41774 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41775 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41776 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41777 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41778 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41782 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41783 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41784 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41785 echo $ECHO_N "(cached) $ECHO_C" >&6
41787 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41789 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41790 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41793 if test $ac_cv_header_sys_nvpair_h = yes; then
41795 cat >>confdefs.h <<\_ACEOF
41796 #define HAVE_SYS_NVPAIR_H 1
41802 if test "${ac_cv_header_attr_h+set}" = set; then
41803 { echo "$as_me:$LINENO: checking for attr.h" >&5
41804 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41805 if test "${ac_cv_header_attr_h+set}" = set; then
41806 echo $ECHO_N "(cached) $ECHO_C" >&6
41808 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41809 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41811 # Is the header compilable?
41812 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41813 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41814 cat >conftest.$ac_ext <<_ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h. */
41820 $ac_includes_default
41823 rm -f conftest.$ac_objext
41824 if { (ac_try="$ac_compile"
41825 case "(($ac_try" in
41826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827 *) ac_try_echo=$ac_try;;
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830 (eval "$ac_compile") 2>conftest.er1
41832 grep -v '^ *+' conftest.er1 >conftest.err
41834 cat conftest.err >&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); } && {
41837 test -z "$ac_c_werror_flag" ||
41838 test ! -s conftest.err
41839 } && test -s conftest.$ac_objext; then
41840 ac_header_compiler=yes
41842 echo "$as_me: failed program was:" >&5
41843 sed 's/^/| /' conftest.$ac_ext >&5
41845 ac_header_compiler=no
41848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41850 echo "${ECHO_T}$ac_header_compiler" >&6; }
41852 # Is the header present?
41853 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41854 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41855 cat >conftest.$ac_ext <<_ACEOF
41858 cat confdefs.h >>conftest.$ac_ext
41859 cat >>conftest.$ac_ext <<_ACEOF
41860 /* end confdefs.h. */
41863 if { (ac_try="$ac_cpp conftest.$ac_ext"
41864 case "(($ac_try" in
41865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41866 *) ac_try_echo=$ac_try;;
41868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41871 grep -v '^ *+' conftest.er1 >conftest.err
41873 cat conftest.err >&5
41874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41875 (exit $ac_status); } >/dev/null && {
41876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41877 test ! -s conftest.err
41879 ac_header_preproc=yes
41881 echo "$as_me: failed program was:" >&5
41882 sed 's/^/| /' conftest.$ac_ext >&5
41884 ac_header_preproc=no
41887 rm -f conftest.err conftest.$ac_ext
41888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41889 echo "${ECHO_T}$ac_header_preproc" >&6; }
41891 # So? What about this header?
41892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41894 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41895 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41896 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41897 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41898 ac_header_preproc=yes
41901 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41902 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41903 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41904 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41905 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41906 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41907 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41908 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41909 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41910 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41911 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41912 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41916 { echo "$as_me:$LINENO: checking for attr.h" >&5
41917 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41918 if test "${ac_cv_header_attr_h+set}" = set; then
41919 echo $ECHO_N "(cached) $ECHO_C" >&6
41921 ac_cv_header_attr_h=$ac_header_preproc
41923 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41924 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41927 if test $ac_cv_header_attr_h = yes; then
41929 cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_ATTR_H 1
41942 for ac_func in openat fstatat unlinkat fchownat futimesat
41944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41948 echo $ECHO_N "(cached) $ECHO_C" >&6
41950 cat >conftest.$ac_ext <<_ACEOF
41953 cat confdefs.h >>conftest.$ac_ext
41954 cat >>conftest.$ac_ext <<_ACEOF
41955 /* end confdefs.h. */
41956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41958 #define $ac_func innocuous_$ac_func
41960 /* System header to define __stub macros and hopefully few prototypes,
41961 which can conflict with char $ac_func (); below.
41962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41963 <limits.h> exists even on freestanding compilers. */
41966 # include <limits.h>
41968 # include <assert.h>
41973 /* Override any GCC internal prototype to avoid an error.
41974 Use char because int might match the return type of a GCC
41975 builtin and then its argument prototype would still apply. */
41980 /* The GNU C library defines this for functions which it implements
41981 to always fail with ENOSYS. Some functions are actually named
41982 something starting with __ and the normal name is an alias. */
41983 #if defined __stub_$ac_func || defined __stub___$ac_func
41990 return $ac_func ();
41995 rm -f conftest.$ac_objext conftest$ac_exeext
41996 if { (ac_try="$ac_link"
41997 case "(($ac_try" in
41998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41999 *) ac_try_echo=$ac_try;;
42001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42002 (eval "$ac_link") 2>conftest.er1
42004 grep -v '^ *+' conftest.er1 >conftest.err
42006 cat conftest.err >&5
42007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008 (exit $ac_status); } && {
42009 test -z "$ac_c_werror_flag" ||
42010 test ! -s conftest.err
42011 } && test -s conftest$ac_exeext &&
42012 $as_test_x conftest$ac_exeext; then
42013 eval "$as_ac_var=yes"
42015 echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42018 eval "$as_ac_var=no"
42021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42022 conftest$ac_exeext conftest.$ac_ext
42024 ac_res=`eval echo '${'$as_ac_var'}'`
42025 { echo "$as_me:$LINENO: result: $ac_res" >&5
42026 echo "${ECHO_T}$ac_res" >&6; }
42027 if test `eval echo '${'$as_ac_var'}'` = yes; then
42028 cat >>confdefs.h <<_ACEOF
42029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42034 cat >>confdefs.h <<\_ACEOF
42035 #define HAVE_OPENAT
42039 cat >>confdefs.h <<\_ACEOF
42040 #define HAVE_FSTATAT
42044 cat >>confdefs.h <<\_ACEOF
42045 #define HAVE_UNLINKAT
42049 cat >>confdefs.h <<\_ACEOF
42050 #define HAVE_FCHOWNAT
42054 cat >>confdefs.h <<\_ACEOF
42055 #define HAVE_FUTIMESAT
42064 if test $have_xattr = yes; then
42065 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42066 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42067 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42068 echo $ECHO_N "(cached) $ECHO_C" >&6
42070 ac_check_lib_save_LIBS=$LIBS
42071 LIBS="-lnvpair $LIBS"
42072 cat >conftest.$ac_ext <<_ACEOF
42075 cat confdefs.h >>conftest.$ac_ext
42076 cat >>conftest.$ac_ext <<_ACEOF
42077 /* end confdefs.h. */
42079 /* Override any GCC internal prototype to avoid an error.
42080 Use char because int might match the return type of a GCC
42081 builtin and then its argument prototype would still apply. */
42085 char nvlist_next_nvpair ();
42089 return nvlist_next_nvpair ();
42094 rm -f conftest.$ac_objext conftest$ac_exeext
42095 if { (ac_try="$ac_link"
42096 case "(($ac_try" in
42097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42098 *) ac_try_echo=$ac_try;;
42100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42101 (eval "$ac_link") 2>conftest.er1
42103 grep -v '^ *+' conftest.er1 >conftest.err
42105 cat conftest.err >&5
42106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); } && {
42108 test -z "$ac_c_werror_flag" ||
42109 test ! -s conftest.err
42110 } && test -s conftest$ac_exeext &&
42111 $as_test_x conftest$ac_exeext; then
42112 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42114 echo "$as_me: failed program was:" >&5
42115 sed 's/^/| /' conftest.$ac_ext >&5
42117 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42121 conftest$ac_exeext conftest.$ac_ext
42122 LIBS=$ac_check_lib_save_LIBS
42124 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42125 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42126 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42128 FDLIBS="-lnvpair $FDLIBS"
42136 if test $have_xattr = yes; then
42138 cat >>confdefs.h <<\_ACEOF
42146 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42147 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42148 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42149 echo $ECHO_N "(cached) $ECHO_C" >&6
42151 ac_check_lib_save_LIBS=$LIBS
42152 LIBS="-lpthread $LIBS"
42153 cat >conftest.$ac_ext <<_ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42160 /* Override any GCC internal prototype to avoid an error.
42161 Use char because int might match the return type of a GCC
42162 builtin and then its argument prototype would still apply. */
42166 char pthread_create ();
42170 return pthread_create ();
42175 rm -f conftest.$ac_objext conftest$ac_exeext
42176 if { (ac_try="$ac_link"
42177 case "(($ac_try" in
42178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42179 *) ac_try_echo=$ac_try;;
42181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42182 (eval "$ac_link") 2>conftest.er1
42184 grep -v '^ *+' conftest.er1 >conftest.err
42186 cat conftest.err >&5
42187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188 (exit $ac_status); } && {
42189 test -z "$ac_c_werror_flag" ||
42190 test ! -s conftest.err
42191 } && test -s conftest$ac_exeext &&
42192 $as_test_x conftest$ac_exeext; then
42193 ac_cv_lib_pthread_pthread_create=yes
42195 echo "$as_me: failed program was:" >&5
42196 sed 's/^/| /' conftest.$ac_ext >&5
42198 ac_cv_lib_pthread_pthread_create=no
42201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42202 conftest$ac_exeext conftest.$ac_ext
42203 LIBS=$ac_check_lib_save_LIBS
42205 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42206 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42207 if test $ac_cv_lib_pthread_pthread_create = yes; then
42208 PTHREAD_LIB="-lpthread"
42211 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42212 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42213 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42214 echo $ECHO_N "(cached) $ECHO_C" >&6
42216 ac_check_lib_save_LIBS=$LIBS
42217 LIBS="-lpthreads $LIBS"
42218 cat >conftest.$ac_ext <<_ACEOF
42221 cat confdefs.h >>conftest.$ac_ext
42222 cat >>conftest.$ac_ext <<_ACEOF
42223 /* end confdefs.h. */
42225 /* Override any GCC internal prototype to avoid an error.
42226 Use char because int might match the return type of a GCC
42227 builtin and then its argument prototype would still apply. */
42231 char pthread_create ();
42235 return pthread_create ();
42240 rm -f conftest.$ac_objext conftest$ac_exeext
42241 if { (ac_try="$ac_link"
42242 case "(($ac_try" in
42243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244 *) ac_try_echo=$ac_try;;
42246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42247 (eval "$ac_link") 2>conftest.er1
42249 grep -v '^ *+' conftest.er1 >conftest.err
42251 cat conftest.err >&5
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); } && {
42254 test -z "$ac_c_werror_flag" ||
42255 test ! -s conftest.err
42256 } && test -s conftest$ac_exeext &&
42257 $as_test_x conftest$ac_exeext; then
42258 ac_cv_lib_pthreads_pthread_create=yes
42260 echo "$as_me: failed program was:" >&5
42261 sed 's/^/| /' conftest.$ac_ext >&5
42263 ac_cv_lib_pthreads_pthread_create=no
42266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42267 conftest$ac_exeext conftest.$ac_ext
42268 LIBS=$ac_check_lib_save_LIBS
42270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42271 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42272 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42273 PTHREAD_LIB="-lpthreads"
42276 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42277 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42278 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42279 echo $ECHO_N "(cached) $ECHO_C" >&6
42281 ac_check_lib_save_LIBS=$LIBS
42283 cat >conftest.$ac_ext <<_ACEOF
42286 cat confdefs.h >>conftest.$ac_ext
42287 cat >>conftest.$ac_ext <<_ACEOF
42288 /* end confdefs.h. */
42290 /* Override any GCC internal prototype to avoid an error.
42291 Use char because int might match the return type of a GCC
42292 builtin and then its argument prototype would still apply. */
42296 char pthread_create ();
42300 return pthread_create ();
42305 rm -f conftest.$ac_objext conftest$ac_exeext
42306 if { (ac_try="$ac_link"
42307 case "(($ac_try" in
42308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42309 *) ac_try_echo=$ac_try;;
42311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42312 (eval "$ac_link") 2>conftest.er1
42314 grep -v '^ *+' conftest.er1 >conftest.err
42316 cat conftest.err >&5
42317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42318 (exit $ac_status); } && {
42319 test -z "$ac_c_werror_flag" ||
42320 test ! -s conftest.err
42321 } && test -s conftest$ac_exeext &&
42322 $as_test_x conftest$ac_exeext; then
42323 ac_cv_lib_c_r_pthread_create=yes
42325 echo "$as_me: failed program was:" >&5
42326 sed 's/^/| /' conftest.$ac_ext >&5
42328 ac_cv_lib_c_r_pthread_create=no
42331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42332 conftest$ac_exeext conftest.$ac_ext
42333 LIBS=$ac_check_lib_save_LIBS
42335 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42336 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42337 if test $ac_cv_lib_c_r_pthread_create = yes; then
42338 PTHREAD_LIB="-lc_r"
42341 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42342 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42343 if test "${ac_cv_func_pthread_create+set}" = set; then
42344 echo $ECHO_N "(cached) $ECHO_C" >&6
42346 cat >conftest.$ac_ext <<_ACEOF
42349 cat confdefs.h >>conftest.$ac_ext
42350 cat >>conftest.$ac_ext <<_ACEOF
42351 /* end confdefs.h. */
42352 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42354 #define pthread_create innocuous_pthread_create
42356 /* System header to define __stub macros and hopefully few prototypes,
42357 which can conflict with char pthread_create (); below.
42358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42359 <limits.h> exists even on freestanding compilers. */
42362 # include <limits.h>
42364 # include <assert.h>
42367 #undef pthread_create
42369 /* Override any GCC internal prototype to avoid an error.
42370 Use char because int might match the return type of a GCC
42371 builtin and then its argument prototype would still apply. */
42375 char pthread_create ();
42376 /* The GNU C library defines this for functions which it implements
42377 to always fail with ENOSYS. Some functions are actually named
42378 something starting with __ and the normal name is an alias. */
42379 #if defined __stub_pthread_create || defined __stub___pthread_create
42386 return pthread_create ();
42391 rm -f conftest.$ac_objext conftest$ac_exeext
42392 if { (ac_try="$ac_link"
42393 case "(($ac_try" in
42394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42395 *) ac_try_echo=$ac_try;;
42397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42398 (eval "$ac_link") 2>conftest.er1
42400 grep -v '^ *+' conftest.er1 >conftest.err
42402 cat conftest.err >&5
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); } && {
42405 test -z "$ac_c_werror_flag" ||
42406 test ! -s conftest.err
42407 } && test -s conftest$ac_exeext &&
42408 $as_test_x conftest$ac_exeext; then
42409 ac_cv_func_pthread_create=yes
42411 echo "$as_me: failed program was:" >&5
42412 sed 's/^/| /' conftest.$ac_ext >&5
42414 ac_cv_func_pthread_create=no
42417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42418 conftest$ac_exeext conftest.$ac_ext
42420 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42421 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42437 cat >>confdefs.h <<\_ACEOF
42442 CFLAGS=${CFLAGS--O}
42444 if test x$have_gcc = xyes ; then
42445 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42446 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42448 LDFLAGS=${LDFLAGS--O}
42449 DB_LIBS="${SQL_LFLAGS}"
42450 CPPFLAGS="$CPPFLAGS"
42477 PFILES="platforms/Makefile"
42481 hostname=`uname -n | cut -d '.' -f 1`
42482 if test x${hostname} = x ; then
42483 hostname="localhost"
42485 case "$DISTNAME" in
42488 PSCMD="ps -e -o pid,comm"
42489 PFILES="${PFILES} \
42490 platforms/aix/Makefile"
42491 TAPEDRIVE="/dev/rmt0.1"
42495 PTHREAD_LIB="-lpthread -lexc"
42496 if test "${CC}" = "gcc" ; then
42503 TAPEDRIVE="/dev/nrmt0"
42506 DISTVER=`uname -a |awk '{print $3}'`
42507 TAPEDRIVE="/dev/nrmt0"
42508 PTHREAD_LIB="-pthread"
42509 CFLAGS="${CFLAGS} -pthread"
42510 PSCMD="ps -ax -o pid,command"
42513 PFILES="${PFILES} \
42514 platforms/bsdi/Makefile \
42515 platforms/bsdi/bacula-fd \
42516 platforms/bsdi/bacula-sd \
42517 platforms/bsdi/bacula-dir"
42518 largefile_support="yes"
42521 DISTVER=`uname -a |awk '{print $3}'`
42522 TAPEDRIVE="/dev/nrst0"
42524 WCFLAGS="-mwindows"
42525 WLDFLAGS="-mwindows"
42529 TAPEDRIVE="/dev/nst0"
42530 PSCMD="ps -e -o pid,command"
42532 PFILES="${PFILES} \
42533 platforms/darwin/Makefile"
42536 ping -c 1 $hostname 2>&1 1>/dev/null
42537 if test ! $? = 0; then
42538 hostname="localhost"
42540 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42543 DISTVER=`cat /etc/debian_version`
42544 if test -f /etc/lsb-release ; then
42546 if test "x$DISTRIB_ID" != "x" ; then
42547 DISTNAME=$DISTRIB_ID
42549 if test "x$DISTRIB_RELEASE" != "x" ; then
42550 DISTVER=$DISTRIB_RELEASE
42553 if test "$DISTNAME" = "Ubuntu" ; then
42556 TAPEDRIVE="/dev/nst0"
42557 PSCMD="ps -e -o pid,command"
42558 if test "$DISTNAME" = "ubuntu" ; then
42559 PFILES="${PFILES} \
42560 platforms/ubuntu/Makefile \
42561 platforms/ubuntu/bacula-fd \
42562 platforms/ubuntu/bacula-sd \
42563 platforms/ubuntu/bacula-dir"
42565 PFILES="${PFILES} \
42566 platforms/debian/Makefile \
42567 platforms/debian/bacula-fd \
42568 platforms/debian/bacula-sd \
42569 platforms/debian/bacula-dir"
42573 ping -c 1 $hostname 2>&1 1>/dev/null
42574 if test ! $? = 0; then
42575 hostname="localhost"
42577 DISTVER=`uname -a |awk '{print $3}'`
42578 VER=`echo $DISTVER | cut -c 1`
42579 if test x$VER = x4 ; then
42580 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42581 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42585 TAPEDRIVE="/dev/nrsa0"
42586 PSCMD="ps -ax -o pid,command"
42587 PFILES="${PFILES} \
42588 platforms/freebsd/Makefile \
42589 platforms/freebsd/bacula-fd \
42590 platforms/freebsd/bacula-sd \
42591 platforms/freebsd/bacula-dir"
42592 largefile_support="yes"
42595 PSCMD="UNIX95=1; ps -e -o pid,comm"
42596 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42598 TAPEDRIVE="/dev/rmt/0hnb"
42599 PTHREAD_LIB="-lpthread"
42600 cat >>confdefs.h <<\_ACEOF
42601 #define _INCLUDE_LONGLONG 1
42607 TAPEDRIVE="/dev/rmt/0cbn"
42608 PSCMD="ps -e -o pid,comm"
42609 PFILES="${PFILES} \
42610 platforms/irix/Makefile \
42611 platforms/irix/bacula-fd \
42612 platforms/irix/bacula-sd \
42613 platforms/irix/bacula-dir"
42616 DISTVER=`uname -a |awk '{print $3}'`
42619 TAPEDRIVE="/dev/nrst0"
42620 PSCMD="ps -ax -o pid,command"
42621 PTHREAD_LIB="-pthread"
42622 CFLAGS="${CFLAGS} -pthread"
42625 DISTVER=`uname -a |awk '{print $3}'`
42628 TAPEDRIVE="/dev/nrst0"
42629 PSCMD="ps -ax -o pid,command"
42630 PTHREAD_LIB="-pthread"
42631 CFLAGS="${CFLAGS} -pthread"
42632 PFILES="${PFILES} \
42633 platforms/openbsd/Makefile \
42634 platforms/openbsd/bacula-fd \
42635 platforms/openbsd/bacula-sd \
42636 platforms/openbsd/bacula-dir"
42639 ping -c 1 $hostname 2>&1 1>/dev/null
42640 if test ! $? = 0; then
42641 hostname="localhost"
42643 if test -f /etc/whitebox-release ; then
42644 f=/etc/whitebox-release
42646 f=/etc/redhat-release
42648 if test `cat $f | grep release |\
42649 cut -f 3 -d ' '`x = "Enterprise"x ; then
42650 DISTVER="Enterprise "`cat $f | grep release |\
42653 DISTVER=`cat /etc/redhat-release | grep release |\
42656 TAPEDRIVE="/dev/nst0"
42657 PSCMD="ps -e -o pid,command"
42658 PFILES="${PFILES} \
42659 platforms/redhat/Makefile \
42660 platforms/redhat/bacula-fd \
42661 platforms/redhat/bacula-sd \
42662 platforms/redhat/bacula-dir \
42663 platforms/redhat/bacula.spec \
42667 ping -c 1 $hostname 2>&1 1>/dev/null
42668 if test ! $? = 0; then
42669 hostname="localhost"
42671 DISTVER=`cat /etc/mandrake-release | grep release |\
42673 TAPEDRIVE="/dev/nst0"
42674 PSCMD="ps -e -o pid,command"
42675 PFILES="${PFILES} \
42676 platforms/mandrake/Makefile \
42677 platforms/mandrake/bacula-fd \
42678 platforms/mandrake/bacula-sd \
42679 platforms/mandrake/bacula-dir \
42680 platforms/mandrake/bacula.spec \
42684 ping -c 1 $hostname 2>&1 1>/dev/null
42685 if test ! $? = 0; then
42686 hostname="localhost"
42688 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42689 TAPEDRIVE="/dev/nst0"
42690 PSCMD="ps -e -o pid,command"
42691 PFILES="${PFILES} \
42692 platforms/gentoo/Makefile \
42693 platforms/gentoo/bacula-init \
42694 platforms/gentoo/bacula-fd \
42695 platforms/gentoo/bacula-sd \
42696 platforms/gentoo/bacula-dir"
42699 ping -c 1 $hostname 2>&1 1>/dev/null
42700 if test ! $? = 0; then
42701 hostname="localhost"
42703 DISTVER=`cat /etc/slackware-version`
42704 TAPEDRIVE="/dev/nst0"
42705 PSCMD="ps -e -o pid,command"
42706 PFILES="${PFILES} \
42707 platforms/slackware/Makefile \
42708 platforms/slackware/rc.bacula-fd \
42709 platforms/slackware/rc.bacula-sd \
42710 platforms/slackware/rc.bacula-dir\
42711 platforms/slackware/functions.bacula"
42715 TAPEDRIVE="/dev/rmt/0cbn"
42716 PSCMD="ps -e -o pid,comm"
42717 PFILES="${PFILES} \
42718 platforms/solaris/Makefile \
42719 platforms/solaris/bacula-fd \
42720 platforms/solaris/bacula-sd \
42721 platforms/solaris/bacula-dir"
42722 if test x$DISTVER = x5.6 ; then
42723 cat >>confdefs.h <<\_ACEOF
42724 #define HAVE_OLD_SOCKOPT 1
42728 LIBS="$LIBS -lresolv"
42731 ping -c 1 $hostname 2>&1 1>/dev/null
42732 if test ! $? = 0; then
42733 hostname="localhost"
42735 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42737 TAPEDRIVE="/dev/nst0"
42738 PSCMD="ps -e -o pid,command"
42739 PFILES="${PFILES} \
42740 platforms/suse/Makefile \
42741 platforms/suse/bacula-fd \
42742 platforms/suse/bacula-sd \
42743 platforms/suse/bacula-dir \
42744 platforms/suse/bacula \
42745 platforms/suse/bacula.spec"
42748 ping -c 1 $hostname 2>&1 1>/dev/null
42749 if test ! $? = 0; then
42750 hostname="localhost"
42754 TAPEDRIVE="/dev/nst0"
42755 PSCMD="ps -e -o pid,command"
42756 PFILES="${PFILES} \
42757 platforms/suse/Makefile \
42758 platforms/suse/bacula-fd \
42759 platforms/suse/bacula-sd \
42760 platforms/suse/bacula-dir"
42764 TAPEDRIVE="/dev/nst0"
42767 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42773 LIBS="$PTHREAD_LIB $LIBS"
42775 cat >>confdefs.h <<_ACEOF
42779 cat >>confdefs.h <<_ACEOF
42790 MCOMMON=./autoconf/Make.common
42793 if test "x${subsysdir}" = "x${sbindir}" ; then
42796 echo "You have set both --sbindir and --with-subsys-dir"
42797 echo " equal to: ${subsysdir} "
42798 echo "This is not permitted. Please reconfigure."
42800 echo "Aborting configuration ..."
42806 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile 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_sqlite_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 updatedb/update_sqlite_tables_10_to_11 $PFILES"
42808 ac_config_commands="$ac_config_commands default"
42810 cat >confcache <<\_ACEOF
42811 # This file is a shell script that caches the results of configure
42812 # tests run on this system so they can be shared between configure
42813 # scripts and configure runs, see configure's option --config-cache.
42814 # It is not useful on other systems. If it contains results you don't
42815 # want to keep, you may remove or edit it.
42817 # config.status only pays attention to the cache file if you give it
42818 # the --recheck option to rerun configure.
42820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42822 # following values.
42826 # The following way of writing the cache mishandles newlines in values,
42827 # but we know of no workaround that is simple, portable, and efficient.
42828 # So, we kill variables containing newlines.
42829 # Ultrix sh set writes to stderr and can't be redirected directly,
42830 # and sets the high bit in the cache file unless we assign to the vars.
42832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42833 eval ac_val=\$$ac_var
42837 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42841 _ | IFS | as_nl) ;; #(
42842 *) $as_unset $ac_var ;;
42848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42849 *${as_nl}ac_space=\ *)
42850 # `set' does not quote correctly, so add quotes (double-quote
42851 # substitution turns \\\\ into \\, and sed turns \\ into \).
42854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42857 # `set' quotes correctly as required by POSIX, so do not add quotes.
42858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42872 if test -w "$cache_file"; then
42873 test "x$cache_file" != "x/dev/null" &&
42874 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42875 echo "$as_me: updating cache $cache_file" >&6;}
42876 cat confcache >$cache_file
42878 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42879 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42885 # Let make expand exec_prefix.
42886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42888 DEFS=-DHAVE_CONFIG_H
42892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42893 # 1. Remove the extension, and $U if already installed.
42894 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42895 ac_i=`echo "$ac_i" | sed "$ac_script"`
42896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42897 # will be set to the directory where LIBOBJS objects are built.
42898 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42899 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42901 LIBOBJS=$ac_libobjs
42903 LTLIBOBJS=$ac_ltlibobjs
42907 : ${CONFIG_STATUS=./config.status}
42908 ac_clean_files_save=$ac_clean_files
42909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42912 cat >$CONFIG_STATUS <<_ACEOF
42914 # Generated by $as_me.
42915 # Run this file to recreate the current configuration.
42916 # Compiler output produced by configure, useful for debugging
42917 # configure, is in config.log if it exists.
42920 ac_cs_recheck=false
42922 SHELL=\${CONFIG_SHELL-$SHELL}
42925 cat >>$CONFIG_STATUS <<\_ACEOF
42926 ## --------------------- ##
42927 ## M4sh Initialization. ##
42928 ## --------------------- ##
42930 # Be more Bourne compatible
42931 DUALCASE=1; export DUALCASE # for MKS sh
42932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42935 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42936 # is contrary to our usage. Disable this feature.
42937 alias -g '${1+"$@"}'='"$@"'
42938 setopt NO_GLOB_SUBST
42940 case `(set -o) 2>/dev/null` in
42941 *posix*) set -o posix ;;
42950 # Avoid depending upon Character Ranges.
42951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42954 as_cr_digits='0123456789'
42955 as_cr_alnum=$as_cr_Letters$as_cr_digits
42957 # The user is always right.
42958 if test "${PATH_SEPARATOR+set}" != set; then
42959 echo "#! /bin/sh" >conf$$.sh
42960 echo "exit 0" >>conf$$.sh
42962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42970 # Support unset when possible.
42971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42979 # We need space, tab and new line, in precisely that order. Quoting is
42980 # there to prevent editors from complaining about space-tab.
42981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42982 # splitting by setting IFS to empty value.)
42987 # Find who we are. Look in the path if we contain no directory separator.
42989 *[\\/]* ) as_myself=$0 ;;
42990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42991 for as_dir in $PATH
42994 test -z "$as_dir" && as_dir=.
42995 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43001 # We did not find ourselves, most probably we were run as `sh COMMAND'
43002 # in which case we are not to be found in the path.
43003 if test "x$as_myself" = x; then
43006 if test ! -f "$as_myself"; then
43007 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43008 { (exit 1); exit 1; }
43011 # Work around bugs in pre-3.0 UWIN ksh.
43012 for as_var in ENV MAIL MAILPATH
43013 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43021 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43022 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43023 LC_TELEPHONE LC_TIME
43025 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43026 eval $as_var=C; export $as_var
43028 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43032 # Required to use basename.
43033 if expr a : '\(a\)' >/dev/null 2>&1 &&
43034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43041 as_basename=basename
43047 # Name of the executable.
43048 as_me=`$as_basename -- "$0" ||
43049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43050 X"$0" : 'X\(//\)$' \| \
43051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43053 sed '/^.*\/\([^/][^/]*\)\/*$/{
43072 as_lineno_1=$LINENO
43073 as_lineno_2=$LINENO
43074 test "x$as_lineno_1" != "x$as_lineno_2" &&
43075 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43077 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43078 # uniformly replaced by the line number. The first 'sed' inserts a
43079 # line-number line after each line using $LINENO; the second 'sed'
43080 # does the real work. The second script uses 'N' to pair each
43081 # line-number line with the line containing $LINENO, and appends
43082 # trailing '-' during substitution so that $LINENO is not a special
43083 # case at line end.
43084 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43085 # scripts with optimization help from Paolo Bonzini. Blame Lee
43086 # E. McMahon (1931-1989) for sed's syntax. :-)
43098 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43101 ' >$as_me.lineno &&
43102 chmod +x "$as_me.lineno" ||
43103 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43104 { (exit 1); exit 1; }; }
43106 # Don't try to exec as it changes $[0], causing all sort of problems
43107 # (the dirname of $[0] is not the place where we might find the
43108 # original and so on. Autoconf is especially sensitive to this).
43109 . "./$as_me.lineno"
43110 # Exit status is that of the last command.
43115 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43121 ECHO_C= ECHO_N= ECHO_T=
43122 case `echo -n x` in
43124 case `echo 'x\c'` in
43125 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43132 if expr a : '\(a\)' >/dev/null 2>&1 &&
43133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43139 rm -f conf$$ conf$$.exe conf$$.file
43140 if test -d conf$$.dir; then
43141 rm -f conf$$.dir/conf$$.file
43147 if ln -s conf$$.file conf$$ 2>/dev/null; then
43149 # ... but there are two gotchas:
43150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43152 # In both cases, we have to default to `cp -p'.
43153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43155 elif ln conf$$.file conf$$ 2>/dev/null; then
43160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43161 rmdir conf$$.dir 2>/dev/null
43163 if mkdir -p . 2>/dev/null; then
43166 test -d ./-p && rmdir ./-p
43170 if test -x / >/dev/null 2>&1; then
43171 as_test_x='test -x'
43173 if ls -dL / >/dev/null 2>&1; then
43180 if test -d "$1"; then
43186 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43187 ???[sx]*):;;*)false;;esac;fi
43191 as_executable_p=$as_test_x
43193 # Sed expression to map a string onto a valid CPP name.
43194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43196 # Sed expression to map a string onto a valid variable name.
43197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43202 # Save the log message, to keep $[0] and so on meaningful, and to
43203 # report actual input values of CONFIG_FILES etc. instead of their
43204 # values after options handling.
43206 This file was extended by $as_me, which was
43207 generated by GNU Autoconf 2.61. Invocation command line was
43209 CONFIG_FILES = $CONFIG_FILES
43210 CONFIG_HEADERS = $CONFIG_HEADERS
43211 CONFIG_LINKS = $CONFIG_LINKS
43212 CONFIG_COMMANDS = $CONFIG_COMMANDS
43215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43220 cat >>$CONFIG_STATUS <<_ACEOF
43221 # Files that config.status was made for.
43222 config_files="$ac_config_files"
43223 config_headers="$ac_config_headers"
43224 config_commands="$ac_config_commands"
43228 cat >>$CONFIG_STATUS <<\_ACEOF
43230 \`$as_me' instantiates files from templates according to the
43231 current configuration.
43233 Usage: $0 [OPTIONS] [FILE]...
43235 -h, --help print this help, then exit
43236 -V, --version print version number and configuration settings, then exit
43237 -q, --quiet do not print progress messages
43238 -d, --debug don't remove temporary files
43239 --recheck update $as_me by reconfiguring in the same conditions
43240 --file=FILE[:TEMPLATE]
43241 instantiate the configuration file FILE
43242 --header=FILE[:TEMPLATE]
43243 instantiate the configuration header FILE
43245 Configuration files:
43248 Configuration headers:
43251 Configuration commands:
43254 Report bugs to <bug-autoconf@gnu.org>."
43257 cat >>$CONFIG_STATUS <<_ACEOF
43260 configured by $0, generated by GNU Autoconf 2.61,
43261 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43263 Copyright (C) 2006 Free Software Foundation, Inc.
43264 This config.status script is free software; the Free Software Foundation
43265 gives unlimited permission to copy, distribute and modify it."
43272 cat >>$CONFIG_STATUS <<\_ACEOF
43273 # If no file are specified by the user, then we need to provide default
43274 # value. By we need to know if files were specified by the user.
43280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43292 # Handling of the options.
43293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43296 echo "$ac_cs_version"; exit ;;
43297 --debug | --debu | --deb | --de | --d | -d )
43299 --file | --fil | --fi | --f )
43301 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43302 ac_need_defaults=false;;
43303 --header | --heade | --head | --hea )
43305 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43306 ac_need_defaults=false;;
43308 # Conflict between --help and --header
43309 { echo "$as_me: error: ambiguous option: $1
43310 Try \`$0 --help' for more information." >&2
43311 { (exit 1); exit 1; }; };;
43312 --help | --hel | -h )
43313 echo "$ac_cs_usage"; exit ;;
43314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43318 # This is an error.
43319 -*) { echo "$as_me: error: unrecognized option: $1
43320 Try \`$0 --help' for more information." >&2
43321 { (exit 1); exit 1; }; } ;;
43323 *) ac_config_targets="$ac_config_targets $1"
43324 ac_need_defaults=false ;;
43330 ac_configure_extra_args=
43332 if $ac_cs_silent; then
43334 ac_configure_extra_args="$ac_configure_extra_args --silent"
43338 cat >>$CONFIG_STATUS <<_ACEOF
43339 if \$ac_cs_recheck; then
43340 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43341 CONFIG_SHELL=$SHELL
43342 export CONFIG_SHELL
43343 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43347 cat >>$CONFIG_STATUS <<\_ACEOF
43351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43352 ## Running $as_me. ##
43358 cat >>$CONFIG_STATUS <<_ACEOF
43364 # The HP-UX ksh and POSIX shell print the target directory to stdout
43365 # if CDPATH is set.
43366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43368 sed_quote_subst='$sed_quote_subst'
43369 double_quote_subst='$double_quote_subst'
43370 delay_variable_subst='$delay_variable_subst'
43371 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43372 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43373 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43374 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43375 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43376 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43377 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43378 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43379 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43380 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43381 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43382 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43383 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43384 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43385 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43386 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43387 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43388 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43389 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43390 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43391 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43392 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43393 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43394 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43395 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43396 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43397 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43398 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43399 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43400 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43401 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43402 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43403 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43404 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43405 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43406 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43407 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43408 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43409 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43410 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43411 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43412 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43413 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43414 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43415 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"`'
43416 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"`'
43417 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43418 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43419 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43420 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43421 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43422 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43423 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43424 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43425 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43426 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43427 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43428 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43429 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43430 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43431 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43432 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43433 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43434 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43435 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43436 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43437 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43438 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43439 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43440 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43441 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43442 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43443 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43444 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43445 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43446 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43447 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43448 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43449 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43450 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43451 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43452 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43453 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43454 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43455 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43456 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43457 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43458 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43459 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43460 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43461 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43463 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43464 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43465 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43466 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43467 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43468 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43469 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43470 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43471 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43472 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43473 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43474 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43475 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43476 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43477 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43478 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43479 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43480 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43481 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43482 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43483 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43484 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43485 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43486 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43487 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43488 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43489 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43490 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43491 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43492 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43493 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43494 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43495 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43496 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43497 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43498 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43499 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43500 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43501 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43502 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43503 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43504 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43505 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43506 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43507 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43508 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43509 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43510 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43511 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43512 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43513 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43514 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43515 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43516 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43517 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43518 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43519 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43520 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43521 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43522 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43523 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43524 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43525 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43526 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43527 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43528 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43529 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43530 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43531 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43532 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43533 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43534 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43535 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43536 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43537 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43538 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43539 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43540 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43541 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43544 LTCFLAGS='$LTCFLAGS'
43545 compiler='$compiler_DEFAULT'
43547 # Quote evaled strings.
43559 deplibs_check_method \
43568 lt_cv_sys_global_symbol_pipe \
43569 lt_cv_sys_global_symbol_to_cdecl \
43570 lt_cv_sys_global_symbol_to_c_name_address \
43571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43574 lt_prog_compiler_no_builtin_flag \
43575 lt_prog_compiler_wl \
43576 lt_prog_compiler_pic \
43577 lt_prog_compiler_static \
43578 lt_cv_prog_compiler_c_o \
43586 export_dynamic_flag_spec \
43587 whole_archive_flag_spec \
43588 compiler_needs_object \
43590 allow_undefined_flag \
43591 no_undefined_flag \
43592 hardcode_libdir_flag_spec \
43593 hardcode_libdir_flag_spec_ld \
43594 hardcode_libdir_separator \
43599 variables_saved_for_relink \
43601 library_names_spec \
43606 compiler_lib_search_dirs \
43611 compiler_lib_search_path \
43614 lt_prog_compiler_no_builtin_flag_CXX \
43615 lt_prog_compiler_wl_CXX \
43616 lt_prog_compiler_pic_CXX \
43617 lt_prog_compiler_static_CXX \
43618 lt_cv_prog_compiler_c_o_CXX \
43619 export_dynamic_flag_spec_CXX \
43620 whole_archive_flag_spec_CXX \
43621 compiler_needs_object_CXX \
43623 allow_undefined_flag_CXX \
43624 no_undefined_flag_CXX \
43625 hardcode_libdir_flag_spec_CXX \
43626 hardcode_libdir_flag_spec_ld_CXX \
43627 hardcode_libdir_separator_CXX \
43628 fix_srcfile_path_CXX \
43629 exclude_expsyms_CXX \
43630 include_expsyms_CXX \
43631 file_list_spec_CXX \
43632 compiler_lib_search_dirs_CXX \
43633 predep_objects_CXX \
43634 postdep_objects_CXX \
43637 compiler_lib_search_path_CXX; do
43638 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43639 *[\\\\\\\`\\"\\\$]*)
43640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43648 # Double-quote double-evaled strings.
43649 for var in reload_cmds \
43650 old_postinstall_cmds \
43651 old_postuninstall_cmds \
43653 extract_expsyms_cmds \
43654 old_archive_from_new_cmds \
43655 old_archive_from_expsyms_cmds \
43657 archive_expsym_cmds \
43659 module_expsym_cmds \
43660 export_symbols_cmds \
43663 postuninstall_cmds \
43665 sys_lib_search_path_spec \
43666 sys_lib_dlsearch_path_spec \
43667 old_archive_cmds_CXX \
43668 old_archive_from_new_cmds_CXX \
43669 old_archive_from_expsyms_cmds_CXX \
43671 archive_expsym_cmds_CXX \
43673 module_expsym_cmds_CXX \
43674 export_symbols_cmds_CXX \
43675 prelink_cmds_CXX; do
43676 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43677 *[\\\\\\\`\\"\\\$]*)
43678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43686 # Fix-up fallback echo if it was mangled by the above quoting rules.
43688 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43692 ac_aux_dir='$ac_aux_dir'
43693 xsi_shell='$xsi_shell'
43694 lt_shell_append='$lt_shell_append'
43696 # See if we are running on zsh, and set the options which allow our
43697 # commands through without removal of \ escapes INIT.
43698 if test -n "\${ZSH_VERSION+set}" ; then
43699 setopt NO_GLOB_SUBST
43705 TIMESTAMP='$TIMESTAMP'
43713 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43714 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43716 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43717 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43718 LINGUAS="${LINGUAS-%UNSET%}"
43723 cat >>$CONFIG_STATUS <<\_ACEOF
43725 # Handling of arguments.
43726 for ac_config_target in $ac_config_targets
43728 case $ac_config_target in
43729 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43730 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43731 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43732 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43734 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43735 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43736 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43737 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43738 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43739 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43740 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43741 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43742 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43743 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43744 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43745 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43746 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43747 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43748 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43749 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43750 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43751 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43752 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43753 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43754 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43755 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43756 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43757 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43758 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43759 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43760 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43761 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43762 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43763 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43764 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43765 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43766 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43767 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43768 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43769 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43771 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43772 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43773 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43774 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43775 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43776 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43777 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43778 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43779 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43780 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43781 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43782 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43783 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43784 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43785 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43786 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43787 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43788 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43789 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43790 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43791 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43792 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43793 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43794 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43795 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43796 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43797 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43798 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43799 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43800 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43801 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43802 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43803 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43804 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43805 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43806 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43807 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43808 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43809 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43810 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43811 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43812 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43813 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43814 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43815 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43816 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43817 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43818 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43819 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43820 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43821 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43822 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43823 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43824 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43825 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43826 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43827 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43828 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43829 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43830 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43831 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43832 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43833 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43834 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43835 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43836 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43837 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43838 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43839 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43840 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43841 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43842 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43843 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43844 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43845 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43846 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43847 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43848 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43852 { (exit 1); exit 1; }; };;
43857 # If the user did not use the arguments to specify the items to instantiate,
43858 # then the envvar interface is used. Set only those that are not.
43859 # We use the long form for the default assignment because of an extremely
43860 # bizarre bug on SunOS 4.1.3.
43861 if $ac_need_defaults; then
43862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43867 # Have a temporary directory for convenience. Make it in the build tree
43868 # simply because there is no reason against having it here, and in addition,
43869 # creating and moving files from /tmp can sometimes cause problems.
43870 # Hook for its removal unless debugging.
43871 # Note that there is a small window in which the directory will not be cleaned:
43872 # after its creation but before its name has been assigned to `$tmp'.
43876 trap 'exit_status=$?
43877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43879 trap '{ (exit 1); exit 1; }' 1 2 13 15
43881 # Create a (secure) tmp directory for tmp files.
43884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43885 test -n "$tmp" && test -d "$tmp"
43888 tmp=./conf$$-$RANDOM
43889 (umask 077 && mkdir "$tmp")
43892 echo "$me: cannot create a temporary directory in ." >&2
43893 { (exit 1); exit 1; }
43897 # Set up the sed scripts for CONFIG_FILES section.
43900 # No need to generate the scripts if there are no CONFIG_FILES.
43901 # This happens for instance when ./config.status config.h
43902 if test -n "$CONFIG_FILES"; then
43906 # Create sed commands to just substitute file output variables.
43908 # Remaining file output variables are in a fragment that also has non-file
43914 for ac_last_try in false false false false false :; do
43915 cat >conf$$subs.sed <<_ACEOF
43916 SHELL!$SHELL$ac_delim
43917 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43918 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43919 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43920 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43921 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43922 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43923 exec_prefix!$exec_prefix$ac_delim
43924 prefix!$prefix$ac_delim
43925 program_transform_name!$program_transform_name$ac_delim
43926 bindir!$bindir$ac_delim
43927 sbindir!$sbindir$ac_delim
43928 libexecdir!$libexecdir$ac_delim
43929 datarootdir!$datarootdir$ac_delim
43930 datadir!$datadir$ac_delim
43931 sysconfdir!$sysconfdir$ac_delim
43932 sharedstatedir!$sharedstatedir$ac_delim
43933 localstatedir!$localstatedir$ac_delim
43934 includedir!$includedir$ac_delim
43935 oldincludedir!$oldincludedir$ac_delim
43936 docdir!$docdir$ac_delim
43937 infodir!$infodir$ac_delim
43938 htmldir!$htmldir$ac_delim
43939 dvidir!$dvidir$ac_delim
43940 pdfdir!$pdfdir$ac_delim
43941 psdir!$psdir$ac_delim
43942 libdir!$libdir$ac_delim
43943 localedir!$localedir$ac_delim
43944 mandir!$mandir$ac_delim
43945 DEFS!$DEFS$ac_delim
43946 ECHO_C!$ECHO_C$ac_delim
43947 ECHO_N!$ECHO_N$ac_delim
43948 ECHO_T!$ECHO_T$ac_delim
43949 LIBS!$LIBS$ac_delim
43950 build_alias!$build_alias$ac_delim
43951 host_alias!$host_alias$ac_delim
43952 target_alias!$target_alias$ac_delim
43953 BUILD_DIR!$BUILD_DIR$ac_delim
43954 TOP_DIR!$TOP_DIR$ac_delim
43955 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43956 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43957 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43958 TRUEPRG!$TRUEPRG$ac_delim
43959 FALSEPRG!$FALSEPRG$ac_delim
43960 VERSION!$VERSION$ac_delim
43961 DATE!$DATE$ac_delim
43962 LSMDATE!$LSMDATE$ac_delim
43963 BACULA!$BACULA$ac_delim
43964 post_host!$post_host$ac_delim
43966 CFLAGS!$CFLAGS$ac_delim
43967 LDFLAGS!$LDFLAGS$ac_delim
43968 CPPFLAGS!$CPPFLAGS$ac_delim
43969 ac_ct_CC!$ac_ct_CC$ac_delim
43970 EXEEXT!$EXEEXT$ac_delim
43971 OBJEXT!$OBJEXT$ac_delim
43973 CXXFLAGS!$CXXFLAGS$ac_delim
43974 ac_ct_CXX!$ac_ct_CXX$ac_delim
43976 GREP!$GREP$ac_delim
43977 EGREP!$EGREP$ac_delim
43978 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43979 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43980 INSTALL_DATA!$INSTALL_DATA$ac_delim
43982 REMOVE!$REMOVE$ac_delim
43985 ECHO!$ECHO$ac_delim
43989 OPENSSL!$OPENSSL$ac_delim
43992 MKISOFS!$MKISOFS$ac_delim
43993 PYTHON!$PYTHON$ac_delim
43994 GROWISOFS!$GROWISOFS$ac_delim
43995 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43996 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43997 PKGCONFIG!$PKGCONFIG$ac_delim
43998 QMAKE!$QMAKE$ac_delim
43999 QMAKEQT4!$QMAKEQT4$ac_delim
44000 GMAKE!$GMAKE$ac_delim
44001 WXCONFIG!$WXCONFIG$ac_delim
44002 WXFLAGS!$WXFLAGS$ac_delim
44003 CDRECORD!$CDRECORD$ac_delim
44004 PIDOF!$PIDOF$ac_delim
44006 ARFLAGS!$ARFLAGS$ac_delim
44007 MAKE_SHELL!$MAKE_SHELL$ac_delim
44008 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44009 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44012 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44014 elif $ac_last_try; then
44015 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44017 { (exit 1); exit 1; }; }
44019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44024 if test -n "$ac_eof"; then
44025 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44026 ac_eof=`expr $ac_eof + 1`
44029 cat >>$CONFIG_STATUS <<_ACEOF
44030 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44032 /^[ ]*@MCOMMON@[ ]*$/{
44038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44039 s/^/s,@/; s/!/@,|#_!!_#|/
44042 s/'"$ac_delim"'$/,g/; t
44044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44045 ' >>$CONFIG_STATUS <conf$$subs.sed
44046 rm -f conf$$subs.sed
44047 cat >>$CONFIG_STATUS <<_ACEOF
44053 for ac_last_try in false false false false false :; do
44054 cat >conf$$subs.sed <<_ACEOF
44055 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44056 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44057 LIBTOOL!$LIBTOOL$ac_delim
44058 build!$build$ac_delim
44059 build_cpu!$build_cpu$ac_delim
44060 build_vendor!$build_vendor$ac_delim
44061 build_os!$build_os$ac_delim
44062 host!$host$ac_delim
44063 host_cpu!$host_cpu$ac_delim
44064 host_vendor!$host_vendor$ac_delim
44065 host_os!$host_os$ac_delim
44066 FGREP!$FGREP$ac_delim
44068 DUMPBIN!$DUMPBIN$ac_delim
44069 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44071 LN_S!$LN_S$ac_delim
44072 OBJDUMP!$OBJDUMP$ac_delim
44073 STRIP!$STRIP$ac_delim
44074 RANLIB!$RANLIB$ac_delim
44075 lt_ECHO!$lt_ECHO$ac_delim
44076 DSYMUTIL!$DSYMUTIL$ac_delim
44077 NMEDIT!$NMEDIT$ac_delim
44078 LIPO!$LIPO$ac_delim
44079 OTOOL!$OTOOL$ac_delim
44080 OTOOL64!$OTOOL64$ac_delim
44081 CXXCPP!$CXXCPP$ac_delim
44082 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44083 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44084 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44085 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44086 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44087 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44088 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44089 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44090 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44091 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44092 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44093 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44094 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44095 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44096 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44097 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44098 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44099 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44100 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44101 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44102 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44103 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44104 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44105 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44106 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44107 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44108 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44109 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44110 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44111 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44112 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44113 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44114 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44115 SET_MAKE!$SET_MAKE$ac_delim
44116 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44117 USE_NLS!$USE_NLS$ac_delim
44118 MSGFMT!$MSGFMT$ac_delim
44119 GMSGFMT!$GMSGFMT$ac_delim
44120 XGETTEXT!$XGETTEXT$ac_delim
44121 MSGMERGE!$MSGMERGE$ac_delim
44122 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44123 LIBICONV!$LIBICONV$ac_delim
44124 LTLIBICONV!$LTLIBICONV$ac_delim
44125 INTLLIBS!$INTLLIBS$ac_delim
44126 LIBINTL!$LIBINTL$ac_delim
44127 LTLIBINTL!$LTLIBINTL$ac_delim
44128 POSUB!$POSUB$ac_delim
44129 GLIBC2!$GLIBC2$ac_delim
44130 ALLOCA!$ALLOCA$ac_delim
44131 GLIBC21!$GLIBC21$ac_delim
44132 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44133 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44134 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44135 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44136 INTLBISON!$INTLBISON$ac_delim
44137 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44138 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44139 CATOBJEXT!$CATOBJEXT$ac_delim
44140 DATADIRNAME!$DATADIRNAME$ac_delim
44141 INSTOBJEXT!$INSTOBJEXT$ac_delim
44142 GENCAT!$GENCAT$ac_delim
44143 INTLOBJS!$INTLOBJS$ac_delim
44144 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44145 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44146 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44147 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44148 GNOME_LIBS!$GNOME_LIBS$ac_delim
44149 GNOME_DIR!$GNOME_DIR$ac_delim
44150 BAT_DIR!$BAT_DIR$ac_delim
44151 QWT_INC!$QWT_INC$ac_delim
44154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44156 elif $ac_last_try; then
44157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44159 { (exit 1); exit 1; }; }
44161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44166 if test -n "$ac_eof"; then
44167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44168 ac_eof=`expr $ac_eof + 1`
44171 cat >>$CONFIG_STATUS <<_ACEOF
44172 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44177 s/^/s,@/; s/!/@,|#_!!_#|/
44180 s/'"$ac_delim"'$/,g/; t
44182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44183 ' >>$CONFIG_STATUS <conf$$subs.sed
44184 rm -f conf$$subs.sed
44185 cat >>$CONFIG_STATUS <<_ACEOF
44191 for ac_last_try in false false false false false :; do
44192 cat >conf$$subs.sed <<_ACEOF
44193 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44194 QWT_LIB!$QWT_LIB$ac_delim
44196 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44197 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44198 WX_DIR!$WX_DIR$ac_delim
44199 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44200 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44201 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44202 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44203 STATIC_FD!$STATIC_FD$ac_delim
44204 STATIC_SD!$STATIC_SD$ac_delim
44205 STATIC_DIR!$STATIC_DIR$ac_delim
44206 STATIC_CONS!$STATIC_CONS$ac_delim
44207 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44208 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44209 ALL_DIRS!$ALL_DIRS$ac_delim
44210 DIRD_DIR!$DIRD_DIR$ac_delim
44211 DIR_TOOLS!$DIR_TOOLS$ac_delim
44212 STORED_DIR!$STORED_DIR$ac_delim
44213 CONS_INC!$CONS_INC$ac_delim
44214 CONS_OBJ!$CONS_OBJ$ac_delim
44215 CONS_SRC!$CONS_SRC$ac_delim
44216 CONS_LIBS!$CONS_LIBS$ac_delim
44217 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44218 READLINE_SRC!$READLINE_SRC$ac_delim
44219 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44220 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44221 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44222 OPENSSL_INC!$OPENSSL_INC$ac_delim
44223 working_dir!$working_dir$ac_delim
44224 archivedir!$archivedir$ac_delim
44225 scriptdir!$scriptdir$ac_delim
44226 bsrdir!$bsrdir$ac_delim
44227 logdir!$logdir$ac_delim
44228 plugindir!$plugindir$ac_delim
44229 dump_email!$dump_email$ac_delim
44230 job_email!$job_email$ac_delim
44231 smtp_host!$smtp_host$ac_delim
44232 piddir!$piddir$ac_delim
44233 subsysdir!$subsysdir$ac_delim
44234 baseport!$baseport$ac_delim
44235 dir_port!$dir_port$ac_delim
44236 fd_port!$fd_port$ac_delim
44237 sd_port!$sd_port$ac_delim
44238 dir_password!$dir_password$ac_delim
44239 fd_password!$fd_password$ac_delim
44240 sd_password!$sd_password$ac_delim
44241 mon_dir_password!$mon_dir_password$ac_delim
44242 mon_fd_password!$mon_fd_password$ac_delim
44243 mon_sd_password!$mon_sd_password$ac_delim
44244 db_name!$db_name$ac_delim
44245 db_user!$db_user$ac_delim
44246 db_password!$db_password$ac_delim
44247 db_port!$db_port$ac_delim
44248 dir_user!$dir_user$ac_delim
44249 dir_group!$dir_group$ac_delim
44250 sd_user!$sd_user$ac_delim
44251 sd_group!$sd_group$ac_delim
44252 fd_user!$fd_user$ac_delim
44253 fd_group!$fd_group$ac_delim
44254 SBINPERM!$SBINPERM$ac_delim
44255 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44256 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44257 SQL_BINDIR!$SQL_BINDIR$ac_delim
44258 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44259 uncomment_dbi!$uncomment_dbi$ac_delim
44260 DB_PROG!$DB_PROG$ac_delim
44261 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44262 cats!$cats$ac_delim
44263 DB_TYPE!$DB_TYPE$ac_delim
44264 GETCONF!$GETCONF$ac_delim
44265 XMKMF!$XMKMF$ac_delim
44266 X_CFLAGS!$X_CFLAGS$ac_delim
44267 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44268 X_LIBS!$X_LIBS$ac_delim
44269 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44270 LIBOBJS!$LIBOBJS$ac_delim
44271 FDLIBS!$FDLIBS$ac_delim
44272 DEBUG!$DEBUG$ac_delim
44273 DINCLUDE!$DINCLUDE$ac_delim
44274 DLIB!$DLIB$ac_delim
44275 DB_LIBS!$DB_LIBS$ac_delim
44276 WCFLAGS!$WCFLAGS$ac_delim
44277 WLDFLAGS!$WLDFLAGS$ac_delim
44278 WRAPLIBS!$WRAPLIBS$ac_delim
44279 OBJLIST!$OBJLIST$ac_delim
44280 hostname!$hostname$ac_delim
44281 TAPEDRIVE!$TAPEDRIVE$ac_delim
44282 PSCMD!$PSCMD$ac_delim
44283 WIN32!$WIN32$ac_delim
44284 MACOSX!$MACOSX$ac_delim
44285 DISTNAME!$DISTNAME$ac_delim
44286 DISTVER!$DISTVER$ac_delim
44287 LTLIBOBJS!$LTLIBOBJS$ac_delim
44290 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
44292 elif $ac_last_try; then
44293 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44294 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44295 { (exit 1); exit 1; }; }
44297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44301 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44302 if test -n "$ac_eof"; then
44303 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44304 ac_eof=`expr $ac_eof + 1`
44307 cat >>$CONFIG_STATUS <<_ACEOF
44308 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44312 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44313 s/^/s,@/; s/!/@,|#_!!_#|/
44316 s/'"$ac_delim"'$/,g/; t
44318 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44319 ' >>$CONFIG_STATUS <conf$$subs.sed
44320 rm -f conf$$subs.sed
44321 cat >>$CONFIG_STATUS <<_ACEOF
44328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44330 # trailing colons and then remove the whole line if VPATH becomes empty
44331 # (actually we leave an empty line to preserve line numbers).
44332 if test "x$srcdir" = x.; then
44333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44334 s/:*\$(srcdir):*/:/
44335 s/:*\${srcdir}:*/:/
44337 s/^\([^=]*=[ ]*\):*/\1/
44343 cat >>$CONFIG_STATUS <<\_ACEOF
44344 fi # test -n "$CONFIG_FILES"
44347 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44350 :[FHLC]) ac_mode=$ac_tag; continue;;
44352 case $ac_mode$ac_tag in
44354 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44355 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44356 { (exit 1); exit 1; }; };;
44357 :[FH]-) ac_tag=-:-;;
44358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44375 -) ac_f="$tmp/stdin";;
44376 *) # Look for the file first in the build tree, then in the source tree
44377 # (if the path is not absolute). The absolute path cannot be DOS-style,
44378 # because $ac_f cannot contain `:'.
44382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44384 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44385 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44386 { (exit 1); exit 1; }; };;
44388 ac_file_inputs="$ac_file_inputs $ac_f"
44391 # Let's still pretend it is `configure' which instantiates (i.e., don't
44392 # use $as_me), people would be surprised to read:
44393 # /* config.h. Generated by config.status. */
44394 configure_input="Generated from "`IFS=:
44395 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44396 if test x"$ac_file" != x-; then
44397 configure_input="$ac_file. $configure_input"
44398 { echo "$as_me:$LINENO: creating $ac_file" >&5
44399 echo "$as_me: creating $ac_file" >&6;}
44403 *:-:* | *:-) cat >"$tmp/stdin";;
44408 ac_dir=`$as_dirname -- "$ac_file" ||
44409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44410 X"$ac_file" : 'X\(//\)[^/]' \| \
44411 X"$ac_file" : 'X\(//\)$' \| \
44412 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44418 /^X\(\/\/\)[^/].*/{
44433 -*) as_dir=./$as_dir;;
44435 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44439 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44440 *) as_qdir=$as_dir;;
44442 as_dirs="'$as_qdir' $as_dirs"
44443 as_dir=`$as_dirname -- "$as_dir" ||
44444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44445 X"$as_dir" : 'X\(//\)[^/]' \| \
44446 X"$as_dir" : 'X\(//\)$' \| \
44447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44453 /^X\(\/\/\)[^/].*/{
44466 test -d "$as_dir" && break
44468 test -z "$as_dirs" || eval "mkdir $as_dirs"
44469 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44470 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44471 { (exit 1); exit 1; }; }; }
44475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44478 # A ".." for each directory in $ac_dir_suffix.
44479 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44480 case $ac_top_builddir_sub in
44481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44485 ac_abs_top_builddir=$ac_pwd
44486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44487 # for backward compatibility:
44488 ac_top_builddir=$ac_top_build_prefix
44491 .) # We are building in place.
44493 ac_top_srcdir=$ac_top_builddir_sub
44494 ac_abs_top_srcdir=$ac_pwd ;;
44495 [\\/]* | ?:[\\/]* ) # Absolute name.
44496 ac_srcdir=$srcdir$ac_dir_suffix;
44497 ac_top_srcdir=$srcdir
44498 ac_abs_top_srcdir=$srcdir ;;
44499 *) # Relative name.
44500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44501 ac_top_srcdir=$ac_top_build_prefix$srcdir
44502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44519 cat >>$CONFIG_STATUS <<\_ACEOF
44520 # If the template does not know about datarootdir, expand it.
44521 # FIXME: This hack should be removed a few years after 2.60.
44522 ac_datarootdir_hack=; ac_datarootdir_seen=
44524 case `sed -n '/datarootdir/ {
44533 ' $ac_file_inputs` in
44534 *datarootdir*) ac_datarootdir_seen=yes;;
44535 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44536 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44537 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44539 cat >>$CONFIG_STATUS <<_ACEOF
44540 ac_datarootdir_hack='
44541 s&@datadir@&$datadir&g
44542 s&@docdir@&$docdir&g
44543 s&@infodir@&$infodir&g
44544 s&@localedir@&$localedir&g
44545 s&@mandir@&$mandir&g
44546 s&\\\${datarootdir}&$datarootdir&g' ;;
44550 # Neutralize VPATH when `$srcdir' = `.'.
44551 # Shell code in configure.ac might set extrasub.
44552 # FIXME: do we really want to maintain this feature?
44553 cat >>$CONFIG_STATUS <<_ACEOF
44557 cat >>$CONFIG_STATUS <<\_ACEOF
44559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44560 s&@configure_input@&$configure_input&;t t
44561 s&@top_builddir@&$ac_top_builddir_sub&;t t
44562 s&@srcdir@&$ac_srcdir&;t t
44563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44564 s&@top_srcdir@&$ac_top_srcdir&;t t
44565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44566 s&@builddir@&$ac_builddir&;t t
44567 s&@abs_builddir@&$ac_abs_builddir&;t t
44568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44569 s&@INSTALL@&$ac_INSTALL&;t t
44570 $ac_datarootdir_hack
44571 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44576 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44577 which seems to be undefined. Please make sure it is defined." >&5
44578 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44579 which seems to be undefined. Please make sure it is defined." >&2;}
44583 -) cat "$tmp/out"; rm -f "$tmp/out";;
44584 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44593 # Transform confdefs.h into a sed script `conftest.defines', that
44594 # substitutes the proper values into config.h.in to produce config.h.
44595 rm -f conftest.defines conftest.tail
44596 # First, append a space to every undef/define line, to ease matching.
44597 echo 's/$/ /' >conftest.defines
44598 # Then, protect against being on the right side of a sed subst, or in
44599 # an unquoted here document, in config.status. If some macros were
44600 # called several times there might be several #defines for the same
44601 # symbol, which is useless. But do not sort them, since the last
44602 # AC_DEFINE must be honored.
44603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44604 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44605 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44606 # PARAMS is the parameter list in the macro definition--in most cases, it's
44607 # just an empty string.
44608 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44609 ac_dB='\\)[ (].*,\\1define\\2'
44617 s/^[ ]*#[ ]*define[ ][ ]*//
44622 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44623 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44624 ' >>conftest.defines
44626 # Remove the space that was appended to ease matching.
44627 # Then replace #undef with comments. This is necessary, for
44628 # example, in the case of _POSIX_SOURCE, which is predefined and required
44629 # on some systems where configure will not decide to define it.
44630 # (The regexp can be short, since the line contains either #define or #undef.)
44632 s,^[ #]*u.*,/* & */,' >>conftest.defines
44634 # Break up conftest.defines:
44635 ac_max_sed_lines=50
44637 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44638 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44639 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44641 ac_in='$ac_file_inputs'
44642 ac_out='"$tmp/out1"'
44643 ac_nxt='"$tmp/out2"'
44647 # Write a here document:
44648 cat >>$CONFIG_STATUS <<_ACEOF
44649 # First, check the format of the line:
44650 cat >"\$tmp/defines.sed" <<\\CEOF
44651 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44652 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44656 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44658 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44659 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44660 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44661 grep . conftest.tail >/dev/null || break
44662 rm -f conftest.defines
44663 mv conftest.tail conftest.defines
44665 rm -f conftest.defines conftest.tail
44667 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44668 cat >>$CONFIG_STATUS <<\_ACEOF
44669 if test x"$ac_file" != x-; then
44670 echo "/* $configure_input */" >"$tmp/config.h"
44671 cat "$ac_result" >>"$tmp/config.h"
44672 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44674 echo "$as_me: $ac_file is unchanged" >&6;}
44677 mv "$tmp/config.h" $ac_file
44680 echo "/* $configure_input */"
44686 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44687 echo "$as_me: executing $ac_file commands" >&6;}
44692 case $ac_file$ac_mode in
44695 # See if we are running on zsh, and set the options which allow our
44696 # commands through without removal of \ escapes.
44697 if test -n "${ZSH_VERSION+set}" ; then
44698 setopt NO_GLOB_SUBST
44701 cfgfile="${ofile}T"
44702 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44705 cat <<_LT_EOF >> "$cfgfile"
44708 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44709 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44711 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44713 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44714 # 2006, 2007, 2008 Free Software Foundation, Inc.
44715 # Written by Gordon Matzigkeit, 1996
44717 # This file is part of GNU Libtool.
44719 # GNU Libtool is free software; you can redistribute it and/or
44720 # modify it under the terms of the GNU General Public License as
44721 # published by the Free Software Foundation; either version 2 of
44722 # the License, or (at your option) any later version.
44724 # As a special exception to the GNU General Public License,
44725 # if you distribute this file as part of a program or library that
44726 # is built using GNU Libtool, you may include this file under the
44727 # same distribution terms that you use for the rest of that program.
44729 # GNU Libtool is distributed in the hope that it will be useful,
44730 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44732 # GNU General Public License for more details.
44734 # You should have received a copy of the GNU General Public License
44735 # along with GNU Libtool; see the file COPYING. If not, a copy
44736 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44737 # obtained by writing to the Free Software Foundation, Inc.,
44738 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44741 # The names of the tagged configurations supported by this script.
44742 available_tags="CXX "
44744 # ### BEGIN LIBTOOL CONFIG
44746 # Which release of libtool.m4 was used?
44747 macro_version=$macro_version
44748 macro_revision=$macro_revision
44750 # Whether or not to build shared libraries.
44751 build_libtool_libs=$enable_shared
44753 # Whether or not to build static libraries.
44754 build_old_libs=$enable_static
44756 # What type of objects to build.
44759 # Whether or not to optimize for fast installation.
44760 fast_install=$enable_fast_install
44763 host_alias=$host_alias
44767 # The build system.
44768 build_alias=$build_alias
44772 # A sed program that does not truncate output.
44775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44776 Xsed="\$SED -e 1s/^X//"
44778 # A grep program that handles long lines.
44784 # A literal string matcher.
44787 # A BSD- or MS-compatible name lister.
44790 # Whether we need soft or hard links.
44793 # What is the maximum length of a command?
44794 max_cmd_len=$max_cmd_len
44796 # Object file suffix (normally "o").
44799 # Executable file suffix (normally "").
44802 # whether the shell understands "unset".
44805 # turn spaces into newlines.
44808 # turn newlines into spaces.
44811 # How to create reloadable object files.
44812 reload_flag=$lt_reload_flag
44813 reload_cmds=$lt_reload_cmds
44815 # An object symbol dumper.
44816 OBJDUMP=$lt_OBJDUMP
44818 # Method to check whether dependent libraries are shared objects.
44819 deplibs_check_method=$lt_deplibs_check_method
44821 # Command to use when deplibs_check_method == "file_magic".
44822 file_magic_cmd=$lt_file_magic_cmd
44826 AR_FLAGS=$lt_AR_FLAGS
44828 # A symbol stripping program.
44831 # Commands used to install an old-style archive.
44833 old_postinstall_cmds=$lt_old_postinstall_cmds
44834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44839 # LTCC compiler flags.
44840 LTCFLAGS=$lt_CFLAGS
44842 # Take the output of nm and produce a listing of raw symbols and C names.
44843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44845 # Transform the output of nm in a proper C declaration.
44846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44848 # Transform the output of nm in a C name address pair.
44849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44851 # Transform the output of nm in a C name address pair when lib prefix is needed.
44852 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44854 # The name of the directory that contains temporary libtool files.
44857 # Shell to use when invoking shell scripts.
44860 # An echo program that does not interpret backslashes.
44863 # Used to examine libraries when file_magic_cmd begins with "file".
44864 MAGIC_CMD=$MAGIC_CMD
44866 # Must we lock files when doing compilation?
44867 need_locks=$lt_need_locks
44869 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44870 DSYMUTIL=$lt_DSYMUTIL
44872 # Tool to change global to local symbols on Mac OS X.
44875 # Tool to manipulate fat objects and archives on Mac OS X.
44878 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44881 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44882 OTOOL64=$lt_OTOOL64
44884 # Old archive suffix (normally "a").
44887 # Shared library suffix (normally ".so").
44888 shrext_cmds=$lt_shrext_cmds
44890 # The commands to extract the exported symbol list from a shared archive.
44891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44893 # Variables whose values should be saved in libtool wrapper scripts and
44894 # restored at link time.
44895 variables_saved_for_relink=$lt_variables_saved_for_relink
44897 # Do we need the "lib" prefix for modules?
44898 need_lib_prefix=$need_lib_prefix
44900 # Do we need a version for libraries?
44901 need_version=$need_version
44903 # Library versioning type.
44904 version_type=$version_type
44906 # Shared library runtime path variable.
44907 runpath_var=$runpath_var
44909 # Shared library path variable.
44910 shlibpath_var=$shlibpath_var
44912 # Is shlibpath searched before the hard-coded library search path?
44913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44915 # Format of library name prefix.
44916 libname_spec=$lt_libname_spec
44918 # List of archive names. First name is the real one, the rest are links.
44919 # The last name is the one that the linker finds with -lNAME
44920 library_names_spec=$lt_library_names_spec
44922 # The coded name of the library, if different from the real name.
44923 soname_spec=$lt_soname_spec
44925 # Command to use after installation of a shared archive.
44926 postinstall_cmds=$lt_postinstall_cmds
44928 # Command to use after uninstallation of a shared archive.
44929 postuninstall_cmds=$lt_postuninstall_cmds
44931 # Commands used to finish a libtool library installation in a directory.
44932 finish_cmds=$lt_finish_cmds
44934 # As "finish_cmds", except a single script fragment to be evaled but
44936 finish_eval=$lt_finish_eval
44938 # Whether we should hardcode library paths into libraries.
44939 hardcode_into_libs=$hardcode_into_libs
44941 # Compile-time system search path for libraries.
44942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44944 # Run-time system search path for libraries.
44945 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44947 # Whether dlopen is supported.
44948 dlopen_support=$enable_dlopen
44950 # Whether dlopen of programs is supported.
44951 dlopen_self=$enable_dlopen_self
44953 # Whether dlopen of statically linked programs is supported.
44954 dlopen_self_static=$enable_dlopen_self_static
44956 # Commands to strip libraries.
44957 old_striplib=$lt_old_striplib
44958 striplib=$lt_striplib
44961 # The linker used to build libraries.
44964 # Commands used to build an old-style archive.
44965 old_archive_cmds=$lt_old_archive_cmds
44967 # A language specific compiler.
44970 # Is the compiler the GNU compiler?
44973 # Compiler flag to turn off builtin functions.
44974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44976 # How to pass a linker flag through the compiler.
44977 wl=$lt_lt_prog_compiler_wl
44979 # Additional compiler flags for building library objects.
44980 pic_flag=$lt_lt_prog_compiler_pic
44982 # Compiler flag to prevent dynamic linking.
44983 link_static_flag=$lt_lt_prog_compiler_static
44985 # Does compiler simultaneously support -c and -o options?
44986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44988 # Whether or not to add -lc for building shared libraries.
44989 build_libtool_need_lc=$archive_cmds_need_lc
44991 # Whether or not to disallow shared libs when runtime libs are static.
44992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44994 # Compiler flag to allow reflexive dlopens.
44995 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44997 # Compiler flag to generate shared objects directly from archives.
44998 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45000 # Whether the compiler copes with passing no objects directly.
45001 compiler_needs_object=$lt_compiler_needs_object
45003 # Create an old-style archive from a shared archive.
45004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45006 # Create a temporary old-style archive to link instead of a shared archive.
45007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45009 # Commands used to build a shared archive.
45010 archive_cmds=$lt_archive_cmds
45011 archive_expsym_cmds=$lt_archive_expsym_cmds
45013 # Commands used to build a loadable module if different from building
45014 # a shared archive.
45015 module_cmds=$lt_module_cmds
45016 module_expsym_cmds=$lt_module_expsym_cmds
45018 # Whether we are building with GNU ld or not.
45019 with_gnu_ld=$lt_with_gnu_ld
45021 # Flag that allows shared libraries with undefined symbols to be built.
45022 allow_undefined_flag=$lt_allow_undefined_flag
45024 # Flag that enforces no undefined symbols.
45025 no_undefined_flag=$lt_no_undefined_flag
45027 # Flag to hardcode \$libdir into a binary during linking.
45028 # This must work even if \$libdir does not exist
45029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45031 # If ld is used when linking, flag to hardcode \$libdir into a binary
45032 # during linking. This must work even if \$libdir does not exist.
45033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45035 # Whether we need a single "-rpath" flag with a separated argument.
45036 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45039 # DIR into the resulting binary.
45040 hardcode_direct=$hardcode_direct
45042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45043 # DIR into the resulting binary and the resulting library dependency is
45044 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45045 # library is relocated.
45046 hardcode_direct_absolute=$hardcode_direct_absolute
45048 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45049 # into the resulting binary.
45050 hardcode_minus_L=$hardcode_minus_L
45052 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45053 # into the resulting binary.
45054 hardcode_shlibpath_var=$hardcode_shlibpath_var
45056 # Set to "yes" if building a shared library automatically hardcodes DIR
45057 # into the library and all subsequent libraries and executables linked
45059 hardcode_automatic=$hardcode_automatic
45061 # Set to yes if linker adds runtime paths of dependent libraries
45062 # to runtime path list.
45063 inherit_rpath=$inherit_rpath
45065 # Whether libtool must link a program against all its dependency libraries.
45066 link_all_deplibs=$link_all_deplibs
45068 # Fix the shell variable \$srcfile for the compiler.
45069 fix_srcfile_path=$lt_fix_srcfile_path
45071 # Set to "yes" if exported symbols are required.
45072 always_export_symbols=$always_export_symbols
45074 # The commands to list exported symbols.
45075 export_symbols_cmds=$lt_export_symbols_cmds
45077 # Symbols that should not be listed in the preloaded symbols.
45078 exclude_expsyms=$lt_exclude_expsyms
45080 # Symbols that must always be exported.
45081 include_expsyms=$lt_include_expsyms
45083 # Commands necessary for linking programs (against libraries) with templates.
45084 prelink_cmds=$lt_prelink_cmds
45086 # Specify filename containing input files.
45087 file_list_spec=$lt_file_list_spec
45089 # How to hardcode a shared library path into an executable.
45090 hardcode_action=$hardcode_action
45092 # The directories searched by this compiler when creating a shared library.
45093 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45095 # Dependencies to place before and after the objects being linked to
45096 # create a shared library.
45097 predep_objects=$lt_predep_objects
45098 postdep_objects=$lt_postdep_objects
45099 predeps=$lt_predeps
45100 postdeps=$lt_postdeps
45102 # The library search path used internally by the compiler when linking
45103 # a shared library.
45104 compiler_lib_search_path=$lt_compiler_lib_search_path
45106 # ### END LIBTOOL CONFIG
45112 cat <<\_LT_EOF >> "$cfgfile"
45113 # AIX sometimes has problems with the GCC collect2 program. For some
45114 # reason, if we set the COLLECT_NAMES environment variable, the problems
45115 # vanish in a puff of smoke.
45116 if test "X${COLLECT_NAMES+set}" != Xset; then
45118 export COLLECT_NAMES
45125 ltmain="$ac_aux_dir/ltmain.sh"
45128 # We use sed instead of cat because bash on DJGPP gets confused if
45129 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45130 # text mode, it properly converts lines to CR/LF. This bash problem
45131 # is reportedly fixed, but why not run on old versions too?
45132 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45133 || (rm -f "$cfgfile"; exit 1)
45137 cat << \_LT_EOF >> "$cfgfile"
45139 # func_dirname file append nondir_replacement
45140 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45141 # otherwise set result to NONDIR_REPLACEMENT.
45145 */*) func_dirname_result="${1%/*}${2}" ;;
45146 * ) func_dirname_result="${3}" ;;
45150 # func_basename file
45153 func_basename_result="${1##*/}"
45156 # func_dirname_and_basename file append nondir_replacement
45157 # perform func_basename and func_dirname in a single function
45159 # dirname: Compute the dirname of FILE. If nonempty,
45160 # add APPEND to the result, otherwise set result
45161 # to NONDIR_REPLACEMENT.
45162 # value returned in "$func_dirname_result"
45163 # basename: Compute filename of FILE.
45164 # value retuned in "$func_basename_result"
45165 # Implementation must be kept synchronized with func_dirname
45166 # and func_basename. For efficiency, we do not delegate to
45167 # those functions but instead duplicate the functionality here.
45168 func_dirname_and_basename ()
45171 */*) func_dirname_result="${1%/*}${2}" ;;
45172 * ) func_dirname_result="${3}" ;;
45174 func_basename_result="${1##*/}"
45177 # func_stripname prefix suffix name
45178 # strip PREFIX and SUFFIX off of NAME.
45179 # PREFIX and SUFFIX must not contain globbing or regex special
45180 # characters, hashes, percent signs, but SUFFIX may contain a leading
45181 # dot (in which case that matches only a dot).
45184 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45185 # positional parameters, so assign one to ordinary parameter first.
45186 func_stripname_result=${3}
45187 func_stripname_result=${func_stripname_result#"${1}"}
45188 func_stripname_result=${func_stripname_result%"${2}"}
45194 func_opt_split_opt=${1%%=*}
45195 func_opt_split_arg=${1#*=}
45202 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45203 *) func_lo2o_result=${1} ;;
45207 # func_xform libobj-or-source
45210 func_xform_result=${1%.*}.lo
45213 # func_arith arithmetic-term...
45216 func_arith_result=$(( $* ))
45220 # STRING may not start with a hyphen.
45223 func_len_result=${#1}
45228 *) # Bourne compatible functions.
45229 cat << \_LT_EOF >> "$cfgfile"
45231 # func_dirname file append nondir_replacement
45232 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45233 # otherwise set result to NONDIR_REPLACEMENT.
45236 # Extract subdirectory from the argument.
45237 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45238 if test "X$func_dirname_result" = "X${1}"; then
45239 func_dirname_result="${3}"
45241 func_dirname_result="$func_dirname_result${2}"
45245 # func_basename file
45248 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45252 # func_stripname prefix suffix name
45253 # strip PREFIX and SUFFIX off of NAME.
45254 # PREFIX and SUFFIX must not contain globbing or regex special
45255 # characters, hashes, percent signs, but SUFFIX may contain a leading
45256 # dot (in which case that matches only a dot).
45257 # func_strip_suffix prefix name
45261 .*) func_stripname_result=`$ECHO "X${3}" \
45262 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45263 *) func_stripname_result=`$ECHO "X${3}" \
45264 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45269 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45270 my_sed_long_arg='1s/^-[^=]*=//'
45275 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45276 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45282 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45285 # func_xform libobj-or-source
45288 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45291 # func_arith arithmetic-term...
45294 func_arith_result=`expr "$@"`
45298 # STRING may not start with a hyphen.
45301 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45307 case $lt_shell_append in
45309 cat << \_LT_EOF >> "$cfgfile"
45311 # func_append var value
45312 # Append VALUE to the end of shell variable VAR.
45320 cat << \_LT_EOF >> "$cfgfile"
45322 # func_append var value
45323 # Append VALUE to the end of shell variable VAR.
45334 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45335 || (rm -f "$cfgfile"; exit 1)
45337 mv -f "$cfgfile" "$ofile" ||
45338 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45342 cat <<_LT_EOF >> "$ofile"
45344 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45346 # The linker used to build libraries.
45349 # Commands used to build an old-style archive.
45350 old_archive_cmds=$lt_old_archive_cmds_CXX
45352 # A language specific compiler.
45353 CC=$lt_compiler_CXX
45355 # Is the compiler the GNU compiler?
45358 # Compiler flag to turn off builtin functions.
45359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45361 # How to pass a linker flag through the compiler.
45362 wl=$lt_lt_prog_compiler_wl_CXX
45364 # Additional compiler flags for building library objects.
45365 pic_flag=$lt_lt_prog_compiler_pic_CXX
45367 # Compiler flag to prevent dynamic linking.
45368 link_static_flag=$lt_lt_prog_compiler_static_CXX
45370 # Does compiler simultaneously support -c and -o options?
45371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45373 # Whether or not to add -lc for building shared libraries.
45374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45376 # Whether or not to disallow shared libs when runtime libs are static.
45377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45379 # Compiler flag to allow reflexive dlopens.
45380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45382 # Compiler flag to generate shared objects directly from archives.
45383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45385 # Whether the compiler copes with passing no objects directly.
45386 compiler_needs_object=$lt_compiler_needs_object_CXX
45388 # Create an old-style archive from a shared archive.
45389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45391 # Create a temporary old-style archive to link instead of a shared archive.
45392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45394 # Commands used to build a shared archive.
45395 archive_cmds=$lt_archive_cmds_CXX
45396 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45398 # Commands used to build a loadable module if different from building
45399 # a shared archive.
45400 module_cmds=$lt_module_cmds_CXX
45401 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45403 # Whether we are building with GNU ld or not.
45404 with_gnu_ld=$lt_with_gnu_ld_CXX
45406 # Flag that allows shared libraries with undefined symbols to be built.
45407 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45409 # Flag that enforces no undefined symbols.
45410 no_undefined_flag=$lt_no_undefined_flag_CXX
45412 # Flag to hardcode \$libdir into a binary during linking.
45413 # This must work even if \$libdir does not exist
45414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45416 # If ld is used when linking, flag to hardcode \$libdir into a binary
45417 # during linking. This must work even if \$libdir does not exist.
45418 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45420 # Whether we need a single "-rpath" flag with a separated argument.
45421 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45424 # DIR into the resulting binary.
45425 hardcode_direct=$hardcode_direct_CXX
45427 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45428 # DIR into the resulting binary and the resulting library dependency is
45429 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45430 # library is relocated.
45431 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45433 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45434 # into the resulting binary.
45435 hardcode_minus_L=$hardcode_minus_L_CXX
45437 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45438 # into the resulting binary.
45439 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45441 # Set to "yes" if building a shared library automatically hardcodes DIR
45442 # into the library and all subsequent libraries and executables linked
45444 hardcode_automatic=$hardcode_automatic_CXX
45446 # Set to yes if linker adds runtime paths of dependent libraries
45447 # to runtime path list.
45448 inherit_rpath=$inherit_rpath_CXX
45450 # Whether libtool must link a program against all its dependency libraries.
45451 link_all_deplibs=$link_all_deplibs_CXX
45453 # Fix the shell variable \$srcfile for the compiler.
45454 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45456 # Set to "yes" if exported symbols are required.
45457 always_export_symbols=$always_export_symbols_CXX
45459 # The commands to list exported symbols.
45460 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45462 # Symbols that should not be listed in the preloaded symbols.
45463 exclude_expsyms=$lt_exclude_expsyms_CXX
45465 # Symbols that must always be exported.
45466 include_expsyms=$lt_include_expsyms_CXX
45468 # Commands necessary for linking programs (against libraries) with templates.
45469 prelink_cmds=$lt_prelink_cmds_CXX
45471 # Specify filename containing input files.
45472 file_list_spec=$lt_file_list_spec_CXX
45474 # How to hardcode a shared library path into an executable.
45475 hardcode_action=$hardcode_action_CXX
45477 # The directories searched by this compiler when creating a shared library.
45478 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45480 # Dependencies to place before and after the objects being linked to
45481 # create a shared library.
45482 predep_objects=$lt_predep_objects_CXX
45483 postdep_objects=$lt_postdep_objects_CXX
45484 predeps=$lt_predeps_CXX
45485 postdeps=$lt_postdeps_CXX
45487 # The library search path used internally by the compiler when linking
45488 # a shared library.
45489 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45491 # ### END LIBTOOL TAG CONFIG: CXX
45496 for ac_file in $CONFIG_FILES; do
45497 # Support "outfile[:infile[:infile...]]"
45499 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45501 # PO directories have a Makefile.in generated from Makefile.in.in.
45502 case "$ac_file" in */Makefile.in)
45503 # Adjust a relative srcdir.
45504 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45505 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45506 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45507 # In autoconf-2.13 it is called $ac_given_srcdir.
45508 # In autoconf-2.50 it is called $srcdir.
45509 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45510 case "$ac_given_srcdir" in
45511 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45512 /*) top_srcdir="$ac_given_srcdir" ;;
45513 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45515 # Treat a directory as a PO directory if and only if it has a
45516 # POTFILES.in file. This allows packages to have multiple PO
45517 # directories under different names or in different locations.
45518 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45519 rm -f "$ac_dir/POTFILES"
45520 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45521 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45522 POMAKEFILEDEPS="POTFILES.in"
45523 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45524 # on $ac_dir but don't depend on user-specified configuration
45526 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45527 # The LINGUAS file contains the set of available languages.
45528 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45529 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45531 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45532 # Hide the ALL_LINGUAS assigment from automake.
45533 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45534 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45536 # The set of available languages was given in configure.in.
45537 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45540 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45541 # Compute UPDATEPOFILES
45542 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45543 # Compute DUMMYPOFILES
45544 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45546 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45547 case "$ac_given_srcdir" in
45549 *) srcdirpre='$(srcdir)/' ;;
45555 for lang in $ALL_LINGUAS; do
45556 POFILES="$POFILES $srcdirpre$lang.po"
45557 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45558 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45559 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45561 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45562 # environment variable.
45564 if test -n "$ALL_LINGUAS"; then
45565 for presentlang in $ALL_LINGUAS; do
45567 if test "%UNSET%" != "$LINGUAS"; then
45568 desiredlanguages="$LINGUAS"
45570 desiredlanguages="$ALL_LINGUAS"
45572 for desiredlang in $desiredlanguages; do
45573 # Use the presentlang catalog if desiredlang is
45574 # a. equal to presentlang, or
45575 # b. a variant of presentlang (because in this case,
45576 # presentlang can be used as a fallback for messages
45577 # which are not translated in the desiredlang catalog).
45578 case "$desiredlang" in
45579 "$presentlang"*) useit=yes;;
45582 if test $useit = yes; then
45583 INST_LINGUAS="$INST_LINGUAS $presentlang"
45588 if test -n "$INST_LINGUAS"; then
45589 for lang in $INST_LINGUAS; do
45590 CATALOGS="$CATALOGS $lang.gmo"
45593 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45594 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"
45595 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45596 if test -f "$f"; then
45598 *.orig | *.bak | *~) ;;
45599 *) cat "$f" >> "$ac_dir/Makefile" ;;
45614 { (exit 0); exit 0; }
45616 chmod +x $CONFIG_STATUS
45617 ac_clean_files=$ac_clean_files_save
45620 # configure is writing to config.log, and then calls config.status.
45621 # config.status does its own redirection, appending to config.log.
45622 # Unfortunately, on DOS this fails, as config.log is still kept open
45623 # by configure, so config.status won't be able to write to it; its
45624 # output is simply discarded. So we exec the FD to /dev/null,
45625 # effectively closing config.log, so it can be properly (re)opened and
45626 # appended to by config.status. When coming back to configure, we
45627 # need to make the FD available again.
45628 if test "$no_create" != yes; then
45630 ac_config_status_args=
45631 test "$silent" = yes &&
45632 ac_config_status_args="$ac_config_status_args --quiet"
45634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45637 # would make configure fail if this is the last instruction.
45638 $ac_cs_success || { (exit 1); exit 1; }
45642 if test "${support_bat}" = "yes" ; then
45643 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45644 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45650 if test "x$QMAKEQT4" != "xnone"; then
45655 echo "Creating bat Makefile"
45661 if test X"$GCC" = "Xyes" ; then
45662 echo "Doing make of dependencies"
45663 ${MAKE:-make} depend
45667 chmod 755 install_conf_file build-depkgs-qt-console
45671 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45672 chmod 755 dvd-handler dvd-simulator
45673 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45677 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45678 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45682 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45683 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45685 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45686 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45688 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45689 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45691 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45692 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45694 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45695 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45697 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45698 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45700 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45701 chmod 755 $c/sqlite
45704 chmod 755 src/win32/build-depkgs-mingw32
45706 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45707 largefile_support="yes"
45710 if test X"$GCC" = "Xyes" ; then
45711 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45712 if test "x${CCVERSION}" = "x" ; then
45713 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45715 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45716 if test x"${CXXVERSION}" = x ; then
45717 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45721 # clean up any old junk
45727 if test "x${db_type}" = "xInternal" ; then
45730 echo "You have not specified either --enable-client-only or one of the"
45731 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45732 echo " This is not permitted. Please reconfigure."
45734 echo "Aborting the configuration ..."
45741 Configuration on `date`:
45743 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45744 Bacula version: ${BACULA} ${VERSION} (${DATE})
45745 Source code location: ${srcdir}
45746 Install binaries: ${sbindir}
45747 Install libraries: ${libdir}
45748 Install config files: ${sysconfdir}
45749 Scripts directory: ${scriptdir}
45750 Archive directory: ${archivedir}
45751 Working directory: ${working_dir}
45752 PID directory: ${piddir}
45753 Subsys directory: ${subsysdir}
45754 Man directory: ${mandir}
45755 Data directory: ${datarootdir}
45756 Plugin directory: ${plugindir}
45757 C Compiler: ${CC} ${CCVERSION}
45758 C++ Compiler: ${CXX} ${CXXVERSION}
45759 Compiler flags: ${WCFLAGS} ${CFLAGS}
45760 Linker flags: ${WLDFLAGS} ${LDFLAGS}
45762 Statically Linked Tools: ${support_static_tools}
45763 Statically Linked FD: ${support_static_fd}
45764 Statically Linked SD: ${support_static_sd}
45765 Statically Linked DIR: ${support_static_dir}
45766 Statically Linked CONS: ${support_static_cons}
45767 Database type: ${db_type}
45768 Database port: ${db_port}
45769 Database lib: ${DB_LIBS}
45770 Database name: ${db_name}
45771 Database user: ${db_user}
45773 Job Output Email: ${job_email}
45774 Traceback Email: ${dump_email}
45775 SMTP Host Address: ${smtp_host}
45777 Director Port: ${dir_port}
45778 File daemon Port: ${fd_port}
45779 Storage daemon Port: ${sd_port}
45781 Director User: ${dir_user}
45782 Director Group: ${dir_group}
45783 Storage Daemon User: ${sd_user}
45784 Storage DaemonGroup: ${sd_group}
45785 File Daemon User: ${fd_user}
45786 File Daemon Group: ${fd_group}
45788 SQL binaries Directory ${SQL_BINDIR}
45790 Large file support: $largefile_support
45791 Bacula conio support: ${got_conio} ${CONS_LIBS}
45792 readline support: ${got_readline} ${PRTREADLINE_SRC}
45793 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
45794 TLS support: ${support_tls}
45795 Encryption support: ${support_crypto}
45796 ZLIB support: ${have_zlib}
45797 enable-smartalloc: ${support_smartalloc}
45798 enable-lockmgr: ${support_lockmgr}
45799 bat support: ${support_bat} ${QWT_LDFLAGS}
45800 enable-gnome: ${support_gnome} ${gnome_version}
45801 enable-bwx-console: ${support_wx_console} ${wx_version}
45802 enable-tray-monitor: ${support_tray_monitor}
45803 client-only: ${build_client_only}
45804 build-dird: ${build_dird}
45805 build-stored: ${build_stored}
45806 ACL support: ${have_acl}
45807 XATTR support: ${have_xattr}
45808 Python support: ${support_python} ${PYTHON_LIBS}
45809 Batch insert enabled: ${support_batch_insert}