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
1052 ac_subst_files='MCOMMON'
1053 ac_precious_vars='build_alias
1071 # Initialize some variables set by options.
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1083 program_transform_name=s,x,x,
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1121 # If the previous option needs an argument, assign it.
1122 if test -n "$ac_prev"; then
1123 eval $ac_prev=\$ac_option
1129 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1133 # Accept the important Cygnus configure options, so we can diagnose typos.
1135 case $ac_dashdash$ac_option in
1139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142 bindir=$ac_optarg ;;
1144 -build | --build | --buil | --bui | --bu)
1145 ac_prev=build_alias ;;
1146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147 build_alias=$ac_optarg ;;
1149 -cache-file | --cache-file | --cache-fil | --cache-fi \
1150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151 ac_prev=cache_file ;;
1152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154 cache_file=$ac_optarg ;;
1156 --config-cache | -C)
1157 cache_file=config.cache ;;
1159 -datadir | --datadir | --datadi | --datad)
1161 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162 datadir=$ac_optarg ;;
1164 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165 | --dataroo | --dataro | --datar)
1166 ac_prev=datarootdir ;;
1167 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169 datarootdir=$ac_optarg ;;
1171 -disable-* | --disable-*)
1172 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178 eval enable_$ac_feature=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197 eval enable_$ac_feature=\$ac_optarg ;;
1199 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201 | --exec | --exe | --ex)
1202 ac_prev=exec_prefix ;;
1203 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205 | --exec=* | --exe=* | --ex=*)
1206 exec_prefix=$ac_optarg ;;
1208 -gas | --gas | --ga | --g)
1209 # Obsolete; use --with-gas.
1212 -help | --help | --hel | --he | -h)
1213 ac_init_help=long ;;
1214 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215 ac_init_help=recursive ;;
1216 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217 ac_init_help=short ;;
1219 -host | --host | --hos | --ho)
1220 ac_prev=host_alias ;;
1221 -host=* | --host=* | --hos=* | --ho=*)
1222 host_alias=$ac_optarg ;;
1224 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 htmldir=$ac_optarg ;;
1230 -includedir | --includedir | --includedi | --included | --include \
1231 | --includ | --inclu | --incl | --inc)
1232 ac_prev=includedir ;;
1233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234 | --includ=* | --inclu=* | --incl=* | --inc=*)
1235 includedir=$ac_optarg ;;
1237 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240 infodir=$ac_optarg ;;
1242 -libdir | --libdir | --libdi | --libd)
1244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245 libdir=$ac_optarg ;;
1247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248 | --libexe | --libex | --libe)
1249 ac_prev=libexecdir ;;
1250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251 | --libexe=* | --libex=* | --libe=*)
1252 libexecdir=$ac_optarg ;;
1254 -localedir | --localedir | --localedi | --localed | --locale)
1255 ac_prev=localedir ;;
1256 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257 localedir=$ac_optarg ;;
1259 -localstatedir | --localstatedir | --localstatedi | --localstated \
1260 | --localstate | --localstat | --localsta | --localst | --locals)
1261 ac_prev=localstatedir ;;
1262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264 localstatedir=$ac_optarg ;;
1266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269 mandir=$ac_optarg ;;
1271 -nfp | --nfp | --nf)
1272 # Obsolete; use --without-fp.
1275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276 | --no-cr | --no-c | -n)
1279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285 | --oldin | --oldi | --old | --ol | --o)
1286 ac_prev=oldincludedir ;;
1287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290 oldincludedir=$ac_optarg ;;
1292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295 prefix=$ac_optarg ;;
1297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298 | --program-pre | --program-pr | --program-p)
1299 ac_prev=program_prefix ;;
1300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302 program_prefix=$ac_optarg ;;
1304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305 | --program-suf | --program-su | --program-s)
1306 ac_prev=program_suffix ;;
1307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309 program_suffix=$ac_optarg ;;
1311 -program-transform-name | --program-transform-name \
1312 | --program-transform-nam | --program-transform-na \
1313 | --program-transform-n | --program-transform- \
1314 | --program-transform | --program-transfor \
1315 | --program-transfo | --program-transf \
1316 | --program-trans | --program-tran \
1317 | --progr-tra | --program-tr | --program-t)
1318 ac_prev=program_transform_name ;;
1319 -program-transform-name=* | --program-transform-name=* \
1320 | --program-transform-nam=* | --program-transform-na=* \
1321 | --program-transform-n=* | --program-transform-=* \
1322 | --program-transform=* | --program-transfor=* \
1323 | --program-transfo=* | --program-transf=* \
1324 | --program-trans=* | --program-tran=* \
1325 | --progr-tra=* | --program-tr=* | --program-t=*)
1326 program_transform_name=$ac_optarg ;;
1328 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331 pdfdir=$ac_optarg ;;
1333 -psdir | --psdir | --psdi | --psd | --ps)
1335 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 sbindir=$ac_optarg ;;
1348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350 | --sharedst | --shareds | --shared | --share | --shar \
1352 ac_prev=sharedstatedir ;;
1353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 sharedstatedir=$ac_optarg ;;
1359 -site | --site | --sit)
1361 -site=* | --site=* | --sit=*)
1364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367 srcdir=$ac_optarg ;;
1369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370 | --syscon | --sysco | --sysc | --sys | --sy)
1371 ac_prev=sysconfdir ;;
1372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374 sysconfdir=$ac_optarg ;;
1376 -target | --target | --targe | --targ | --tar | --ta | --t)
1377 ac_prev=target_alias ;;
1378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379 target_alias=$ac_optarg ;;
1381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1384 -version | --version | --versio | --versi | --vers | -V)
1385 ac_init_version=: ;;
1388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 { echo "$as_me: error: invalid package name: $ac_package" >&2
1392 { (exit 1); exit 1; }; }
1393 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394 eval with_$ac_package=\$ac_optarg ;;
1396 -without-* | --without-*)
1397 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400 { echo "$as_me: error: invalid package name: $ac_package" >&2
1401 { (exit 1); exit 1; }; }
1402 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403 eval with_$ac_package=no ;;
1406 # Obsolete; use --with-x.
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1423 -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425 { (exit 1); exit 1; }; }
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433 { (exit 1); exit 1; }; }
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1438 # FIXME: should be removed in autoconf 3.0.
1439 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 { echo "$as_me: error: missing argument to $ac_option" >&2
1451 { (exit 1); exit 1; }; }
1454 # Be sure to have absolute directory names.
1455 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456 datadir sysconfdir sharedstatedir localstatedir includedir \
1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458 libdir localedir mandir
1460 eval ac_val=\$$ac_var
1462 [\\/$]* | ?:[\\/]* ) continue;;
1463 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466 { (exit 1); exit 1; }; }
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1474 target=$target_alias
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481 If a cross compiler is detected then cross compile mode will be used." >&2
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 { echo "$as_me: error: Working directory cannot be determined" >&2
1497 { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499 { echo "$as_me: error: pwd does not report name of working directory" >&2
1500 { (exit 1); exit 1; }; }
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$0" : 'X\(//\)[^/]' \| \
1510 X"$0" : 'X\(//\)$' \| \
1511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1535 ac_srcdir_defaulted=no
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540 { (exit 1); exit 1; }; }
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545 { (exit 1); exit 1; }; }
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 for ac_var in $ac_precious_vars; do
1558 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_env_${ac_var}_value=\$${ac_var}
1560 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1565 # Report the --help message.
1567 if test "$ac_init_help" = "long"; then
1568 # Omit some internal or obsolete options to make the list less imposing.
1569 # This message is too long to be a string in the A/UX 3.1 sh.
1571 \`configure' configures this package to adapt to many kinds of systems.
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE. See below for descriptions of some of the useful variables.
1578 Defaults for the options are specified in brackets.
1581 -h, --help display this help and exit
1582 --help=short display options specific to this package
1583 --help=recursive display the short help of all the included packages
1584 -V, --version display version information and exit
1585 -q, --quiet, --silent do not print \`checking...' messages
1586 --cache-file=FILE cache test results in FILE [disabled]
1587 -C, --config-cache alias for \`--cache-file=config.cache'
1588 -n, --no-create do not create output files
1589 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1591 Installation directories:
1592 --prefix=PREFIX install architecture-independent files in PREFIX
1593 [$ac_default_prefix]
1594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1602 For better control, use the options below.
1604 Fine tuning of the installation directories:
1605 --bindir=DIR user executables [EPREFIX/bin]
1606 --sbindir=DIR system admin executables [EPREFIX/sbin]
1607 --libexecdir=DIR program executables [EPREFIX/libexec]
1608 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1609 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1610 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1611 --libdir=DIR object code libraries [EPREFIX/lib]
1612 --includedir=DIR C header files [PREFIX/include]
1613 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1614 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1615 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1616 --infodir=DIR info documentation [DATAROOTDIR/info]
1617 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1618 --mandir=DIR man documentation [DATAROOTDIR/man]
1619 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1620 --htmldir=DIR html documentation [DOCDIR]
1621 --dvidir=DIR dvi documentation [DOCDIR]
1622 --pdfdir=DIR pdf documentation [DOCDIR]
1623 --psdir=DIR ps documentation [DOCDIR]
1629 --x-includes=DIR X include files are in DIR
1630 --x-libraries=DIR X library files are in DIR
1633 --build=BUILD configure for building on BUILD [guessed]
1634 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1638 if test -n "$ac_init_help"; then
1643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1645 --enable-libtool enable building using GNU libtool [default=yes]
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=no]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-includes enable installing of include files [default=no]
1652 --disable-nls do not use Native Language Support
1653 --disable-rpath do not hardcode runtime library paths
1654 --enable-gnome enable build of bgnome-console GUI [default=no]
1655 --enable-bat enable build of bat Qt4 GUI [default=no]
1656 --enable-bwx-console enable build of wxWidgets console [default=no]
1657 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1659 --enable-smartalloc enable smartalloc debugging support [default=no]
1660 --enable-lockmgr enable lock manager support [default=no]
1661 --enable-static-tools enable static tape tools [default=no]
1662 --enable-static-fd enable static File daemon [default=no]
1663 --enable-static-sd enable static Storage daemon [default=no]
1664 --enable-static-dir enable static Director [default=no]
1665 --enable-static-cons enable static Console [default=no]
1666 --enable-client-only build client (File daemon) only [default=no]
1667 --enable-build-dird enable building of dird (Director) [default=yes]
1668 --enable-build-stored enable building of stored (Storage daemon)
1670 --disable-conio disable conio support [default=no]
1671 --enable-ipv6 enable ipv6 support [default=yes]
1672 --disable-readline disable readline support [default=yes]
1673 --enable-batch-insert enable the DB batch insert code [default=no]
1674 --disable-largefile omit support for large files
1675 --disable-acl disable acl support [default=auto]
1676 --disable-xattr disable xattr support [default=auto]
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1686 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1687 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1688 --without-libintl-prefix don't search for libintl in includedir and libdir
1689 --with-included-gettext use the GNU gettext library included here
1690 --with-qwt[=DIR] specify qwt library directory
1691 --with-readline[=DIR] specify readline library directory
1692 --with-python[=DIR] Include Python support. DIR is the Python base
1693 install directory, default is to search through a
1694 number of common places for the Python files.
1695 --with-tcp-wrappers[=DIR]
1696 enable tcpwrappers support
1697 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1698 --with-working-dir=PATH specify path of Bacula working directory
1699 --with-archivedir=PATH specify path of SD archive directory
1700 --with-basename=RESNAME specify base resource name for daemons
1701 --with-scriptdir=PATH specify path of Bacula scripts directory
1702 --with-bsrdir=PATH specify path of Bacula bsrs directory
1703 --with-logdir=PATH specify path of Bacula logs directory
1704 --with-plugindir=PATH specify path of Bacula plugins directory
1705 --with-dump-email=EMAIL dump email address
1706 --with-job-email=EMAIL job output email address
1707 --with-smtp-host=HOST SMTP mail host address
1708 --with-pid-dir=PATH specify location of Bacula pid files
1709 --with-subsys-dir=PATH specify location of Bacula subsys file
1710 --with-baseport=PORT specify base port address for daemons
1711 --with-dir-password=PASSWORD
1712 specify Director's password
1713 --with-fd-password=PASSWORD
1714 specify Client's password
1715 --with-sd-password=PASSWORD
1716 specify Storage daemon's password
1717 --with-mon-dir-password=PASSWORD
1718 specify Director's password used by the monitor
1719 --with-mon-fd-password=PASSWORD
1720 specify Client's password used by the monitor
1721 --with-mon-sd-password=PASSWORD
1722 specify Storage daemon's password used by the
1724 --with-db-name=DBNAME specify database name [default=bacula]
1725 --with-db-user=UNAME specify database user [default=bacula]
1726 --with-db-password=PWD specify database password [default=*none*]
1727 --with-db-port=DBPORT specify a database port [default=null]
1728 --with-dir-user=USER specify user for Director daemon
1729 --with-dir-group=GROUP specify group for Director daemon
1730 --with-sd-user=USER specify user for Storage daemon
1731 --with-sd-group=GROUP specify group for Storage daemon
1732 --with-fd-user=USER specify user for File daemon
1733 --with-fd-group=GROUP specify group for File daemon
1734 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1735 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1736 base install directory, [default=/usr/local/pgsql]
1737 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1738 directory, default is to search through a number of
1739 common places for the MySQL files.
1740 --with-embedded-mysql[=DIR]
1741 Include MySQL support. DIR is the MySQL base install
1742 directory, default is to search through a number of
1743 common places for the MySQL files.
1744 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1745 install directory, default is to search through a
1746 number of common places for the SQLite3 files.
1747 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1748 install directory, default is to search through a
1749 number of common places for the SQLite files.
1750 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1751 directory, default is to search through a number of
1752 common places for the DBI files.
1753 --with-dbi-driver[=DRIVER]
1754 Suport for DBI driver. DRIVER is the one DBI driver
1755 like Mysql, Postgresql, others. Default is to not
1756 configure any driver.
1757 --with-x use the X Window System
1759 Some influential environment variables:
1760 CC C compiler command
1761 CFLAGS C compiler flags
1762 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1763 nonstandard directory <lib dir>
1764 LIBS libraries to pass to the linker, e.g. -l<library>
1765 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1766 you have headers in a nonstandard directory <include dir>
1767 CXX C++ compiler command
1768 CXXFLAGS C++ compiler flags
1770 WXCONFIG wx-config command. On some systems, you must set it to
1771 wx-config-2.6 to use wxWidgets 2.6.
1772 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1773 CXXCPP C++ preprocessor
1774 XMKMF Path to xmkmf, Makefile generator for X Window System
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1783 if test "$ac_init_help" = "recursive"; then
1784 # If there are subdirs, report their specific --help.
1785 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1786 test -d "$ac_dir" || continue
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1793 # A ".." for each directory in $ac_dir_suffix.
1794 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1795 case $ac_top_builddir_sub in
1796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1806 .) # We are building in place.
1808 ac_top_srcdir=$ac_top_builddir_sub
1809 ac_abs_top_srcdir=$ac_pwd ;;
1810 [\\/]* | ?:[\\/]* ) # Absolute name.
1811 ac_srcdir=$srcdir$ac_dir_suffix;
1812 ac_top_srcdir=$srcdir
1813 ac_abs_top_srcdir=$srcdir ;;
1815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816 ac_top_srcdir=$ac_top_build_prefix$srcdir
1817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821 cd "$ac_dir" || { ac_status=$?; continue; }
1822 # Check for guested configure.
1823 if test -f "$ac_srcdir/configure.gnu"; then
1825 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826 elif test -f "$ac_srcdir/configure"; then
1828 $SHELL "$ac_srcdir/configure" --help=recursive
1830 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 cd "$ac_pwd" || { ac_status=$?; break; }
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1840 generated by GNU Autoconf 2.61
1842 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1843 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1853 It was created by $as_me, which was
1854 generated by GNU Autoconf 2.61. Invocation command line was
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 echo "PATH: $as_dir"
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1914 ac_must_keep_next=false
1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922 | -silent | --silent | --silen | --sile | --sil)
1925 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1930 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1931 if test $ac_must_keep_next = true; then
1932 ac_must_keep_next=false # Got value, back to normal.
1935 *=* | --config-cache | -C | -disable-* | --disable-* \
1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938 | -with-* | --with-* | -without-* | --without-* | --x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 -* ) ac_must_keep_next=true ;;
1946 ac_configure_args="$ac_configure_args '$ac_arg'"
1951 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1952 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log. We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1970 # The following way of writing the cache mishandles newlines in values,
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1977 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1978 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1981 _ | IFS | as_nl) ;; #(
1982 *) $as_unset $ac_var ;;
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002 ## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##
2007 for ac_var in $ac_subst_vars
2009 eval ac_val=\$$ac_var
2011 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 echo "$ac_var='\''$ac_val'\''"
2017 if test -n "$ac_subst_files"; then
2019 ## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##
2024 for ac_var in $ac_subst_files
2026 eval ac_val=\$$ac_var
2028 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 echo "$ac_var='\''$ac_val'\''"
2035 if test -s confdefs.h; then
2045 test "$ac_signal" != 0 &&
2046 echo "$as_me: caught signal $ac_signal"
2047 echo "$as_me: exit $exit_status"
2049 rm -f core *.core core.conftest.* &&
2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053 for ac_signal in 1 2 13 15; do
2054 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2061 # Predefined preprocessor variables.
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088 # Let the site file select an alternate cache file if it wants to.
2089 # Prefer explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091 set x "$CONFIG_SITE"
2092 elif test "x$prefix" != xNONE; then
2093 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2095 set x "$ac_default_prefix/share/config.site" \
2096 "$ac_default_prefix/etc/config.site"
2101 if test -r "$ac_site_file"; then
2102 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2103 echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2109 if test -r "$cache_file"; then
2110 # Some versions of bash will fail to source /dev/null (special
2111 # files actually), so we avoid doing that.
2112 if test -f "$cache_file"; then
2113 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2114 echo "$as_me: loading cache $cache_file" >&6;}
2116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117 *) . "./$cache_file";;
2121 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2122 echo "$as_me: creating cache $cache_file" >&6;}
2126 # Check that the precious variables saved in the cache have kept the same
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131 eval ac_new_set=\$ac_env_${ac_var}_set
2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133 eval ac_new_val=\$ac_env_${ac_var}_value
2134 case $ac_old_set,$ac_new_set in
2136 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2140 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2145 if test "x$ac_old_val" != "x$ac_new_val"; then
2146 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2149 echo "$as_me: former value: $ac_old_val" >&2;}
2150 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2151 echo "$as_me: current value: $ac_new_val" >&2;}
2152 ac_cache_corrupted=:
2155 # Pass precious variables to config.status.
2156 if test "$ac_new_set" = set; then
2158 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 *) ac_arg=$ac_var=$ac_new_val ;;
2161 case " $ac_configure_args " in
2162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2163 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2167 if $ac_cache_corrupted; then
2168 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2169 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2171 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2172 { (exit 1); exit 1; }; }
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2206 if test -f "$ac_dir/install-sh"; then
2208 ac_install_sh="$ac_aux_dir/install-sh -c"
2210 elif test -f "$ac_dir/install.sh"; then
2212 ac_install_sh="$ac_aux_dir/install.sh -c"
2214 elif test -f "$ac_dir/shtool"; then
2216 ac_install_sh="$ac_aux_dir/shtool install -c"
2220 if test -z "$ac_aux_dir"; then
2221 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2222 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2223 { (exit 1); exit 1; }; }
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2238 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2239 WIN32MAINDIR=${BUILD_DIR}
2240 WIN32TOPDIR=${TOP_DIR}
2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 TRUEPRG=$ac_cv_path_TRUEPRG
2281 if test -n "$TRUEPRG"; then
2282 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2283 echo "${ECHO_T}$TRUEPRG" >&6; }
2285 { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2290 test -n "$TRUEPRG" && break
2292 test -n "$TRUEPRG" || TRUEPRG=":"
2294 for ac_prog in false
2296 # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 FALSEPRG=$ac_cv_path_FALSEPRG
2327 if test -n "$FALSEPRG"; then
2328 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2329 echo "${ECHO_T}$FALSEPRG" >&6; }
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2336 test -n "$FALSEPRG" && break
2338 test -n "$FALSEPRG" || FALSEPRG=":"
2343 if test "x$BACULA" != x; then
2344 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2346 BACULA=${BACULA:-Bacula}
2347 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 echo "configuring for ${BACULA} $VERSION ($DATE)"
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2397 if test -z "$ac_cv_prog_CC"; then
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_CC="gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2435 if test "x$ac_ct_CC" = x; then
2438 case $cross_compiling:$ac_tool_warned in
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2454 if test -z "$CC"; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}cc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_CC="${ac_tool_prefix}cc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CC"; then
2485 { echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6; }
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2495 if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515 ac_prog_rejected=yes
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test $ac_prog_rejected = yes; then
2527 # We found a bogon in the path, so make sure we never use it.
2528 set dummy $ac_cv_prog_CC
2530 if test $# != 0; then
2531 # We chose a different compiler from the bogus one.
2532 # However, it has the same basename, so the bogon will be chosen
2533 # first if we set CC to just the basename; use the full file name.
2535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2551 if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$CC" && break
2595 if test -z "$CC"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_CC="$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$ac_ct_CC" && break
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
2644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO: checking for C compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (ac_try="$ac_compiler --version >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler --version >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678 { (ac_try="$ac_compiler -v >&5"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -v >&5") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -V >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -V >&5") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2719 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 # List of possible output files, starting from the most likely.
2724 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725 # only as a last resort. b.out is created by i960 compilers.
2726 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 # The IRIX 6 linker writes into existing files which may not be
2729 # executable, retaining their permissions. Remove them first so a
2730 # subsequent execution test works.
2732 for ac_file in $ac_files
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 if { (ac_try="$ac_link_default"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_link_default") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2756 for ac_file in $ac_files ''
2758 test -f "$ac_file" || continue
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2763 # We found the default executable, but exeext='' is most
2767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 { echo "$as_me:$LINENO: result: $ac_file" >&5
2788 echo "${ECHO_T}$ac_file" >&6; }
2789 if test -z "$ac_file"; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797 { (exit 77); exit 77; }; }
2800 ac_exeext=$ac_cv_exeext
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809 if { ac_try='./$ac_file'
2810 { (case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_try") 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 if test "$cross_compiling" = maybe; then
2824 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run. If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_link") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compile") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 for ac_file in conftest.o conftest.obj conftest.*; do
2918 test -f "$ac_file" || continue;
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2994 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2996 GCC=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CFLAGS=${CFLAGS+set}
2998 ac_save_CFLAGS=$CFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_save_c_werror_flag=$ac_c_werror_flag
3005 ac_c_werror_flag=yes
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 ac_c_werror_flag=$ac_save_c_werror_flag
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3134 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3136 if test "$ac_test_CFLAGS" = set; then
3137 CFLAGS=$ac_save_CFLAGS
3138 elif test $ac_cv_prog_cc_g = yes; then
3139 if test "$GCC" = yes; then
3145 if test "$GCC" = yes; then
3151 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3152 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cc_c89+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 ac_cv_prog_cc_c89=no
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 #include <sys/types.h>
3167 #include <sys/stat.h>
3168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3169 struct buf { int x; };
3170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171 static char *e (p, i)
3177 static char *f (char * (*g) (char **, int), char **p, ...)
3182 s = g (p, va_arg (v,int));
3187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3188 function prototypes and stuff, but not '\xHH' hex character constants.
3189 These don't provoke an error unfortunately, instead are silently treated
3190 as 'x'. The following induces an error, until -std is added to get
3191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3192 array size at least. It's necessary to write '\x00'==0 to get something
3193 that's true only with -std. */
3194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197 inside strings and character constants. */
3199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218 CC="$ac_save_CC $ac_arg"
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
3236 ac_cv_prog_cc_c89=$ac_arg
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f core conftest.err conftest.$ac_objext
3245 test "x$ac_cv_prog_cc_c89" != "xno" && break
3247 rm -f conftest.$ac_ext
3252 case "x$ac_cv_prog_cc_c89" in
3254 { echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6; } ;;
3257 { echo "$as_me:$LINENO: result: unsupported" >&5
3258 echo "${ECHO_T}unsupported" >&6; } ;;
3260 CC="$CC $ac_cv_prog_cc_c89"
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 ac_cpp='$CXXCPP $CPPFLAGS'
3274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277 if test -z "$CXX"; then
3278 if test -n "$CCC"; then
3281 if test -n "$ac_tool_prefix"; then
3282 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$CXX"; then
3292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test -n "$CXX"; then
3313 { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3321 test -n "$CXX" && break
3324 if test -z "$CXX"; then
3326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$ac_ct_CXX"; then
3336 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_ac_ct_CXX="$ac_prog"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356 if test -n "$ac_ct_CXX"; then
3357 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3360 { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3365 test -n "$ac_ct_CXX" && break
3368 if test "x$ac_ct_CXX" = x; then
3371 case $cross_compiling:$ac_tool_warned in
3373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet. If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned=yes ;;
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3389 ac_compiler=`set X $ac_compile; echo $2`
3390 { (ac_try="$ac_compiler --version >&5"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compiler --version >&5") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compiler -v >&5") 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }
3410 { (ac_try="$ac_compiler -V >&5"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_compiler -V >&5") 2>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }
3421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_cxx_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3475 GXX=`test $ac_compiler_gnu = yes && echo yes`
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_cxx_g+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484 ac_cxx_werror_flag=yes
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_cxx_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3519 ac_cv_prog_cxx_g=yes
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_cxx_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_cxx_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_prog_cxx_g=yes
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616 CXXFLAGS=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618 if test "$GXX" = yes; then
3624 if test "$GXX" = yes; then
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 if test "x$CC" != xcc; then
3637 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3638 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3640 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3641 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3643 set dummy $CC; ac_cc=`echo $2 |
3644 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3663 # Make sure it works both with $CC and with simple cc.
3664 # We do the test twice because some compilers refuse to overwrite an
3665 # existing .o file with -o, though they will create one.
3666 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3668 if { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); };
3687 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3688 if test "x$CC" != xcc; then
3689 # Test first that cc exists at all.
3690 if { ac_try='cc -c conftest.$ac_ext >&5'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3702 if { (case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_try") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_try") 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); };
3724 # cc exists but doesn't like -o.
3725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3730 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3732 rm -f core conftest*
3735 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3736 { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3739 { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3742 cat >>confdefs.h <<\_ACEOF
3743 #define NO_MINUS_C_MINUS_O 1
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3759 if test -z "$CPP"; then
3760 if test "${ac_cv_prog_CPP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 # Double quotes because CPP needs to be expanded
3764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3767 for ac_c_preproc_warn_flag in '' yes
3769 # Use a header file that comes with gcc, so configuring glibc
3770 # with a fresh cross-compiler works.
3771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 # <limits.h> exists even on freestanding compilers.
3773 # On the NeXT, cc -E runs the code through the compiler's parser,
3774 # not just through cpp. "Syntax error" is here to catch this case.
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3782 # include <limits.h>
3784 # include <assert.h>
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null && {
3801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 # Broken: fails on valid input.
3813 rm -f conftest.err conftest.$ac_ext
3815 # OK, works on sane cases. Now check whether nonexistent headers
3816 # can be detected and how.
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null && {
3838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3841 # Broken: success on invalid input.
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 # Passes both tests.
3852 rm -f conftest.err conftest.$ac_ext
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then
3869 { echo "$as_me:$LINENO: result: $CPP" >&5
3870 echo "${ECHO_T}$CPP" >&6; }
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3887 # include <limits.h>
3889 # include <assert.h>
3893 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901 grep -v '^ *+' conftest.er1 >conftest.err
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } >/dev/null && {
3906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 # Broken: fails on valid input.
3918 rm -f conftest.err conftest.$ac_ext
3920 # OK, works on sane cases. Now check whether nonexistent headers
3921 # can be detected and how.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <ac_nonexistent.h>
3930 if { (ac_try="$ac_cpp conftest.$ac_ext"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } >/dev/null && {
3943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3946 # Broken: success on invalid input.
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 # Passes both tests.
3957 rm -f conftest.err conftest.$ac_ext
3960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961 rm -f conftest.err conftest.$ac_ext
3962 if $ac_preproc_ok; then
3965 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968 See \`config.log' for more details." >&2;}
3969 { (exit 1); exit 1; }; }
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 # Extract the first word of "grep ggrep" to use in msg output
3985 if test -z "$GREP"; then
3986 set dummy grep ggrep; ac_prog_name=$2
3987 if test "${ac_cv_path_GREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in grep ggrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001 # Check for GNU ac_path_GREP and select it if it is found.
4002 # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 echo 'GREP' >> "conftest.nl"
4015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 ac_count=`expr $ac_count + 1`
4018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_GREP="$ac_path_GREP"
4021 ac_path_GREP_max=$ac_count
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 $ac_path_GREP_found && break 3
4040 GREP="$ac_cv_path_GREP"
4041 if test -z "$GREP"; then
4042 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044 { (exit 1); exit 1; }; }
4048 ac_cv_path_GREP=$GREP
4053 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4054 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4058 { echo "$as_me:$LINENO: checking for egrep" >&5
4059 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_EGREP+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064 then ac_cv_path_EGREP="$GREP -E"
4066 # Extract the first word of "egrep" to use in msg output
4067 if test -z "$EGREP"; then
4068 set dummy egrep; ac_prog_name=$2
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_path_EGREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in egrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083 # Check for GNU ac_path_EGREP and select it if it is found.
4084 # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 echo 'EGREP' >> "conftest.nl"
4097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 ac_count=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_EGREP="$ac_path_EGREP"
4103 ac_path_EGREP_max=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 $ac_path_EGREP_found && break 3
4122 EGREP="$ac_cv_path_EGREP"
4123 if test -z "$EGREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4130 ac_cv_path_EGREP=$EGREP
4136 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4137 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4141 if test $ac_cv_c_compiler_gnu = yes; then
4142 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4143 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_pattern="Autoconf.*'x'"
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4159 ac_cv_prog_gcc_traditional=yes
4161 ac_cv_prog_gcc_traditional=no
4166 if test $ac_cv_prog_gcc_traditional = no; then
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4178 ac_cv_prog_gcc_traditional=yes
4184 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4185 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4186 if test $ac_cv_prog_gcc_traditional = yes; then
4187 CC="$CC -traditional"
4191 BASECC=`basename $CC`
4193 if test "x$BASECC" = xgcc; then
4194 cat >>confdefs.h <<\_ACEOF
4200 # Extract the first word of "$CXX", so it can be a program name with args.
4201 set dummy $CXX; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_path_CXX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4232 if test -n "$CXX"; then
4233 { echo "$as_me:$LINENO: result: $CXX" >&5
4234 echo "${ECHO_T}$CXX" >&6; }
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4241 if test ! -e $CXX; then
4242 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4243 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4244 { (exit 1); exit 1; }; }
4247 # Find a good install program. We prefer a C program (faster),
4248 # so one script is as good as another. But avoid the broken or
4249 # incompatible versions:
4250 # SysV /etc/install, /usr/sbin/install
4251 # SunOS /usr/etc/install
4252 # IRIX /sbin/install
4254 # AmigaOS /C/install, which installs bootblocks on floppy discs
4255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4258 # OS/2's system install, which has a completely different semantic
4259 # ./install, which can be erroneously created by make from ./install.sh.
4260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4262 if test -z "$INSTALL"; then
4263 if test "${ac_cv_path_install+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 # Account for people who put trailing slashes in PATH elements.
4273 ./ | .// | /cC/* | \
4274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4278 # OSF1 and SCO ODT 3.0 have their own names for install.
4279 # Don't use installbsd from OSF since it installs stuff as root
4281 for ac_prog in ginstall scoinst install; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4284 if test $ac_prog = install &&
4285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286 # AIX install. It has an incompatible calling convention.
4288 elif test $ac_prog = install &&
4289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4290 # program-specific install script used by HP pwplus--don't use.
4293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4306 if test "${ac_cv_path_install+set}" = set; then
4307 INSTALL=$ac_cv_path_install
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for INSTALL within a source directory, because that will
4311 # break other packages using the cache if that directory is
4312 # removed, or if the value is a relative name.
4313 INSTALL=$ac_install_sh
4316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4317 echo "${ECHO_T}$INSTALL" >&6; }
4319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320 # It thinks the first close brace ends the variable substitution.
4321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4327 # Extract the first word of "mv", so it can be a program name with args.
4328 set dummy mv; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_MV+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4359 if test -n "$MV"; then
4360 { echo "$as_me:$LINENO: result: $MV" >&5
4361 echo "${ECHO_T}$MV" >&6; }
4363 { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4368 # Extract the first word of "rm", so it can be a program name with args.
4369 set dummy rm; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_REMOVE+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4399 REMOVE=$ac_cv_path_REMOVE
4400 if test -n "$REMOVE"; then
4401 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4402 echo "${ECHO_T}$REMOVE" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 # Extract the first word of "cp", so it can be a program name with args.
4410 set dummy cp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4441 if test -n "$CP"; then
4442 { echo "$as_me:$LINENO: result: $CP" >&5
4443 echo "${ECHO_T}$CP" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 # Extract the first word of "sed", so it can be a program name with args.
4451 set dummy sed; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_SED+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4482 if test -n "$SED"; then
4483 { echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 # Extract the first word of "echo", so it can be a program name with args.
4492 set dummy echo; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_ECHO+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4522 ECHO=$ac_cv_path_ECHO
4523 if test -n "$ECHO"; then
4524 { echo "$as_me:$LINENO: result: $ECHO" >&5
4525 echo "${ECHO_T}$ECHO" >&6; }
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 # Extract the first word of "cmp", so it can be a program name with args.
4533 set dummy cmp; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_CMP+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4564 if test -n "$CMP"; then
4565 { echo "$as_me:$LINENO: result: $CMP" >&5
4566 echo "${ECHO_T}$CMP" >&6; }
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4573 # Extract the first word of "tbl", so it can be a program name with args.
4574 set dummy tbl; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_TBL+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4605 if test -n "$TBL"; then
4606 { echo "$as_me:$LINENO: result: $TBL" >&5
4607 echo "${ECHO_T}$TBL" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 # Extract the first word of "ar", so it can be a program name with args.
4615 set dummy ar; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_AR+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4646 if test -n "$AR"; then
4647 { echo "$as_me:$LINENO: result: $AR" >&5
4648 echo "${ECHO_T}$AR" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 # Extract the first word of "openssl", so it can be a program name with args.
4656 set dummy openssl; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_OPENSSL+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4686 OPENSSL=$ac_cv_path_OPENSSL
4687 if test -n "$OPENSSL"; then
4688 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4689 echo "${ECHO_T}$OPENSSL" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "mtx", so it can be a program name with args.
4697 set dummy mtx; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MTX+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4728 if test -n "$MTX"; then
4729 { echo "$as_me:$LINENO: result: $MTX" >&5
4730 echo "${ECHO_T}$MTX" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 # Extract the first word of "dd", so it can be a program name with args.
4738 set dummy dd; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_DD+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4769 if test -n "$DD"; then
4770 { echo "$as_me:$LINENO: result: $DD" >&5
4771 echo "${ECHO_T}$DD" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4778 # Extract the first word of "mkisofs", so it can be a program name with args.
4779 set dummy mkisofs; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_MKISOFS+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4809 MKISOFS=$ac_cv_path_MKISOFS
4810 if test -n "$MKISOFS"; then
4811 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4812 echo "${ECHO_T}$MKISOFS" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 # Extract the first word of "python", so it can be a program name with args.
4820 set dummy python; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_PYTHON+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4850 PYTHON=$ac_cv_path_PYTHON
4851 if test -n "$PYTHON"; then
4852 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4853 echo "${ECHO_T}$PYTHON" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 # Extract the first word of "growisofs", so it can be a program name with args.
4861 set dummy growisofs; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4891 GROWISOFS=$ac_cv_path_GROWISOFS
4892 if test -n "$GROWISOFS"; then
4893 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4894 echo "${ECHO_T}$GROWISOFS" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4902 set dummy dvd+rw-mediainfo; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 case $DVDRWMEDIAINFO in
4910 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4932 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4933 if test -n "$DVDRWMEDIAINFO"; then
4934 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4935 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4943 set dummy dvd+rw-format; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 case $DVDRWFORMAT in
4951 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4973 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4974 if test -n "$DVDRWFORMAT"; then
4975 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4976 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 # Extract the first word of "pkg-config", so it can be a program name with args.
4984 set dummy pkg-config; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5014 PKGCONFIG=$ac_cv_path_PKGCONFIG
5015 if test -n "$PKGCONFIG"; then
5016 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5017 echo "${ECHO_T}$PKGCONFIG" >&6; }
5019 { echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6; }
5024 # Extract the first word of "qmake", so it can be a program name with args.
5025 set dummy qmake; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_QMAKE+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5055 QMAKE=$ac_cv_path_QMAKE
5056 if test -n "$QMAKE"; then
5057 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5058 echo "${ECHO_T}$QMAKE" >&6; }
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5065 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5066 set dummy qmake-qt4; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5096 QMAKEQT4=$ac_cv_path_QMAKEQT4
5097 if test -n "$QMAKEQT4"; then
5098 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5099 echo "${ECHO_T}$QMAKEQT4" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5106 # Extract the first word of "gmake", so it can be a program name with args.
5107 set dummy gmake; ac_word=$2
5108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5110 if test "${ac_cv_path_GMAKE+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5137 GMAKE=$ac_cv_path_GMAKE
5138 if test -n "$GMAKE"; then
5139 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5140 echo "${ECHO_T}$GMAKE" >&6; }
5142 { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5148 if test "x$WXCONFIG" = x; then
5151 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5152 set dummy ${WXCONFIG}; ac_word=$2
5153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5182 WXCONFIG=$ac_cv_path_WXCONFIG
5183 if test -n "$WXCONFIG"; then
5184 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5185 echo "${ECHO_T}$WXCONFIG" >&6; }
5187 { echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6; }
5193 # Extract the first word of "cdrecord", so it can be a program name with args.
5194 set dummy cdrecord; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_CDRECORD+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5224 CDRECORD=$ac_cv_path_CDRECORD
5225 if test -n "$CDRECORD"; then
5226 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5227 echo "${ECHO_T}$CDRECORD" >&6; }
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "pidof", so it can be a program name with args.
5235 set dummy pidof; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_PIDOF+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5265 PIDOF=$ac_cv_path_PIDOF
5266 if test -n "$PIDOF"; then
5267 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5268 echo "${ECHO_T}$PIDOF" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 for ac_prog in gawk mawk nawk awk
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_AWK+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -n "$AWK"; then
5285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_AWK="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 if test -n "$AWK"; then
5306 { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5314 test -n "$AWK" && break
5317 # Some AWK programs fail, so test it and warn the user
5318 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5319 { if ((prog == $2) || (("(" prog ")") == $2) ||
5320 (("" prog "") == $2) ||
5321 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5323 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5324 The regex engine of $AWK is too broken to be used you
5325 might want to install GNU AWK.
5326 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5327 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5328 The regex engine of $AWK is too broken to be used you
5329 might want to install GNU AWK.
5330 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5331 { (exit 1); exit 1; }; }
5334 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5335 set dummy $THE_AWK; ac_word=$2
5336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338 if test "${ac_cv_path_AWK+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5366 if test -n "$AWK"; then
5367 { echo "$as_me:$LINENO: result: $AWK" >&5
5368 echo "${ECHO_T}$AWK" >&6; }
5370 { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5377 test -n "$ARFLAG" || ARFLAGS="cr"
5388 # Check whether --enable-libtool was given.
5389 if test "${enable_libtool+set}" = set; then
5390 enableval=$enable_libtool;
5391 if test x$enableval = xno; then
5400 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5406 macro_version='2.2.6'
5407 macro_revision='1.3012'
5421 ltmain="$ac_aux_dir/ltmain.sh"
5423 # Make sure we can run config.sub.
5424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5425 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5426 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5427 { (exit 1); exit 1; }; }
5429 { echo "$as_me:$LINENO: checking build system type" >&5
5430 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5431 if test "${ac_cv_build+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_build_alias=$build_alias
5435 test "x$ac_build_alias" = x &&
5436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5437 test "x$ac_build_alias" = x &&
5438 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5439 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5440 { (exit 1); exit 1; }; }
5441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5442 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5443 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5444 { (exit 1); exit 1; }; }
5447 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5448 echo "${ECHO_T}$ac_cv_build" >&6; }
5449 case $ac_cv_build in
5451 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5452 echo "$as_me: error: invalid value of canonical build" >&2;}
5453 { (exit 1); exit 1; }; };;
5456 ac_save_IFS=$IFS; IFS='-'
5462 # Remember, the first character of IFS is used to create $*,
5463 # except with old shells:
5466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5469 { echo "$as_me:$LINENO: checking host system type" >&5
5470 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5471 if test "${ac_cv_host+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test "x$host_alias" = x; then
5475 ac_cv_host=$ac_cv_build
5477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5478 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5479 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5480 { (exit 1); exit 1; }; }
5484 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5485 echo "${ECHO_T}$ac_cv_host" >&6; }
5488 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5489 echo "$as_me: error: invalid value of canonical host" >&2;}
5490 { (exit 1); exit 1; }; };;
5493 ac_save_IFS=$IFS; IFS='-'
5499 # Remember, the first character of IFS is used to create $*,
5500 # except with old shells:
5503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5506 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5507 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5508 if test "${ac_cv_path_SED+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5512 for ac_i in 1 2 3 4 5 6 7; do
5513 ac_script="$ac_script$as_nl$ac_script"
5515 echo "$ac_script" | sed 99q >conftest.sed
5516 $as_unset ac_script || ac_script=
5517 # Extract the first word of "sed gsed" to use in msg output
5518 if test -z "$SED"; then
5519 set dummy sed gsed; ac_prog_name=$2
5520 if test "${ac_cv_path_SED+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_path_SED_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_prog in sed gsed; do
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5533 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5534 # Check for GNU ac_path_SED and select it if it is found.
5535 # Check for GNU $ac_path_SED
5536 case `"$ac_path_SED" --version 2>&1` in
5538 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5541 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5544 cat "conftest.in" "conftest.in" >"conftest.tmp"
5545 mv "conftest.tmp" "conftest.in"
5546 cp "conftest.in" "conftest.nl"
5547 echo '' >> "conftest.nl"
5548 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550 ac_count=`expr $ac_count + 1`
5551 if test $ac_count -gt ${ac_path_SED_max-0}; then
5552 # Best one so far, save it but keep looking for a better one
5553 ac_cv_path_SED="$ac_path_SED"
5554 ac_path_SED_max=$ac_count
5556 # 10*(2^10) chars as input seems more than enough
5557 test $ac_count -gt 10 && break
5559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5563 $ac_path_SED_found && break 3
5573 SED="$ac_cv_path_SED"
5574 if test -z "$SED"; then
5575 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5576 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5577 { (exit 1); exit 1; }; }
5585 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5586 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5587 SED="$ac_cv_path_SED"
5590 test -z "$SED" && SED=sed
5591 Xsed="$SED -e 1s/^X//"
5603 { echo "$as_me:$LINENO: checking for fgrep" >&5
5604 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5605 if test "${ac_cv_path_FGREP+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5609 then ac_cv_path_FGREP="$GREP -F"
5611 # Extract the first word of "fgrep" to use in msg output
5612 if test -z "$FGREP"; then
5613 set dummy fgrep; ac_prog_name=$2
5614 if test "${ac_cv_path_FGREP+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_path_FGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in fgrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5627 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5628 # Check for GNU ac_path_FGREP and select it if it is found.
5629 # Check for GNU $ac_path_FGREP
5630 case `"$ac_path_FGREP" --version 2>&1` in
5632 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5635 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 echo 'FGREP' >> "conftest.nl"
5642 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 ac_count=`expr $ac_count + 1`
5645 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_FGREP="$ac_path_FGREP"
5648 ac_path_FGREP_max=$ac_count
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5657 $ac_path_FGREP_found && break 3
5667 FGREP="$ac_cv_path_FGREP"
5668 if test -z "$FGREP"; then
5669 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5671 { (exit 1); exit 1; }; }
5675 ac_cv_path_FGREP=$FGREP
5681 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5682 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5683 FGREP="$ac_cv_path_FGREP"
5686 test -z "$GREP" && GREP=grep
5706 # Check whether --with-gnu-ld was given.
5707 if test "${with_gnu_ld+set}" = set; then
5708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5714 if test "$GCC" = yes; then
5715 # Check if gcc -print-prog-name=ld gives a path.
5716 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5720 # gcc leaves a trailing carriage return which upsets mingw
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5726 # Accept absolute paths.
5728 re_direlt='/[^/][^/]*/\.\./'
5729 # Canonicalize the pathname of ld
5730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734 test -z "$LD" && LD="$ac_prog"
5737 # If it fails, then pretend we aren't using GCC.
5741 # If it is relative, then search for the first ld in PATH.
5745 elif test "$with_gnu_ld" = yes; then
5746 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5749 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5752 if test "${lt_cv_path_LD+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 if test -z "$LD"; then
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH; do
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761 lt_cv_path_LD="$ac_dir/$ac_prog"
5762 # Check to see if the program is GNU ld. I'd rather use --version,
5763 # but apparently some variants of GNU ld only accept -v.
5764 # Break only if it was the GNU/non-GNU ld that we prefer.
5765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766 *GNU* | *'with BFD'*)
5767 test "$with_gnu_ld" != no && break
5770 test "$with_gnu_ld" != yes && break
5777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782 if test -n "$LD"; then
5783 { echo "$as_me:$LINENO: result: $LD" >&5
5784 echo "${ECHO_T}$LD" >&6; }
5786 { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5791 { (exit 1); exit 1; }; }
5792 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5798 case `$LD -v 2>&1 </dev/null` in
5799 *GNU* | *'with BFD'*)
5800 lt_cv_prog_gnu_ld=yes
5803 lt_cv_prog_gnu_ld=no
5807 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5809 with_gnu_ld=$lt_cv_prog_gnu_ld
5819 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5820 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5821 if test "${lt_cv_path_NM+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 if test -n "$NM"; then
5825 # Let the user override the test.
5828 lt_nm_to_check="${ac_tool_prefix}nm"
5829 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5830 lt_nm_to_check="$lt_nm_to_check nm"
5832 for lt_tmp_nm in $lt_nm_to_check; do
5833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5836 test -z "$ac_dir" && ac_dir=.
5837 tmp_nm="$ac_dir/$lt_tmp_nm"
5838 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5839 # Check to see if the nm accepts a BSD-compat flag.
5840 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5841 # nm: unknown option "B" ignored
5842 # Tru64's nm complains that /dev/null is an invalid object file
5843 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5844 */dev/null* | *'Invalid file or object type'*)
5845 lt_cv_path_NM="$tmp_nm -B"
5849 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5851 lt_cv_path_NM="$tmp_nm -p"
5855 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5856 continue # so that we can try to find one that supports BSD flags
5865 : ${lt_cv_path_NM=no}
5868 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5869 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5870 if test "$lt_cv_path_NM" != "no"; then
5873 # Didn't find any BSD compatible name lister, look for dumpbin.
5874 if test -n "$ac_tool_prefix"; then
5875 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 if test -n "$DUMPBIN"; then
5885 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 DUMPBIN=$ac_cv_prog_DUMPBIN
5905 if test -n "$DUMPBIN"; then
5906 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5907 echo "${ECHO_T}$DUMPBIN" >&6; }
5909 { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5914 test -n "$DUMPBIN" && break
5917 if test -z "$DUMPBIN"; then
5918 ac_ct_DUMPBIN=$DUMPBIN
5919 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$ac_ct_DUMPBIN"; then
5929 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5949 if test -n "$ac_ct_DUMPBIN"; then
5950 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5951 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5953 { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5958 test -n "$ac_ct_DUMPBIN" && break
5961 if test "x$ac_ct_DUMPBIN" = x; then
5964 case $cross_compiling:$ac_tool_warned in
5966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet. If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&5
5969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet. If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972 ac_tool_warned=yes ;;
5974 DUMPBIN=$ac_ct_DUMPBIN
5979 if test "$DUMPBIN" != ":"; then
5983 test -z "$NM" && NM=nm
5990 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5991 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5992 if test "${lt_cv_nm_interface+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 lt_cv_nm_interface="BSD nm"
5996 echo "int some_variable = 0;" > conftest.$ac_ext
5997 (eval echo "\"\$as_me:5997: $ac_compile\"" >&5)
5998 (eval "$ac_compile" 2>conftest.err)
5999 cat conftest.err >&5
6000 (eval echo "\"\$as_me:6000: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6002 cat conftest.err >&5
6003 (eval echo "\"\$as_me:6003: output\"" >&5)
6004 cat conftest.out >&5
6005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6006 lt_cv_nm_interface="MS dumpbin"
6010 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6011 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6013 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6014 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6016 if test "$LN_S" = "ln -s"; then
6017 { echo "$as_me:$LINENO: result: yes" >&5
6018 echo "${ECHO_T}yes" >&6; }
6020 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6021 echo "${ECHO_T}no, using $LN_S" >&6; }
6024 # find the maximum length of command line arguments
6025 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6026 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6027 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 # On DJGPP, this test can blow up pretty badly due to problems in libc
6036 # (any single argument exceeding 2000 bytes causes a buffer overrun
6037 # during glob expansion). Even if it were fixed, the result of this
6038 # check would be larger than it should be.
6039 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6043 # Under GNU Hurd, this test is not required because there is
6044 # no limit to the length of command line arguments.
6045 # Libtool will interpret -1 as no limit whatsoever
6046 lt_cv_sys_max_cmd_len=-1;
6049 cygwin* | mingw* | cegcc*)
6050 # On Win9x/ME, this test blows up -- it succeeds, but takes
6051 # about 5 minutes as the teststring grows exponentially.
6052 # Worse, since 9x/ME are not pre-emptively multitasking,
6053 # you end up with a "frozen" computer, even though with patience
6054 # the test eventually succeeds (with a max line length of 256k).
6055 # Instead, let's just punt: use the minimum linelength reported by
6056 # all of the supported platforms: 8192 (on NT/2K/XP).
6057 lt_cv_sys_max_cmd_len=8192;
6061 # On AmigaOS with pdksh, this test takes hours, literally.
6062 # So we just punt and use a minimum line length of 8192.
6063 lt_cv_sys_max_cmd_len=8192;
6066 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6067 # This has been around since 386BSD, at least. Likely further.
6068 if test -x /sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6070 elif test -x /usr/sbin/sysctl; then
6071 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6075 # And add a safety zone
6076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6081 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6082 lt_cv_sys_max_cmd_len=196608
6086 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6087 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6088 # nice to cause kernel panics so lets avoid the loop below.
6089 # First set a reasonable default.
6090 lt_cv_sys_max_cmd_len=16384
6092 if test -x /sbin/sysconfig; then
6093 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6094 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6099 lt_cv_sys_max_cmd_len=102400
6101 sysv5* | sco5v6* | sysv4.2uw2*)
6102 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6103 if test -n "$kargmax"; then
6104 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6106 lt_cv_sys_max_cmd_len=32768
6110 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6111 if test -n "$lt_cv_sys_max_cmd_len"; then
6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6115 # Make teststring a little bigger before we do anything with it.
6116 # a 1K string should be a reasonable start.
6117 for i in 1 2 3 4 5 6 7 8 ; do
6118 teststring=$teststring$teststring
6120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6121 # If test is not a shell built-in, we'll probably end up computing a
6122 # maximum length that is only half of the actual maximum length, but
6124 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6125 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6126 test $i != 17 # 1/2 MB should be enough
6129 teststring=$teststring$teststring
6131 # Only check the string length outside the loop.
6132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6134 # Add a significant safety factor because C++ compilers can tack on
6135 # massive amounts of additional arguments before passing them to the
6136 # linker. It appears as though 1/2 is a usable value.
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6144 if test -n $lt_cv_sys_max_cmd_len ; then
6145 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6146 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 { echo "$as_me:$LINENO: result: none" >&5
6149 echo "${ECHO_T}none" >&6; }
6151 max_cmd_len=$lt_cv_sys_max_cmd_len
6162 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6163 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6164 # Try some XSI features
6167 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6169 && eval 'test $(( 1 + 1 )) -eq 2 \
6170 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6172 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6173 echo "${ECHO_T}$xsi_shell" >&6; }
6176 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6177 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6179 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6181 && lt_shell_append=yes
6182 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6183 echo "${ECHO_T}$lt_shell_append" >&6; }
6186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6196 # test EBCDIC or ASCII
6197 case `echo X|tr X '\101'` in
6198 A) # ASCII based system
6199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6200 lt_SP2NL='tr \040 \012'
6201 lt_NL2SP='tr \015\012 \040\040'
6203 *) # EBCDIC based system
6204 lt_SP2NL='tr \100 \n'
6205 lt_NL2SP='tr \r\n \100\100'
6217 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6219 if test "${lt_cv_ld_reload_flag+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 lt_cv_ld_reload_flag='-r'
6224 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6226 reload_flag=$lt_cv_ld_reload_flag
6227 case $reload_flag in
6229 *) reload_flag=" $reload_flag" ;;
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234 if test "$GCC" = yes; then
6235 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test -n "$OBJDUMP"; then
6259 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 OBJDUMP=$ac_cv_prog_OBJDUMP
6279 if test -n "$OBJDUMP"; then
6280 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6281 echo "${ECHO_T}$OBJDUMP" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6289 if test -z "$ac_cv_prog_OBJDUMP"; then
6290 ac_ct_OBJDUMP=$OBJDUMP
6291 # Extract the first word of "objdump", so it can be a program name with args.
6292 set dummy objdump; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 if test -n "$ac_ct_OBJDUMP"; then
6299 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6319 if test -n "$ac_ct_OBJDUMP"; then
6320 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6321 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6323 { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6327 if test "x$ac_ct_OBJDUMP" = x; then
6330 case $cross_compiling:$ac_tool_warned in
6332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet. If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&5
6335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6336 whose name does not start with the host triplet. If you think this
6337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6338 ac_tool_warned=yes ;;
6340 OBJDUMP=$ac_ct_OBJDUMP
6343 OBJDUMP="$ac_cv_prog_OBJDUMP"
6346 test -z "$OBJDUMP" && OBJDUMP=objdump
6356 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6357 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6358 if test "${lt_cv_deplibs_check_method+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 lt_cv_file_magic_cmd='$MAGIC_CMD'
6362 lt_cv_file_magic_test_file=
6363 lt_cv_deplibs_check_method='unknown'
6364 # Need to set the preceding variable on all platforms that support
6365 # interlibrary dependencies.
6366 # 'none' -- dependencies not supported.
6367 # `unknown' -- same as none, but documents that we really don't know.
6368 # 'pass_all' -- all dependencies passed with no checks.
6369 # 'test_compile' -- check by making test program.
6370 # 'file_magic [[regex]]' -- check by looking for files in library path
6371 # which responds to the $file_magic_cmd with a given extended regex.
6372 # If you have `file' or equivalent on your system and you're not sure
6373 # whether `pass_all' will *always* work, you probably want this one.
6377 lt_cv_deplibs_check_method=pass_all
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6386 lt_cv_file_magic_cmd='/usr/bin/file -L'
6387 lt_cv_file_magic_test_file=/shlib/libc.so
6391 # func_win32_libid is a shell function defined in ltmain.sh
6392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6393 lt_cv_file_magic_cmd='func_win32_libid'
6397 # Base MSYS/MinGW do not provide the 'file' command needed by
6398 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6399 # unless we find 'file', for example because we are cross-compiling.
6400 if ( file / ) >/dev/null 2>&1; then
6401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6402 lt_cv_file_magic_cmd='func_win32_libid'
6404 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6405 lt_cv_file_magic_cmd='$OBJDUMP -f'
6410 # use the weaker test based on 'objdump'. See mingw*.
6411 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6412 lt_cv_file_magic_cmd='$OBJDUMP -f'
6415 darwin* | rhapsody*)
6416 lt_cv_deplibs_check_method=pass_all
6419 freebsd* | dragonfly*)
6420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6423 # Not sure whether the presence of OpenBSD here was a mistake.
6424 # Let's accept both of them until this is cleared up.
6425 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6431 lt_cv_deplibs_check_method=pass_all
6436 lt_cv_deplibs_check_method=pass_all
6439 hpux10.20* | hpux11*)
6440 lt_cv_file_magic_cmd=/usr/bin/file
6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6444 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6447 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]'
6448 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6452 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6458 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6462 irix5* | irix6* | nonstopux*)
6464 *-32|*"-32 ") libmagic=32-bit;;
6465 *-n32|*"-n32 ") libmagic=N32;;
6466 *-64|*"-64 ") libmagic=64-bit;;
6467 *) libmagic=never-match;;
6469 lt_cv_deplibs_check_method=pass_all
6472 # This must be Linux ELF.
6473 linux* | k*bsd*-gnu)
6474 lt_cv_deplibs_check_method=pass_all
6478 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6487 lt_cv_file_magic_cmd=/usr/bin/file
6488 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6492 lt_cv_deplibs_check_method=pass_all
6496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6503 osf3* | osf4* | osf5*)
6504 lt_cv_deplibs_check_method=pass_all
6508 lt_cv_deplibs_check_method=pass_all
6512 lt_cv_deplibs_check_method=pass_all
6515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6516 lt_cv_deplibs_check_method=pass_all
6520 case $host_vendor in
6522 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]'
6523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6526 lt_cv_deplibs_check_method=pass_all
6529 lt_cv_file_magic_cmd='/bin/file'
6530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6533 lt_cv_file_magic_cmd='/bin/file'
6534 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6535 lt_cv_file_magic_test_file=/lib/libc.so
6538 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method=pass_all
6547 lt_cv_deplibs_check_method=pass_all
6552 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6553 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6554 file_magic_cmd=$lt_cv_file_magic_cmd
6555 deplibs_check_method=$lt_cv_deplibs_check_method
6556 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$AR"; then
6578 ac_cv_prog_AR="$AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_AR="${ac_tool_prefix}ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 if test -n "$AR"; then
6599 { echo "$as_me:$LINENO: result: $AR" >&5
6600 echo "${ECHO_T}$AR" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_AR"; then
6610 # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$ac_ct_AR"; then
6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_AR="ar"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6640 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_AR" = x; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6665 test -z "$AR" && AR=ar
6666 test -z "$AR_FLAGS" && AR_FLAGS=cru
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 if test -n "$STRIP"; then
6687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708 { echo "$as_me:$LINENO: result: $STRIP" >&5
6709 echo "${ECHO_T}$STRIP" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6717 if test -z "$ac_cv_prog_STRIP"; then
6719 # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$ac_ct_STRIP"; then
6727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_STRIP="strip"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747 if test -n "$ac_ct_STRIP"; then
6748 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6749 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6755 if test "x$ac_ct_STRIP" = x; then
6758 case $cross_compiling:$ac_tool_warned in
6760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet. If you think this
6765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6771 STRIP="$ac_cv_prog_STRIP"
6774 test -z "$STRIP" && STRIP=:
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_RANLIB+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -n "$RANLIB"; then
6790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6812 echo "${ECHO_T}$RANLIB" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821 ac_ct_RANLIB=$RANLIB
6822 # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 if test -n "$ac_ct_RANLIB"; then
6830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_ac_ct_RANLIB="ranlib"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6850 if test -n "$ac_ct_RANLIB"; then
6851 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6852 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6858 if test "x$ac_ct_RANLIB" = x; then
6861 case $cross_compiling:$ac_tool_warned in
6863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6871 RANLIB=$ac_ct_RANLIB
6874 RANLIB="$ac_cv_prog_RANLIB"
6877 test -z "$RANLIB" && RANLIB=:
6884 # Determine commands to create old-style static archives.
6885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886 old_postinstall_cmds='chmod 644 $oldlib'
6887 old_postuninstall_cmds=
6889 if test -n "$RANLIB"; then
6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6898 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6934 # If no C compiler was specified, use CC.
6937 # If no C compiler flags were specified, use CFLAGS.
6938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940 # Allow CC to be a program name with arguments.
6944 # Check for command to grab the raw symbol name followed by C symbol from nm.
6945 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6946 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6947 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 # These are sane defaults that work on at least a few old systems.
6952 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6954 # Character class describing NM global symbol codes.
6955 symcode='[BCDEGRST]'
6957 # Regexp to match symbols that can be accessed directly from C.
6958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960 # Define system-specific variables.
6965 cygwin* | mingw* | pw32* | cegcc*)
6966 symcode='[ABCDGISTW]'
6969 if test "$host_cpu" = ia64; then
6970 symcode='[ABCDEGRST]'
6974 symcode='[BCDEGRST]'
6977 symcode='[BCDEGQRST]'
6988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6996 # If we're using GNU nm, then use its standard symbol codes.
6997 case `$NM -V 2>&1` in
6998 *GNU* | *'with BFD'*)
6999 symcode='[ABCDGIRSTW]' ;;
7002 # Transform an extracted symbol line into a proper C declaration.
7003 # Some systems (esp. on ia64) link data and code symbols differently,
7004 # so use this general approach.
7005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007 # Transform an extracted symbol line into symbol name and symbol address
7008 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7009 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'"
7011 # Handle CRLF in mingw tool chain
7015 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7019 # Try without a prefix underscore, then with it.
7020 for ac_symprfx in "" "_"; do
7022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023 symxfrm="\\1 $ac_symprfx\\2 \\2"
7025 # Write the raw and C identifiers.
7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027 # Fake it for dumpbin and say T for any non-static function
7028 # and D for any global variable.
7029 # Also find C++ and __fastcall symbols from MSVC++,
7030 # which start with @ or ?.
7031 lt_cv_sys_global_symbol_pipe="$AWK '"\
7032 " {last_section=section; section=\$ 3};"\
7033 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7034 " \$ 0!~/External *\|/{next};"\
7035 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036 " {if(hide[section]) next};"\
7037 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7038 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7039 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7040 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7041 " ' prfx=^$ac_symprfx"
7043 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046 # Check to see that the pipe works correctly.
7050 cat > conftest.$ac_ext <<_LT_EOF
7055 void nm_test_func(void);
7056 void nm_test_func(void){}
7060 int main(){nm_test_var='a';nm_test_func();return(0);}
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; then
7068 # Now try to grab the symbols.
7070 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7071 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && test -s "$nlist"; then
7075 # Try sorting and uniquifying the output.
7076 if sort "$nlist" | uniq > "$nlist"T; then
7077 mv -f "$nlist"T "$nlist"
7082 # Make sure that we snagged all the symbols we need.
7083 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085 cat <<_LT_EOF > conftest.$ac_ext
7091 # Now generate the symbol file.
7092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094 cat <<_LT_EOF >> conftest.$ac_ext
7096 /* The mapping between symbol names and symbols. */
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 { "@PROGRAM@", (void *) 0 },
7105 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106 cat <<\_LT_EOF >> conftest.$ac_ext
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113 return lt__PROGRAM__LTX_preloaded_symbols;
7121 # Now try linking the two files.
7122 mv conftest.$ac_objext conftstm.$ac_objext
7123 lt_save_LIBS="$LIBS"
7124 lt_save_CFLAGS="$CFLAGS"
7125 LIBS="conftstm.$ac_objext"
7126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7134 LIBS="$lt_save_LIBS"
7135 CFLAGS="$lt_save_CFLAGS"
7137 echo "cannot find nm_test_func in $nlist" >&5
7140 echo "cannot find nm_test_var in $nlist" >&5
7143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7146 echo "$progname: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 rm -rf conftest* conftst*
7151 # Do not use the global_symbol_pipe unless it works.
7152 if test "$pipe_works" = yes; then
7155 lt_cv_sys_global_symbol_pipe=
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162 lt_cv_sys_global_symbol_to_cdecl=
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165 { echo "$as_me:$LINENO: result: failed" >&5
7166 echo "${ECHO_T}failed" >&6; }
7168 { echo "$as_me:$LINENO: result: ok" >&5
7169 echo "${ECHO_T}ok" >&6; }
7193 # Check whether --enable-libtool-lock was given.
7194 if test "${enable_libtool_lock+set}" = set; then
7195 enableval=$enable_libtool_lock;
7198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7200 # Some flags need to be propagated to the compiler or linker for good
7204 # Find out which ABI we are using.
7205 echo 'int i;' > conftest.$ac_ext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; then
7211 case `/usr/bin/file conftest.$ac_objext` in
7223 # Find out which ABI we are using.
7224 echo '#line 7224 "configure"' > conftest.$ac_ext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226 (eval $ac_compile) 2>&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; then
7230 if test "$lt_cv_prog_gnu_ld" = yes; then
7231 case `/usr/bin/file conftest.$ac_objext` in
7233 LD="${LD-ld} -melf32bsmip"
7236 LD="${LD-ld} -melf32bmipn32"
7239 LD="${LD-ld} -melf64bmip"
7243 case `/usr/bin/file conftest.$ac_objext` in
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261 # Find out which ABI we are using.
7262 echo 'int i;' > conftest.$ac_ext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; then
7268 case `/usr/bin/file conftest.o` in
7271 x86_64-*kfreebsd*-gnu)
7272 LD="${LD-ld} -m elf_i386_fbsd"
7275 LD="${LD-ld} -m elf_i386"
7277 ppc64-*linux*|powerpc64-*linux*)
7278 LD="${LD-ld} -m elf32ppclinux"
7281 LD="${LD-ld} -m elf_s390"
7284 LD="${LD-ld} -m elf32_sparc"
7290 x86_64-*kfreebsd*-gnu)
7291 LD="${LD-ld} -m elf_x86_64_fbsd"
7294 LD="${LD-ld} -m elf_x86_64"
7296 ppc*-*linux*|powerpc*-*linux*)
7297 LD="${LD-ld} -m elf64ppc"
7299 s390*-*linux*|s390*-*tpf*)
7300 LD="${LD-ld} -m elf64_s390"
7303 LD="${LD-ld} -m elf64_sparc"
7313 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314 SAVE_CFLAGS="$CFLAGS"
7315 CFLAGS="$CFLAGS -belf"
7316 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7318 if test "${lt_cv_cc_needs_belf+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_link") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest$ac_exeext &&
7359 $as_test_x conftest$ac_exeext; then
7360 lt_cv_cc_needs_belf=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 lt_cv_cc_needs_belf=no
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7369 conftest$ac_exeext conftest.$ac_ext
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7379 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381 CFLAGS="$SAVE_CFLAGS"
7385 # Find out which ABI we are using.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388 (eval $ac_compile) 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; then
7392 case `/usr/bin/file conftest.o` in
7394 case $lt_cv_prog_gnu_ld in
7395 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7397 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7409 need_locks="$enable_libtool_lock"
7413 rhapsody* | darwin*)
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 if test -n "$DSYMUTIL"; then
7423 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7443 if test -n "$DSYMUTIL"; then
7444 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7445 echo "${ECHO_T}$DSYMUTIL" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7453 if test -z "$ac_cv_prog_DSYMUTIL"; then
7454 ac_ct_DSYMUTIL=$DSYMUTIL
7455 # Extract the first word of "dsymutil", so it can be a program name with args.
7456 set dummy dsymutil; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test -n "$ac_ct_DSYMUTIL"; then
7463 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7485 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7491 if test "x$ac_ct_DSYMUTIL" = x; then
7494 case $cross_compiling:$ac_tool_warned in
7496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet. If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&5
7499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7500 whose name does not start with the host triplet. If you think this
7501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7502 ac_tool_warned=yes ;;
7504 DSYMUTIL=$ac_ct_DSYMUTIL
7507 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test -n "$NMEDIT"; then
7519 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 NMEDIT=$ac_cv_prog_NMEDIT
7539 if test -n "$NMEDIT"; then
7540 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7541 echo "${ECHO_T}$NMEDIT" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7549 if test -z "$ac_cv_prog_NMEDIT"; then
7550 ac_ct_NMEDIT=$NMEDIT
7551 # Extract the first word of "nmedit", so it can be a program name with args.
7552 set dummy nmedit; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 if test -n "$ac_ct_NMEDIT"; then
7559 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7579 if test -n "$ac_ct_NMEDIT"; then
7580 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7581 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7587 if test "x$ac_ct_NMEDIT" = x; then
7590 case $cross_compiling:$ac_tool_warned in
7592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet. If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&5
7595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet. If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7598 ac_tool_warned=yes ;;
7600 NMEDIT=$ac_ct_NMEDIT
7603 NMEDIT="$ac_cv_prog_NMEDIT"
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_prog_LIPO+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 if test -n "$LIPO"; then
7615 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 LIPO=$ac_cv_prog_LIPO
7635 if test -n "$LIPO"; then
7636 { echo "$as_me:$LINENO: result: $LIPO" >&5
7637 echo "${ECHO_T}$LIPO" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7645 if test -z "$ac_cv_prog_LIPO"; then
7647 # Extract the first word of "lipo", so it can be a program name with args.
7648 set dummy lipo; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 if test -n "$ac_ct_LIPO"; then
7655 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_prog_ac_ct_LIPO="lipo"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675 if test -n "$ac_ct_LIPO"; then
7676 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7677 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7683 if test "x$ac_ct_LIPO" = x; then
7686 case $cross_compiling:$ac_tool_warned in
7688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet. If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&5
7691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7692 whose name does not start with the host triplet. If you think this
7693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7694 ac_tool_warned=yes ;;
7699 LIPO="$ac_cv_prog_LIPO"
7702 if test -n "$ac_tool_prefix"; then
7703 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}otool; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_prog_OTOOL+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 if test -n "$OTOOL"; then
7711 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 OTOOL=$ac_cv_prog_OTOOL
7731 if test -n "$OTOOL"; then
7732 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7733 echo "${ECHO_T}$OTOOL" >&6; }
7735 { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7741 if test -z "$ac_cv_prog_OTOOL"; then
7743 # Extract the first word of "otool", so it can be a program name with args.
7744 set dummy otool; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 if test -n "$ac_ct_OTOOL"; then
7751 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_ac_ct_OTOOL="otool"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7771 if test -n "$ac_ct_OTOOL"; then
7772 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7773 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7775 { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7779 if test "x$ac_ct_OTOOL" = x; then
7782 case $cross_compiling:$ac_tool_warned in
7784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet. If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&5
7787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7788 whose name does not start with the host triplet. If you think this
7789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7790 ac_tool_warned=yes ;;
7795 OTOOL="$ac_cv_prog_OTOOL"
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 if test -n "$OTOOL64"; then
7807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 OTOOL64=$ac_cv_prog_OTOOL64
7827 if test -n "$OTOOL64"; then
7828 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7829 echo "${ECHO_T}$OTOOL64" >&6; }
7831 { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7837 if test -z "$ac_cv_prog_OTOOL64"; then
7838 ac_ct_OTOOL64=$OTOOL64
7839 # Extract the first word of "otool64", so it can be a program name with args.
7840 set dummy otool64; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 if test -n "$ac_ct_OTOOL64"; then
7847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_ac_ct_OTOOL64="otool64"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7867 if test -n "$ac_ct_OTOOL64"; then
7868 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7869 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7871 { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7875 if test "x$ac_ct_OTOOL64" = x; then
7878 case $cross_compiling:$ac_tool_warned in
7880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&5
7883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7884 whose name does not start with the host triplet. If you think this
7885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7886 ac_tool_warned=yes ;;
7888 OTOOL64=$ac_ct_OTOOL64
7891 OTOOL64="$ac_cv_prog_OTOOL64"
7920 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7921 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7922 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 lt_cv_apple_cc_single_mod=no
7926 if test -z "${LT_MULTI_MODULE}"; then
7927 # By default we will add the -single_module flag. You can override
7928 # by either setting the environment variable LT_MULTI_MODULE
7929 # non-empty at configure time, or by adding -multi_module to the
7931 rm -rf libconftest.dylib*
7932 echo "int foo(void){return 1;}" > conftest.c
7933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c" >&5
7935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7939 lt_cv_apple_cc_single_mod=yes
7941 cat conftest.err >&5
7943 rm -rf libconftest.dylib*
7947 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7948 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7949 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7950 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7951 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 lt_cv_ld_exported_symbols_list=no
7955 save_LDFLAGS=$LDFLAGS
7956 echo "_main" > conftest.sym
7957 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest$ac_exeext &&
7990 $as_test_x conftest$ac_exeext; then
7991 lt_cv_ld_exported_symbols_list=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 lt_cv_ld_exported_symbols_list=no
7999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8000 conftest$ac_exeext conftest.$ac_ext
8001 LDFLAGS="$save_LDFLAGS"
8004 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8005 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8007 rhapsody* | darwin1.[012])
8008 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011 darwin*) # darwin 5.x on
8012 # if running on 10.5 or later, the deployment target defaults
8013 # to the OS version, if on x86, and 10.4, the deployment
8014 # target defaults to 10.4. Don't you love it?
8015 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8016 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8017 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8021 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8025 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8026 _lt_dar_single_mod='$single_module'
8028 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8029 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8031 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8033 if test "$DSYMUTIL" != ":"; then
8034 _lt_dsymutil='~$DSYMUTIL $lib || :'
8041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8043 if test "${ac_cv_header_stdc+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_cv_header_stdc=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_cv_header_stdc=no
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 if test $ac_cv_header_stdc = yes; then
8093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104 $EGREP "memchr" >/dev/null 2>&1; then
8107 ac_cv_header_stdc=no
8113 if test $ac_cv_header_stdc = yes; then
8114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125 $EGREP "free" >/dev/null 2>&1; then
8128 ac_cv_header_stdc=no
8134 if test $ac_cv_header_stdc = yes; then
8135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136 if test "$cross_compiling" = yes; then
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8147 #if ((' ' & 0x0FF) == 0x020)
8148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8151 # define ISLOWER(c) \
8152 (('a' <= (c) && (c) <= 'i') \
8153 || ('j' <= (c) && (c) <= 'r') \
8154 || ('s' <= (c) && (c) <= 'z'))
8155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8163 for (i = 0; i < 256; i++)
8164 if (XOR (islower (i), ISLOWER (i))
8165 || toupper (i) != TOUPPER (i))
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_link") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8192 echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_cv_header_stdc=no
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8207 if test $ac_cv_header_stdc = yes; then
8209 cat >>confdefs.h <<\_ACEOF
8210 #define STDC_HEADERS 1
8215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8226 inttypes.h stdint.h unistd.h
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8242 #include <$ac_header>
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 eval "$as_ac_Header=yes"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 eval "$as_ac_Header=no"
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272 { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275 cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8285 for ac_header in dlfcn.h
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8301 #include <$ac_header>
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_compile") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest.$ac_objext; then
8320 eval "$as_ac_Header=yes"
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 eval "$as_ac_Header=no"
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8345 ac_cpp='$CXXCPP $CPPFLAGS'
8346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8349 if test -z "$CXX"; then
8350 if test -n "$CCC"; then
8353 if test -n "$ac_tool_prefix"; then
8354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_CXX+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 if test -n "$CXX"; then
8364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 if test -n "$CXX"; then
8385 { echo "$as_me:$LINENO: result: $CXX" >&5
8386 echo "${ECHO_T}$CXX" >&6; }
8388 { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8393 test -n "$CXX" && break
8396 if test -z "$CXX"; then
8398 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 if test -n "$ac_ct_CXX"; then
8408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_CXX="$ac_prog"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8428 if test -n "$ac_ct_CXX"; then
8429 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8432 { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8437 test -n "$ac_ct_CXX" && break
8440 if test "x$ac_ct_CXX" = x; then
8443 case $cross_compiling:$ac_tool_warned in
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8459 # Provide some information about the compiler.
8460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8461 ac_compiler=`set X $ac_compile; echo $2`
8462 { (ac_try="$ac_compiler --version >&5"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compiler --version >&5") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }
8472 { (ac_try="$ac_compiler -v >&5"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_compiler -v >&5") 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }
8482 { (ac_try="$ac_compiler -V >&5"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compiler -V >&5") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }
8493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_cxx_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8547 GXX=`test $ac_compiler_gnu = yes && echo yes`
8548 ac_test_CXXFLAGS=${CXXFLAGS+set}
8549 ac_save_CXXFLAGS=$CXXFLAGS
8550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_cxx_g+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8556 ac_cxx_werror_flag=yes
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_cxx_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_cv_prog_cxx_g=yes
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_cxx_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_cxx_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_prog_cxx_g=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8687 if test "$ac_test_CXXFLAGS" = set; then
8688 CXXFLAGS=$ac_save_CXXFLAGS
8689 elif test $ac_cv_prog_cxx_g = yes; then
8690 if test "$GXX" = yes; then
8696 if test "$GXX" = yes; then
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8710 (test "X$CXX" != "Xg++"))) ; then
8712 ac_cpp='$CXXCPP $CPPFLAGS'
8713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8716 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8718 if test -z "$CXXCPP"; then
8719 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 # Double quotes because CXXCPP needs to be expanded
8723 for CXXCPP in "$CXX -E" "/lib/cpp"
8726 for ac_cxx_preproc_warn_flag in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 # include <limits.h>
8743 # include <assert.h>
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } >/dev/null && {
8760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8761 test ! -s conftest.err
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 # Broken: fails on valid input.
8772 rm -f conftest.err conftest.$ac_ext
8774 # OK, works on sane cases. Now check whether nonexistent headers
8775 # can be detected and how.
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 #include <ac_nonexistent.h>
8784 if { (ac_try="$ac_cpp conftest.$ac_ext"
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } >/dev/null && {
8797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8798 test ! -s conftest.err
8800 # Broken: success on invalid input.
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 # Passes both tests.
8811 rm -f conftest.err conftest.$ac_ext
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.$ac_ext
8816 if $ac_preproc_ok; then
8821 ac_cv_prog_CXXCPP=$CXXCPP
8824 CXXCPP=$ac_cv_prog_CXXCPP
8826 ac_cv_prog_CXXCPP=$CXXCPP
8828 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8829 echo "${ECHO_T}$CXXCPP" >&6; }
8831 for ac_cxx_preproc_warn_flag in '' yes
8833 # Use a header file that comes with gcc, so configuring glibc
8834 # with a fresh cross-compiler works.
8835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 # <limits.h> exists even on freestanding compilers.
8837 # On the NeXT, cc -E runs the code through the compiler's parser,
8838 # not just through cpp. "Syntax error" is here to catch this case.
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8846 # include <limits.h>
8848 # include <assert.h>
8852 if { (ac_try="$ac_cpp conftest.$ac_ext"
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } >/dev/null && {
8865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8866 test ! -s conftest.err
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 # Broken: fails on valid input.
8877 rm -f conftest.err conftest.$ac_ext
8879 # OK, works on sane cases. Now check whether nonexistent headers
8880 # can be detected and how.
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 #include <ac_nonexistent.h>
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null && {
8902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8903 test ! -s conftest.err
8905 # Broken: success on invalid input.
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 # Passes both tests.
8916 rm -f conftest.err conftest.$ac_ext
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.$ac_ext
8921 if $ac_preproc_ok; then
8924 _lt_caught_CXX_error=yes
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934 _lt_caught_CXX_error=yes
8942 # Check whether --enable-shared was given.
8943 if test "${enable_shared+set}" = set; then
8944 enableval=$enable_shared; p=${PACKAGE-default}
8946 yes) enable_shared=yes ;;
8947 no) enable_shared=no ;;
8950 # Look at the argument we got. We use all the common list separators.
8951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952 for pkg in $enableval; do
8954 if test "X$pkg" = "X$p"; then
8971 # Check whether --enable-static was given.
8972 if test "${enable_static+set}" = set; then
8973 enableval=$enable_static; p=${PACKAGE-default}
8975 yes) enable_static=yes ;;
8976 no) enable_static=no ;;
8979 # Look at the argument we got. We use all the common list separators.
8980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981 for pkg in $enableval; do
8983 if test "X$pkg" = "X$p"; then
9012 # Check whether --with-pic was given.
9013 if test "${with_pic+set}" = set; then
9014 withval=$with_pic; pic_mode="$withval"
9020 test -z "$pic_mode" && pic_mode=default
9028 # Check whether --enable-fast-install was given.
9029 if test "${enable_fast_install+set}" = set; then
9030 enableval=$enable_fast_install; p=${PACKAGE-default}
9032 yes) enable_fast_install=yes ;;
9033 no) enable_fast_install=no ;;
9035 enable_fast_install=no
9036 # Look at the argument we got. We use all the common list separators.
9037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038 for pkg in $enableval; do
9040 if test "X$pkg" = "X$p"; then
9041 enable_fast_install=yes
9048 enable_fast_install=yes
9061 # This can be used to rebuild libtool when needed
9062 LIBTOOL_DEPS="$ltmain"
9064 # Always use our own libtool.
9065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9091 test -z "$LN_S" && LN_S="ln -s"
9106 if test -n "${ZSH_VERSION+set}" ; then
9107 setopt NO_GLOB_SUBST
9110 { echo "$as_me:$LINENO: checking for objdir" >&5
9111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9112 if test "${lt_cv_objdir+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 rm -f .libs 2>/dev/null
9116 mkdir .libs 2>/dev/null
9117 if test -d .libs; then
9120 # MS-DOS does not allow filenames that begin with a dot.
9123 rmdir .libs 2>/dev/null
9125 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9126 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9127 objdir=$lt_cv_objdir
9133 cat >>confdefs.h <<_ACEOF
9134 #define LT_OBJDIR "$lt_cv_objdir/"
9155 # AIX sometimes has problems with the GCC collect2 program. For some
9156 # reason, if we set the COLLECT_NAMES environment variable, the problems
9157 # vanish in a puff of smoke.
9158 if test "X${COLLECT_NAMES+set}" != Xset; then
9160 export COLLECT_NAMES
9165 # Sed substitution that helps us do robust quoting. It backslashifies
9166 # metacharacters that are still active within double-quoted strings.
9167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9169 # Same as above, but do not quote variable references.
9170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9172 # Sed substitution to delay expansion of an escaped shell variable in a
9173 # double_quote_subst'ed string.
9174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9176 # Sed substitution to delay expansion of an escaped single quote.
9177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9179 # Sed substitution to avoid accidental globbing in evaled expressions
9180 no_glob_subst='s/\*/\\\*/g'
9184 can_build_shared=yes
9186 # All known linkers require a `.a' archive for static linking (except MSVC,
9187 # which needs '.lib').
9190 with_gnu_ld="$lt_cv_prog_gnu_ld"
9193 old_CFLAGS="$CFLAGS"
9195 # Set sane defaults for various variables
9196 test -z "$CC" && CC=cc
9197 test -z "$LTCC" && LTCC=$CC
9198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9199 test -z "$LD" && LD=ld
9200 test -z "$ac_objext" && ac_objext=o
9202 for cc_temp in $compiler""; do
9204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9213 # Only perform the check for file, if the check method requires it
9214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9215 case $deplibs_check_method in
9217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9218 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9228 lt_save_MAGIC_CMD="$MAGIC_CMD"
9229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9231 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/${ac_tool_prefix}file; then
9235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9236 if test -n "$file_magic_test_file"; then
9237 case $deplibs_check_method in
9239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9242 $EGREP "$file_magic_regex" > /dev/null; then
9247 *** Warning: the command libtool uses to detect shared libraries,
9248 *** $file_magic_cmd, produces output that libtool cannot recognize.
9249 *** The result is that libtool may fail to recognize shared libraries
9250 *** as such. This will affect the creation of libtool libraries that
9251 *** depend on shared libraries, but programs linked with such libtool
9252 *** libraries will work regardless of this problem. Nevertheless, you
9253 *** may want to report the problem to your system manager and/or to
9254 *** bug-libtool@gnu.org
9264 MAGIC_CMD="$lt_save_MAGIC_CMD"
9269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270 if test -n "$MAGIC_CMD"; then
9271 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9274 { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9282 if test -z "$lt_cv_path_MAGIC_CMD"; then
9283 if test -n "$ac_tool_prefix"; then
9284 { echo "$as_me:$LINENO: checking for file" >&5
9285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9294 lt_save_MAGIC_CMD="$MAGIC_CMD"
9295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297 for ac_dir in $ac_dummy; do
9299 test -z "$ac_dir" && ac_dir=.
9300 if test -f $ac_dir/file; then
9301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9302 if test -n "$file_magic_test_file"; then
9303 case $deplibs_check_method in
9305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308 $EGREP "$file_magic_regex" > /dev/null; then
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such. This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem. Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9330 MAGIC_CMD="$lt_save_MAGIC_CMD"
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9340 { echo "$as_me:$LINENO: result: no" >&5
9341 echo "${ECHO_T}no" >&6; }
9354 # Use C for the default configuration in the libtool script
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364 # Source file extension for C test sources.
9367 # Object file extension for compiled C test sources.
9371 # Code to be used in simple compile tests
9372 lt_simple_compile_test_code="int some_variable = 0;"
9374 # Code to be used in simple link tests
9375 lt_simple_link_test_code='int main(){return(0);}'
9383 # If no C compiler was specified, use CC.
9386 # If no C compiler flags were specified, use CFLAGS.
9387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9389 # Allow CC to be a program name with arguments.
9392 # Save the default compiler, since it gets overwritten when the other
9393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9394 compiler_DEFAULT=$CC
9396 # save warnings/boilerplate of simple test code
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_compiler_boilerplate=`cat conftest.err`
9403 ac_outfile=conftest.$ac_objext
9404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9406 _lt_linker_boilerplate=`cat conftest.err`
9411 ## There is no encapsulation within the following macros, do not change
9412 ## the running order or otherwise move them around unless you know exactly
9413 ## what you are doing...
9414 if test -n "$compiler"; then
9416 lt_prog_compiler_no_builtin_flag=
9418 if test "$GCC" = yes; then
9419 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 lt_cv_prog_compiler_rtti_exceptions=no
9427 ac_outfile=conftest.$ac_objext
9428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9429 lt_compiler_flag="-fno-rtti -fno-exceptions"
9430 # Insert the option either (1) after the last *FLAGS variable, or
9431 # (2) before a word containing "conftest.", or (3) at the end.
9432 # Note that $ac_compile itself does not contain backslashes and begins
9433 # with a dollar sign (not a hyphen), so the echo should work correctly.
9434 # The option is referenced via a variable to avoid confusing sed.
9435 lt_compile=`echo "$ac_compile" | $SED \
9436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438 -e 's:$: $lt_compiler_flag:'`
9439 (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
9440 (eval "$lt_compile" 2>conftest.err)
9442 cat conftest.err >&5
9443 echo "$as_me:9443: \$? = $ac_status" >&5
9444 if (exit $ac_status) && test -s "$ac_outfile"; then
9445 # The compiler can only warn and ignore the option if not recognized
9446 # So say no if there are warnings other than the usual output.
9447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9450 lt_cv_prog_compiler_rtti_exceptions=yes
9456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9472 lt_prog_compiler_wl=
9473 lt_prog_compiler_pic=
9474 lt_prog_compiler_static=
9476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9479 if test "$GCC" = yes; then
9480 lt_prog_compiler_wl='-Wl,'
9481 lt_prog_compiler_static='-static'
9485 # All AIX code is PIC.
9486 if test "$host_cpu" = ia64; then
9487 # AIX 5 now supports IA64 processor
9488 lt_prog_compiler_static='-Bstatic'
9495 # see comment about AmigaOS4 .so support
9496 lt_prog_compiler_pic='-fPIC'
9499 # FIXME: we need at least 68020 code to build shared libraries, but
9500 # adding the `-m68020' flag to GCC prevents building anything better,
9502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9508 # PIC is the default for these OSes.
9511 mingw* | cygwin* | pw32* | os2* | cegcc*)
9512 # This hack is so that the source file can tell whether it is being
9513 # built for inclusion in a dll (and should export symbols for example).
9514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9515 # (--disable-auto-import) libraries
9516 lt_prog_compiler_pic='-DDLL_EXPORT'
9519 darwin* | rhapsody*)
9520 # PIC is the default on this platform
9521 # Common symbols not allowed in MH_DYLIB files
9522 lt_prog_compiler_pic='-fno-common'
9526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9528 # sets the default TLS model and affects inlining.
9534 lt_prog_compiler_pic='-fPIC'
9540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9541 # Instead, we relocate shared libraries at runtime.
9545 # Just because we use GCC doesn't mean we suddenly get shared libraries
9546 # on systems that don't support them.
9547 lt_prog_compiler_can_build_shared=no
9552 # QNX uses GNU C++, but need to define -shared option too, otherwise
9554 lt_prog_compiler_pic='-fPIC -shared'
9558 if test -d /usr/nec; then
9559 lt_prog_compiler_pic=-Kconform_pic
9564 lt_prog_compiler_pic='-fPIC'
9568 # PORTME Check for flag to pass linker flags through the system compiler.
9571 lt_prog_compiler_wl='-Wl,'
9572 if test "$host_cpu" = ia64; then
9573 # AIX 5 now supports IA64 processor
9574 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9580 mingw* | cygwin* | pw32* | os2* | cegcc*)
9581 # This hack is so that the source file can tell whether it is being
9582 # built for inclusion in a dll (and should export symbols for example).
9583 lt_prog_compiler_pic='-DDLL_EXPORT'
9586 hpux9* | hpux10* | hpux11*)
9587 lt_prog_compiler_wl='-Wl,'
9588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9595 lt_prog_compiler_pic='+Z'
9598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9599 lt_prog_compiler_static='${wl}-a ${wl}archive'
9602 irix5* | irix6* | nonstopux*)
9603 lt_prog_compiler_wl='-Wl,'
9604 # PIC (with -KPIC) is the default.
9605 lt_prog_compiler_static='-non_shared'
9608 linux* | k*bsd*-gnu)
9609 case $cc_basename in
9610 # old Intel for x86_64 which still supported -KPIC.
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-KPIC'
9614 lt_prog_compiler_static='-static'
9616 # icc used to be incompatible with GCC.
9617 # ICC 10 doesn't accept -KPIC any more.
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-fPIC'
9621 lt_prog_compiler_static='-static'
9623 # Lahey Fortran 8.1.
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_pic='--shared'
9627 lt_prog_compiler_static='--static'
9629 pgcc* | pgf77* | pgf90* | pgf95*)
9630 # Portland Group compilers (*not* the Pentium gcc compiler,
9631 # which looks to be a dead project)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_pic='-fpic'
9634 lt_prog_compiler_static='-Bstatic'
9637 lt_prog_compiler_wl='-Wl,'
9638 # All Alpha code is PIC.
9639 lt_prog_compiler_static='-non_shared'
9642 # IBM XL C 8.0/Fortran 10.1 on PPC
9643 lt_prog_compiler_wl='-Wl,'
9644 lt_prog_compiler_pic='-qpic'
9645 lt_prog_compiler_static='-qstaticlink'
9648 case `$CC -V 2>&1 | sed 5q` in
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 lt_prog_compiler_wl='-Wl,'
9656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9657 lt_prog_compiler_pic='-KPIC'
9658 lt_prog_compiler_static='-Bstatic'
9659 lt_prog_compiler_wl=''
9667 lt_prog_compiler_pic='-KPIC'
9668 lt_prog_compiler_static='-Bstatic'
9672 # QNX uses GNU C++, but need to define -shared option too, otherwise
9674 lt_prog_compiler_pic='-fPIC -shared'
9677 osf3* | osf4* | osf5*)
9678 lt_prog_compiler_wl='-Wl,'
9679 # All OSF/1 code is PIC.
9680 lt_prog_compiler_static='-non_shared'
9684 lt_prog_compiler_static='-non_shared'
9688 lt_prog_compiler_pic='-KPIC'
9689 lt_prog_compiler_static='-Bstatic'
9690 case $cc_basename in
9692 lt_prog_compiler_wl='-Qoption ld ';;
9694 lt_prog_compiler_wl='-Wl,';;
9699 lt_prog_compiler_wl='-Qoption ld '
9700 lt_prog_compiler_pic='-PIC'
9701 lt_prog_compiler_static='-Bstatic'
9704 sysv4 | sysv4.2uw2* | sysv4.3*)
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9711 if test -d /usr/nec ;then
9712 lt_prog_compiler_pic='-Kconform_pic'
9713 lt_prog_compiler_static='-Bstatic'
9717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_pic='-KPIC'
9720 lt_prog_compiler_static='-Bstatic'
9724 lt_prog_compiler_wl='-Wl,'
9725 lt_prog_compiler_can_build_shared=no
9729 lt_prog_compiler_pic='-pic'
9730 lt_prog_compiler_static='-Bstatic'
9734 lt_prog_compiler_can_build_shared=no
9740 # For platforms which do not support PIC, -DPIC is meaningless:
9742 lt_prog_compiler_pic=
9745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9757 # Check to make sure the PIC flag actually works.
9759 if test -n "$lt_prog_compiler_pic"; then
9760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 lt_cv_prog_compiler_pic_works=no
9766 ac_outfile=conftest.$ac_objext
9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9768 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9769 # Insert the option either (1) after the last *FLAGS variable, or
9770 # (2) before a word containing "conftest.", or (3) at the end.
9771 # Note that $ac_compile itself does not contain backslashes and begins
9772 # with a dollar sign (not a hyphen), so the echo should work correctly.
9773 # The option is referenced via a variable to avoid confusing sed.
9774 lt_compile=`echo "$ac_compile" | $SED \
9775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777 -e 's:$: $lt_compiler_flag:'`
9778 (eval echo "\"\$as_me:9778: $lt_compile\"" >&5)
9779 (eval "$lt_compile" 2>conftest.err)
9781 cat conftest.err >&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 if (exit $ac_status) && test -s "$ac_outfile"; then
9784 # The compiler can only warn and ignore the option if not recognized
9785 # So say no if there are warnings other than the usual output.
9786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9789 lt_cv_prog_compiler_pic_works=yes
9795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9796 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9799 case $lt_prog_compiler_pic in
9801 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9804 lt_prog_compiler_pic=
9805 lt_prog_compiler_can_build_shared=no
9816 # Check to make sure the static flag actually works.
9818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 lt_cv_prog_compiler_static_works=no
9825 save_LDFLAGS="$LDFLAGS"
9826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9829 # The linker can only warn and ignore the option if not recognized
9830 # So say no if there are warnings
9831 if test -s conftest.err; then
9832 # Append any errors to the config.log.
9833 cat conftest.err 1>&5
9834 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836 if diff conftest.exp conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_static_works=yes
9840 lt_cv_prog_compiler_static_works=yes
9844 LDFLAGS="$save_LDFLAGS"
9847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9853 lt_prog_compiler_static=
9862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 lt_cv_prog_compiler_c_o=no
9868 $RM -r conftest 2>/dev/null
9872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874 lt_compiler_flag="-o out/conftest2.$ac_objext"
9875 # Insert the option either (1) after the last *FLAGS variable, or
9876 # (2) before a word containing "conftest.", or (3) at the end.
9877 # Note that $ac_compile itself does not contain backslashes and begins
9878 # with a dollar sign (not a hyphen), so the echo should work correctly.
9879 lt_compile=`echo "$ac_compile" | $SED \
9880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882 -e 's:$: $lt_compiler_flag:'`
9883 (eval echo "\"\$as_me:9883: $lt_compile\"" >&5)
9884 (eval "$lt_compile" 2>out/conftest.err)
9886 cat out/conftest.err >&5
9887 echo "$as_me:9887: \$? = $ac_status" >&5
9888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings
9892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9895 lt_cv_prog_compiler_c_o=yes
9900 # SGI C++ compiler will create directory out/ii_files/ for
9901 # template instantiation
9902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9903 $RM out/* && rmdir out
9909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 lt_cv_prog_compiler_c_o=no
9923 $RM -r conftest 2>/dev/null
9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929 lt_compiler_flag="-o out/conftest2.$ac_objext"
9930 # Insert the option either (1) after the last *FLAGS variable, or
9931 # (2) before a word containing "conftest.", or (3) at the end.
9932 # Note that $ac_compile itself does not contain backslashes and begins
9933 # with a dollar sign (not a hyphen), so the echo should work correctly.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>out/conftest.err)
9941 cat out/conftest.err >&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945 # The compiler can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler_c_o=yes
9955 # SGI C++ compiler will create directory out/ii_files/ for
9956 # template instantiation
9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958 $RM out/* && rmdir out
9964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9970 hard_links="nottested"
9971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9972 # do not overwrite the value of need_locks provided by the user
9973 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979 ln conftest.a conftest.b 2>&5 || hard_links=no
9980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9981 { echo "$as_me:$LINENO: result: $hard_links" >&5
9982 echo "${ECHO_T}$hard_links" >&6; }
9983 if test "$hard_links" = no; then
9984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9997 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10001 allow_undefined_flag=
10002 always_export_symbols=no
10004 archive_expsym_cmds=
10005 compiler_needs_object=no
10006 enable_shared_with_static_runtimes=no
10007 export_dynamic_flag_spec=
10008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10009 hardcode_automatic=no
10011 hardcode_direct_absolute=no
10012 hardcode_libdir_flag_spec=
10013 hardcode_libdir_flag_spec_ld=
10014 hardcode_libdir_separator=
10015 hardcode_minus_L=no
10016 hardcode_shlibpath_var=unsupported
10018 link_all_deplibs=unknown
10020 module_expsym_cmds=
10021 old_archive_from_new_cmds=
10022 old_archive_from_expsyms_cmds=
10023 thread_safe_flag_spec=
10024 whole_archive_flag_spec=
10025 # include_expsyms should be a list of space-separated symbols to be *always*
10026 # included in the symbol list
10028 # exclude_expsyms can be an extended regexp of symbols to exclude
10029 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10030 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10031 # as well as any symbol that contains `d'.
10032 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10034 # platforms (ab)use it in PIC code, but their linkers get confused if
10035 # the symbol is explicitly referenced. Since portable code cannot
10036 # rely on this symbol name, it's probably fine to never include it in
10037 # preloaded symbol tables.
10038 # Exclude shared library initialization/finalization symbols.
10039 extract_expsyms_cmds=
10042 cygwin* | mingw* | pw32* | cegcc*)
10043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10044 # When not using gcc, we currently assume that we are using
10045 # Microsoft Visual C++.
10046 if test "$GCC" != yes; then
10051 # we just hope/assume this is gcc and not c89 (= MSVC++)
10060 if test "$with_gnu_ld" = yes; then
10061 # If archive_cmds runs LD, not CC, wlarc should be empty
10064 # Set some defaults for GNU ld with shared library support. These
10065 # are reset later if shared libraries are not supported. Putting them
10066 # here allows them to be overridden if necessary.
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 export_dynamic_flag_spec='${wl}--export-dynamic'
10070 # ancient GNU ld didn't support --whole-archive et. al.
10071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10074 whole_archive_flag_spec=
10076 supports_anon_versioning=no
10077 case `$LD -v 2>&1` in
10078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10081 *\ 2.11.*) ;; # other 2.11 versions
10082 *) supports_anon_versioning=yes ;;
10085 # See if GNU ld supports shared libraries.
10088 # On AIX/PPC, the GNU linker is very broken
10089 if test "$host_cpu" != ia64; then
10093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10094 *** to be unable to reliably create shared libraries on AIX.
10095 *** Therefore, libtool is disabling shared libraries support. If you
10096 *** really care for shared libraries, you may want to modify your PATH
10097 *** so that a non-GNU linker is found, and then restart.
10106 # see comment about AmigaOS4 .so support
10107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 archive_expsym_cmds=''
10111 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)'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_minus_L=yes
10119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120 allow_undefined_flag=unsupported
10121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10122 # support --undefined. This deserves some investigation. FIXME
10123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129 cygwin* | mingw* | pw32* | cegcc*)
10130 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10131 # as there is no search path for DLLs.
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 allow_undefined_flag=unsupported
10134 always_export_symbols=no
10135 enable_shared_with_static_runtimes=yes
10136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140 # If the export-symbols file already is a .def file (1st line
10141 # is EXPORTS), use it as is; otherwise, prepend...
10142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143 cp $export_symbols $output_objdir/$soname.def;
10145 echo EXPORTS > $output_objdir/$soname.def;
10146 cat $export_symbols >> $output_objdir/$soname.def;
10148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10156 hardcode_shlibpath_var=no
10157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158 export_dynamic_flag_spec='${wl}-E'
10159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10160 # Instead, shared libraries are loaded at an image base (0x10000000 by
10161 # default) and relocated if they conflict, which is a slow very memory
10162 # consuming and fragmenting process. To avoid this, we pick a random,
10163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10166 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'
10169 gnu* | linux* | tpf* | k*bsd*-gnu)
10171 if test "$host_os" = linux-dietlibc; then
10172 case $cc_basename in
10173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10177 && test "$tmp_diet" = no
10180 tmp_sharedflag='-shared'
10181 case $cc_basename,$host_cpu in
10182 pgcc*) # Portland Group C compiler
10183 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'
10184 tmp_addflag=' $pic_flag'
10186 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10187 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'
10188 tmp_addflag=' $pic_flag -Mnomain' ;;
10189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10190 tmp_addflag=' -i_dynamic' ;;
10191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10192 tmp_addflag=' -i_dynamic -nofor_main' ;;
10193 ifc* | ifort*) # Intel Fortran compiler
10194 tmp_addflag=' -nofor_main' ;;
10195 lf95*) # Lahey Fortran 8.1
10196 whole_archive_flag_spec=
10197 tmp_sharedflag='--shared' ;;
10198 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10199 tmp_sharedflag='-qmkshrobj'
10202 case `$CC -V 2>&1 | sed 5q` in
10203 *Sun\ C*) # Sun C 5.9
10204 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'
10205 compiler_needs_object=yes
10206 tmp_sharedflag='-G' ;;
10207 *Sun\ F*) # Sun Fortran 8.3
10208 tmp_sharedflag='-G' ;;
10210 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212 if test "x$supports_anon_versioning" = xyes; then
10213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215 echo "local: *; };" >> $output_objdir/$libname.ver~
10216 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10219 case $cc_basename in
10221 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10222 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10223 hardcode_libdir_flag_spec=
10224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10225 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10226 if test "x$supports_anon_versioning" = xyes; then
10227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10229 echo "local: *; };" >> $output_objdir/$libname.ver~
10230 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10255 *** create shared libraries on Solaris systems. Therefore, libtool
10256 *** is disabling shared libraries support. We urge you to upgrade GNU
10257 *** binutils to release 2.9.1 or newer. Another option is to modify
10258 *** your PATH or compiler configuration so that the native linker is
10259 *** used, and then restart.
10262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10271 case `$LD -v 2>&1` in
10272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10277 *** reliably create shared libraries on SCO systems. Therefore, libtool
10278 *** is disabling shared libraries support. We urge you to upgrade GNU
10279 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10286 # For security reasons, it is highly recommended that you always
10287 # use absolute paths for naming shared libraries, and exclude the
10288 # DT_RUNPATH tag from executables and libraries. But doing so
10289 # requires that you compile everything twice, which is a pain.
10290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes
10305 hardcode_shlibpath_var=no
10309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10318 if test "$ld_shlibs" = no; then
10320 hardcode_libdir_flag_spec=
10321 export_dynamic_flag_spec=
10322 whole_archive_flag_spec=
10325 # PORTME fill in a description of your system's linker (not GNU ld)
10328 allow_undefined_flag=unsupported
10329 always_export_symbols=yes
10330 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'
10331 # Note: this linker hardcodes the directories in LIBPATH if there
10332 # are no directories specified by -L.
10333 hardcode_minus_L=yes
10334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10335 # Neither direct hardcoding nor static linking is supported with a
10337 hardcode_direct=unsupported
10342 if test "$host_cpu" = ia64; then
10343 # On IA64, the linker does run time linking by default, so we don't
10344 # have to do anything special.
10345 aix_use_runtimelinking=no
10346 exp_sym_flag='-Bexport'
10349 # If we're using GNU nm, then we don't want the "-C" option.
10350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10352 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'
10354 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'
10356 aix_use_runtimelinking=no
10358 # Test if we are trying to use run time linking or normal
10359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10360 # need to do runtime linking.
10361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362 for ld_flag in $LDFLAGS; do
10363 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10364 aix_use_runtimelinking=yes
10371 exp_sym_flag='-bexport'
10372 no_entry_flag='-bnoentry'
10375 # When large executables or shared objects are built, AIX ld can
10376 # have problems creating the table of contents. If linking a library
10377 # or program results in "error TOC overflow" add -mminimal-toc to
10378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10382 hardcode_direct=yes
10383 hardcode_direct_absolute=yes
10384 hardcode_libdir_separator=':'
10385 link_all_deplibs=yes
10386 file_list_spec='${wl}-f,'
10388 if test "$GCC" = yes; then
10389 case $host_os in aix4.[012]|aix4.[012].*)
10390 # We only want to do this on AIX 4.2 and lower, the check
10391 # below for broken collect2 doesn't work under 4.3+
10392 collect2name=`${CC} -print-prog-name=collect2`
10393 if test -f "$collect2name" &&
10394 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10396 # We have reworked collect2
10399 # We have old collect2
10400 hardcode_direct=unsupported
10401 # It fails to find uninstalled libraries when the uninstalled
10402 # path is not listed in the libpath. Setting hardcode_minus_L
10403 # to unsupported forces relinking
10404 hardcode_minus_L=yes
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 hardcode_libdir_separator=
10410 shared_flag='-shared'
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag="$shared_flag "'${wl}-G'
10416 if test "$host_cpu" = ia64; then
10417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10418 # chokes on -Wl,-G. The following line is correct:
10421 if test "$aix_use_runtimelinking" = yes; then
10422 shared_flag='${wl}-G'
10424 shared_flag='${wl}-bM:SRE'
10429 export_dynamic_flag_spec='${wl}-bexpall'
10430 # It seems that -bexpall does not export symbols beginning with
10431 # underscore (_), so it is better to generate a list of symbols to export.
10432 always_export_symbols=yes
10433 if test "$aix_use_runtimelinking" = yes; then
10434 # Warning - without using the other runtime loading flags (-brtl),
10435 # -berok will link without error, but may produce a broken library.
10436 allow_undefined_flag='-berok'
10437 # Determine the default libpath from the value encoded in an
10438 # empty executable.
10439 cat >conftest.$ac_ext <<_ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext &&
10471 $as_test_x conftest$ac_exeext; then
10473 lt_aix_libpath_sed='
10474 /Import File Strings/,/^$/ {
10480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 # Check for a 64-bit object if we didn't find anything.
10482 if test -z "$aix_libpath"; then
10483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10497 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"
10499 if test "$host_cpu" = ia64; then
10500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501 allow_undefined_flag="-z nodefs"
10502 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"
10504 # Determine the default libpath from the value encoded in an
10505 # empty executable.
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest$ac_exeext &&
10538 $as_test_x conftest$ac_exeext; then
10540 lt_aix_libpath_sed='
10541 /Import File Strings/,/^$/ {
10547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 # Check for a 64-bit object if we didn't find anything.
10549 if test -z "$aix_libpath"; then
10550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10560 conftest$ac_exeext conftest.$ac_ext
10561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10564 # Warning - without using the other run time loading flags,
10565 # -berok will link without error, but may produce a broken library.
10566 no_undefined_flag=' ${wl}-bernotok'
10567 allow_undefined_flag=' ${wl}-berok'
10568 # Exported symbols can be pulled into shared objects from archives
10569 whole_archive_flag_spec='$convenience'
10570 archive_cmds_need_lc=yes
10571 # This is similar to how AIX traditionally builds its shared libraries.
10572 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'
10580 # see comment about AmigaOS4 .so support
10581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10582 archive_expsym_cmds=''
10585 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)'
10586 hardcode_libdir_flag_spec='-L$libdir'
10587 hardcode_minus_L=yes
10593 export_dynamic_flag_spec=-rdynamic
10596 cygwin* | mingw* | pw32* | cegcc*)
10597 # When not using gcc, we currently assume that we are using
10598 # Microsoft Visual C++.
10599 # hardcode_libdir_flag_spec is actually meaningless, as there is
10600 # no search path for DLLs.
10601 hardcode_libdir_flag_spec=' '
10602 allow_undefined_flag=unsupported
10603 # Tell ltmain to make .lib files, not .a files.
10605 # Tell ltmain to make .dll files, not .so files.
10607 # FIXME: Setting linknames here is a bad hack.
10608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10609 # The linker will automatically build a .lib file if we build a DLL.
10610 old_archive_from_new_cmds='true'
10611 # FIXME: Should let the user specify the lib program.
10612 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10613 fix_srcfile_path='`cygpath -w "$srcfile"`'
10614 enable_shared_with_static_runtimes=yes
10617 darwin* | rhapsody*)
10620 archive_cmds_need_lc=no
10622 hardcode_automatic=yes
10623 hardcode_shlibpath_var=unsupported
10624 whole_archive_flag_spec=''
10625 link_all_deplibs=yes
10626 allow_undefined_flag="$_lt_dar_allow_undefined"
10627 case $cc_basename in
10628 ifort*) _lt_dar_can_shared=yes ;;
10629 *) _lt_dar_can_shared=$GCC ;;
10631 if test "$_lt_dar_can_shared" = "yes"; then
10632 output_verbose_link_cmd=echo
10633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10635 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}"
10636 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}"
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_libdir_flag_spec='-L$libdir'
10647 hardcode_shlibpath_var=no
10654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10655 # support. Future versions do this automatically, but an explicit c++rt0.o
10656 # does not break anything, and helps significantly (at the cost of a little
10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10660 hardcode_libdir_flag_spec='-R$libdir'
10661 hardcode_direct=yes
10662 hardcode_shlibpath_var=no
10665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10668 hardcode_direct=yes
10669 hardcode_minus_L=yes
10670 hardcode_shlibpath_var=no
10673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10674 freebsd* | dragonfly*)
10675 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10682 if test "$GCC" = yes; then
10683 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'
10685 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'
10687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10688 hardcode_libdir_separator=:
10689 hardcode_direct=yes
10691 # hardcode_minus_L: Not really in the search PATH,
10692 # but as the default location of the library.
10693 hardcode_minus_L=yes
10694 export_dynamic_flag_spec='${wl}-E'
10698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10703 if test "$with_gnu_ld" = no; then
10704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10705 hardcode_libdir_flag_spec_ld='+b $libdir'
10706 hardcode_libdir_separator=:
10707 hardcode_direct=yes
10708 hardcode_direct_absolute=yes
10709 export_dynamic_flag_spec='${wl}-E'
10710 # hardcode_minus_L: Not really in the search PATH,
10711 # but as the default location of the library.
10712 hardcode_minus_L=yes
10717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742 if test "$with_gnu_ld" = no; then
10743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10744 hardcode_libdir_separator=:
10749 hardcode_shlibpath_var=no
10752 hardcode_direct=yes
10753 hardcode_direct_absolute=yes
10754 export_dynamic_flag_spec='${wl}-E'
10756 # hardcode_minus_L: Not really in the search PATH,
10757 # but as the default location of the library.
10758 hardcode_minus_L=yes
10764 irix5* | irix6* | nonstopux*)
10765 if test "$GCC" = yes; then
10766 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'
10767 # Try to use the -exported_symbol ld option, if it does not
10768 # work, assume that -exports_file does not work either and
10769 # implicitly export all symbols.
10770 save_LDFLAGS="$LDFLAGS"
10771 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10772 cat >conftest.$ac_ext <<_ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_link") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest$ac_exeext &&
10792 $as_test_x conftest$ac_exeext; then
10793 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'
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LDFLAGS="$save_LDFLAGS"
10806 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'
10807 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'
10809 archive_cmds_need_lc='no'
10810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811 hardcode_libdir_separator=:
10813 link_all_deplibs=yes
10817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10820 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10822 hardcode_libdir_flag_spec='-R$libdir'
10823 hardcode_direct=yes
10824 hardcode_shlibpath_var=no
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_direct=yes
10830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 hardcode_libdir_separator=:
10832 hardcode_shlibpath_var=no
10839 if test -f /usr/libexec/ld.so; then
10840 hardcode_direct=yes
10841 hardcode_shlibpath_var=no
10842 hardcode_direct_absolute=yes
10843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847 export_dynamic_flag_spec='${wl}-E'
10850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_libdir_flag_spec='-R$libdir'
10855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_minus_L=yes
10868 allow_undefined_flag=unsupported
10869 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'
10870 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10874 if test "$GCC" = yes; then
10875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876 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'
10878 allow_undefined_flag=' -expect_unresolved \*'
10879 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'
10881 archive_cmds_need_lc='no'
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 hardcode_libdir_separator=:
10886 osf4* | osf5*) # as osf3* with the addition of -msym flag
10887 if test "$GCC" = yes; then
10888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10889 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'
10890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892 allow_undefined_flag=' -expect_unresolved \*'
10893 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'
10894 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~
10895 $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'
10897 # Both c and cxx compiler support -rpath directly
10898 hardcode_libdir_flag_spec='-rpath $libdir'
10900 archive_cmds_need_lc='no'
10901 hardcode_libdir_separator=:
10905 no_undefined_flag=' -z defs'
10906 if test "$GCC" = yes; then
10908 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10912 case `$CC -V 2>&1` in
10915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10921 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10927 hardcode_libdir_flag_spec='-R$libdir'
10928 hardcode_shlibpath_var=no
10930 solaris2.[0-5] | solaris2.[0-5].*) ;;
10932 # The compiler driver will combine and reorder linker options,
10933 # but understands `-z linker_flag'. GCC discards it without `$wl',
10934 # but is careful enough not to reorder.
10935 # Supported since Solaris 2.6 (maybe 2.5.1?)
10936 if test "$GCC" = yes; then
10937 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10943 link_all_deplibs=yes
10947 if test "x$host_vendor" = xsequent; then
10948 # Use $CC to link under sequent, because it throws in some extra .o
10949 # files that make .init and .fini sections work.
10950 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 hardcode_direct=yes
10956 hardcode_minus_L=yes
10957 hardcode_shlibpath_var=no
10961 case $host_vendor in
10963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes # is this really true???
10967 ## LD is ld it makes a PLAMLIB
10968 ## CC just makes a GrossModule.
10969 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970 reload_cmds='$CC -r -o $output$reload_objs'
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10978 runpath_var='LD_RUN_PATH'
10979 hardcode_shlibpath_var=no
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_shlibpath_var=no
10985 export_dynamic_flag_spec='-Bexport'
10989 if test -d /usr/nec; then
10990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_shlibpath_var=no
10992 runpath_var=LD_RUN_PATH
10993 hardcode_runpath_var=yes
10998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999 no_undefined_flag='${wl}-z,text'
11000 archive_cmds_need_lc=no
11001 hardcode_shlibpath_var=no
11002 runpath_var='LD_RUN_PATH'
11004 if test "$GCC" = yes; then
11005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 sysv5* | sco3.2v5* | sco5v6*)
11014 # Note: We can NOT use -z defs as we might desire, because we do not
11015 # link with -lc, and that would cause any symbols used from libc to
11016 # always be unresolved, which means just about no library would
11017 # ever link correctly. If we're not using GNU ld we use -z text
11018 # though, which does catch some bad symbols but isn't as heavy-handed
11020 no_undefined_flag='${wl}-z,text'
11021 allow_undefined_flag='${wl}-z,nodefs'
11022 archive_cmds_need_lc=no
11023 hardcode_shlibpath_var=no
11024 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11025 hardcode_libdir_separator=':'
11026 link_all_deplibs=yes
11027 export_dynamic_flag_spec='${wl}-Bexport'
11028 runpath_var='LD_RUN_PATH'
11030 if test "$GCC" = yes; then
11031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_shlibpath_var=no
11050 if test x$host_vendor = xsni; then
11052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053 export_dynamic_flag_spec='${wl}-Blargedynsym'
11059 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11060 echo "${ECHO_T}$ld_shlibs" >&6; }
11061 test "$ld_shlibs" = no && can_build_shared=no
11063 with_gnu_ld=$with_gnu_ld
11080 # Do we need to explicitly link libc?
11082 case "x$archive_cmds_need_lc" in
11084 # Assume -lc should be added
11085 archive_cmds_need_lc=yes
11087 if test "$enable_shared" = yes && test "$GCC" = yes; then
11088 case $archive_cmds in
11090 # FIXME: we may have to deal with multi-command sequences.
11093 # Test whether the compiler implicitly links with -lc since on some
11094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095 # to ld, don't add -lc before -lgcc.
11096 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } 2>conftest.err; then
11108 libobjs=conftest.$ac_objext
11110 wl=$lt_prog_compiler_wl
11111 pic_flag=$lt_prog_compiler_pic
11117 lt_save_allow_undefined_flag=$allow_undefined_flag
11118 allow_undefined_flag=
11119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11120 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }
11125 archive_cmds_need_lc=no
11127 archive_cmds_need_lc=yes
11129 allow_undefined_flag=$lt_save_allow_undefined_flag
11131 cat conftest.err 1>&5
11134 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11298 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11299 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11301 if test "$GCC" = yes; then
11303 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304 *) lt_awk_arg="/^libraries:/" ;;
11306 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11308 # if the path contains ";" then we assume it to be the separator
11309 # otherwise default to the standard path separator (i.e. ":") - it is
11310 # assumed that no part of a normal pathname contains ";" but that should
11311 # okay in the real world where ";" in dirpaths is itself problematic.
11312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11314 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11316 # Ok, now we have the path, separated by spaces, we can step through it
11317 # and add multilib dir if necessary.
11318 lt_tmp_lt_search_path_spec=
11319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11320 for lt_sys_path in $lt_search_path_spec; do
11321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11324 test -d "$lt_sys_path" && \
11325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11328 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11329 BEGIN {RS=" "; FS="/|\n";} {
11332 for (lt_i = NF; lt_i > 0; lt_i--) {
11333 if ($lt_i != "" && $lt_i != ".") {
11334 if ($lt_i == "..") {
11337 if (lt_count == 0) {
11338 lt_foo="/" $lt_i lt_foo;
11345 if (lt_foo != "") { lt_freq[lt_foo]++; }
11346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11348 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11352 library_names_spec=
11353 libname_spec='lib$name'
11357 postuninstall_cmds=
11361 shlibpath_overrides_runpath=unknown
11363 dynamic_linker="$host_os ld.so"
11364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11365 need_lib_prefix=unknown
11366 hardcode_into_libs=no
11368 # when you set need_version to no, make sure it does not cause -set_version
11369 # flags to be left without arguments
11370 need_version=unknown
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11376 shlibpath_var=LIBPATH
11378 # AIX 3 has no versioning support, so we append a major version to the name.
11379 soname_spec='${libname}${release}${shared_ext}$major'
11386 hardcode_into_libs=yes
11387 if test "$host_cpu" = ia64; then
11388 # AIX 5 supports IA64
11389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11390 shlibpath_var=LD_LIBRARY_PATH
11392 # With GCC up to 2.95.x, collect2 would create an import file
11393 # for dependence libraries. The import file would start with
11394 # the line `#! .'. This would cause the generated library to
11395 # depend on `.', always an invalid library. This was fixed in
11396 # development snapshots of GCC prior to 3.0.
11398 aix4 | aix4.[01] | aix4.[01].*)
11399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11404 can_build_shared=no
11408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11409 # soname into executable. Probably we can add versioning support to
11410 # collect2, so additional links can be useful in future.
11411 if test "$aix_use_runtimelinking" = yes; then
11412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11413 # instead of lib<name>.a to let people know that these are not
11414 # typical AIX shared libraries.
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 # We preserve .a as extension for shared libraries through AIX4.2
11418 # and later when we are not doing run time linking.
11419 library_names_spec='${libname}${release}.a $libname.a'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LIBPATH
11429 # Since July 2007 AmigaOS4 officially supports .so libraries.
11430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 library_names_spec='$libname.ixlibrary $libname.a'
11435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11436 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'
11442 library_names_spec='${libname}${shared_ext}'
11443 dynamic_linker="$host_os ld.so"
11444 shlibpath_var=LIBRARY_PATH
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11456 # the default ld.so.conf also contains /usr/contrib/lib and
11457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11458 # libtool to hard-code these into programs
11461 cygwin* | mingw* | pw32* | cegcc*)
11462 version_type=windows
11467 case $GCC,$host_os in
11468 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11469 library_names_spec='$libname.dll.a'
11470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471 postinstall_cmds='base_file=`basename \${file}`~
11472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11473 dldir=$destdir/`dirname \$dlpath`~
11474 test -d \$dldir || mkdir -p \$dldir~
11475 $install_prog $dir/$dlname \$dldir/$dlname~
11476 chmod a+x \$dldir/$dlname~
11477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481 dlpath=$dir/\$dldll~
11483 shlibpath_overrides_runpath=yes
11487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11492 # MinGW DLLs use traditional 'lib' prefix
11493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496 # It is most probably a Windows format PATH printed by
11497 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11498 # path with ; separators, and with drive letters. We can handle the
11499 # drive letters (cygwin fileutils understands them), so leave them,
11500 # especially as we might pass files found there to a mingw objdump,
11501 # which wouldn't understand a cygwinified path. Ahh.
11502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11508 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11518 dynamic_linker='Win32 ld.exe'
11519 # FIXME: first we should search . and the directory the executable is in
11523 darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11528 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529 soname_spec='${libname}${release}${major}$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11551 freebsd* | dragonfly*)
11552 # DragonFly does not have aout. When/if they implement a new
11553 # versioning mechanism, adjust this.
11554 if test -x /usr/bin/objformat; then
11555 objformat=`/usr/bin/objformat`
11558 freebsd[123]*) objformat=aout ;;
11559 *) objformat=elf ;;
11562 version_type=freebsd-$objformat
11563 case $version_type in
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11574 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=yes
11579 freebsd3.[01]* | freebsdelf3.[01]*)
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11583 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11588 *) # from 4.6 on, and DragonFly
11589 shlibpath_overrides_runpath=yes
11590 hardcode_into_libs=yes
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 hardcode_into_libs=yes
11605 hpux9* | hpux10* | hpux11*)
11606 # Give a soname corresponding to the major version so that dld.sl refuses to
11607 # link against other versions.
11614 hardcode_into_libs=yes
11615 dynamic_linker="$host_os dld.so"
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 if test "X$HPUX_IA64_MODE" = X32; then
11621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629 hardcode_into_libs=yes
11630 dynamic_linker="$host_os dld.sl"
11631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11640 dynamic_linker="$host_os dld.sl"
11641 shlibpath_var=SHLIB_PATH
11642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11647 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11648 postinstall_cmds='chmod 555 $lib'
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=no
11660 hardcode_into_libs=yes
11663 irix5* | irix6* | nonstopux*)
11665 nonstopux*) version_type=nonstopux ;;
11667 if test "$lt_cv_prog_gnu_ld" = yes; then
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11678 irix5* | nonstopux*)
11679 libsuff= shlibsuff=
11682 case $LD in # libtool.m4 will add one of these switches to LD
11683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11684 libsuff= shlibsuff= libmagic=32-bit;;
11685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11686 libsuff=32 shlibsuff=N32 libmagic=N32;;
11687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11689 *) libsuff= shlibsuff= libmagic=never-match;;
11693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11694 shlibpath_overrides_runpath=no
11695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11697 hardcode_into_libs=yes
11700 # No shared lib support for Linux oldld, aout, or coff.
11701 linux*oldld* | linux*aout* | linux*coff*)
11705 # This must be Linux ELF.
11706 linux* | k*bsd*-gnu)
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=no
11715 # Some binutils ld are patched to set DT_RUNPATH
11716 save_LDFLAGS=$LDFLAGS
11717 save_libdir=$libdir
11718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest$ac_exeext &&
11752 $as_test_x conftest$ac_exeext; then
11753 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11754 shlibpath_overrides_runpath=yes
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LDFLAGS=$save_LDFLAGS
11767 libdir=$save_libdir
11769 # This implies no fast_install, which is unacceptable.
11770 # Some rework will be needed to allow for fast_install
11771 # before this can be enabled.
11772 hardcode_into_libs=yes
11774 # Append ld.so.conf contents to the search path
11775 if test -f /etc/ld.so.conf; then
11776 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' ' '`
11777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11780 # We used to test for /lib/ld.so.1 and disable shared libraries on
11781 # powerpc, because MkLinux only supported shared libraries with the
11782 # GNU dynamic linker. Since this was broken with cross compilers,
11783 # most powerpc-linux boxes support dynamic linking these days and
11784 # people can always --disable-shared, the test was removed, and we
11785 # assume the GNU/Linux dynamic linker is in use.
11786 dynamic_linker='GNU/Linux ld.so'
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796 dynamic_linker='NetBSD (a.out) ld.so'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 dynamic_linker='NetBSD ld.elf_so'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 dynamic_linker='ldqnx.so'
11828 sys_lib_dlsearch_path_spec="/usr/lib"
11830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11833 *) need_version=no ;;
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840 openbsd2.[89] | openbsd2.[89].*)
11841 shlibpath_overrides_runpath=no
11844 shlibpath_overrides_runpath=yes
11848 shlibpath_overrides_runpath=yes
11853 libname_spec='$name'
11856 library_names_spec='$libname${shared_ext} $libname.a'
11857 dynamic_linker='OS/2 ld.exe'
11858 shlibpath_var=LIBPATH
11861 osf3* | osf4* | osf5*)
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 hardcode_into_libs=yes
11885 # ldd complains unless libraries are executable
11886 postinstall_cmds='chmod +x $lib'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 if test "$with_gnu_ld" = yes; then
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 case $host_vendor in
11908 shlibpath_overrides_runpath=no
11910 runpath_var=LD_RUN_PATH
11918 shlibpath_overrides_runpath=no
11919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 if test -d /usr/nec ;then
11927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928 soname_spec='$libname${shared_ext}.$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934 version_type=freebsd-elf
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=yes
11941 hardcode_into_libs=yes
11942 if test "$with_gnu_ld" = yes; then
11943 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952 sys_lib_dlsearch_path_spec='/usr/lib'
11956 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 shlibpath_overrides_runpath=no
11963 hardcode_into_libs=yes
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11978 echo "${ECHO_T}$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12079 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12082 if test -n "$hardcode_libdir_flag_spec" ||
12083 test -n "$runpath_var" ||
12084 test "X$hardcode_automatic" = "Xyes" ; then
12086 # We can hardcode non-existent directories.
12087 if test "$hardcode_direct" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092 test "$hardcode_minus_L" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action=relink
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action=immediate
12100 # We cannot hardcode anything, or else we can only hardcode existing
12102 hardcode_action=unsupported
12104 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12105 echo "${ECHO_T}$hardcode_action" >&6; }
12107 if test "$hardcode_action" = relink ||
12108 test "$inherit_rpath" = yes; then
12109 # Fast installation is not supported
12110 enable_fast_install=no
12111 elif test "$shlibpath_overrides_runpath" = yes ||
12112 test "$enable_shared" = no; then
12113 # Fast installation is not necessary
12114 enable_fast_install=needless
12122 if test "x$enable_dlopen" != xyes; then
12123 enable_dlopen=unknown
12124 enable_dlopen_self=unknown
12125 enable_dlopen_self_static=unknown
12132 lt_cv_dlopen="load_add_on"
12134 lt_cv_dlopen_self=yes
12137 mingw* | pw32* | cegcc*)
12138 lt_cv_dlopen="LoadLibrary"
12143 lt_cv_dlopen="dlopen"
12148 # if libdl is installed we need to link against it
12149 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_dl_dlopen=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_dl_dlopen=no
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12210 if test $ac_cv_lib_dl_dlopen = yes; then
12211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12214 lt_cv_dlopen="dyld"
12216 lt_cv_dlopen_self=yes
12223 { echo "$as_me:$LINENO: checking for shl_load" >&5
12224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12225 if test "${ac_cv_func_shl_load+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define shl_load innocuous_shl_load
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char shl_load (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12244 # include <limits.h>
12246 # include <assert.h>
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12258 /* The GNU C library defines this for functions which it implements
12259 to always fail with ENOSYS. Some functions are actually named
12260 something starting with __ and the normal name is an alias. */
12261 #if defined __stub_shl_load || defined __stub___shl_load
12268 return shl_load ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_func_shl_load=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_func_shl_load=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12302 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12303 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12304 if test $ac_cv_func_shl_load = yes; then
12305 lt_cv_dlopen="shl_load"
12307 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_check_lib_save_LIBS=$LIBS
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12331 return shl_load ();
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 ac_cv_lib_dld_shl_load=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_dld_shl_load=no
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12371 { echo "$as_me:$LINENO: checking for dlopen" >&5
12372 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12373 if test "${ac_cv_func_dlopen+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12384 #define dlopen innocuous_dlopen
12386 /* System header to define __stub macros and hopefully few prototypes,
12387 which can conflict with char dlopen (); below.
12388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 <limits.h> exists even on freestanding compilers. */
12392 # include <limits.h>
12394 # include <assert.h>
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined __stub_dlopen || defined __stub___dlopen
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_func_dlopen=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_func_dlopen=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12452 if test $ac_cv_func_dlopen = yes; then
12453 lt_cv_dlopen="dlopen"
12455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 ac_check_lib_save_LIBS=$LIBS
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>conftest.er1
12493 grep -v '^ *+' conftest.er1 >conftest.err
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && {
12498 test -z "$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12500 } && test -s conftest$ac_exeext &&
12501 $as_test_x conftest$ac_exeext; then
12502 ac_cv_lib_dl_dlopen=yes
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_cv_lib_dl_dlopen=no
12510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12516 if test $ac_cv_lib_dl_dlopen = yes; then
12517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12519 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12520 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12521 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lsvld $LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 ac_cv_lib_svld_dlopen=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_lib_svld_dlopen=no
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12580 if test $ac_cv_lib_svld_dlopen = yes; then
12581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12583 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 ac_check_lib_save_LIBS=$LIBS
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12607 return dld_link ();
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630 ac_cv_lib_dld_dld_link=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_cv_lib_dld_dld_link=no
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12644 if test $ac_cv_lib_dld_dld_link = yes; then
12645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12666 if test "x$lt_cv_dlopen" != xno; then
12672 case $lt_cv_dlopen in
12674 save_CPPFLAGS="$CPPFLAGS"
12675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12677 save_LDFLAGS="$LDFLAGS"
12678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12681 LIBS="$lt_cv_dlopen_libs $LIBS"
12683 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12685 if test "${lt_cv_dlopen_self+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 if test "$cross_compiling" = yes; then :
12689 lt_cv_dlopen_self=cross
12691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12692 lt_status=$lt_dlunknown
12693 cat > conftest.$ac_ext <<_LT_EOF
12694 #line 12694 "configure"
12695 #include "confdefs.h"
12704 # define LT_DLGLOBAL RTLD_GLOBAL
12707 # define LT_DLGLOBAL DL_GLOBAL
12709 # define LT_DLGLOBAL 0
12713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12714 find out it does not work in some platform. */
12715 #ifndef LT_DLLAZY_OR_NOW
12717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12720 # define LT_DLLAZY_OR_NOW DL_LAZY
12723 # define LT_DLLAZY_OR_NOW RTLD_NOW
12726 # define LT_DLLAZY_OR_NOW DL_NOW
12728 # define LT_DLLAZY_OR_NOW 0
12735 void fnord() { int i=42;}
12738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739 int status = $lt_dlunknown;
12743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12745 /* dlclose (self); */
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12758 (./conftest; exit; ) >&5 2>/dev/null
12760 case x$lt_status in
12761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12766 # compilation failed
12767 lt_cv_dlopen_self=no
12774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12777 if test "x$lt_cv_dlopen_self" = xyes; then
12778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12779 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12781 if test "${lt_cv_dlopen_self_static+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 if test "$cross_compiling" = yes; then :
12785 lt_cv_dlopen_self_static=cross
12787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788 lt_status=$lt_dlunknown
12789 cat > conftest.$ac_ext <<_LT_EOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12800 # define LT_DLGLOBAL RTLD_GLOBAL
12803 # define LT_DLGLOBAL DL_GLOBAL
12805 # define LT_DLGLOBAL 0
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810 find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12816 # define LT_DLLAZY_OR_NOW DL_LAZY
12819 # define LT_DLLAZY_OR_NOW RTLD_NOW
12822 # define LT_DLLAZY_OR_NOW DL_NOW
12824 # define LT_DLLAZY_OR_NOW 0
12831 void fnord() { int i=42;}
12834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835 int status = $lt_dlunknown;
12839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12841 /* dlclose (self); */
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12854 (./conftest; exit; ) >&5 2>/dev/null
12856 case x$lt_status in
12857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12859 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12862 # compilation failed
12863 lt_cv_dlopen_self_static=no
12870 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12874 CPPFLAGS="$save_CPPFLAGS"
12875 LDFLAGS="$save_LDFLAGS"
12880 case $lt_cv_dlopen_self in
12881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12882 *) enable_dlopen_self=unknown ;;
12885 case $lt_cv_dlopen_self_static in
12886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12887 *) enable_dlopen_self_static=unknown ;;
12909 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12914 { echo "$as_me:$LINENO: result: yes" >&5
12915 echo "${ECHO_T}yes" >&6; }
12917 # FIXME - insert some real tests, host_os isn't really good enough
12920 if test -n "$STRIP" ; then
12921 striplib="$STRIP -x"
12922 old_striplib="$STRIP -S"
12923 { echo "$as_me:$LINENO: result: yes" >&5
12924 echo "${ECHO_T}yes" >&6; }
12926 { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12931 { echo "$as_me:$LINENO: result: no" >&5
12932 echo "${ECHO_T}no" >&6; }
12948 # Report which library types will actually be built
12949 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12951 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12952 echo "${ECHO_T}$can_build_shared" >&6; }
12954 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12956 test "$can_build_shared" = "no" && enable_shared=no
12958 # On AIX, shared libraries and static libraries use the same namespace, and
12959 # are all built from PIC.
12962 test "$enable_shared" = yes && enable_static=no
12963 if test -n "$RANLIB"; then
12964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12965 postinstall_cmds='$RANLIB $lib'
12970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12971 test "$enable_shared" = yes && enable_static=no
12975 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12976 echo "${ECHO_T}$enable_shared" >&6; }
12978 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12980 # Make sure either enable_shared or enable_static is yes.
12981 test "$enable_shared" = yes || enable_static=yes
12982 { echo "$as_me:$LINENO: result: $enable_static" >&5
12983 echo "${ECHO_T}$enable_static" >&6; }
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12999 ac_cpp='$CXXCPP $CPPFLAGS'
13000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13004 archive_cmds_need_lc_CXX=no
13005 allow_undefined_flag_CXX=
13006 always_export_symbols_CXX=no
13007 archive_expsym_cmds_CXX=
13008 compiler_needs_object_CXX=no
13009 export_dynamic_flag_spec_CXX=
13010 hardcode_direct_CXX=no
13011 hardcode_direct_absolute_CXX=no
13012 hardcode_libdir_flag_spec_CXX=
13013 hardcode_libdir_flag_spec_ld_CXX=
13014 hardcode_libdir_separator_CXX=
13015 hardcode_minus_L_CXX=no
13016 hardcode_shlibpath_var_CXX=unsupported
13017 hardcode_automatic_CXX=no
13018 inherit_rpath_CXX=no
13020 module_expsym_cmds_CXX=
13021 link_all_deplibs_CXX=unknown
13022 old_archive_cmds_CXX=$old_archive_cmds
13023 no_undefined_flag_CXX=
13024 whole_archive_flag_spec_CXX=
13025 enable_shared_with_static_runtimes_CXX=no
13027 # Source file extension for C++ test sources.
13030 # Object file extension for compiled C++ test sources.
13034 # No sense in running all these tests if we already determined that
13035 # the CXX compiler isn't working. Some variables (like enable_shared)
13036 # are currently assumed to apply to all compilers on this platform,
13037 # and will be corrupted by setting them based on a non-working compiler.
13038 if test "$_lt_caught_CXX_error" != yes; then
13039 # Code to be used in simple compile tests
13040 lt_simple_compile_test_code="int some_variable = 0;"
13042 # Code to be used in simple link tests
13043 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13052 # If no C compiler was specified, use CC.
13055 # If no C compiler flags were specified, use CFLAGS.
13056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13058 # Allow CC to be a program name with arguments.
13062 # save warnings/boilerplate of simple test code
13063 ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_compiler_boilerplate=`cat conftest.err`
13069 ac_outfile=conftest.$ac_objext
13070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072 _lt_linker_boilerplate=`cat conftest.err`
13076 # Allow CC to be a program name with arguments.
13081 lt_save_with_gnu_ld=$with_gnu_ld
13082 lt_save_path_LD=$lt_cv_path_LD
13083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13086 $as_unset lt_cv_prog_gnu_ld
13088 if test -n "${lt_cv_path_LDCXX+set}"; then
13089 lt_cv_path_LD=$lt_cv_path_LDCXX
13091 $as_unset lt_cv_path_LD
13093 test -z "${LDCXX+set}" || LD=$LDCXX
13097 for cc_temp in $compiler""; do
13099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13108 if test -n "$compiler"; then
13109 # We don't want -fno-exception when compiling C++ code, so set the
13110 # no_builtin_flag separately
13111 if test "$GXX" = yes; then
13112 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13114 lt_prog_compiler_no_builtin_flag_CXX=
13117 if test "$GXX" = yes; then
13118 # Set up default GNU C++ configuration
13122 # Check whether --with-gnu-ld was given.
13123 if test "${with_gnu_ld+set}" = set; then
13124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13130 if test "$GCC" = yes; then
13131 # Check if gcc -print-prog-name=ld gives a path.
13132 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13136 # gcc leaves a trailing carriage return which upsets mingw
13137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13142 # Accept absolute paths.
13144 re_direlt='/[^/][^/]*/\.\./'
13145 # Canonicalize the pathname of ld
13146 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13147 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13148 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13150 test -z "$LD" && LD="$ac_prog"
13153 # If it fails, then pretend we aren't using GCC.
13157 # If it is relative, then search for the first ld in PATH.
13158 with_gnu_ld=unknown
13161 elif test "$with_gnu_ld" = yes; then
13162 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13165 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13168 if test "${lt_cv_path_LD+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 if test -z "$LD"; then
13172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13173 for ac_dir in $PATH; do
13175 test -z "$ac_dir" && ac_dir=.
13176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13177 lt_cv_path_LD="$ac_dir/$ac_prog"
13178 # Check to see if the program is GNU ld. I'd rather use --version,
13179 # but apparently some variants of GNU ld only accept -v.
13180 # Break only if it was the GNU/non-GNU ld that we prefer.
13181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13182 *GNU* | *'with BFD'*)
13183 test "$with_gnu_ld" != no && break
13186 test "$with_gnu_ld" != yes && break
13193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13197 LD="$lt_cv_path_LD"
13198 if test -n "$LD"; then
13199 { echo "$as_me:$LINENO: result: $LD" >&5
13200 echo "${ECHO_T}$LD" >&6; }
13202 { echo "$as_me:$LINENO: result: no" >&5
13203 echo "${ECHO_T}no" >&6; }
13205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13207 { (exit 1); exit 1; }; }
13208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13214 case `$LD -v 2>&1 </dev/null` in
13215 *GNU* | *'with BFD'*)
13216 lt_cv_prog_gnu_ld=yes
13219 lt_cv_prog_gnu_ld=no
13223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13225 with_gnu_ld=$lt_cv_prog_gnu_ld
13233 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13234 # archiving commands below assume that GNU ld is being used.
13235 if test "$with_gnu_ld" = yes; then
13236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 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'
13239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13242 # If archive_cmds runs LD, not CC, wlarc should be empty
13243 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13244 # investigate it a little bit more. (MM)
13247 # ancient GNU ld didn't support --whole-archive et. al.
13248 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13249 $GREP 'no-whole-archive' > /dev/null; then
13250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13252 whole_archive_flag_spec_CXX=
13258 # A generic and very simple default shared library creation
13259 # command for GNU C++ for the case where it uses the native
13260 # linker, instead of GNU ld. If possible, this setting should
13261 # overridden to take advantage of the native linker features on
13262 # the platform it is being used on.
13263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13266 # Commands to make compiler produce verbose output that lists
13267 # what "hidden" libraries, object files and flags are used when
13268 # linking a shared library.
13269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13277 # PORTME: fill in a description of your system's C++ link characteristics
13278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13283 # FIXME: insert proper C++ library support
13287 if test "$host_cpu" = ia64; then
13288 # On IA64, the linker does run time linking by default, so we don't
13289 # have to do anything special.
13290 aix_use_runtimelinking=no
13291 exp_sym_flag='-Bexport'
13294 aix_use_runtimelinking=no
13296 # Test if we are trying to use run time linking or normal
13297 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13298 # need to do runtime linking.
13299 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13300 for ld_flag in $LDFLAGS; do
13303 aix_use_runtimelinking=yes
13311 exp_sym_flag='-bexport'
13312 no_entry_flag='-bnoentry'
13315 # When large executables or shared objects are built, AIX ld can
13316 # have problems creating the table of contents. If linking a library
13317 # or program results in "error TOC overflow" add -mminimal-toc to
13318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13321 archive_cmds_CXX=''
13322 hardcode_direct_CXX=yes
13323 hardcode_direct_absolute_CXX=yes
13324 hardcode_libdir_separator_CXX=':'
13325 link_all_deplibs_CXX=yes
13326 file_list_spec_CXX='${wl}-f,'
13328 if test "$GXX" = yes; then
13329 case $host_os in aix4.[012]|aix4.[012].*)
13330 # We only want to do this on AIX 4.2 and lower, the check
13331 # below for broken collect2 doesn't work under 4.3+
13332 collect2name=`${CC} -print-prog-name=collect2`
13333 if test -f "$collect2name" &&
13334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13336 # We have reworked collect2
13339 # We have old collect2
13340 hardcode_direct_CXX=unsupported
13341 # It fails to find uninstalled libraries when the uninstalled
13342 # path is not listed in the libpath. Setting hardcode_minus_L
13343 # to unsupported forces relinking
13344 hardcode_minus_L_CXX=yes
13345 hardcode_libdir_flag_spec_CXX='-L$libdir'
13346 hardcode_libdir_separator_CXX=
13349 shared_flag='-shared'
13350 if test "$aix_use_runtimelinking" = yes; then
13351 shared_flag="$shared_flag "'${wl}-G'
13355 if test "$host_cpu" = ia64; then
13356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13357 # chokes on -Wl,-G. The following line is correct:
13360 if test "$aix_use_runtimelinking" = yes; then
13361 shared_flag='${wl}-G'
13363 shared_flag='${wl}-bM:SRE'
13368 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13369 # It seems that -bexpall does not export symbols beginning with
13370 # underscore (_), so it is better to generate a list of symbols to
13372 always_export_symbols_CXX=yes
13373 if test "$aix_use_runtimelinking" = yes; then
13374 # Warning - without using the other runtime loading flags (-brtl),
13375 # -berok will link without error, but may produce a broken library.
13376 allow_undefined_flag_CXX='-berok'
13377 # Determine the default libpath from the value encoded in an empty
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_link") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_cxx_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest$ac_exeext &&
13411 $as_test_x conftest$ac_exeext; then
13413 lt_aix_libpath_sed='
13414 /Import File Strings/,/^$/ {
13420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 # Check for a 64-bit object if we didn't find anything.
13422 if test -z "$aix_libpath"; then
13423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433 conftest$ac_exeext conftest.$ac_ext
13434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13438 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"
13440 if test "$host_cpu" = ia64; then
13441 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13442 allow_undefined_flag_CXX="-z nodefs"
13443 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"
13445 # Determine the default libpath from the value encoded in an
13446 # empty executable.
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && {
13476 test -z "$ac_cxx_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest$ac_exeext &&
13479 $as_test_x conftest$ac_exeext; then
13481 lt_aix_libpath_sed='
13482 /Import File Strings/,/^$/ {
13488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 # Check for a 64-bit object if we didn't find anything.
13490 if test -z "$aix_libpath"; then
13491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13504 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13505 # Warning - without using the other run time loading flags,
13506 # -berok will link without error, but may produce a broken library.
13507 no_undefined_flag_CXX=' ${wl}-bernotok'
13508 allow_undefined_flag_CXX=' ${wl}-berok'
13509 # Exported symbols can be pulled into shared objects from archives
13510 whole_archive_flag_spec_CXX='$convenience'
13511 archive_cmds_need_lc_CXX=yes
13512 # This is similar to how AIX traditionally builds its shared
13514 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'
13520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13521 allow_undefined_flag_CXX=unsupported
13522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523 # support --undefined. This deserves some investigation. FIXME
13524 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13539 cygwin* | mingw* | pw32* | cegcc*)
13540 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13541 # as there is no search path for DLLs.
13542 hardcode_libdir_flag_spec_CXX='-L$libdir'
13543 allow_undefined_flag_CXX=unsupported
13544 always_export_symbols_CXX=no
13545 enable_shared_with_static_runtimes_CXX=yes
13547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13548 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'
13549 # If the export-symbols file already is a .def file (1st line
13550 # is EXPORTS), use it as is; otherwise, prepend...
13551 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13552 cp $export_symbols $output_objdir/$soname.def;
13554 echo EXPORTS > $output_objdir/$soname.def;
13555 cat $export_symbols >> $output_objdir/$soname.def;
13557 $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'
13562 darwin* | rhapsody*)
13565 archive_cmds_need_lc_CXX=no
13566 hardcode_direct_CXX=no
13567 hardcode_automatic_CXX=yes
13568 hardcode_shlibpath_var_CXX=unsupported
13569 whole_archive_flag_spec_CXX=''
13570 link_all_deplibs_CXX=yes
13571 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13572 case $cc_basename in
13573 ifort*) _lt_dar_can_shared=yes ;;
13574 *) _lt_dar_can_shared=$GCC ;;
13576 if test "$_lt_dar_can_shared" = "yes"; then
13577 output_verbose_link_cmd=echo
13578 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}"
13579 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13580 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}"
13581 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}"
13582 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13583 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}"
13584 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}"
13594 case $cc_basename in
13596 # FIXME: insert proper C++ library support
13600 # Green Hills C++ Compiler
13601 # FIXME: insert proper C++ library support
13605 # FIXME: insert proper C++ library support
13612 # C++ shared libraries reported to be fairly broken before
13618 archive_cmds_need_lc_CXX=no
13621 freebsd* | dragonfly*)
13622 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13631 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13632 hardcode_libdir_separator_CXX=:
13633 export_dynamic_flag_spec_CXX='${wl}-E'
13634 hardcode_direct_CXX=yes
13635 hardcode_minus_L_CXX=yes # Not in the search PATH,
13636 # but as the default
13637 # location of the library.
13639 case $cc_basename in
13641 # FIXME: insert proper C++ library support
13645 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'
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13654 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'
13657 if test "$GXX" = yes; then
13658 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'
13660 # FIXME: insert proper C++ library support
13668 if test $with_gnu_ld = no; then
13669 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13670 hardcode_libdir_separator_CXX=:
13676 export_dynamic_flag_spec_CXX='${wl}-E'
13682 hardcode_direct_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13686 hardcode_direct_CXX=yes
13687 hardcode_direct_absolute_CXX=yes
13688 hardcode_minus_L_CXX=yes # Not in the search PATH,
13689 # but as the default
13690 # location of the library.
13694 case $cc_basename in
13696 # FIXME: insert proper C++ library support
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13715 # There doesn't appear to be a way to prevent this compiler from
13716 # explicitly linking system object files so we need to strip them
13717 # from the output so that they don't get included in the library
13719 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'
13722 if test "$GXX" = yes; then
13723 if test $with_gnu_ld = no; then
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13732 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'
13737 # FIXME: insert proper C++ library support
13745 hardcode_direct_CXX=no
13746 hardcode_shlibpath_var_CXX=no
13747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748 export_dynamic_flag_spec_CXX='${wl}-E'
13749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13750 # Instead, shared libraries are loaded at an image base (0x10000000 by
13751 # default) and relocated if they conflict, which is a slow very memory
13752 # consuming and fragmenting process. To avoid this, we pick a random,
13753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13755 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'
13756 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'
13759 case $cc_basename in
13762 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'
13764 # Archives containing C++ object files must be created using
13765 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13766 # necessary to make sure instantiated templates are included
13768 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13771 if test "$GXX" = yes; then
13772 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13775 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'
13778 link_all_deplibs_CXX=yes
13781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13782 hardcode_libdir_separator_CXX=:
13783 inherit_rpath_CXX=yes
13786 linux* | k*bsd*-gnu)
13787 case $cc_basename in
13789 # Kuck and Associates, Inc. (KAI) C++ Compiler
13791 # KCC will only create a shared library if the output file
13792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13793 # to its proper name (with version) after linking.
13794 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'
13795 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'
13796 # Commands to make compiler produce verbose output that lists
13797 # what "hidden" libraries, object files and flags are used when
13798 # linking a shared library.
13800 # There doesn't appear to be a way to prevent this compiler from
13801 # explicitly linking system object files so we need to strip them
13802 # from the output so that they don't get included in the library
13804 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'
13806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809 # Archives containing C++ object files must be created using
13810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13816 # version 8.0 and above of icpc choke on multiply defined symbols
13817 # if we add $predep_objects and $postdep_objects, however 7.1 and
13818 # earlier do not add the objects themselves.
13819 case `$CC -V 2>&1` in
13821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 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'
13824 *) # Version 8.0 or newer
13827 ia64*) tmp_idyn=' -i_dynamic';;
13829 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830 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'
13833 archive_cmds_need_lc_CXX=no
13834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13836 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13839 # Portland Group C++ compiler
13841 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13842 prelink_cmds_CXX='tpldir=Template.dir~
13844 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13845 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13846 old_archive_cmds_CXX='tpldir=Template.dir~
13848 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13849 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13851 archive_cmds_CXX='tpldir=Template.dir~
13853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13854 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13855 archive_expsym_cmds_CXX='tpldir=Template.dir~
13857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858 $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'
13860 *) # Version 6 will use weak symbols
13861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13862 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'
13866 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13868 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'
13872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873 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'
13875 runpath_var=LD_RUN_PATH
13876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13877 hardcode_libdir_separator_CXX=:
13879 # Commands to make compiler produce verbose output that lists
13880 # what "hidden" libraries, object files and flags are used when
13881 # linking a shared library.
13883 # There doesn't appear to be a way to prevent this compiler from
13884 # explicitly linking system object files so we need to strip them
13885 # from the output so that they don't get included in the library
13887 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'
13890 # IBM XL 8.0 on PPC, with GNU ld
13891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13893 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894 if test "x$supports_anon_versioning" = xyes; then
13895 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13897 echo "local: *; };" >> $output_objdir/$libname.ver~
13898 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13902 case `$CC -V 2>&1 | sed 5q` in
13905 no_undefined_flag_CXX=' -zdefs'
13906 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907 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'
13908 hardcode_libdir_flag_spec_CXX='-R$libdir'
13909 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'
13910 compiler_needs_object_CXX=yes
13912 # Not sure whether something based on
13913 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13915 output_verbose_link_cmd='echo'
13917 # Archives containing C++ object files must be created using
13918 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13919 # necessary to make sure instantiated templates are included
13921 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13929 # FIXME: insert proper C++ library support
13934 # FIXME: insert proper C++ library support
13939 case $cc_basename in
13941 # FIXME: insert proper C++ library support
13945 # FIXME: insert proper C++ library support
13952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13953 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13955 hardcode_libdir_flag_spec_CXX='-R$libdir'
13956 hardcode_direct_CXX=yes
13957 hardcode_shlibpath_var_CXX=no
13959 # Workaround some broken pre-1.5 toolchains
13960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13968 # C++ shared libraries are fairly broken
13973 if test -f /usr/libexec/ld.so; then
13974 hardcode_direct_CXX=yes
13975 hardcode_shlibpath_var_CXX=no
13976 hardcode_direct_absolute_CXX=yes
13977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13980 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13981 export_dynamic_flag_spec_CXX='${wl}-E'
13982 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13984 output_verbose_link_cmd=echo
13990 osf3* | osf4* | osf5*)
13991 case $cc_basename in
13993 # Kuck and Associates, Inc. (KAI) C++ Compiler
13995 # KCC will only create a shared library if the output file
13996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13997 # to its proper name (with version) after linking.
13998 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'
14000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14001 hardcode_libdir_separator_CXX=:
14003 # Archives containing C++ object files must be created using
14004 # the KAI C++ compiler.
14006 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14007 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14011 # Rational C++ 2.4.1
14012 # FIXME: insert proper C++ library support
14018 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14019 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'
14020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14023 allow_undefined_flag_CXX=' -expect_unresolved \*'
14024 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'
14025 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14026 echo "-hidden">> $lib.exp~
14027 $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~
14029 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14033 hardcode_libdir_separator_CXX=:
14035 # Commands to make compiler produce verbose output that lists
14036 # what "hidden" libraries, object files and flags are used when
14037 # linking a shared library.
14039 # There doesn't appear to be a way to prevent this compiler from
14040 # explicitly linking system object files so we need to strip them
14041 # from the output so that they don't get included in the library
14043 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'
14046 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14047 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14050 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'
14053 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'
14057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058 hardcode_libdir_separator_CXX=:
14060 # Commands to make compiler produce verbose output that lists
14061 # what "hidden" libraries, object files and flags are used when
14062 # linking a shared library.
14063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14066 # FIXME: insert proper C++ library support
14074 # FIXME: insert proper C++ library support
14079 case $cc_basename in
14082 # FIXME: insert proper C++ library support
14087 # FIXME: insert proper C++ library support
14091 # FIXME: insert proper C++ library support
14098 case $cc_basename in
14100 # Sun C++ 4.2, 5.x and Centerline C++
14101 archive_cmds_need_lc_CXX=yes
14102 no_undefined_flag_CXX=' -zdefs'
14103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14105 $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'
14107 hardcode_libdir_flag_spec_CXX='-R$libdir'
14108 hardcode_shlibpath_var_CXX=no
14110 solaris2.[0-5] | solaris2.[0-5].*) ;;
14112 # The compiler driver will combine and reorder linker options,
14113 # but understands `-z linker_flag'.
14114 # Supported since Solaris 2.6 (maybe 2.5.1?)
14115 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14118 link_all_deplibs_CXX=yes
14120 output_verbose_link_cmd='echo'
14122 # Archives containing C++ object files must be created using
14123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14124 # necessary to make sure instantiated templates are included
14126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14129 # Green Hills C++ Compiler
14130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14132 # The C++ compiler must be used to create the archive.
14133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14136 # GNU C++ compiler with Solaris linker
14137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14139 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14140 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14144 # Commands to make compiler produce verbose output that lists
14145 # what "hidden" libraries, object files and flags are used when
14146 # linking a shared library.
14147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14155 # Commands to make compiler produce verbose output that lists
14156 # what "hidden" libraries, object files and flags are used when
14157 # linking a shared library.
14158 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14163 solaris2.[0-5] | solaris2.[0-5].*) ;;
14165 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14174 no_undefined_flag_CXX='${wl}-z,text'
14175 archive_cmds_need_lc_CXX=no
14176 hardcode_shlibpath_var_CXX=no
14177 runpath_var='LD_RUN_PATH'
14179 case $cc_basename in
14181 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191 sysv5* | sco3.2v5* | sco5v6*)
14192 # Note: We can NOT use -z defs as we might desire, because we do not
14193 # link with -lc, and that would cause any symbols used from libc to
14194 # always be unresolved, which means just about no library would
14195 # ever link correctly. If we're not using GNU ld we use -z text
14196 # though, which does catch some bad symbols but isn't as heavy-handed
14198 no_undefined_flag_CXX='${wl}-z,text'
14199 allow_undefined_flag_CXX='${wl}-z,nodefs'
14200 archive_cmds_need_lc_CXX=no
14201 hardcode_shlibpath_var_CXX=no
14202 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14203 hardcode_libdir_separator_CXX=':'
14204 link_all_deplibs_CXX=yes
14205 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14206 runpath_var='LD_RUN_PATH'
14208 case $cc_basename in
14210 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 case $cc_basename in
14223 # NonStop-UX NCC 3.20
14224 # FIXME: insert proper C++ library support
14228 # FIXME: insert proper C++ library support
14235 # FIXME: insert proper C++ library support
14240 # FIXME: insert proper C++ library support
14245 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14247 test "$ld_shlibs_CXX" = no && can_build_shared=no
14253 ## There is no encapsulation within the following macros, do not change
14254 ## the running order or otherwise move them around unless you know exactly
14255 ## what you are doing...
14256 # Dependencies to place before and after the object being linked:
14257 predep_objects_CXX=
14258 postdep_objects_CXX=
14261 compiler_lib_search_path_CXX=
14263 cat > conftest.$ac_ext <<_LT_EOF
14267 Foo (void) { a = 0; }
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; then
14278 # Parse the compiler output and extract the necessary
14279 # objects, libraries and library flags.
14281 # Sentinel used to keep track of whether or not we are before
14282 # the conftest object file.
14283 pre_test_object_deps_done=no
14285 for p in `eval "$output_verbose_link_cmd"`; do
14289 # Some compilers place space between "-{L,R}" and the path.
14290 # Remove the space.
14291 if test $p = "-L" ||
14292 test $p = "-R"; then
14299 if test "$pre_test_object_deps_done" = no; then
14302 # Internal compiler library paths should come after those
14303 # provided the user. The postdeps already come after the
14304 # user supplied libs so there is no need to process them.
14305 if test -z "$compiler_lib_search_path_CXX"; then
14306 compiler_lib_search_path_CXX="${prev}${p}"
14308 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14311 # The "-l" case would never come before the object being
14312 # linked, so don't bother handling this case.
14315 if test -z "$postdeps_CXX"; then
14316 postdeps_CXX="${prev}${p}"
14318 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14324 # This assumes that the test object file only shows up
14325 # once in the compiler output.
14326 if test "$p" = "conftest.$objext"; then
14327 pre_test_object_deps_done=yes
14331 if test "$pre_test_object_deps_done" = no; then
14332 if test -z "$predep_objects_CXX"; then
14333 predep_objects_CXX="$p"
14335 predep_objects_CXX="$predep_objects_CXX $p"
14338 if test -z "$postdep_objects_CXX"; then
14339 postdep_objects_CXX="$p"
14341 postdep_objects_CXX="$postdep_objects_CXX $p"
14346 *) ;; # Ignore the rest.
14354 echo "libtool.m4: error: problem compiling CXX test program"
14357 $RM -f confest.$objext
14359 # PORTME: override above test on systems where it is broken
14362 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14363 # hack all around it, let's just trust "g++" to DTRT.
14364 predep_objects_CXX=
14365 postdep_objects_CXX=
14370 case `$CC -V 2>&1 | sed 5q` in
14374 # The more standards-conforming stlport4 library is
14375 # incompatible with the Cstd library. Avoid specifying
14376 # it if it's in CXXFLAGS. Ignore libCrun as
14377 # -library=stlport4 depends on it.
14378 case " $CXX $CXXFLAGS " in
14379 *" -library=stlport4 "*)
14380 solaris_use_stlport4=yes
14384 if test "$solaris_use_stlport4" != yes; then
14385 postdeps_CXX='-library=Cstd -library=Crun'
14392 case $cc_basename in
14394 # The more standards-conforming stlport4 library is
14395 # incompatible with the Cstd library. Avoid specifying
14396 # it if it's in CXXFLAGS. Ignore libCrun as
14397 # -library=stlport4 depends on it.
14398 case " $CXX $CXXFLAGS " in
14399 *" -library=stlport4 "*)
14400 solaris_use_stlport4=yes
14404 # Adding this requires a known-good setup of shared libraries for
14405 # Sun compiler versions before 5.6, else PIC objects from an old
14406 # archive will be linked into the output, leading to subtle bugs.
14407 if test "$solaris_use_stlport4" != yes; then
14408 postdeps_CXX='-library=Cstd -library=Crun'
14416 case " $postdeps_CXX " in
14417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14419 compiler_lib_search_dirs_CXX=
14420 if test -n "${compiler_lib_search_path_CXX}"; then
14421 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14454 lt_prog_compiler_wl_CXX=
14455 lt_prog_compiler_pic_CXX=
14456 lt_prog_compiler_static_CXX=
14458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14461 # C++ specific cases for pic, static, wl, etc.
14462 if test "$GXX" = yes; then
14463 lt_prog_compiler_wl_CXX='-Wl,'
14464 lt_prog_compiler_static_CXX='-static'
14468 # All AIX code is PIC.
14469 if test "$host_cpu" = ia64; then
14470 # AIX 5 now supports IA64 processor
14471 lt_prog_compiler_static_CXX='-Bstatic'
14478 # see comment about AmigaOS4 .so support
14479 lt_prog_compiler_pic_CXX='-fPIC'
14482 # FIXME: we need at least 68020 code to build shared libraries, but
14483 # adding the `-m68020' flag to GCC prevents building anything better,
14485 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491 # PIC is the default for these OSes.
14493 mingw* | cygwin* | os2* | pw32* | cegcc*)
14494 # This hack is so that the source file can tell whether it is being
14495 # built for inclusion in a dll (and should export symbols for example).
14496 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14497 # (--disable-auto-import) libraries
14498 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14500 darwin* | rhapsody*)
14501 # PIC is the default on this platform
14502 # Common symbols not allowed in MH_DYLIB files
14503 lt_prog_compiler_pic_CXX='-fno-common'
14506 # DJGPP does not support shared libraries at all
14507 lt_prog_compiler_pic_CXX=
14510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511 # Instead, we relocate shared libraries at runtime.
14514 if test -d /usr/nec; then
14515 lt_prog_compiler_pic_CXX=-Kconform_pic
14519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14521 # sets the default TLS model and affects inlining.
14526 lt_prog_compiler_pic_CXX='-fPIC'
14531 # QNX uses GNU C++, but need to define -shared option too, otherwise
14532 # it will coredump.
14533 lt_prog_compiler_pic_CXX='-fPIC -shared'
14536 lt_prog_compiler_pic_CXX='-fPIC'
14542 # All AIX code is PIC.
14543 if test "$host_cpu" = ia64; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static_CXX='-Bstatic'
14547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14551 case $cc_basename in
14553 # Green Hills C++ Compiler
14554 # _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"
14559 case $cc_basename in
14561 lt_prog_compiler_pic_CXX='-KPIC'
14564 # Green Hills C++ Compiler
14565 lt_prog_compiler_pic_CXX='-pic'
14571 freebsd* | dragonfly*)
14572 # FreeBSD uses GNU C++
14574 hpux9* | hpux10* | hpux11*)
14575 case $cc_basename in
14577 lt_prog_compiler_wl_CXX='-Wl,'
14578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14579 if test "$host_cpu" != ia64; then
14580 lt_prog_compiler_pic_CXX='+Z'
14584 lt_prog_compiler_wl_CXX='-Wl,'
14585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14591 lt_prog_compiler_pic_CXX='+Z'
14600 # This is c89, which is MS Visual C++ (no shared libs)
14601 # Anyone wants to do a port?
14603 irix5* | irix6* | nonstopux*)
14604 case $cc_basename in
14606 lt_prog_compiler_wl_CXX='-Wl,'
14607 lt_prog_compiler_static_CXX='-non_shared'
14608 # CC pic flag -KPIC is the default.
14614 linux* | k*bsd*-gnu)
14615 case $cc_basename in
14618 lt_prog_compiler_wl_CXX='--backend -Wl,'
14619 lt_prog_compiler_pic_CXX='-fPIC'
14622 # old Intel C++ for x86_64 which still supported -KPIC.
14623 lt_prog_compiler_wl_CXX='-Wl,'
14624 lt_prog_compiler_pic_CXX='-KPIC'
14625 lt_prog_compiler_static_CXX='-static'
14628 # Intel C++, used to be incompatible with GCC.
14629 # ICC 10 doesn't accept -KPIC any more.
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 lt_prog_compiler_pic_CXX='-fPIC'
14632 lt_prog_compiler_static_CXX='-static'
14635 # Portland Group C++ compiler
14636 lt_prog_compiler_wl_CXX='-Wl,'
14637 lt_prog_compiler_pic_CXX='-fpic'
14638 lt_prog_compiler_static_CXX='-Bstatic'
14642 # Make sure the PIC flag is empty. It appears that all Alpha
14643 # Linux and Compaq Tru64 Unix objects are PIC.
14644 lt_prog_compiler_pic_CXX=
14645 lt_prog_compiler_static_CXX='-non_shared'
14648 # IBM XL 8.0 on PPC
14649 lt_prog_compiler_wl_CXX='-Wl,'
14650 lt_prog_compiler_pic_CXX='-qpic'
14651 lt_prog_compiler_static_CXX='-qstaticlink'
14654 case `$CC -V 2>&1 | sed 5q` in
14657 lt_prog_compiler_pic_CXX='-KPIC'
14658 lt_prog_compiler_static_CXX='-Bstatic'
14659 lt_prog_compiler_wl_CXX='-Qoption ld '
14670 case $cc_basename in
14672 lt_prog_compiler_pic_CXX='-W c,exportall'
14681 # QNX uses GNU C++, but need to define -shared option too, otherwise
14682 # it will coredump.
14683 lt_prog_compiler_pic_CXX='-fPIC -shared'
14685 osf3* | osf4* | osf5*)
14686 case $cc_basename in
14688 lt_prog_compiler_wl_CXX='--backend -Wl,'
14691 # Rational C++ 2.4.1
14692 lt_prog_compiler_pic_CXX='-pic'
14695 # Digital/Compaq C++
14696 lt_prog_compiler_wl_CXX='-Wl,'
14697 # Make sure the PIC flag is empty. It appears that all Alpha
14698 # Linux and Compaq Tru64 Unix objects are PIC.
14699 lt_prog_compiler_pic_CXX=
14700 lt_prog_compiler_static_CXX='-non_shared'
14709 case $cc_basename in
14711 # Sun C++ 4.2, 5.x and Centerline C++
14712 lt_prog_compiler_pic_CXX='-KPIC'
14713 lt_prog_compiler_static_CXX='-Bstatic'
14714 lt_prog_compiler_wl_CXX='-Qoption ld '
14717 # Green Hills C++ Compiler
14718 lt_prog_compiler_pic_CXX='-PIC'
14725 case $cc_basename in
14728 lt_prog_compiler_pic_CXX='-pic'
14729 lt_prog_compiler_static_CXX='-Bstatic'
14733 lt_prog_compiler_pic_CXX='-pic'
14739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14740 case $cc_basename in
14742 lt_prog_compiler_wl_CXX='-Wl,'
14743 lt_prog_compiler_pic_CXX='-KPIC'
14744 lt_prog_compiler_static_CXX='-Bstatic'
14749 case $cc_basename in
14751 # NonStop-UX NCC 3.20
14752 lt_prog_compiler_pic_CXX='-KPIC'
14761 lt_prog_compiler_can_build_shared_CXX=no
14767 # For platforms which do not support PIC, -DPIC is meaningless:
14769 lt_prog_compiler_pic_CXX=
14772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14781 # Check to make sure the PIC flag actually works.
14783 if test -n "$lt_prog_compiler_pic_CXX"; then
14784 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14786 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 lt_cv_prog_compiler_pic_works_CXX=no
14790 ac_outfile=conftest.$ac_objext
14791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14793 # Insert the option either (1) after the last *FLAGS variable, or
14794 # (2) before a word containing "conftest.", or (3) at the end.
14795 # Note that $ac_compile itself does not contain backslashes and begins
14796 # with a dollar sign (not a hyphen), so the echo should work correctly.
14797 # The option is referenced via a variable to avoid confusing sed.
14798 lt_compile=`echo "$ac_compile" | $SED \
14799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801 -e 's:$: $lt_compiler_flag:'`
14802 (eval echo "\"\$as_me:14802: $lt_compile\"" >&5)
14803 (eval "$lt_compile" 2>conftest.err)
14805 cat conftest.err >&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 if (exit $ac_status) && test -s "$ac_outfile"; then
14808 # The compiler can only warn and ignore the option if not recognized
14809 # So say no if there are warnings other than the usual output.
14810 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14813 lt_cv_prog_compiler_pic_works_CXX=yes
14819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14823 case $lt_prog_compiler_pic_CXX in
14825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14828 lt_prog_compiler_pic_CXX=
14829 lt_prog_compiler_can_build_shared_CXX=no
14837 # Check to make sure the static flag actually works.
14839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14842 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 lt_cv_prog_compiler_static_works_CXX=no
14846 save_LDFLAGS="$LDFLAGS"
14847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14850 # The linker can only warn and ignore the option if not recognized
14851 # So say no if there are warnings
14852 if test -s conftest.err; then
14853 # Append any errors to the config.log.
14854 cat conftest.err 1>&5
14855 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14857 if diff conftest.exp conftest.er2 >/dev/null; then
14858 lt_cv_prog_compiler_static_works_CXX=yes
14861 lt_cv_prog_compiler_static_works_CXX=yes
14865 LDFLAGS="$save_LDFLAGS"
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14874 lt_prog_compiler_static_CXX=
14880 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 lt_cv_prog_compiler_c_o_CXX=no
14886 $RM -r conftest 2>/dev/null
14890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892 lt_compiler_flag="-o out/conftest2.$ac_objext"
14893 # Insert the option either (1) after the last *FLAGS variable, or
14894 # (2) before a word containing "conftest.", or (3) at the end.
14895 # Note that $ac_compile itself does not contain backslashes and begins
14896 # with a dollar sign (not a hyphen), so the echo should work correctly.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>out/conftest.err)
14904 cat out/conftest.err >&5
14905 echo "$as_me:14905: \$? = $ac_status" >&5
14906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14908 # The compiler can only warn and ignore the option if not recognized
14909 # So say no if there are warnings
14910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14913 lt_cv_prog_compiler_c_o_CXX=yes
14918 # SGI C++ compiler will create directory out/ii_files/ for
14919 # template instantiation
14920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14921 $RM out/* && rmdir out
14927 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14932 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 lt_cv_prog_compiler_c_o_CXX=no
14938 $RM -r conftest 2>/dev/null
14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944 lt_compiler_flag="-o out/conftest2.$ac_objext"
14945 # Insert the option either (1) after the last *FLAGS variable, or
14946 # (2) before a word containing "conftest.", or (3) at the end.
14947 # Note that $ac_compile itself does not contain backslashes and begins
14948 # with a dollar sign (not a hyphen), so the echo should work correctly.
14949 lt_compile=`echo "$ac_compile" | $SED \
14950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952 -e 's:$: $lt_compiler_flag:'`
14953 (eval echo "\"\$as_me:14953: $lt_compile\"" >&5)
14954 (eval "$lt_compile" 2>out/conftest.err)
14956 cat out/conftest.err >&5
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14960 # The compiler can only warn and ignore the option if not recognized
14961 # So say no if there are warnings
14962 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14965 lt_cv_prog_compiler_c_o_CXX=yes
14970 # SGI C++ compiler will create directory out/ii_files/ for
14971 # template instantiation
14972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14973 $RM out/* && rmdir out
14979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14985 hard_links="nottested"
14986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14987 # do not overwrite the value of need_locks provided by the user
14988 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994 ln conftest.a conftest.b 2>&5 || hard_links=no
14995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14996 { echo "$as_me:$LINENO: result: $hard_links" >&5
14997 echo "${ECHO_T}$hard_links" >&6; }
14998 if test "$hard_links" = no; then
14999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15009 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15015 # If we're using GNU nm, then we don't want the "-C" option.
15016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15018 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'
15020 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'
15024 export_symbols_cmds_CXX="$ltdll_cmds"
15026 cygwin* | mingw* | cegcc*)
15027 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'
15030 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15033 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15035 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15036 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15037 test "$ld_shlibs_CXX" = no && can_build_shared=no
15039 with_gnu_ld_CXX=$with_gnu_ld
15047 # Do we need to explicitly link libc?
15049 case "x$archive_cmds_need_lc_CXX" in
15051 # Assume -lc should be added
15052 archive_cmds_need_lc_CXX=yes
15054 if test "$enable_shared" = yes && test "$GCC" = yes; then
15055 case $archive_cmds_CXX in
15057 # FIXME: we may have to deal with multi-command sequences.
15060 # Test whether the compiler implicitly links with -lc since on some
15061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15062 # to ld, don't add -lc before -lgcc.
15063 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069 (eval $ac_compile) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } 2>conftest.err; then
15075 libobjs=conftest.$ac_objext
15077 wl=$lt_prog_compiler_wl_CXX
15078 pic_flag=$lt_prog_compiler_pic_CXX
15084 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15085 allow_undefined_flag_CXX=
15086 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15087 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }
15092 archive_cmds_need_lc_CXX=no
15094 archive_cmds_need_lc_CXX=yes
15096 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15098 cat conftest.err 1>&5
15101 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15102 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15172 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15175 library_names_spec=
15176 libname_spec='lib$name'
15180 postuninstall_cmds=
15184 shlibpath_overrides_runpath=unknown
15186 dynamic_linker="$host_os ld.so"
15187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15188 need_lib_prefix=unknown
15189 hardcode_into_libs=no
15191 # when you set need_version to no, make sure it does not cause -set_version
15192 # flags to be left without arguments
15193 need_version=unknown
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15199 shlibpath_var=LIBPATH
15201 # AIX 3 has no versioning support, so we append a major version to the name.
15202 soname_spec='${libname}${release}${shared_ext}$major'
15209 hardcode_into_libs=yes
15210 if test "$host_cpu" = ia64; then
15211 # AIX 5 supports IA64
15212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15213 shlibpath_var=LD_LIBRARY_PATH
15215 # With GCC up to 2.95.x, collect2 would create an import file
15216 # for dependence libraries. The import file would start with
15217 # the line `#! .'. This would cause the generated library to
15218 # depend on `.', always an invalid library. This was fixed in
15219 # development snapshots of GCC prior to 3.0.
15221 aix4 | aix4.[01] | aix4.[01].*)
15222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15224 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15227 can_build_shared=no
15231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15232 # soname into executable. Probably we can add versioning support to
15233 # collect2, so additional links can be useful in future.
15234 if test "$aix_use_runtimelinking" = yes; then
15235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15236 # instead of lib<name>.a to let people know that these are not
15237 # typical AIX shared libraries.
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 # We preserve .a as extension for shared libraries through AIX4.2
15241 # and later when we are not doing run time linking.
15242 library_names_spec='${libname}${release}.a $libname.a'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15245 shlibpath_var=LIBPATH
15252 # Since July 2007 AmigaOS4 officially supports .so libraries.
15253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 library_names_spec='$libname.ixlibrary $libname.a'
15258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15259 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'
15265 library_names_spec='${libname}${shared_ext}'
15266 dynamic_linker="$host_os ld.so"
15267 shlibpath_var=LIBRARY_PATH
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15279 # the default ld.so.conf also contains /usr/contrib/lib and
15280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15281 # libtool to hard-code these into programs
15284 cygwin* | mingw* | pw32* | cegcc*)
15285 version_type=windows
15290 case $GCC,$host_os in
15291 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15292 library_names_spec='$libname.dll.a'
15293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15294 postinstall_cmds='base_file=`basename \${file}`~
15295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15296 dldir=$destdir/`dirname \$dlpath`~
15297 test -d \$dldir || mkdir -p \$dldir~
15298 $install_prog $dir/$dlname \$dldir/$dlname~
15299 chmod a+x \$dldir/$dlname~
15300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15304 dlpath=$dir/\$dldll~
15306 shlibpath_overrides_runpath=yes
15310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15315 # MinGW DLLs use traditional 'lib' prefix
15316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15318 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15319 # It is most probably a Windows format PATH printed by
15320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15321 # path with ; separators, and with drive letters. We can handle the
15322 # drive letters (cygwin fileutils understands them), so leave them,
15323 # especially as we might pass files found there to a mingw objdump,
15324 # which wouldn't understand a cygwinified path. Ahh.
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15331 # pw32 DLLs use 'pw' prefix rather than 'lib'
15332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15341 dynamic_linker='Win32 ld.exe'
15342 # FIXME: first we should search . and the directory the executable is in
15346 darwin* | rhapsody*)
15347 dynamic_linker="$host_os dyld"
15348 version_type=darwin
15351 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15352 soname_spec='${libname}${release}${major}$shared_ext'
15353 shlibpath_overrides_runpath=yes
15354 shlibpath_var=DYLD_LIBRARY_PATH
15355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15373 freebsd* | dragonfly*)
15374 # DragonFly does not have aout. When/if they implement a new
15375 # versioning mechanism, adjust this.
15376 if test -x /usr/bin/objformat; then
15377 objformat=`/usr/bin/objformat`
15380 freebsd[123]*) objformat=aout ;;
15381 *) objformat=elf ;;
15384 version_type=freebsd-$objformat
15385 case $version_type in
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15396 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15401 freebsd3.[01]* | freebsdelf3.[01]*)
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15410 *) # from 4.6 on, and DragonFly
15411 shlibpath_overrides_runpath=yes
15412 hardcode_into_libs=yes
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 hardcode_into_libs=yes
15427 hpux9* | hpux10* | hpux11*)
15428 # Give a soname corresponding to the major version so that dld.sl refuses to
15429 # link against other versions.
15436 hardcode_into_libs=yes
15437 dynamic_linker="$host_os dld.so"
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 if test "X$HPUX_IA64_MODE" = X32; then
15443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451 hardcode_into_libs=yes
15452 dynamic_linker="$host_os dld.sl"
15453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462 dynamic_linker="$host_os dld.sl"
15463 shlibpath_var=SHLIB_PATH
15464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15470 postinstall_cmds='chmod 555 $lib'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=no
15482 hardcode_into_libs=yes
15485 irix5* | irix6* | nonstopux*)
15487 nonstopux*) version_type=nonstopux ;;
15489 if test "$lt_cv_prog_gnu_ld" = yes; then
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15500 irix5* | nonstopux*)
15501 libsuff= shlibsuff=
15504 case $LD in # libtool.m4 will add one of these switches to LD
15505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506 libsuff= shlibsuff= libmagic=32-bit;;
15507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508 libsuff=32 shlibsuff=N32 libmagic=N32;;
15509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511 *) libsuff= shlibsuff= libmagic=never-match;;
15515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516 shlibpath_overrides_runpath=no
15517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519 hardcode_into_libs=yes
15522 # No shared lib support for Linux oldld, aout, or coff.
15523 linux*oldld* | linux*aout* | linux*coff*)
15527 # This must be Linux ELF.
15528 linux* | k*bsd*-gnu)
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=no
15537 # Some binutils ld are patched to set DT_RUNPATH
15538 save_LDFLAGS=$LDFLAGS
15539 save_libdir=$libdir
15540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_link") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_cxx_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest$ac_exeext &&
15574 $as_test_x conftest$ac_exeext; then
15575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15576 shlibpath_overrides_runpath=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587 conftest$ac_exeext conftest.$ac_ext
15588 LDFLAGS=$save_LDFLAGS
15589 libdir=$save_libdir
15591 # This implies no fast_install, which is unacceptable.
15592 # Some rework will be needed to allow for fast_install
15593 # before this can be enabled.
15594 hardcode_into_libs=yes
15596 # Append ld.so.conf contents to the search path
15597 if test -f /etc/ld.so.conf; then
15598 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' ' '`
15599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602 # We used to test for /lib/ld.so.1 and disable shared libraries on
15603 # powerpc, because MkLinux only supported shared libraries with the
15604 # GNU dynamic linker. Since this was broken with cross compilers,
15605 # most powerpc-linux boxes support dynamic linking these days and
15606 # people can always --disable-shared, the test was removed, and we
15607 # assume the GNU/Linux dynamic linker is in use.
15608 dynamic_linker='GNU/Linux ld.so'
15615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618 dynamic_linker='NetBSD (a.out) ld.so'
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 dynamic_linker='NetBSD ld.elf_so'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15626 hardcode_into_libs=yes
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=yes
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 shlibpath_overrides_runpath=no
15644 hardcode_into_libs=yes
15645 dynamic_linker='ldqnx.so'
15650 sys_lib_dlsearch_path_spec="/usr/lib"
15652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15655 *) need_version=no ;;
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662 openbsd2.[89] | openbsd2.[89].*)
15663 shlibpath_overrides_runpath=no
15666 shlibpath_overrides_runpath=yes
15670 shlibpath_overrides_runpath=yes
15675 libname_spec='$name'
15678 library_names_spec='$libname${shared_ext} $libname.a'
15679 dynamic_linker='OS/2 ld.exe'
15680 shlibpath_var=LIBPATH
15683 osf3* | osf4* | osf5*)
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 # ldd complains unless libraries are executable
15708 postinstall_cmds='chmod +x $lib'
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15717 if test "$with_gnu_ld" = yes; then
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726 soname_spec='${libname}${release}${shared_ext}$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 case $host_vendor in
15730 shlibpath_overrides_runpath=no
15732 runpath_var=LD_RUN_PATH
15740 shlibpath_overrides_runpath=no
15741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15747 if test -d /usr/nec ;then
15749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15750 soname_spec='$libname${shared_ext}.$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756 version_type=freebsd-elf
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15764 if test "$with_gnu_ld" = yes; then
15765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15774 sys_lib_dlsearch_path_spec='/usr/lib'
15778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15799 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15800 echo "${ECHO_T}$dynamic_linker" >&6; }
15801 test "$dynamic_linker" = no && can_build_shared=no
15803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15804 if test "$GCC" = yes; then
15805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15850 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15852 hardcode_action_CXX=
15853 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15854 test -n "$runpath_var_CXX" ||
15855 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15857 # We can hardcode non-existent directories.
15858 if test "$hardcode_direct_CXX" != no &&
15859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860 # have to relink, otherwise we might link with an installed library
15861 # when we should be linking with a yet-to-be-installed one
15862 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15863 test "$hardcode_minus_L_CXX" != no; then
15864 # Linking always hardcodes the temporary library directory.
15865 hardcode_action_CXX=relink
15867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868 hardcode_action_CXX=immediate
15871 # We cannot hardcode anything, or else we can only hardcode existing
15873 hardcode_action_CXX=unsupported
15875 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15876 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15878 if test "$hardcode_action_CXX" = relink ||
15879 test "$inherit_rpath_CXX" = yes; then
15880 # Fast installation is not supported
15881 enable_fast_install=no
15882 elif test "$shlibpath_overrides_runpath" = yes ||
15883 test "$enable_shared" = no; then
15884 # Fast installation is not necessary
15885 enable_fast_install=needless
15894 fi # test -n "$compiler"
15900 with_gnu_ld=$lt_save_with_gnu_ld
15901 lt_cv_path_LDCXX=$lt_cv_path_LD
15902 lt_cv_path_LD=$lt_save_path_LD
15903 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15904 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15905 fi # test "$_lt_caught_CXX_error" != yes
15908 ac_cpp='$CPP $CPPFLAGS'
15909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15925 ac_config_commands="$ac_config_commands libtool"
15930 # Only expand once:
15935 if test x$use_libtool != xno; then
15936 DEFAULT_OBJECT_TYPE=".lo"
15937 DEFAULT_ARCHIVE_TYPE=".la"
15938 DEFAULT_SHARED_OBJECT_TYPE=".la"
15939 LIBTOOL="\$(LIBTOOL)"
15940 LIBTOOL_INSTALL_TARGET="libtool-install"
15941 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15942 LIBTOOL_CLEAN_TARGET="libtool-clean"
15943 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15945 DEFAULT_OBJECT_TYPE=".o"
15946 DEFAULT_ARCHIVE_TYPE=".a"
15947 DEFAULT_SHARED_OBJECT_TYPE=".so"
15948 LIBTOOL="# \$(LIBTOOL)"
15949 LIBTOOL_INSTALL_TARGET=""
15950 LIBTOOL_UNINSTALL_TARGET=""
15951 LIBTOOL_CLEAN_TARGET=""
15952 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15964 # Check whether --enable-includes was given.
15965 if test "${enable_includes+set}" = set; then
15966 enableval=$enable_includes;
15967 if test x$enableval = xyes; then
15968 install_includes=yes
15976 if test x$use_libtool != xno -a x$install_includes = xyes; then
15977 INCLUDE_INSTALL_TARGET="install-includes"
15978 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15980 INCLUDE_INSTALL_TARGET=""
15981 INCLUDE_UNINSTALL_TARGET=""
15987 { echo "$as_me:$LINENO: checking host system type" >&5
15988 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15989 if test "${ac_cv_host+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 if test "x$host_alias" = x; then
15993 ac_cv_host=$ac_cv_build
15995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15998 { (exit 1); exit 1; }; }
16002 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16003 echo "${ECHO_T}$ac_cv_host" >&6; }
16004 case $ac_cv_host in
16006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16007 echo "$as_me: error: invalid value of canonical host" >&2;}
16008 { (exit 1); exit 1; }; };;
16011 ac_save_IFS=$IFS; IFS='-'
16017 # Remember, the first character of IFS is used to create $*,
16018 # except with old shells:
16021 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16025 *cygwin* ) CYGWIN=yes;;
16029 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16035 HAVE_SUN_OS_FALSE='#'
16037 HAVE_SUN_OS_TRUE='#'
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_SUN_OS 1
16049 HAVE_SUN_OS_FALSE='#'
16051 HAVE_SUN_OS_TRUE='#'
16056 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16062 HAVE_OSF1_OS_FALSE='#'
16064 HAVE_OSF1_OS_TRUE='#'
16065 HAVE_OSF1_OS_FALSE=
16067 cat >>confdefs.h <<\_ACEOF
16068 #define HAVE_OSF1_OS 1
16076 HAVE_OSF1_OS_FALSE='#'
16078 HAVE_OSF1_OS_TRUE='#'
16079 HAVE_OSF1_OS_FALSE=
16083 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16089 HAVE_AIX_OS_FALSE='#'
16091 HAVE_AIX_OS_TRUE='#'
16094 cat >>confdefs.h <<\_ACEOF
16095 #define HAVE_AIX_OS 1
16103 HAVE_AIX_OS_FALSE='#'
16105 HAVE_AIX_OS_TRUE='#'
16110 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16116 HAVE_HPUX_OS_FALSE='#'
16118 HAVE_HPUX_OS_TRUE='#'
16119 HAVE_HPUX_OS_FALSE=
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_HPUX_OS 1
16130 HAVE_HPUX_OS_FALSE='#'
16132 HAVE_HPUX_OS_TRUE='#'
16133 HAVE_HPUX_OS_FALSE=
16137 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16142 HAVE_LINUX_OS_TRUE=
16143 HAVE_LINUX_OS_FALSE='#'
16145 HAVE_LINUX_OS_TRUE='#'
16146 HAVE_LINUX_OS_FALSE=
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_LINUX_OS 1
16156 HAVE_LINUX_OS_TRUE=
16157 HAVE_LINUX_OS_FALSE='#'
16159 HAVE_LINUX_OS_TRUE='#'
16160 HAVE_LINUX_OS_FALSE=
16164 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16169 HAVE_FREEBSD_OS_TRUE=
16170 HAVE_FREEBSD_OS_FALSE='#'
16172 HAVE_FREEBSD_OS_TRUE='#'
16173 HAVE_FREEBSD_OS_FALSE=
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_FREEBSD_OS 1
16183 HAVE_FREEBSD_OS_TRUE=
16184 HAVE_FREEBSD_OS_FALSE='#'
16186 HAVE_FREEBSD_OS_TRUE='#'
16187 HAVE_FREEBSD_OS_FALSE=
16191 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16196 HAVE_NETBSD_OS_TRUE=
16197 HAVE_NETBSD_OS_FALSE='#'
16199 HAVE_NETBSD_OS_TRUE='#'
16200 HAVE_NETBSD_OS_FALSE=
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_NETBSD_OS 1
16210 HAVE_NETBSD_OS_TRUE=
16211 HAVE_NETBSD_OS_FALSE='#'
16213 HAVE_NETBSD_OS_TRUE='#'
16214 HAVE_NETBSD_OS_FALSE=
16218 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16223 HAVE_OPENBSD_OS_TRUE=
16224 HAVE_OPENBSD_OS_FALSE='#'
16226 HAVE_OPENBSD_OS_TRUE='#'
16227 HAVE_OPENBSD_OS_FALSE=
16229 cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_OPENBSD_OS 1
16237 HAVE_OPENBSD_OS_TRUE=
16238 HAVE_OPENBSD_OS_FALSE='#'
16240 HAVE_OPENBSD_OS_TRUE='#'
16241 HAVE_OPENBSD_OS_FALSE=
16245 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16251 HAVE_BSDI_OS_FALSE='#'
16253 HAVE_BSDI_OS_TRUE='#'
16254 HAVE_BSDI_OS_FALSE=
16256 cat >>confdefs.h <<\_ACEOF
16257 #define HAVE_BSDI_OS 1
16265 HAVE_BSDI_OS_FALSE='#'
16267 HAVE_BSDI_OS_TRUE='#'
16268 HAVE_BSDI_OS_FALSE=
16272 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16278 HAVE_SGI_OS_FALSE='#'
16280 HAVE_SGI_OS_TRUE='#'
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_SGI_OS 1
16292 HAVE_SGI_OS_FALSE='#'
16294 HAVE_SGI_OS_TRUE='#'
16299 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16305 HAVE_IRIX_OS_FALSE='#'
16307 HAVE_IRIX_OS_TRUE='#'
16308 HAVE_IRIX_OS_FALSE=
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_IRIX_OS 1
16319 HAVE_IRIX_OS_FALSE='#'
16321 HAVE_IRIX_OS_TRUE='#'
16322 HAVE_IRIX_OS_FALSE=
16326 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16331 HAVE_DARWIN_OS_TRUE=
16332 HAVE_DARWIN_OS_FALSE='#'
16334 HAVE_DARWIN_OS_TRUE='#'
16335 HAVE_DARWIN_OS_FALSE=
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_DARWIN_OS 1
16345 HAVE_DARWIN_OS_TRUE=
16346 HAVE_DARWIN_OS_FALSE='#'
16348 HAVE_DARWIN_OS_TRUE='#'
16349 HAVE_DARWIN_OS_FALSE=
16354 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16355 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16356 if test "x$DISTNAME" != "x"
16358 echo "distname set to $DISTNAME"
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16386 elif test -f /etc/SuSE-release
16389 elif test -d /etc/SuSEconfig
16392 elif test -f /etc/mandrake-release
16395 elif test -f /etc/whitebox-release
16398 elif test -f /etc/redhat-release
16401 elif test -f /etc/gentoo-release
16404 elif test -f /etc/debian_version
16407 elif test -f /etc/slackware-version
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 elif test -f /etc/engarde-version
16416 elif test "$CYGWIN" = yes
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.make <<\_ACEOF
16439 @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443 *@@@%%%=?*=@@@%%%*)
16444 eval ac_cv_prog_make_${ac_make}_set=yes;;
16446 eval ac_cv_prog_make_${ac_make}_set=no;;
16448 rm -f conftest.make
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451 { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457 SET_MAKE="MAKE=${MAKE-make}"
16463 if test -n "$ac_aux_dir"; then
16464 case "$ac_aux_dir" in
16465 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469 if test -z "$MKINSTALLDIRS"; then
16470 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477 # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479 enableval=$enable_nls; USE_NLS=$enableval
16484 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514 ac_executable_p="test -x"
16516 ac_executable_p="test -f"
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533 for ac_dir in $PATH; do
16535 test -z "$ac_dir" && ac_dir=.
16536 for ac_exec_ext in '' $ac_executable_extensions; do
16537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607 echo "#! /bin/sh" >conf$$.sh
16608 echo "exit 0" >>conf$$.sh
16610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626 ac_executable_p="test -x"
16628 ac_executable_p="test -f"
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 case "$XGETTEXT" in
16641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16647 test -z "$ac_dir" && ac_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652 (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
16653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679 echo "#! /bin/sh" >conf$$.sh
16680 echo "exit 0" >>conf$$.sh
16682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698 ac_executable_p="test -x"
16700 ac_executable_p="test -f"
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 case "$MSGMERGE" in
16713 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717 for ac_dir in $PATH; do
16719 test -z "$ac_dir" && ac_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16745 if test "$GMSGFMT" != ":"; then
16746 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757 if test "$XGETTEXT" != ":"; then
16758 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759 (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
16762 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769 ac_config_commands="$ac_config_commands default-1"
16773 if test "X$prefix" = "XNONE"; then
16774 acl_final_prefix="$ac_default_prefix"
16776 acl_final_prefix="$prefix"
16778 if test "X$exec_prefix" = "XNONE"; then
16779 acl_final_exec_prefix='${prefix}'
16781 acl_final_exec_prefix="$exec_prefix"
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786 prefix="$acl_save_prefix"
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799 echo "#! /bin/sh" >conf$$.sh
16800 echo "exit 0" >>conf$$.sh
16802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 if test "$GCC" = yes; then
16811 # Check if gcc -print-prog-name=ld gives a path.
16812 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816 # gcc leaves a trailing carriage return which upsets mingw
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822 # Accept absolute paths.
16823 [\\/]* | [A-Za-z]:[\\/]*)
16824 re_direlt='/[^/][^/]*/\.\./'
16825 # Canonicalize the path of ld
16826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830 test -z "$LD" && LD="$ac_prog"
16833 # If it fails, then pretend we aren't using GCC.
16837 # If it is relative, then search for the first ld in PATH.
16838 with_gnu_ld=unknown
16841 elif test "$with_gnu_ld" = yes; then
16842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_path_LD+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 if test -z "$LD"; then
16852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853 for ac_dir in $PATH; do
16854 test -z "$ac_dir" && ac_dir=.
16855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856 acl_cv_path_LD="$ac_dir/$ac_prog"
16857 # Check to see if the program is GNU ld. I'd rather use --version,
16858 # but apparently some GNU ld's only accept -v.
16859 # Break only if it was the GNU/non-GNU ld that we prefer.
16860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861 *GNU* | *'with BFD'*)
16862 test "$with_gnu_ld" != no && break ;;
16864 test "$with_gnu_ld" != yes && break ;;
16870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876 { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16879 { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884 { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893 acl_cv_prog_gnu_ld=yes ;;
16895 acl_cv_prog_gnu_ld=no ;;
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16905 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914 rm -f ./conftest.sh
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921 libext="$acl_cv_libext"
16922 shlibext="$acl_cv_shlibext"
16923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925 hardcode_direct="$acl_cv_hardcode_direct"
16926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927 # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929 enableval=$enable_rpath; :
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16948 eval additional_includedir=\"$includedir\"
16949 eval additional_libdir=\"$libdir\"
16951 exec_prefix="$acl_save_exec_prefix"
16952 prefix="$acl_save_prefix"
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957 withval=$with_libiconv_prefix;
16958 if test "X$withval" = "Xno"; then
16961 if test "X$withval" = "X"; then
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16968 eval additional_includedir=\"$includedir\"
16969 eval additional_libdir=\"$libdir\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16975 additional_includedir="$withval/include"
16976 additional_libdir="$withval/lib"
16987 names_already_handled=
16988 names_next_round='iconv '
16989 while test -n "$names_next_round"; do
16990 names_this_round="$names_next_round"
16992 for name in $names_this_round; do
16994 for n in $names_already_handled; do
16995 if test "$n" = "$name"; then
16996 already_handled=yes
17000 if test -z "$already_handled"; then
17001 names_already_handled="$names_already_handled $name"
17002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003 eval value=\"\$HAVE_LIB$uppername\"
17004 if test -n "$value"; then
17005 if test "$value" = yes; then
17006 eval value=\"\$LIB$uppername\"
17007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008 eval value=\"\$LTLIB$uppername\"
17009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17018 if test $use_additional = yes; then
17019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020 found_dir="$additional_libdir"
17021 found_so="$additional_libdir/lib$name.$shlibext"
17022 if test -f "$additional_libdir/lib$name.la"; then
17023 found_la="$additional_libdir/lib$name.la"
17026 if test -f "$additional_libdir/lib$name.$libext"; then
17027 found_dir="$additional_libdir"
17028 found_a="$additional_libdir/lib$name.$libext"
17029 if test -f "$additional_libdir/lib$name.la"; then
17030 found_la="$additional_libdir/lib$name.la"
17035 if test "X$found_dir" = "X"; then
17036 for x in $LDFLAGS $LTLIBICONV; do
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17043 exec_prefix="$acl_save_exec_prefix"
17044 prefix="$acl_save_prefix"
17048 dir=`echo "X$x" | sed -e 's/^X-L//'`
17049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051 found_so="$dir/lib$name.$shlibext"
17052 if test -f "$dir/lib$name.la"; then
17053 found_la="$dir/lib$name.la"
17056 if test -f "$dir/lib$name.$libext"; then
17058 found_a="$dir/lib$name.$libext"
17059 if test -f "$dir/lib$name.la"; then
17060 found_la="$dir/lib$name.la"
17066 if test "X$found_dir" != "X"; then
17071 if test "X$found_dir" != "X"; then
17072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073 if test "X$found_so" != "X"; then
17074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078 for x in $ltrpathdirs; do
17079 if test "X$x" = "X$found_dir"; then
17084 if test -z "$haveit"; then
17085 ltrpathdirs="$ltrpathdirs $found_dir"
17087 if test "$hardcode_direct" = yes; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093 for x in $rpathdirs; do
17094 if test "X$x" = "X$found_dir"; then
17099 if test -z "$haveit"; then
17100 rpathdirs="$rpathdirs $found_dir"
17104 for x in $LDFLAGS $LIBICONV; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$found_dir"; then
17119 if test -z "$haveit"; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122 if test "$hardcode_minus_L" != no; then
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131 if test "X$found_a" != "X"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137 additional_includedir=
17138 case "$found_dir" in
17140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141 additional_includedir="$basedir/include"
17144 if test "X$additional_includedir" != "X"; then
17145 if test "X$additional_includedir" != "X/usr/include"; then
17147 if test "X$additional_includedir" = "X/usr/local/include"; then
17148 if test -n "$GCC"; then
17150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17154 if test -z "$haveit"; then
17155 for x in $CPPFLAGS $INCICONV; do
17157 acl_save_prefix="$prefix"
17158 prefix="$acl_final_prefix"
17159 acl_save_exec_prefix="$exec_prefix"
17160 exec_prefix="$acl_final_exec_prefix"
17162 exec_prefix="$acl_save_exec_prefix"
17163 prefix="$acl_save_prefix"
17165 if test "X$x" = "X-I$additional_includedir"; then
17170 if test -z "$haveit"; then
17171 if test -d "$additional_includedir"; then
17172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178 if test -n "$found_la"; then
17179 save_libdir="$libdir"
17180 case "$found_la" in
17181 */* | *\\*) . "$found_la" ;;
17182 *) . "./$found_la" ;;
17184 libdir="$save_libdir"
17185 for dep in $dependency_libs; do
17188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189 if test "X$additional_libdir" != "X/usr/lib"; then
17191 if test "X$additional_libdir" = "X/usr/local/lib"; then
17192 if test -n "$GCC"; then
17194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17198 if test -z "$haveit"; then
17200 for x in $LDFLAGS $LIBICONV; do
17202 acl_save_prefix="$prefix"
17203 prefix="$acl_final_prefix"
17204 acl_save_exec_prefix="$exec_prefix"
17205 exec_prefix="$acl_final_exec_prefix"
17207 exec_prefix="$acl_save_exec_prefix"
17208 prefix="$acl_save_prefix"
17210 if test "X$x" = "X-L$additional_libdir"; then
17215 if test -z "$haveit"; then
17216 if test -d "$additional_libdir"; then
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17221 for x in $LDFLAGS $LTLIBICONV; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17231 if test "X$x" = "X-L$additional_libdir"; then
17236 if test -z "$haveit"; then
17237 if test -d "$additional_libdir"; then
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246 if test "$enable_rpath" != no; then
17248 for x in $rpathdirs; do
17249 if test "X$x" = "X$dir"; then
17254 if test -z "$haveit"; then
17255 rpathdirs="$rpathdirs $dir"
17258 for x in $ltrpathdirs; do
17259 if test "X$x" = "X$dir"; then
17264 if test -z "$haveit"; then
17265 ltrpathdirs="$ltrpathdirs $dir"
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290 if test "X$rpathdirs" != "X"; then
17291 if test -n "$hardcode_libdir_separator"; then
17293 for found_dir in $rpathdirs; do
17294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296 acl_save_libdir="$libdir"
17298 eval flag=\"$hardcode_libdir_flag_spec\"
17299 libdir="$acl_save_libdir"
17300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302 for found_dir in $rpathdirs; do
17303 acl_save_libdir="$libdir"
17304 libdir="$found_dir"
17305 eval flag=\"$hardcode_libdir_flag_spec\"
17306 libdir="$acl_save_libdir"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17311 if test "X$ltrpathdirs" != "X"; then
17312 for found_dir in $ltrpathdirs; do
17313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17334 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 gt_save_CPPFLAGS="$CPPFLAGS"
17340 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341 gt_save_LIBS="$LIBS"
17342 LIBS="$LIBS -framework CoreFoundation"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <CFPreferences.h>
17353 CFPreferencesCopyAppValue(NULL, NULL)
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext &&
17375 $as_test_x conftest$ac_exeext; then
17376 gt_cv_func_CFPreferencesCopyAppValue=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 gt_cv_func_CFPreferencesCopyAppValue=no
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 CPPFLAGS="$gt_save_CPPFLAGS"
17387 LIBS="$gt_save_LIBS"
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17398 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 gt_save_CPPFLAGS="$CPPFLAGS"
17404 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405 gt_save_LIBS="$LIBS"
17406 LIBS="$LIBS -framework CoreFoundation"
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 #include <CFLocale.h>
17417 CFLocaleCopyCurrent();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 gt_cv_func_CFLocaleCopyCurrent=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 gt_cv_func_CFLocaleCopyCurrent=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$gt_save_CPPFLAGS"
17451 LIBS="$gt_save_LIBS"
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17463 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472 # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474 enableval=$enable_nls; USE_NLS=$enableval
17479 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17489 if test "$USE_NLS" = "yes"; then
17490 gt_use_preinstalled_gnugettext=no
17497 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 gt_cv_func_gnugettext1_libc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 gt_cv_func_gnugettext1_libc=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558 am_save_CPPFLAGS="$CPPFLAGS"
17560 for element in $INCICONV; do
17562 for x in $CPPFLAGS; do
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 am_cv_func_iconv="no, consider installing GNU libiconv"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17602 iconv_t cd = iconv_open("","");
17603 iconv(cd,NULL,NULL,NULL,NULL);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 am_cv_func_iconv=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17637 if test "$am_cv_func_iconv" != yes; then
17638 am_save_LIBS="$LIBS"
17639 LIBS="$LIBS $LIBICONV"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <stdlib.h>
17651 iconv_t cd = iconv_open("","");
17652 iconv(cd,NULL,NULL,NULL,NULL);
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 am_cv_lib_iconv=yes
17677 am_cv_func_iconv=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS="$am_save_LIBS"
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693 if test "$am_cv_func_iconv" = yes; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17700 if test "$am_cv_lib_iconv" = yes; then
17701 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17706 CPPFLAGS="$am_save_CPPFLAGS"
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17723 eval additional_includedir=\"$includedir\"
17724 eval additional_libdir=\"$libdir\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732 withval=$with_libintl_prefix;
17733 if test "X$withval" = "Xno"; then
17736 if test "X$withval" = "X"; then
17738 acl_save_prefix="$prefix"
17739 prefix="$acl_final_prefix"
17740 acl_save_exec_prefix="$exec_prefix"
17741 exec_prefix="$acl_final_exec_prefix"
17743 eval additional_includedir=\"$includedir\"
17744 eval additional_libdir=\"$libdir\"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17750 additional_includedir="$withval/include"
17751 additional_libdir="$withval/lib"
17762 names_already_handled=
17763 names_next_round='intl '
17764 while test -n "$names_next_round"; do
17765 names_this_round="$names_next_round"
17767 for name in $names_this_round; do
17769 for n in $names_already_handled; do
17770 if test "$n" = "$name"; then
17771 already_handled=yes
17775 if test -z "$already_handled"; then
17776 names_already_handled="$names_already_handled $name"
17777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778 eval value=\"\$HAVE_LIB$uppername\"
17779 if test -n "$value"; then
17780 if test "$value" = yes; then
17781 eval value=\"\$LIB$uppername\"
17782 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783 eval value=\"\$LTLIB$uppername\"
17784 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17793 if test $use_additional = yes; then
17794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795 found_dir="$additional_libdir"
17796 found_so="$additional_libdir/lib$name.$shlibext"
17797 if test -f "$additional_libdir/lib$name.la"; then
17798 found_la="$additional_libdir/lib$name.la"
17801 if test -f "$additional_libdir/lib$name.$libext"; then
17802 found_dir="$additional_libdir"
17803 found_a="$additional_libdir/lib$name.$libext"
17804 if test -f "$additional_libdir/lib$name.la"; then
17805 found_la="$additional_libdir/lib$name.la"
17810 if test "X$found_dir" = "X"; then
17811 for x in $LDFLAGS $LTLIBINTL; do
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17823 dir=`echo "X$x" | sed -e 's/^X-L//'`
17824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826 found_so="$dir/lib$name.$shlibext"
17827 if test -f "$dir/lib$name.la"; then
17828 found_la="$dir/lib$name.la"
17831 if test -f "$dir/lib$name.$libext"; then
17833 found_a="$dir/lib$name.$libext"
17834 if test -f "$dir/lib$name.la"; then
17835 found_la="$dir/lib$name.la"
17841 if test "X$found_dir" != "X"; then
17846 if test "X$found_dir" != "X"; then
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848 if test "X$found_so" != "X"; then
17849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853 for x in $ltrpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 ltrpathdirs="$ltrpathdirs $found_dir"
17862 if test "$hardcode_direct" = yes; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868 for x in $rpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17874 if test -z "$haveit"; then
17875 rpathdirs="$rpathdirs $found_dir"
17879 for x in $LDFLAGS $LIBINTL; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$found_dir"; then
17894 if test -z "$haveit"; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897 if test "$hardcode_minus_L" != no; then
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906 if test "X$found_a" != "X"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912 additional_includedir=
17913 case "$found_dir" in
17915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916 additional_includedir="$basedir/include"
17919 if test "X$additional_includedir" != "X"; then
17920 if test "X$additional_includedir" != "X/usr/include"; then
17922 if test "X$additional_includedir" = "X/usr/local/include"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17930 for x in $CPPFLAGS $INCINTL; do
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17940 if test "X$x" = "X-I$additional_includedir"; then
17945 if test -z "$haveit"; then
17946 if test -d "$additional_includedir"; then
17947 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953 if test -n "$found_la"; then
17954 save_libdir="$libdir"
17955 case "$found_la" in
17956 */* | *\\*) . "$found_la" ;;
17957 *) . "./$found_la" ;;
17959 libdir="$save_libdir"
17960 for dep in $dependency_libs; do
17963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964 if test "X$additional_libdir" != "X/usr/lib"; then
17966 if test "X$additional_libdir" = "X/usr/local/lib"; then
17967 if test -n "$GCC"; then
17969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17973 if test -z "$haveit"; then
17975 for x in $LDFLAGS $LIBINTL; do
17977 acl_save_prefix="$prefix"
17978 prefix="$acl_final_prefix"
17979 acl_save_exec_prefix="$exec_prefix"
17980 exec_prefix="$acl_final_exec_prefix"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17985 if test "X$x" = "X-L$additional_libdir"; then
17990 if test -z "$haveit"; then
17991 if test -d "$additional_libdir"; then
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17996 for x in $LDFLAGS $LTLIBINTL; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$additional_libdir"; then
18011 if test -z "$haveit"; then
18012 if test -d "$additional_libdir"; then
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021 if test "$enable_rpath" != no; then
18023 for x in $rpathdirs; do
18024 if test "X$x" = "X$dir"; then
18029 if test -z "$haveit"; then
18030 rpathdirs="$rpathdirs $dir"
18033 for x in $ltrpathdirs; do
18034 if test "X$x" = "X$dir"; then
18039 if test -z "$haveit"; then
18040 ltrpathdirs="$ltrpathdirs $dir"
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065 if test "X$rpathdirs" != "X"; then
18066 if test -n "$hardcode_libdir_separator"; then
18068 for found_dir in $rpathdirs; do
18069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071 acl_save_libdir="$libdir"
18073 eval flag=\"$hardcode_libdir_flag_spec\"
18074 libdir="$acl_save_libdir"
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077 for found_dir in $rpathdirs; do
18078 acl_save_libdir="$libdir"
18079 libdir="$found_dir"
18080 eval flag=\"$hardcode_libdir_flag_spec\"
18081 libdir="$acl_save_libdir"
18082 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18086 if test "X$ltrpathdirs" != "X"; then
18087 for found_dir in $ltrpathdirs; do
18088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18092 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 gt_save_CPPFLAGS="$CPPFLAGS"
18098 CPPFLAGS="$CPPFLAGS $INCINTL"
18099 gt_save_LIBS="$LIBS"
18100 LIBS="$LIBS $LIBINTL"
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18113 const char *_nl_expand_alias (const char *);
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 gt_cv_func_gnugettext1_libintl=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 gt_cv_func_gnugettext1_libintl=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152 LIBS="$LIBS $LIBICONV"
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18165 const char *_nl_expand_alias (const char *);
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 LIBINTL="$LIBINTL $LIBICONV"
18194 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195 gt_cv_func_gnugettext1_libintl=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 CPPFLAGS="$gt_save_CPPFLAGS"
18208 LIBS="$gt_save_LIBS"
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216 && test "$PACKAGE" != gettext-runtime \
18217 && test "$PACKAGE" != gettext-tools; }; then
18218 gt_use_preinstalled_gnugettext=yes
18227 if test -n "$INTL_MACOSX_LIBS"; then
18228 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18235 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18247 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251 if test "$USE_NLS" = "yes"; then
18252 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256 gt_source="external libintl"
18261 gt_source="included intl directory"
18263 { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18267 if test "$USE_NLS" = "yes"; then
18269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18276 for element in $INCINTL; do
18278 for x in $CPPFLAGS; do
18280 acl_save_prefix="$prefix"
18281 prefix="$acl_final_prefix"
18282 acl_save_exec_prefix="$exec_prefix"
18283 exec_prefix="$acl_final_exec_prefix"
18285 exec_prefix="$acl_save_exec_prefix"
18286 prefix="$acl_save_prefix"
18288 if test "X$x" = "X$element"; then
18293 if test -z "$haveit"; then
18294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18317 INTLLIBS="$LIBINTL"
18325 if test x${prefix} = xNONE ; then
18326 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327 sysconfdir=/etc/bacula
18330 if test `eval echo ${libdir}` = NONE/lib ; then
18334 if test `eval echo ${includedir}` = NONE/include ; then
18335 includedir=/usr/include
18338 if test `eval echo ${datarootdir}` = NONE/share ; then
18339 datarootdir=/usr/share
18344 if test x${exec_prefix} = xNONE ; then
18345 exec_prefix=${prefix}
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365 sbindir=${exec_prefix}/sbin
18367 sbindir=`eval echo ${sbindir}`
18369 if test x$mandir = x'${prefix}/man' ; then
18370 mandir=/usr/share/man
18373 if test x$htmldir = x${docdir} ; then
18374 htmldir=`eval echo ${docdir}bacula/html`
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378 docdir=`eval echo ${docdir}bacula`
18382 for ac_prog in msgfmt
18384 # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18400 test -z "$as_dir" && as_dir=.
18401 for ac_exec_ext in '' $ac_executable_extensions; do
18402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18419 { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18424 test -n "$MSGFMT" && break
18426 test -n "$MSGFMT" || MSGFMT="no"
18428 if test "$MSGFMT" = "no"
18430 echo 'msgfmt program not found, disabling NLS !'
18432 USE_INCLUDED_LIBINTL=no
18435 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449 #if (__GLIBC__ >= 2)
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457 ac_cv_gnu_library_2=yes
18459 ac_cv_gnu_library_2=no
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18469 GLIBC2="$ac_cv_gnu_library_2"
18472 if test -n "$ac_tool_prefix"; then
18473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 if test -n "$RANLIB"; then
18481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18505 { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512 ac_ct_RANLIB=$RANLIB
18513 # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 if test -n "$ac_ct_RANLIB"; then
18521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18527 test -z "$as_dir" && as_dir=.
18528 for ac_exec_ext in '' $ac_executable_extensions; do
18529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530 ac_cv_prog_ac_ct_RANLIB="ranlib"
18531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18545 { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18549 if test "x$ac_ct_RANLIB" = x; then
18552 case $cross_compiling:$ac_tool_warned in
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet. If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet. If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18562 RANLIB=$ac_ct_RANLIB
18565 RANLIB="$ac_cv_prog_RANLIB"
18569 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18593 return strerror ();
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest$ac_exeext &&
18615 $as_test_x conftest$ac_exeext; then
18616 ac_cv_lib_cposix_strerror=yes
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_lib_cposix_strerror=no
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631 LIBS="$LIBS -lcposix"
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653 /* Ultrix mips cc rejects this. */
18654 typedef int charset[2];
18656 /* SunOS 4.1.1 cc rejects this. */
18657 char const *const *pcpcc;
18659 /* NEC SVR4.0.2 mips cc rejects this. */
18660 struct point {int x, y;};
18661 static struct point const zero = {0,0};
18662 /* AIX XL C 1.02.0.0 rejects this.
18663 It does not let you subtract one const X* pointer from another in
18664 an arm of an if-expression whose if-part is not a constant
18666 const char *g = "string";
18667 pcpcc = &g + (g ? g-g : 0);
18668 /* HPUX 7.0 cc rejects these. */
18670 ppc = (char**) pcpcc;
18671 pcpcc = (char const *const *) ppc;
18672 { /* SCO 3.2v4 cc rejects this. */
18674 char const *s = 0 ? (char *) 0 : (char const *) 0;
18679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18680 int x[] = {25, 17};
18681 const int *foo = &x[0];
18684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685 typedef const int *iptr;
18689 { /* AIX XL C 1.02.0.0 rejects this saying
18690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691 struct s { int j; const int *ap[3]; };
18692 struct s *b; b->j = 5;
18694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695 const int foo = 10;
18696 if (!foo) return 0;
18698 return !cs[0] && !zero.x;
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest.$ac_objext; then
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18736 cat >>confdefs.h <<\_ACEOF
18743 { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_compile") 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest.$ac_objext; then
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792 if test $bh_cv_c_signed = no; then
18794 cat >>confdefs.h <<\_ACEOF
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 for ac_kw in inline __inline__ __inline; do
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #ifndef __cplusplus
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_compile") 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && {
18834 test -z "$ac_c_werror_flag" ||
18835 test ! -s conftest.err
18836 } && test -s conftest.$ac_objext; then
18837 ac_cv_c_inline=$ac_kw
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 test "$ac_cv_c_inline" != no && break
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18854 case $ac_cv_c_inline in
18857 case $ac_cv_c_inline in
18859 *) ac_val=$ac_cv_c_inline;;
18861 cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18885 if ((ac__type_new_ *) 0)
18887 if (sizeof (ac__type_new_))
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_compile") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest.$ac_objext; then
18910 ac_cv_type_off_t=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_cv_type_off_t=no
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18948 if ((ac__type_new_ *) 0)
18950 if (sizeof (ac__type_new_))
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
18973 ac_cv_type_size_t=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_cv_type_size_t=no
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18996 { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 long long ll = 1LL; int i = 63;
19011 long long llmax = (long long) -1;
19012 return ll << i | ll >> i | llmax / ll | llmax % ll;
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 ac_cv_type_long_long=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_type_long_long=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048 if test $ac_cv_type_long_long = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19057 { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 if test "$GCC" = yes; then
19063 gt_cv_c_long_double=yes
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19072 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19073 long double foo = 0.0;
19074 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19075 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_compile") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest.$ac_objext; then
19102 gt_cv_c_long_double=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 gt_cv_c_long_double=no
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115 if test $gt_cv_c_long_double = yes; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19124 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 #include <stddef.h>
19136 wchar_t foo = (wchar_t)'\0';
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 gt_cv_c_wchar_t=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174 if test $gt_cv_c_wchar_t = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19183 { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19195 wint_t foo = (wchar_t)'\0';
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_compile") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } && {
19218 test -z "$ac_c_werror_flag" ||
19219 test ! -s conftest.err
19220 } && test -s conftest.$ac_objext; then
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233 if test $gt_cv_c_wint_t = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19242 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19258 uintmax_t i = (uintmax_t) -1;
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_compile") 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest.$ac_objext; then
19280 gl_cv_header_inttypes_h=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 gl_cv_header_inttypes_h=no
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292 if test $gl_cv_header_inttypes_h = yes; then
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19301 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19317 uintmax_t i = (uintmax_t) -1;
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest.$ac_objext; then
19339 gl_cv_header_stdint_h=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 gl_cv_header_stdint_h=no
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351 if test $gl_cv_header_stdint_h = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19362 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 gt_cv_c_intmax_t=yes
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 gt_cv_c_intmax_t=no
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420 if test $gt_cv_c_intmax_t = yes; then
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19430 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 if test "$cross_compiling" = yes; then
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "notposix" >/dev/null 2>&1; then
19452 gt_cv_func_printf_posix="guessing no"
19454 gt_cv_func_printf_posix="guessing yes"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470 dollar expansion (possibly an autoconf bug). */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19475 sprintf (buf, format, 33, 55);
19476 return (strcmp (buf, "55 33") != 0);
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490 { (case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_try") 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 gt_cv_func_printf_posix=yes
19501 echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516 case $gt_cv_func_printf_posix in
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments. Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 #include <alloca.h>
19543 char *p = (char *) alloca (2 * sizeof (int));
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_link") 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest$ac_exeext &&
19566 $as_test_x conftest$ac_exeext; then
19567 ac_cv_working_alloca_h=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_working_alloca_h=no
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576 conftest$ac_exeext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 # define alloca __builtin_alloca
19603 # include <malloc.h>
19604 # define alloca _alloca
19606 # ifdef HAVE_ALLOCA_H
19607 # include <alloca.h>
19612 # ifndef alloca /* predefined by HP cc +Olibcalls */
19623 char *p = (char *) alloca (1);
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_func_alloca_works=yes
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_cv_func_alloca_works=no
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19661 if test $ac_cv_func_alloca_works = yes; then
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble. Some versions do not even contain alloca or
19670 # contain a buggy version. If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19675 cat >>confdefs.h <<\_ACEOF
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #if defined CRAY && ! defined CRAY2
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699 $EGREP "webecray" >/dev/null 2>&1; then
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710 for ac_func in _getb67 GETB67 getb67; do
19711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725 #define $ac_func innocuous_$ac_func
19727 /* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char $ac_func (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19733 # include <limits.h>
19735 # include <assert.h>
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19747 /* The GNU C library defines this for functions which it implements
19748 to always fail with ENOSYS. Some functions are actually named
19749 something starting with __ and the normal name is an alias. */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19757 return $ac_func ();
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 eval "$as_ac_var=yes"
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 eval "$as_ac_var=no"
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789 conftest$ac_exeext conftest.$ac_ext
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792 { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 if test "$cross_compiling" = yes; then
19812 ac_cv_c_stack_direction=0
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19822 find_stack_direction ()
19824 static char *addr = 0;
19829 return find_stack_direction ();
19832 return (&dummy > addr) ? 1 : -1;
19838 return find_stack_direction () < 0;
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_link") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_c_stack_direction=1
19863 echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19887 for ac_header in stdlib.h unistd.h
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897 { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19900 # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 $ac_includes_default
19910 #include <$ac_header>
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_compile") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest.$ac_objext; then
19929 ac_header_compiler=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_compiler=no
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } >/dev/null && {
19965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19968 ac_header_preproc=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_header_preproc=no
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19980 # So? What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987 ac_header_preproc=yes
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 eval "$as_ac_Header=\$ac_header_preproc"
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013 { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 for ac_func in getpagesize
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20043 #define $ac_func innocuous_$ac_func
20045 /* System header to define __stub macros and hopefully few prototypes,
20046 which can conflict with char $ac_func (); below.
20047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048 <limits.h> exists even on freestanding compilers. */
20051 # include <limits.h>
20053 # include <assert.h>
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20065 /* The GNU C library defines this for functions which it implements
20066 to always fail with ENOSYS. Some functions are actually named
20067 something starting with __ and the normal name is an alias. */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20075 return $ac_func ();
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_link") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest$ac_exeext &&
20097 $as_test_x conftest$ac_exeext; then
20098 eval "$as_ac_var=yes"
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 eval "$as_ac_var=no"
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107 conftest$ac_exeext conftest.$ac_ext
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110 { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 if test "$cross_compiling" = yes; then
20126 ac_cv_func_mmap_fixed_mapped=no
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139 Here is a matrix of mmap possibilities:
20140 mmap private not fixed
20141 mmap private fixed at somewhere currently unmapped
20142 mmap private fixed at somewhere already mapped
20143 mmap shared not fixed
20144 mmap shared fixed at somewhere currently unmapped
20145 mmap shared fixed at somewhere already mapped
20146 For private mappings, we should verify that changes cannot be read()
20147 back from the file, nor mmap's back from the file at a different
20148 address. (There have been systems where private was not correctly
20149 implemented like the infamous i386 svr4.0, and systems where the
20150 VM page cache was not coherent with the file system buffer cache
20151 like early versions of FreeBSD and possibly contemporary NetBSD.)
20152 For shared mappings, we should conversely verify that changes get
20153 propagated back to all the places they're supposed to be.
20155 Grep wants private fixed already mapped.
20156 The main things grep needs to know about mmap are:
20157 * does it exist and is it safe to write into the mmap'd area
20158 * how to use it (BSD variants) */
20161 #include <sys/mman.h>
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20167 /* This mess was copied from the GNU getpagesize.h. */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h. */
20170 # ifndef HAVE_SYS_PARAM_H
20171 # define HAVE_SYS_PARAM_H 1
20174 # ifdef _SC_PAGESIZE
20175 # define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 # ifdef HAVE_SYS_PARAM_H
20178 # include <sys/param.h>
20179 # ifdef EXEC_PAGESIZE
20180 # define getpagesize() EXEC_PAGESIZE
20181 # else /* no EXEC_PAGESIZE */
20183 # define getpagesize() NBPG * CLSIZE
20186 # endif /* no CLSIZE */
20187 # else /* no NBPG */
20189 # define getpagesize() NBPC
20190 # else /* no NBPC */
20192 # define getpagesize() PAGESIZE
20193 # endif /* PAGESIZE */
20194 # endif /* no NBPC */
20195 # endif /* no NBPG */
20196 # endif /* no EXEC_PAGESIZE */
20197 # else /* no HAVE_SYS_PARAM_H */
20198 # define getpagesize() 8192 /* punt totally */
20199 # endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20202 #endif /* no HAVE_GETPAGESIZE */
20207 char *data, *data2, *data3;
20211 pagesize = getpagesize ();
20213 /* First, make a file with some known garbage in it. */
20214 data = (char *) malloc (pagesize);
20217 for (i = 0; i < pagesize; ++i)
20218 *(data + i) = rand ();
20220 fd = creat ("conftest.mmap", 0600);
20223 if (write (fd, data, pagesize) != pagesize)
20227 /* Next, try to mmap the file at a fixed address which already has
20228 something else allocated at it. If we can, also make sure that
20229 we see the same garbage. */
20230 fd = open ("conftest.mmap", O_RDWR);
20233 data2 = (char *) malloc (2 * pagesize);
20236 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20240 for (i = 0; i < pagesize; ++i)
20241 if (*(data + i) != *(data2 + i))
20244 /* Finally, make sure that changes to the mapped area do not
20245 percolate back to the file as seen by read(). (This is a bug on
20246 some variants of i386 svr4.0.) */
20247 for (i = 0; i < pagesize; ++i)
20248 *(data2 + i) = *(data2 + i) + 1;
20249 data3 = (char *) malloc (pagesize);
20252 if (read (fd, data3, pagesize) != pagesize)
20254 for (i = 0; i < pagesize; ++i)
20255 if (*(data + i) != *(data3 + i))
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_link") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_func_mmap_fixed_mapped=yes
20283 echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20304 rm -f conftest.mmap
20307 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329 ac_cv_gnu_library_2_1=yes
20331 ac_cv_gnu_library_2_1=no
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20341 GLIBC21="$ac_cv_gnu_library_2_1"
20346 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 if test "$cross_compiling" = yes; then
20354 # Guess based on the CPU.
20355 case "$host_cpu" in
20356 alpha* | i3456786 | m68k | s390*)
20357 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20359 gt_cv_int_divbyzero_sigfpe="guessing no";;
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 #include <stdlib.h>
20371 #include <signal.h>
20375 sigfpe_handler (int sig)
20377 sigfpe_handler (sig) int sig;
20380 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20381 exit (sig != SIGFPE);
20391 signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394 signal (SIGTRAP, sigfpe_handler);
20396 /* Linux/SPARC yields signal SIGILL. */
20397 #if defined (__sparc__) && defined (__linux__)
20398 signal (SIGILL, sigfpe_handler);
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 gt_cv_int_divbyzero_sigfpe=yes
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444 case "$gt_cv_int_divbyzero_sigfpe" in
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20455 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 unsigned long long ull = 1ULL; int i = 63;
20470 unsigned long long ullmax = (unsigned long long) -1;
20471 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_link") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest$ac_exeext &&
20493 $as_test_x conftest$ac_exeext; then
20494 ac_cv_type_unsigned_long_long=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_type_unsigned_long_long=no
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503 conftest$ac_exeext conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507 if test $ac_cv_type_unsigned_long_long = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20518 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20520 test $ac_cv_type_unsigned_long_long = yes \
20521 && ac_type='unsigned long long' \
20522 || ac_type='unsigned long'
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20537 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 cat >conftest.$ac_ext <<_ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_compile") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest.$ac_objext; then
20576 gt_cv_header_inttypes_h=yes
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 gt_cv_header_inttypes_h=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589 if test $gt_cv_header_inttypes_h = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20599 if test $gt_cv_header_inttypes_h = yes; then
20600 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 #include <inttypes.h>
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
20642 gt_cv_inttypes_pri_broken=no
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 gt_cv_inttypes_pri_broken=yes
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20656 if test "$gt_cv_inttypes_pri_broken" = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20666 for ac_header in stdint.h
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676 { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20679 # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 #include <$ac_header>
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1 >conftest.err
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest.$ac_objext; then
20708 ac_header_compiler=yes
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_header_compiler=no
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <$ac_header>
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null && {
20744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745 test ! -s conftest.err
20747 ac_header_preproc=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_header_preproc=no
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759 # So? What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766 ac_header_preproc=yes
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 eval "$as_ac_Header=\$ac_header_preproc"
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797 cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 #include <limits.h>
20817 #include <stdint.h>
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825 $EGREP "Found it" >/dev/null 2>&1; then
20830 if test -z "$result"; then
20831 if test "$cross_compiling" = yes; then
20832 # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 #include <stddef.h>
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 #include <stddef.h>
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_hi=$ac_mid; break
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_lo=`expr $ac_mid + 1`
20909 if test $ac_lo -le $ac_mid; then
20913 ac_mid=`expr 2 '*' $ac_mid + 1`
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <stddef.h>
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <stddef.h>
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20992 ac_lo=$ac_mid; break
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_hi=`expr '(' $ac_mid ')' - 1`
20998 if test $ac_mid -le $ac_hi; then
21002 ac_mid=`expr 2 '*' $ac_mid`
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 #include <stddef.h>
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_lo=`expr '(' $ac_mid ')' + 1`
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21066 ?*) res_hi=$ac_lo;;
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21080 #include <stdlib.h>
21085 FILE *f = fopen ("conftest.val", "w");
21088 if ((~(size_t)0 / 10) < 0)
21090 long int i = longval ();
21091 if (i != (~(size_t)0 / 10))
21093 fprintf (f, "%ld\n", i);
21097 unsigned long int i = ulongval ();
21098 if (i != (~(size_t)0 / 10))
21100 fprintf (f, "%lu\n", i);
21102 return ferror (f) || fclose (f) != 0;
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119 { (case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_try") 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 res_hi=`cat conftest.val`
21130 echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ( exit $ac_status )
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21141 if test "$cross_compiling" = yes; then
21142 # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <stddef.h>
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <stddef.h>
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_hi=$ac_mid; break
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_lo=`expr $ac_mid + 1`
21219 if test $ac_lo -le $ac_mid; then
21223 ac_mid=`expr 2 '*' $ac_mid + 1`
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <stddef.h>
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <stddef.h>
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ac_lo=$ac_mid; break
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_hi=`expr '(' $ac_mid ')' - 1`
21308 if test $ac_mid -le $ac_hi; then
21312 ac_mid=`expr 2 '*' $ac_mid`
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <stddef.h>
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest.$ac_objext; then
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_lo=`expr '(' $ac_mid ')' + 1`
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 ?*) res_lo=$ac_lo;;
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21390 #include <stdlib.h>
21395 FILE *f = fopen ("conftest.val", "w");
21398 if ((~(size_t)0 % 10) < 0)
21400 long int i = longval ();
21401 if (i != (~(size_t)0 % 10))
21403 fprintf (f, "%ld\n", i);
21407 unsigned long int i = ulongval ();
21408 if (i != (~(size_t)0 % 10))
21410 fprintf (f, "%lu\n", i);
21412 return ferror (f) || fclose (f) != 0;
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_link") 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_try") 2>&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 res_lo=`cat conftest.val`
21440 echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ( exit $ac_status )
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21451 if test "$cross_compiling" = yes; then
21452 # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <stddef.h>
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_compile") 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest.$ac_objext; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <stddef.h>
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_compile") 2>conftest.er1
21515 grep -v '^ *+' conftest.er1 >conftest.err
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest.$ac_objext; then
21523 ac_hi=$ac_mid; break
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 ac_lo=`expr $ac_mid + 1`
21529 if test $ac_lo -le $ac_mid; then
21533 ac_mid=`expr 2 '*' $ac_mid + 1`
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <stddef.h>
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_compile") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest.$ac_objext; then
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <stddef.h>
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_lo=$ac_mid; break
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_hi=`expr '(' $ac_mid ')' - 1`
21618 if test $ac_mid -le $ac_hi; then
21622 ac_mid=`expr 2 '*' $ac_mid`
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <stddef.h>
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_lo=`expr '(' $ac_mid ')' + 1`
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 ?*) fits_in_uint=$ac_lo;;
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21700 #include <stdlib.h>
21705 FILE *f = fopen ("conftest.val", "w");
21708 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21710 long int i = longval ();
21711 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21713 fprintf (f, "%ld\n", i);
21717 unsigned long int i = ulongval ();
21718 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21720 fprintf (f, "%lu\n", i);
21722 return ferror (f) || fclose (f) != 0;
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_link") 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739 { (case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_try") 2>&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 fits_in_uint=`cat conftest.val`
21750 echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ( exit $ac_status )
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21761 if test "$fits_in_uint" = 1; then
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 #include <stddef.h>
21770 extern unsigned long foo;
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_compile") 2>conftest.er1
21789 grep -v '^ *+' conftest.er1 >conftest.err
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && {
21794 test -z "$ac_c_werror_flag" ||
21795 test ! -s conftest.err
21796 } && test -s conftest.$ac_objext; then
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 if test -z "$result"; then
21808 if test "$fits_in_uint" = 1; then
21809 result="$res_hi$res_lo"U
21811 result="$res_hi$res_lo"UL
21814 result='~(size_t)0'
21817 { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819 if test "$result" != yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21831 for ac_header in stdint.h
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841 { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21844 # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21854 #include <$ac_header>
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21873 ac_header_compiler=yes
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21878 ac_header_compiler=no
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 #include <$ac_header>
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } >/dev/null && {
21909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21912 ac_header_preproc=yes
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_header_preproc=no
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21924 # So? What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931 ac_header_preproc=yes
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 eval "$as_ac_Header=\$ac_header_preproc"
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957 { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21993 if ((ac__type_new_ *) 0)
21995 if (sizeof (ac__type_new_))
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest.$ac_objext; then
22018 ac_cv_type_ptrdiff_t=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_type_ptrdiff_t=no
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062 { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_compiler=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <$ac_header>
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22133 ac_header_preproc=yes
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_header_preproc=no
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 eval "$as_ac_Header=\$ac_header_preproc"
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178 { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233 #define $ac_func innocuous_$ac_func
22235 /* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22241 # include <limits.h>
22243 # include <assert.h>
22248 /* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 return $ac_func ();
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_link") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext &&
22287 $as_test_x conftest$ac_exeext; then
22288 eval "$as_ac_var=yes"
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 eval "$as_ac_var=no"
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297 conftest$ac_exeext conftest.$ac_ext
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22312 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22329 char *p = (char *) _snprintf;
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_cv_have_decl__snprintf=yes
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_have_decl__snprintf=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365 if test $ac_cv_have_decl__snprintf = yes; then
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22377 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22394 char *p = (char *) _snwprintf;
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_compile") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest.$ac_objext; then
22418 ac_cv_have_decl__snwprintf=yes
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_cv_have_decl__snwprintf=no
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430 if test $ac_cv_have_decl__snwprintf = yes; then
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22443 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22459 #ifndef feof_unlocked
22460 char *p = (char *) feof_unlocked;
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_decl_feof_unlocked=yes
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_have_decl_feof_unlocked=no
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496 if test $ac_cv_have_decl_feof_unlocked = yes; then
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22508 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22524 #ifndef fgets_unlocked
22525 char *p = (char *) fgets_unlocked;
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 ac_cv_have_decl_fgets_unlocked=yes
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ac_cv_have_decl_fgets_unlocked=no
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22573 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22589 #ifndef getc_unlocked
22590 char *p = (char *) getc_unlocked;
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_have_decl_getc_unlocked=yes
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_have_decl_getc_unlocked=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626 if test $ac_cv_have_decl_getc_unlocked = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22638 case $gt_cv_func_printf_posix in
22639 *yes) HAVE_POSIX_PRINTF=1 ;;
22640 *) HAVE_POSIX_PRINTF=0 ;;
22643 if test "$ac_cv_func_asprintf" = yes; then
22649 if test "$ac_cv_func_snprintf" = yes; then
22655 if test "$ac_cv_func_wprintf" = yes; then
22667 am_save_CPPFLAGS="$CPPFLAGS"
22669 for element in $INCICONV; do
22671 for x in $CPPFLAGS; do
22673 acl_save_prefix="$prefix"
22674 prefix="$acl_final_prefix"
22675 acl_save_exec_prefix="$exec_prefix"
22676 exec_prefix="$acl_final_exec_prefix"
22678 exec_prefix="$acl_save_exec_prefix"
22679 prefix="$acl_save_prefix"
22681 if test "X$x" = "X$element"; then
22686 if test -z "$haveit"; then
22687 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22692 { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 am_cv_func_iconv="no, consider installing GNU libiconv"
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <stdlib.h>
22711 iconv_t cd = iconv_open("","");
22712 iconv(cd,NULL,NULL,NULL,NULL);
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_link") 2>conftest.er1
22727 grep -v '^ *+' conftest.er1 >conftest.err
22729 cat conftest.err >&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } && {
22732 test -z "$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 } && test -s conftest$ac_exeext &&
22735 $as_test_x conftest$ac_exeext; then
22736 am_cv_func_iconv=yes
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
22746 if test "$am_cv_func_iconv" != yes; then
22747 am_save_LIBS="$LIBS"
22748 LIBS="$LIBS $LIBICONV"
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 #include <stdlib.h>
22760 iconv_t cd = iconv_open("","");
22761 iconv(cd,NULL,NULL,NULL,NULL);
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774 (eval "$ac_link") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest$ac_exeext &&
22784 $as_test_x conftest$ac_exeext; then
22785 am_cv_lib_iconv=yes
22786 am_cv_func_iconv=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795 conftest$ac_exeext conftest.$ac_ext
22796 LIBS="$am_save_LIBS"
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802 if test "$am_cv_func_iconv" = yes; then
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22809 if test "$am_cv_lib_iconv" = yes; then
22810 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22815 CPPFLAGS="$am_save_CPPFLAGS"
22822 if test "$am_cv_func_iconv" = yes; then
22823 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825 if test "${am_cv_proto_iconv+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22836 #include <stdlib.h>
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 am_cv_proto_iconv_arg1=""
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 am_cv_proto_iconv_arg1="const"
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 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);"
22885 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886 { echo "$as_me:$LINENO: result: ${ac_t:-
22887 }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889 }$am_cv_proto_iconv" >&6; }
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22898 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 #include <langinfo.h>
22913 char* cs = nl_langinfo(CODESET);
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_link") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest$ac_exeext &&
22935 $as_test_x conftest$ac_exeext; then
22936 am_cv_langinfo_codeset=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 am_cv_langinfo_codeset=no
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945 conftest$ac_exeext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950 if test $am_cv_langinfo_codeset = yes; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22958 if test $ac_cv_header_locale_h = yes; then
22960 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 #include <locale.h>
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_link") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext &&
22997 $as_test_x conftest$ac_exeext; then
22998 gt_cv_val_LC_MESSAGES=yes
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 gt_cv_val_LC_MESSAGES=no
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007 conftest$ac_exeext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011 if test $gt_cv_val_LC_MESSAGES = yes; then
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23021 if test -n "$INTL_MACOSX_LIBS"; then
23022 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23025 for ac_prog in bison
23027 # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 if test -n "$INTLBISON"; then
23035 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23041 test -z "$as_dir" && as_dir=.
23042 for ac_exec_ext in '' $ac_executable_extensions; do
23043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044 ac_cv_prog_INTLBISON="$ac_prog"
23045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23059 { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23064 test -n "$INTLBISON" && break
23067 if test -z "$INTLBISON"; then
23070 { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073 case $ac_prog_version in
23074 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23079 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23082 if test $ac_verc_fail = yes; then
23101 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 gt_save_CPPFLAGS="$CPPFLAGS"
23107 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108 gt_save_LIBS="$LIBS"
23109 LIBS="$LIBS -framework CoreFoundation"
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <CFPreferences.h>
23120 CFPreferencesCopyAppValue(NULL, NULL)
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_link") 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest$ac_exeext &&
23142 $as_test_x conftest$ac_exeext; then
23143 gt_cv_func_CFPreferencesCopyAppValue=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 gt_cv_func_CFPreferencesCopyAppValue=no
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152 conftest$ac_exeext conftest.$ac_ext
23153 CPPFLAGS="$gt_save_CPPFLAGS"
23154 LIBS="$gt_save_LIBS"
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23165 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 gt_save_CPPFLAGS="$CPPFLAGS"
23171 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172 gt_save_LIBS="$LIBS"
23173 LIBS="$LIBS -framework CoreFoundation"
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <CFLocale.h>
23184 CFLocaleCopyCurrent();
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest$ac_exeext &&
23206 $as_test_x conftest$ac_exeext; then
23207 gt_cv_func_CFLocaleCopyCurrent=yes
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 gt_cv_func_CFLocaleCopyCurrent=no
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216 conftest$ac_exeext conftest.$ac_ext
23217 CPPFLAGS="$gt_save_CPPFLAGS"
23218 LIBS="$gt_save_LIBS"
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23230 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23237 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239 # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241 enableval=$enable_nls; USE_NLS=$enableval
23246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23252 BUILD_INCLUDED_LIBINTL=no
23253 USE_INCLUDED_LIBINTL=no
23259 if test "$USE_NLS" = "yes"; then
23260 gt_use_preinstalled_gnugettext=no
23262 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23269 nls_cv_force_use_gnu_gettext=no
23272 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23275 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23283 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_link") 2>conftest.er1
23315 grep -v '^ *+' conftest.er1 >conftest.err
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } && {
23320 test -z "$ac_c_werror_flag" ||
23321 test ! -s conftest.err
23322 } && test -s conftest$ac_exeext &&
23323 $as_test_x conftest$ac_exeext; then
23324 gt_cv_func_gnugettext1_libc=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 gt_cv_func_gnugettext1_libc=no
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333 conftest$ac_exeext conftest.$ac_ext
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23338 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23344 acl_save_prefix="$prefix"
23345 prefix="$acl_final_prefix"
23346 acl_save_exec_prefix="$exec_prefix"
23347 exec_prefix="$acl_final_exec_prefix"
23349 eval additional_includedir=\"$includedir\"
23350 eval additional_libdir=\"$libdir\"
23352 exec_prefix="$acl_save_exec_prefix"
23353 prefix="$acl_save_prefix"
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358 withval=$with_libintl_prefix;
23359 if test "X$withval" = "Xno"; then
23362 if test "X$withval" = "X"; then
23364 acl_save_prefix="$prefix"
23365 prefix="$acl_final_prefix"
23366 acl_save_exec_prefix="$exec_prefix"
23367 exec_prefix="$acl_final_exec_prefix"
23369 eval additional_includedir=\"$includedir\"
23370 eval additional_libdir=\"$libdir\"
23372 exec_prefix="$acl_save_exec_prefix"
23373 prefix="$acl_save_prefix"
23376 additional_includedir="$withval/include"
23377 additional_libdir="$withval/lib"
23388 names_already_handled=
23389 names_next_round='intl '
23390 while test -n "$names_next_round"; do
23391 names_this_round="$names_next_round"
23393 for name in $names_this_round; do
23395 for n in $names_already_handled; do
23396 if test "$n" = "$name"; then
23397 already_handled=yes
23401 if test -z "$already_handled"; then
23402 names_already_handled="$names_already_handled $name"
23403 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404 eval value=\"\$HAVE_LIB$uppername\"
23405 if test -n "$value"; then
23406 if test "$value" = yes; then
23407 eval value=\"\$LIB$uppername\"
23408 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409 eval value=\"\$LTLIB$uppername\"
23410 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23419 if test $use_additional = yes; then
23420 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421 found_dir="$additional_libdir"
23422 found_so="$additional_libdir/lib$name.$shlibext"
23423 if test -f "$additional_libdir/lib$name.la"; then
23424 found_la="$additional_libdir/lib$name.la"
23427 if test -f "$additional_libdir/lib$name.$libext"; then
23428 found_dir="$additional_libdir"
23429 found_a="$additional_libdir/lib$name.$libext"
23430 if test -f "$additional_libdir/lib$name.la"; then
23431 found_la="$additional_libdir/lib$name.la"
23436 if test "X$found_dir" = "X"; then
23437 for x in $LDFLAGS $LTLIBINTL; do
23439 acl_save_prefix="$prefix"
23440 prefix="$acl_final_prefix"
23441 acl_save_exec_prefix="$exec_prefix"
23442 exec_prefix="$acl_final_exec_prefix"
23444 exec_prefix="$acl_save_exec_prefix"
23445 prefix="$acl_save_prefix"
23449 dir=`echo "X$x" | sed -e 's/^X-L//'`
23450 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23452 found_so="$dir/lib$name.$shlibext"
23453 if test -f "$dir/lib$name.la"; then
23454 found_la="$dir/lib$name.la"
23457 if test -f "$dir/lib$name.$libext"; then
23459 found_a="$dir/lib$name.$libext"
23460 if test -f "$dir/lib$name.la"; then
23461 found_la="$dir/lib$name.la"
23467 if test "X$found_dir" != "X"; then
23472 if test "X$found_dir" != "X"; then
23473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474 if test "X$found_so" != "X"; then
23475 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23479 for x in $ltrpathdirs; do
23480 if test "X$x" = "X$found_dir"; then
23485 if test -z "$haveit"; then
23486 ltrpathdirs="$ltrpathdirs $found_dir"
23488 if test "$hardcode_direct" = yes; then
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494 for x in $rpathdirs; do
23495 if test "X$x" = "X$found_dir"; then
23500 if test -z "$haveit"; then
23501 rpathdirs="$rpathdirs $found_dir"
23505 for x in $LDFLAGS $LIBINTL; do
23507 acl_save_prefix="$prefix"
23508 prefix="$acl_final_prefix"
23509 acl_save_exec_prefix="$exec_prefix"
23510 exec_prefix="$acl_final_exec_prefix"
23512 exec_prefix="$acl_save_exec_prefix"
23513 prefix="$acl_save_prefix"
23515 if test "X$x" = "X-L$found_dir"; then
23520 if test -z "$haveit"; then
23521 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23523 if test "$hardcode_minus_L" != no; then
23524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23526 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23532 if test "X$found_a" != "X"; then
23533 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23538 additional_includedir=
23539 case "$found_dir" in
23541 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542 additional_includedir="$basedir/include"
23545 if test "X$additional_includedir" != "X"; then
23546 if test "X$additional_includedir" != "X/usr/include"; then
23548 if test "X$additional_includedir" = "X/usr/local/include"; then
23549 if test -n "$GCC"; then
23551 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23555 if test -z "$haveit"; then
23556 for x in $CPPFLAGS $INCINTL; do
23558 acl_save_prefix="$prefix"
23559 prefix="$acl_final_prefix"
23560 acl_save_exec_prefix="$exec_prefix"
23561 exec_prefix="$acl_final_exec_prefix"
23563 exec_prefix="$acl_save_exec_prefix"
23564 prefix="$acl_save_prefix"
23566 if test "X$x" = "X-I$additional_includedir"; then
23571 if test -z "$haveit"; then
23572 if test -d "$additional_includedir"; then
23573 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23579 if test -n "$found_la"; then
23580 save_libdir="$libdir"
23581 case "$found_la" in
23582 */* | *\\*) . "$found_la" ;;
23583 *) . "./$found_la" ;;
23585 libdir="$save_libdir"
23586 for dep in $dependency_libs; do
23589 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590 if test "X$additional_libdir" != "X/usr/lib"; then
23592 if test "X$additional_libdir" = "X/usr/local/lib"; then
23593 if test -n "$GCC"; then
23595 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23599 if test -z "$haveit"; then
23601 for x in $LDFLAGS $LIBINTL; do
23603 acl_save_prefix="$prefix"
23604 prefix="$acl_final_prefix"
23605 acl_save_exec_prefix="$exec_prefix"
23606 exec_prefix="$acl_final_exec_prefix"
23608 exec_prefix="$acl_save_exec_prefix"
23609 prefix="$acl_save_prefix"
23611 if test "X$x" = "X-L$additional_libdir"; then
23616 if test -z "$haveit"; then
23617 if test -d "$additional_libdir"; then
23618 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23622 for x in $LDFLAGS $LTLIBINTL; do
23624 acl_save_prefix="$prefix"
23625 prefix="$acl_final_prefix"
23626 acl_save_exec_prefix="$exec_prefix"
23627 exec_prefix="$acl_final_exec_prefix"
23629 exec_prefix="$acl_save_exec_prefix"
23630 prefix="$acl_save_prefix"
23632 if test "X$x" = "X-L$additional_libdir"; then
23637 if test -z "$haveit"; then
23638 if test -d "$additional_libdir"; then
23639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23646 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647 if test "$enable_rpath" != no; then
23649 for x in $rpathdirs; do
23650 if test "X$x" = "X$dir"; then
23655 if test -z "$haveit"; then
23656 rpathdirs="$rpathdirs $dir"
23659 for x in $ltrpathdirs; do
23660 if test "X$x" = "X$dir"; then
23665 if test -z "$haveit"; then
23666 ltrpathdirs="$ltrpathdirs $dir"
23671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23677 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23684 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23691 if test "X$rpathdirs" != "X"; then
23692 if test -n "$hardcode_libdir_separator"; then
23694 for found_dir in $rpathdirs; do
23695 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23697 acl_save_libdir="$libdir"
23699 eval flag=\"$hardcode_libdir_flag_spec\"
23700 libdir="$acl_save_libdir"
23701 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23703 for found_dir in $rpathdirs; do
23704 acl_save_libdir="$libdir"
23705 libdir="$found_dir"
23706 eval flag=\"$hardcode_libdir_flag_spec\"
23707 libdir="$acl_save_libdir"
23708 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23712 if test "X$ltrpathdirs" != "X"; then
23713 for found_dir in $ltrpathdirs; do
23714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23718 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 gt_save_CPPFLAGS="$CPPFLAGS"
23724 CPPFLAGS="$CPPFLAGS $INCINTL"
23725 gt_save_LIBS="$LIBS"
23726 LIBS="$LIBS $LIBINTL"
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23739 const char *_nl_expand_alias (const char *);
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756 (eval "$ac_link") 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && {
23763 test -z "$ac_c_werror_flag" ||
23764 test ! -s conftest.err
23765 } && test -s conftest$ac_exeext &&
23766 $as_test_x conftest$ac_exeext; then
23767 gt_cv_func_gnugettext1_libintl=yes
23769 echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23772 gt_cv_func_gnugettext1_libintl=no
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776 conftest$ac_exeext conftest.$ac_ext
23777 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778 LIBS="$LIBS $LIBICONV"
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23791 const char *_nl_expand_alias (const char *);
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>conftest.er1
23810 grep -v '^ *+' conftest.er1 >conftest.err
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } && {
23815 test -z "$ac_c_werror_flag" ||
23816 test ! -s conftest.err
23817 } && test -s conftest$ac_exeext &&
23818 $as_test_x conftest$ac_exeext; then
23819 LIBINTL="$LIBINTL $LIBICONV"
23820 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821 gt_cv_func_gnugettext1_libintl=yes
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23833 CPPFLAGS="$gt_save_CPPFLAGS"
23834 LIBS="$gt_save_LIBS"
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23840 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842 && test "$PACKAGE" != gettext-runtime \
23843 && test "$PACKAGE" != gettext-tools; }; then
23844 gt_use_preinstalled_gnugettext=yes
23852 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853 nls_cv_use_gnu_gettext=yes
23857 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858 BUILD_INCLUDED_LIBINTL=yes
23859 USE_INCLUDED_LIBINTL=yes
23860 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23872 if test -n "$INTL_MACOSX_LIBS"; then
23873 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23880 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23892 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896 if test "$USE_NLS" = "yes"; then
23897 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901 gt_source="external libintl"
23906 gt_source="included intl directory"
23908 { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23912 if test "$USE_NLS" = "yes"; then
23914 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23921 for element in $INCINTL; do
23923 for x in $CPPFLAGS; do
23925 acl_save_prefix="$prefix"
23926 prefix="$acl_final_prefix"
23927 acl_save_exec_prefix="$exec_prefix"
23928 exec_prefix="$acl_final_exec_prefix"
23930 exec_prefix="$acl_save_exec_prefix"
23931 prefix="$acl_save_prefix"
23933 if test "X$x" = "X$element"; then
23938 if test -z "$haveit"; then
23939 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23961 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962 BUILD_INCLUDED_LIBINTL=yes
23969 nls_cv_header_intl=
23970 nls_cv_header_libgt=
23982 if test "$USE_INCLUDED_LIBINTL" = yes; then
23983 INTLOBJS="\$(GETTOBJS)"
23987 INTL_LIBTOOL_SUFFIX_PREFIX=
23991 INTLLIBS="$LIBINTL"
24003 support_postgresql=no
24005 support_smartalloc=yes
24006 support_readline=yes
24010 support_wx_console=no
24011 support_tray_monitor=no
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24022 build_client_only=no
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033 enableval=$enable_gnome;
24034 if test x$enableval = xyes; then
24043 if test x$support_gnome = xyes; then
24044 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24046 if test $pkg = 0; then
24047 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24048 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24050 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24055 GNOME_DIR=src/gnome2-console
24056 gnome_version="Version 2.x"
24058 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24059 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24060 { (exit 1); exit 1; }; }
24065 # Check whether --enable-bat was given.
24066 if test "${enable_bat+set}" = set; then
24067 enableval=$enable_bat;
24068 if test x$enableval = xyes; then
24070 cat >>confdefs.h <<\_ACEOF
24082 if test x$support_bat = xyes; then
24083 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24085 if test $pkg = 0; then
24086 BAT_DIR=src/qt-console
24088 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24089 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24090 { (exit 1); exit 1; }; }
24100 if test x$support_bat = xyes; then
24101 { echo "$as_me:$LINENO: checking for qwt support" >&5
24102 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24104 # Check whether --with-qwt was given.
24105 if test "${with_qwt+set}" = set; then
24107 case "$with_qwt" in
24112 if test -f ${with_qwt}/include/qwt.h; then
24113 QWT_INC="${with_qwt}/include"
24114 QWT_LDFLAGS="-L${with_qwt}/lib"
24125 if test $no_qwt = no; then
24126 if test x$QWT_INC = x; then
24127 for root in /usr /usr/local; do
24128 for ver in qwt qwt5 qwt-qt4; do
24129 if test -f ${root}/include/${ver}/qwt.h; then
24130 QWT_INC="${root}/include/${ver}"
24131 if test -d ${root}/lib64/; then
24132 QWT_LDFLAGS="-L${root}/lib64"
24133 elif test -d ${root}/lib/64/; then
24134 QWT_LDFLAGS="-L${root}/64"
24136 QWT_LDFLAGS="-L${root}/lib"
24147 if test x$QWT_INC = x; then
24148 { echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6; }
24152 cat >>confdefs.h <<\_ACEOF
24156 { echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6; }
24167 # Check whether --enable-bwx-console was given.
24168 if test "${enable_bwx_console+set}" = set; then
24169 enableval=$enable_bwx_console;
24170 if test x$enableval = xyes; then
24171 support_wx_console=yes
24179 if test x$support_wx_console = xyes; then
24180 abc=`$WXCONFIG $WXFLAGS --cppflags`
24182 if test $pkg = 0; then
24183 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24184 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24185 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24189 WX_DIR="src/wx-console"
24192 echo "wx-config program not found. bwx-console disabled."
24194 support_wx_console=no
24199 # Check whether --enable-tray-monitor was given.
24200 if test "${enable_tray_monitor+set}" = set; then
24201 enableval=$enable_tray_monitor;
24202 if test x$enableval = xyes; then
24203 support_tray_monitor=yes
24211 if test x$support_tray_monitor = xyes; then
24212 abc=`$PKGCONFIG --exists gtk+-2.0`
24214 if test $pkg = 0; then
24215 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24216 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24219 TRAY_MONITOR_DIR=src/tray-monitor
24220 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24222 if test $pkg = 0; then
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_GTK_2_4 1
24233 # Check whether --enable-smartalloc was given.
24234 if test "${enable_smartalloc+set}" = set; then
24235 enableval=$enable_smartalloc;
24236 if test x$enableval = xno; then
24237 support_smartalloc=no
24244 if test x$support_smartalloc = xyes; then
24246 cat >>confdefs.h <<\_ACEOF
24247 #define SMARTALLOC 1
24252 # Check whether --enable-lockmgr was given.
24253 if test "${enable_lockmgr+set}" = set; then
24254 enableval=$enable_lockmgr;
24255 if test x$enableval = xyes; then
24256 support_lockmgr=yes
24263 if test x$support_lockmgr = xyes; then
24265 cat >>confdefs.h <<\_ACEOF
24266 #define _USE_LOCKMGR 1
24272 # Check whether --enable-static-tools was given.
24273 if test "${enable_static_tools+set}" = set; then
24274 enableval=$enable_static_tools;
24275 if test x$enableval = xyes; then
24276 if test x$use_libtool = xyes; then
24277 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24280 support_static_tools=yes
24288 if test x$support_static_tools = xyes; then
24289 TTOOL_LDFLAGS="-static"
24293 # Check whether --enable-static-fd was given.
24294 if test "${enable_static_fd+set}" = set; then
24295 enableval=$enable_static_fd;
24296 if test x$enableval = xyes; then
24297 if test x$use_libtool = xyes; then
24298 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24301 support_static_fd=yes
24309 if test x$support_static_fd = xyes; then
24310 STATIC_FD="static-bacula-fd"
24314 # Check whether --enable-static-sd was given.
24315 if test "${enable_static_sd+set}" = set; then
24316 enableval=$enable_static_sd;
24317 if test x$enableval = xyes; then
24318 if test x$use_libtool = xyes; then
24319 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24322 support_static_sd=yes
24330 if test x$support_static_sd = xyes; then
24331 STATIC_SD="static-bacula-sd"
24335 # Check whether --enable-static-dir was given.
24336 if test "${enable_static_dir+set}" = set; then
24337 enableval=$enable_static_dir;
24338 if test x$enableval = xyes; then
24339 if test x$use_libtool = xyes; then
24340 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24343 support_static_dir=yes
24351 if test x$support_static_dir = xyes; then
24352 STATIC_DIR="static-bacula-dir"
24356 # Check whether --enable-static-cons was given.
24357 if test "${enable_static_cons+set}" = set; then
24358 enableval=$enable_static_cons;
24359 if test x$enableval = xyes; then
24360 if test x$use_libtool = xyes; then
24361 echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24364 support_static_cons=yes
24374 if test x$support_static_cons = xyes; then
24375 STATIC_CONS="static-bconsole"
24376 STATIC_GNOME_CONS="static-bgnome-console"
24377 STATIC_WX_CONS="static-bwx-console"
24383 # Check whether --enable-client-only was given.
24384 if test "${enable_client_only+set}" = set; then
24385 enableval=$enable_client_only;
24386 if test x$enableval = xyes; then
24387 build_client_only=yes
24395 if test x$build_client_only = xno; then
24402 # Check whether --enable-build-dird was given.
24403 if test "${enable_build_dird+set}" = set; then
24404 enableval=$enable_build_dird;
24405 if test x$enableval = xno; then
24412 if test x$build_dird = xyes; then
24413 DIRD_DIR="src/dird"
24414 DIR_TOOLS="DIRTOOLS"
24417 DIR_TOOLS="NODIRTOOLS"
24422 # Check whether --enable-build-stored was given.
24423 if test "${enable_build_stored+set}" = set; then
24424 enableval=$enable_build_stored;
24425 if test x$enableval = xno; then
24432 if test x$build_stored = xyes; then
24433 STORED_DIR="src/stored"
24439 # Check whether --enable-conio was given.
24440 if test "${enable_conio+set}" = set; then
24441 enableval=$enable_conio;
24442 if test x$enableval = xno; then
24452 # Check whether --enable-ipv6 was given.
24453 if test "${enable_ipv6+set}" = set; then
24454 enableval=$enable_ipv6;
24455 if test x$enableval = xno; then
24463 if test x$support_ipv6 = xyes; then
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 #include <sys/types.h>
24471 #include <sys/socket.h>
24472 #include <netinet/in.h>
24476 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24481 rm -f conftest.$ac_objext conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_link") 2>conftest.er1
24490 grep -v '^ *+' conftest.er1 >conftest.err
24492 cat conftest.err >&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && {
24495 test -z "$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24497 } && test -s conftest$ac_exeext &&
24498 $as_test_x conftest$ac_exeext; then
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24508 conftest$ac_exeext conftest.$ac_ext
24511 if test x$support_ipv6 = xyes; then
24513 cat >>confdefs.h <<\_ACEOF
24514 #define HAVE_IPV6 1
24520 if test x$support_conio = xyes; then
24521 if test "${ac_cv_header_termcap_h+set}" = set; then
24522 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24523 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24524 if test "${ac_cv_header_termcap_h+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24528 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24530 # Is the header compilable?
24531 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24532 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24533 cat >conftest.$ac_ext <<_ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24539 $ac_includes_default
24540 #include <termcap.h>
24542 rm -f conftest.$ac_objext
24543 if { (ac_try="$ac_compile"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_compile") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } && {
24556 test -z "$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 } && test -s conftest.$ac_objext; then
24559 ac_header_compiler=yes
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_header_compiler=no
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24569 echo "${ECHO_T}$ac_header_compiler" >&6; }
24571 # Is the header present?
24572 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24573 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 #include <termcap.h>
24582 if { (ac_try="$ac_cpp conftest.$ac_ext"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24590 grep -v '^ *+' conftest.er1 >conftest.err
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } >/dev/null && {
24595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24596 test ! -s conftest.err
24598 ac_header_preproc=yes
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ac_header_preproc=no
24606 rm -f conftest.err conftest.$ac_ext
24607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24608 echo "${ECHO_T}$ac_header_preproc" >&6; }
24610 # So? What about this header?
24611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24613 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24614 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24615 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24616 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24617 ac_header_preproc=yes
24620 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24621 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24622 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24623 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24624 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24625 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24626 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24627 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24629 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24631 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24635 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24636 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24637 if test "${ac_cv_header_termcap_h+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24640 ac_cv_header_termcap_h=$ac_header_preproc
24642 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24643 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24646 if test $ac_cv_header_termcap_h = yes; then
24647 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24648 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24649 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 ac_check_lib_save_LIBS=$LIBS
24653 LIBS="-ltermcap $LIBS"
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24661 /* Override any GCC internal prototype to avoid an error.
24662 Use char because int might match the return type of a GCC
24663 builtin and then its argument prototype would still apply. */
24676 rm -f conftest.$ac_objext conftest$ac_exeext
24677 if { (ac_try="$ac_link"
24678 case "(($ac_try" in
24679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680 *) ac_try_echo=$ac_try;;
24682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683 (eval "$ac_link") 2>conftest.er1
24685 grep -v '^ *+' conftest.er1 >conftest.err
24687 cat conftest.err >&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && {
24690 test -z "$ac_c_werror_flag" ||
24691 test ! -s conftest.err
24692 } && test -s conftest$ac_exeext &&
24693 $as_test_x conftest$ac_exeext; then
24694 ac_cv_lib_termcap_tgetent=yes
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ac_cv_lib_termcap_tgetent=no
24702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24703 conftest$ac_exeext conftest.$ac_ext
24704 LIBS=$ac_check_lib_save_LIBS
24706 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24707 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24708 if test $ac_cv_lib_termcap_tgetent = yes; then
24709 CONS_LIBS="-ltermcap"
24713 support_readline=no
24715 cat >>confdefs.h <<\_ACEOF
24716 #define HAVE_CONIO 1
24721 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24722 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24723 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 ac_check_lib_save_LIBS=$LIBS
24727 LIBS="-lncurses $LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24735 /* Override any GCC internal prototype to avoid an error.
24736 Use char because int might match the return type of a GCC
24737 builtin and then its argument prototype would still apply. */
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (ac_try="$ac_link"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757 (eval "$ac_link") 2>conftest.er1
24759 grep -v '^ *+' conftest.er1 >conftest.err
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && {
24764 test -z "$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24766 } && test -s conftest$ac_exeext &&
24767 $as_test_x conftest$ac_exeext; then
24768 ac_cv_lib_ncurses_tgetent=yes
24770 echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24773 ac_cv_lib_ncurses_tgetent=no
24776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24777 conftest$ac_exeext conftest.$ac_ext
24778 LIBS=$ac_check_lib_save_LIBS
24780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24781 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24782 if test $ac_cv_lib_ncurses_tgetent = yes; then
24783 CONS_LIBS="-lncurses"
24787 support_readline=no
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_CONIO 1
24803 for ac_header in curses.h
24805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 ac_res=`eval echo '${'$as_ac_Header'}'`
24813 { echo "$as_me:$LINENO: result: $ac_res" >&5
24814 echo "${ECHO_T}$ac_res" >&6; }
24816 # Is the header compilable?
24817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24819 cat >conftest.$ac_ext <<_ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h. */
24825 $ac_includes_default
24826 #include <$ac_header>
24828 rm -f conftest.$ac_objext
24829 if { (ac_try="$ac_compile"
24830 case "(($ac_try" in
24831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832 *) ac_try_echo=$ac_try;;
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835 (eval "$ac_compile") 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } && {
24842 test -z "$ac_c_werror_flag" ||
24843 test ! -s conftest.err
24844 } && test -s conftest.$ac_objext; then
24845 ac_header_compiler=yes
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ac_header_compiler=no
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24855 echo "${ECHO_T}$ac_header_compiler" >&6; }
24857 # Is the header present?
24858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 #include <$ac_header>
24868 if { (ac_try="$ac_cpp conftest.$ac_ext"
24869 case "(($ac_try" in
24870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871 *) ac_try_echo=$ac_try;;
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24876 grep -v '^ *+' conftest.er1 >conftest.err
24878 cat conftest.err >&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } >/dev/null && {
24881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24882 test ! -s conftest.err
24884 ac_header_preproc=yes
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ac_header_preproc=no
24892 rm -f conftest.err conftest.$ac_ext
24893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24894 echo "${ECHO_T}$ac_header_preproc" >&6; }
24896 # So? What about this header?
24897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24903 ac_header_preproc=yes
24906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 eval "$as_ac_Header=\$ac_header_preproc"
24928 ac_res=`eval echo '${'$as_ac_Header'}'`
24929 { echo "$as_me:$LINENO: result: $ac_res" >&5
24930 echo "${ECHO_T}$ac_res" >&6; }
24933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24934 cat >>confdefs.h <<_ACEOF
24935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24942 { echo "$as_me:$LINENO: checking for term.h" >&5
24943 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24944 if test "${ac_cv_header_term_h+set}" = set; then
24945 echo $ECHO_N "(cached) $ECHO_C" >&6
24947 cat >conftest.$ac_ext <<_ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24954 #include <curses.h>
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
24977 ac_cv_header_term_h=yes
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_cv_header_term_h=no
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24988 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24989 if test $ac_cv_header_term_h = yes; then
24990 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24991 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24992 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 ac_check_lib_save_LIBS=$LIBS
24996 LIBS="-lcurses $LIBS"
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25004 /* Override any GCC internal prototype to avoid an error.
25005 Use char because int might match the return type of a GCC
25006 builtin and then its argument prototype would still apply. */
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023 *) ac_try_echo=$ac_try;;
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>conftest.er1
25028 grep -v '^ *+' conftest.er1 >conftest.err
25030 cat conftest.err >&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } && {
25033 test -z "$ac_c_werror_flag" ||
25034 test ! -s conftest.err
25035 } && test -s conftest$ac_exeext &&
25036 $as_test_x conftest$ac_exeext; then
25037 ac_cv_lib_curses_tgetent=yes
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25042 ac_cv_lib_curses_tgetent=no
25045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25046 conftest$ac_exeext conftest.$ac_ext
25047 LIBS=$ac_check_lib_save_LIBS
25049 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25050 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25051 if test $ac_cv_lib_curses_tgetent = yes; then
25052 CONS_LIBS="-lcurses"
25056 support_readline=no
25058 cat >>confdefs.h <<\_ACEOF
25059 #define HAVE_CONIO 1
25067 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25078 # Check whether --enable-readline was given.
25079 if test "${enable_readline+set}" = set; then
25080 enableval=$enable_readline;
25081 if test x$enableval = xno; then
25082 support_readline=no
25091 if test x$support_readline = xyes; then
25093 # Check whether --with-readline was given.
25094 if test "${with_readline+set}" = set; then
25095 withval=$with_readline;
25096 case "$with_readline" in
25101 if test -f ${with_readline}/readline.h; then
25102 CONS_INC="-I${with_readline}"
25103 CONS_LDFLAGS="-L$with_readline"
25104 elif test -f ${with_readline}/include/readline/readline.h; then
25105 CONS_INC="-I${with_readline}/include/readline"
25106 CONS_LDFLAGS="-L${with_readline}/lib"
25107 with_readline="${with_readline}/include/readline"
25109 with_readline="/usr/include/readline"
25112 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25114 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25115 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25119 ac_res=`eval echo '${'$as_ac_Header'}'`
25120 { echo "$as_me:$LINENO: result: $ac_res" >&5
25121 echo "${ECHO_T}$ac_res" >&6; }
25123 # Is the header compilable?
25124 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25125 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 $ac_includes_default
25133 #include <${with_readline}/readline.h>
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142 (eval "$ac_compile") 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } && {
25149 test -z "$ac_c_werror_flag" ||
25150 test ! -s conftest.err
25151 } && test -s conftest.$ac_objext; then
25152 ac_header_compiler=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_header_compiler=no
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25162 echo "${ECHO_T}$ac_header_compiler" >&6; }
25164 # Is the header present?
25165 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25166 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25173 #include <${with_readline}/readline.h>
25175 if { (ac_try="$ac_cpp conftest.$ac_ext"
25176 case "(($ac_try" in
25177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178 *) ac_try_echo=$ac_try;;
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25183 grep -v '^ *+' conftest.er1 >conftest.err
25185 cat conftest.err >&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } >/dev/null && {
25188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25191 ac_header_preproc=yes
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ac_header_preproc=no
25199 rm -f conftest.err conftest.$ac_ext
25200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25201 echo "${ECHO_T}$ac_header_preproc" >&6; }
25203 # So? What about this header?
25204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25206 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25207 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25208 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25209 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25210 ac_header_preproc=yes
25213 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25214 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25215 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25216 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25217 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25218 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25219 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25220 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25221 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25223 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25228 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25229 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 eval "$as_ac_Header=\$ac_header_preproc"
25235 ac_res=`eval echo '${'$as_ac_Header'}'`
25236 { echo "$as_me:$LINENO: result: $ac_res" >&5
25237 echo "${ECHO_T}$ac_res" >&6; }
25240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25243 cat >>confdefs.h <<\_ACEOF
25244 #define HAVE_READLINE 1
25247 CONS_LIBS="-lreadline -lhistory -ltermcap"
25253 echo "readline.h not found. readline turned off ..."
25265 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25266 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25267 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25268 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25272 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25274 # Is the header compilable?
25275 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25276 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 $ac_includes_default
25284 #include </usr/include/readline/readline.h>
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290 *) ac_try_echo=$ac_try;;
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293 (eval "$ac_compile") 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } && {
25300 test -z "$ac_c_werror_flag" ||
25301 test ! -s conftest.err
25302 } && test -s conftest.$ac_objext; then
25303 ac_header_compiler=yes
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_header_compiler=no
25311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25313 echo "${ECHO_T}$ac_header_compiler" >&6; }
25315 # Is the header present?
25316 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25317 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25318 cat >conftest.$ac_ext <<_ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25324 #include </usr/include/readline/readline.h>
25326 if { (ac_try="$ac_cpp conftest.$ac_ext"
25327 case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } >/dev/null && {
25339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25342 ac_header_preproc=yes
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_header_preproc=no
25350 rm -f conftest.err conftest.$ac_ext
25351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25352 echo "${ECHO_T}$ac_header_preproc" >&6; }
25354 # So? What about this header?
25355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25357 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25358 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25360 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25361 ac_header_preproc=yes
25364 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25365 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25366 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25367 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25368 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25369 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25370 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25371 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25372 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25379 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25380 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25381 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25386 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25387 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25390 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_READLINE 1
25398 CONS_INC="-I/usr/include/readline"
25399 CONS_LIBS="-lreadline -ltermcap"
25403 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25405 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25406 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 ac_res=`eval echo '${'$as_ac_Header'}'`
25411 { echo "$as_me:$LINENO: result: $ac_res" >&5
25412 echo "${ECHO_T}$ac_res" >&6; }
25414 # Is the header compilable?
25415 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25416 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25417 cat >conftest.$ac_ext <<_ACEOF
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h. */
25423 $ac_includes_default
25424 #include <${TOP_DIR}/depkgs/readline/readline.h>
25426 rm -f conftest.$ac_objext
25427 if { (ac_try="$ac_compile"
25428 case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_compile") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } && {
25440 test -z "$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25442 } && test -s conftest.$ac_objext; then
25443 ac_header_compiler=yes
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ac_header_compiler=no
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25453 echo "${ECHO_T}$ac_header_compiler" >&6; }
25455 # Is the header present?
25456 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25457 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25458 cat >conftest.$ac_ext <<_ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 #include <${TOP_DIR}/depkgs/readline/readline.h>
25466 if { (ac_try="$ac_cpp conftest.$ac_ext"
25467 case "(($ac_try" in
25468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469 *) ac_try_echo=$ac_try;;
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } >/dev/null && {
25479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25482 ac_header_preproc=yes
25484 echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25487 ac_header_preproc=no
25490 rm -f conftest.err conftest.$ac_ext
25491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25492 echo "${ECHO_T}$ac_header_preproc" >&6; }
25494 # So? What about this header?
25495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25497 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25498 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25499 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25500 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25501 ac_header_preproc=yes
25504 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25505 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25507 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25509 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25510 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25511 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25512 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25519 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25520 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 eval "$as_ac_Header=\$ac_header_preproc"
25526 ac_res=`eval echo '${'$as_ac_Header'}'`
25527 { echo "$as_me:$LINENO: result: $ac_res" >&5
25528 echo "${ECHO_T}$ac_res" >&6; }
25531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25534 cat >>confdefs.h <<\_ACEOF
25535 #define HAVE_READLINE 1
25539 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25540 CONS_LIBS="-lreadline -lhistory -ltermcap"
25541 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25542 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25547 echo "readline.h not found. readline turned off ..."
25574 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25575 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25576 if test "${ac_cv_header_stat_broken+set}" = set; then
25577 echo $ECHO_N "(cached) $ECHO_C" >&6
25579 cat >conftest.$ac_ext <<_ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h. */
25585 #include <sys/types.h>
25586 #include <sys/stat.h>
25588 #if defined S_ISBLK && defined S_IFDIR
25589 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25592 #if defined S_ISBLK && defined S_IFCHR
25593 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25596 #if defined S_ISLNK && defined S_IFREG
25597 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25600 #if defined S_ISSOCK && defined S_IFREG
25601 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25605 rm -f conftest.$ac_objext
25606 if { (ac_try="$ac_compile"
25607 case "(($ac_try" in
25608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609 *) ac_try_echo=$ac_try;;
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612 (eval "$ac_compile") 2>conftest.er1
25614 grep -v '^ *+' conftest.er1 >conftest.err
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } && {
25619 test -z "$ac_c_werror_flag" ||
25620 test ! -s conftest.err
25621 } && test -s conftest.$ac_objext; then
25622 ac_cv_header_stat_broken=no
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 ac_cv_header_stat_broken=yes
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25633 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25634 if test $ac_cv_header_stat_broken = yes; then
25636 cat >>confdefs.h <<\_ACEOF
25637 #define STAT_MACROS_BROKEN 1
25647 ac_header_dirent=no
25648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25649 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25650 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 cat >conftest.$ac_ext <<_ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 #include <sys/types.h>
25673 rm -f conftest.$ac_objext
25674 if { (ac_try="$ac_compile"
25675 case "(($ac_try" in
25676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677 *) ac_try_echo=$ac_try;;
25679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25680 (eval "$ac_compile") 2>conftest.er1
25682 grep -v '^ *+' conftest.er1 >conftest.err
25684 cat conftest.err >&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); } && {
25687 test -z "$ac_c_werror_flag" ||
25688 test ! -s conftest.err
25689 } && test -s conftest.$ac_objext; then
25690 eval "$as_ac_Header=yes"
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25695 eval "$as_ac_Header=no"
25698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25700 ac_res=`eval echo '${'$as_ac_Header'}'`
25701 { echo "$as_me:$LINENO: result: $ac_res" >&5
25702 echo "${ECHO_T}$ac_res" >&6; }
25703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25704 cat >>confdefs.h <<_ACEOF
25705 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25708 ac_header_dirent=$ac_hdr; break
25712 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25713 if test $ac_header_dirent = dirent.h; then
25714 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25715 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25716 if test "${ac_cv_search_opendir+set}" = set; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25719 ac_func_search_save_LIBS=$LIBS
25720 cat >conftest.$ac_ext <<_ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h. */
25727 /* Override any GCC internal prototype to avoid an error.
25728 Use char because int might match the return type of a GCC
25729 builtin and then its argument prototype would still apply. */
25742 for ac_lib in '' dir; do
25743 if test -z "$ac_lib"; then
25744 ac_res="none required"
25747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25749 rm -f conftest.$ac_objext conftest$ac_exeext
25750 if { (ac_try="$ac_link"
25751 case "(($ac_try" in
25752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753 *) ac_try_echo=$ac_try;;
25755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756 (eval "$ac_link") 2>conftest.er1
25758 grep -v '^ *+' conftest.er1 >conftest.err
25760 cat conftest.err >&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } && {
25763 test -z "$ac_c_werror_flag" ||
25764 test ! -s conftest.err
25765 } && test -s conftest$ac_exeext &&
25766 $as_test_x conftest$ac_exeext; then
25767 ac_cv_search_opendir=$ac_res
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777 if test "${ac_cv_search_opendir+set}" = set; then
25781 if test "${ac_cv_search_opendir+set}" = set; then
25784 ac_cv_search_opendir=no
25786 rm conftest.$ac_ext
25787 LIBS=$ac_func_search_save_LIBS
25789 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25790 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25791 ac_res=$ac_cv_search_opendir
25792 if test "$ac_res" != no; then
25793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25798 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25799 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25800 if test "${ac_cv_search_opendir+set}" = set; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25803 ac_func_search_save_LIBS=$LIBS
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25811 /* Override any GCC internal prototype to avoid an error.
25812 Use char because int might match the return type of a GCC
25813 builtin and then its argument prototype would still apply. */
25826 for ac_lib in '' x; do
25827 if test -z "$ac_lib"; then
25828 ac_res="none required"
25831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25833 rm -f conftest.$ac_objext conftest$ac_exeext
25834 if { (ac_try="$ac_link"
25835 case "(($ac_try" in
25836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837 *) ac_try_echo=$ac_try;;
25839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25840 (eval "$ac_link") 2>conftest.er1
25842 grep -v '^ *+' conftest.er1 >conftest.err
25844 cat conftest.err >&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } && {
25847 test -z "$ac_c_werror_flag" ||
25848 test ! -s conftest.err
25849 } && test -s conftest$ac_exeext &&
25850 $as_test_x conftest$ac_exeext; then
25851 ac_cv_search_opendir=$ac_res
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25861 if test "${ac_cv_search_opendir+set}" = set; then
25865 if test "${ac_cv_search_opendir+set}" = set; then
25868 ac_cv_search_opendir=no
25870 rm conftest.$ac_ext
25871 LIBS=$ac_func_search_save_LIBS
25873 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25874 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25875 ac_res=$ac_cv_search_opendir
25876 if test "$ac_res" != no; then
25877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25890 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25898 cat >conftest.$ac_ext <<_ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25906 #define $ac_func innocuous_$ac_func
25908 /* System header to define __stub macros and hopefully few prototypes,
25909 which can conflict with char $ac_func (); below.
25910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25911 <limits.h> exists even on freestanding compilers. */
25914 # include <limits.h>
25916 # include <assert.h>
25921 /* Override any GCC internal prototype to avoid an error.
25922 Use char because int might match the return type of a GCC
25923 builtin and then its argument prototype would still apply. */
25928 /* The GNU C library defines this for functions which it implements
25929 to always fail with ENOSYS. Some functions are actually named
25930 something starting with __ and the normal name is an alias. */
25931 #if defined __stub_$ac_func || defined __stub___$ac_func
25938 return $ac_func ();
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_link") 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } && {
25957 test -z "$ac_c_werror_flag" ||
25958 test ! -s conftest.err
25959 } && test -s conftest$ac_exeext &&
25960 $as_test_x conftest$ac_exeext; then
25961 eval "$as_ac_var=yes"
25963 echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 eval "$as_ac_var=no"
25969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25970 conftest$ac_exeext conftest.$ac_ext
25972 ac_res=`eval echo '${'$as_ac_var'}'`
25973 { echo "$as_me:$LINENO: result: $ac_res" >&5
25974 echo "${ECHO_T}$ac_res" >&6; }
25975 if test `eval echo '${'$as_ac_var'}'` = yes; then
25976 cat >>confdefs.h <<_ACEOF
25977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25985 for ac_func in nanosleep nl_langinfo
25987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 cat >conftest.$ac_ext <<_ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26001 #define $ac_func innocuous_$ac_func
26003 /* System header to define __stub macros and hopefully few prototypes,
26004 which can conflict with char $ac_func (); below.
26005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26006 <limits.h> exists even on freestanding compilers. */
26009 # include <limits.h>
26011 # include <assert.h>
26016 /* Override any GCC internal prototype to avoid an error.
26017 Use char because int might match the return type of a GCC
26018 builtin and then its argument prototype would still apply. */
26023 /* The GNU C library defines this for functions which it implements
26024 to always fail with ENOSYS. Some functions are actually named
26025 something starting with __ and the normal name is an alias. */
26026 #if defined __stub_$ac_func || defined __stub___$ac_func
26033 return $ac_func ();
26038 rm -f conftest.$ac_objext conftest$ac_exeext
26039 if { (ac_try="$ac_link"
26040 case "(($ac_try" in
26041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042 *) ac_try_echo=$ac_try;;
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045 (eval "$ac_link") 2>conftest.er1
26047 grep -v '^ *+' conftest.er1 >conftest.err
26049 cat conftest.err >&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest$ac_exeext &&
26055 $as_test_x conftest$ac_exeext; then
26056 eval "$as_ac_var=yes"
26058 echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26061 eval "$as_ac_var=no"
26064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26065 conftest$ac_exeext conftest.$ac_ext
26067 ac_res=`eval echo '${'$as_ac_var'}'`
26068 { echo "$as_me:$LINENO: result: $ac_res" >&5
26069 echo "${ECHO_T}$ac_res" >&6; }
26070 if test `eval echo '${'$as_ac_var'}'` = yes; then
26071 cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26079 for ac_header in varargs.h
26081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26088 ac_res=`eval echo '${'$as_ac_Header'}'`
26089 { echo "$as_me:$LINENO: result: $ac_res" >&5
26090 echo "${ECHO_T}$ac_res" >&6; }
26092 # Is the header compilable?
26093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26101 $ac_includes_default
26102 #include <$ac_header>
26104 rm -f conftest.$ac_objext
26105 if { (ac_try="$ac_compile"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_compile") 2>conftest.er1
26113 grep -v '^ *+' conftest.er1 >conftest.err
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } && {
26118 test -z "$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26120 } && test -s conftest.$ac_objext; then
26121 ac_header_compiler=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_header_compiler=no
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26131 echo "${ECHO_T}$ac_header_compiler" >&6; }
26133 # Is the header present?
26134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26136 cat >conftest.$ac_ext <<_ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h. */
26142 #include <$ac_header>
26144 if { (ac_try="$ac_cpp conftest.$ac_ext"
26145 case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26152 grep -v '^ *+' conftest.er1 >conftest.err
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } >/dev/null && {
26157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26158 test ! -s conftest.err
26160 ac_header_preproc=yes
26162 echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26165 ac_header_preproc=no
26168 rm -f conftest.err conftest.$ac_ext
26169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26170 echo "${ECHO_T}$ac_header_preproc" >&6; }
26172 # So? What about this header?
26173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26179 ac_header_preproc=yes
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26202 eval "$as_ac_Header=\$ac_header_preproc"
26204 ac_res=`eval echo '${'$as_ac_Header'}'`
26205 { echo "$as_me:$LINENO: result: $ac_res" >&5
26206 echo "${ECHO_T}$ac_res" >&6; }
26209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26210 cat >>confdefs.h <<_ACEOF
26211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26220 { echo "$as_me:$LINENO: checking for Python support" >&5
26221 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26223 # Check whether --with-python was given.
26224 if test "${with_python+set}" = set; then
26225 withval=$with_python;
26228 if test "$withval" != "no"; then
26229 if test "$withval" = "yes"; then
26230 for python_root in /usr /usr/local /usr/sfw; do
26231 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26232 if test -f $python_root/include/${ver}/Python.h; then
26233 PYTHON_INCDIR=-I$python_root/include/${ver}
26234 if test -d $python_root/lib64/${ver}/config; then
26235 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26237 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26244 if test x$PYTHON_INCDIR = x; then
26245 if test -f $prefix/include/Python.h; then
26246 PYTHON_INCDIR=-I$prefix/include
26247 if test -d $prefix/lib64/config; then
26248 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26250 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26253 { echo "$as_me:$LINENO: result: no" >&5
26254 echo "${ECHO_T}no" >&6; }
26255 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26256 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26257 { (exit 1); exit 1; }; }
26261 if test -f $withval/Python.h; then
26262 PYTHON_INCDIR=-I$withval
26263 PYTHON_LIBS="-L$withval/config -lpython"
26264 elif test -f $withval/include/Python.h; then
26265 PYTHON_INCDIR=-I$withval/include
26266 if test -d $withval/lib64/config; then
26267 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26269 PYTHON_LIBS="-L$withval/lib/config -lpython"
26271 elif test -f $withval/include/python/Python.h; then
26272 PYTHON_INCDIR=-I$withval/include/python
26273 if test -d $withval/lib64/python/config; then
26274 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26276 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26279 { echo "$as_me:$LINENO: result: no" >&5
26280 echo "${ECHO_T}no" >&6; }
26281 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26282 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26283 { (exit 1); exit 1; }; }
26287 cat >>confdefs.h <<\_ACEOF
26288 #define HAVE_PYTHON 1
26291 { echo "$as_me:$LINENO: result: yes" >&5
26292 echo "${ECHO_T}yes" >&6; }
26294 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26295 echo "$as_me: checking for more Python libs" >&6;}
26296 saved_LIBS="$LIBS"; LIBS=
26297 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26298 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26299 if test "${ac_cv_search_shm_open+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26302 ac_func_search_save_LIBS=$LIBS
26303 cat >conftest.$ac_ext <<_ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26310 /* Override any GCC internal prototype to avoid an error.
26311 Use char because int might match the return type of a GCC
26312 builtin and then its argument prototype would still apply. */
26320 return shm_open ();
26325 for ac_lib in '' rt; do
26326 if test -z "$ac_lib"; then
26327 ac_res="none required"
26330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26332 rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336 *) ac_try_echo=$ac_try;;
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_link") 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && {
26346 test -z "$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 } && test -s conftest$ac_exeext &&
26349 $as_test_x conftest$ac_exeext; then
26350 ac_cv_search_shm_open=$ac_res
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26360 if test "${ac_cv_search_shm_open+set}" = set; then
26364 if test "${ac_cv_search_shm_open+set}" = set; then
26367 ac_cv_search_shm_open=no
26369 rm conftest.$ac_ext
26370 LIBS=$ac_func_search_save_LIBS
26372 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26373 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26374 ac_res=$ac_cv_search_shm_open
26375 if test "$ac_res" != no; then
26376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26381 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26382 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26383 if test "${ac_cv_lib_util_openpty+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 ac_check_lib_save_LIBS=$LIBS
26387 LIBS="-lutil $LIBS"
26388 cat >conftest.$ac_ext <<_ACEOF
26391 cat confdefs.h >>conftest.$ac_ext
26392 cat >>conftest.$ac_ext <<_ACEOF
26393 /* end confdefs.h. */
26395 /* Override any GCC internal prototype to avoid an error.
26396 Use char because int might match the return type of a GCC
26397 builtin and then its argument prototype would still apply. */
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (ac_try="$ac_link"
26412 case "(($ac_try" in
26413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414 *) ac_try_echo=$ac_try;;
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417 (eval "$ac_link") 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } && {
26424 test -z "$ac_c_werror_flag" ||
26425 test ! -s conftest.err
26426 } && test -s conftest$ac_exeext &&
26427 $as_test_x conftest$ac_exeext; then
26428 ac_cv_lib_util_openpty=yes
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 ac_cv_lib_util_openpty=no
26436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26437 conftest$ac_exeext conftest.$ac_ext
26438 LIBS=$ac_check_lib_save_LIBS
26440 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26441 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26442 if test $ac_cv_lib_util_openpty = yes; then
26443 cat >>confdefs.h <<_ACEOF
26444 #define HAVE_LIBUTIL 1
26447 LIBS="-lutil $LIBS"
26451 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26454 { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26460 { echo "$as_me:$LINENO: result: no" >&5
26461 echo "${ECHO_T}no" >&6; }
26469 { echo "$as_me:$LINENO: checking for socket" >&5
26470 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26471 if test "${ac_cv_func_socket+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26474 cat >conftest.$ac_ext <<_ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h. */
26480 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26482 #define socket innocuous_socket
26484 /* System header to define __stub macros and hopefully few prototypes,
26485 which can conflict with char socket (); below.
26486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26487 <limits.h> exists even on freestanding compilers. */
26490 # include <limits.h>
26492 # include <assert.h>
26497 /* Override any GCC internal prototype to avoid an error.
26498 Use char because int might match the return type of a GCC
26499 builtin and then its argument prototype would still apply. */
26504 /* The GNU C library defines this for functions which it implements
26505 to always fail with ENOSYS. Some functions are actually named
26506 something starting with __ and the normal name is an alias. */
26507 #if defined __stub_socket || defined __stub___socket
26519 rm -f conftest.$ac_objext conftest$ac_exeext
26520 if { (ac_try="$ac_link"
26521 case "(($ac_try" in
26522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523 *) ac_try_echo=$ac_try;;
26525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26526 (eval "$ac_link") 2>conftest.er1
26528 grep -v '^ *+' conftest.er1 >conftest.err
26530 cat conftest.err >&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } && {
26533 test -z "$ac_c_werror_flag" ||
26534 test ! -s conftest.err
26535 } && test -s conftest$ac_exeext &&
26536 $as_test_x conftest$ac_exeext; then
26537 ac_cv_func_socket=yes
26539 echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26542 ac_cv_func_socket=no
26545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26546 conftest$ac_exeext conftest.$ac_ext
26548 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26549 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26550 if test $ac_cv_func_socket = yes; then
26551 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26552 echo "${ECHO_T}using libc's socket" >&6; }
26555 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26556 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26557 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26560 ac_check_lib_save_LIBS=$LIBS
26561 LIBS="-lxnet $LIBS"
26562 cat >conftest.$ac_ext <<_ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h. */
26569 /* Override any GCC internal prototype to avoid an error.
26570 Use char because int might match the return type of a GCC
26571 builtin and then its argument prototype would still apply. */
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_link") 2>conftest.er1
26593 grep -v '^ *+' conftest.er1 >conftest.err
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } && {
26598 test -z "$ac_c_werror_flag" ||
26599 test ! -s conftest.err
26600 } && test -s conftest$ac_exeext &&
26601 $as_test_x conftest$ac_exeext; then
26602 ac_cv_lib_xnet_socket=yes
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26607 ac_cv_lib_xnet_socket=no
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26611 conftest$ac_exeext conftest.$ac_ext
26612 LIBS=$ac_check_lib_save_LIBS
26614 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26615 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26616 if test $ac_cv_lib_xnet_socket = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618 #define HAVE_LIBXNET 1
26621 LIBS="-lxnet $LIBS"
26626 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26627 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26628 if test "${ac_cv_lib_socket_socket+set}" = set; then
26629 echo $ECHO_N "(cached) $ECHO_C" >&6
26631 ac_check_lib_save_LIBS=$LIBS
26632 LIBS="-lsocket $LIBS"
26633 cat >conftest.$ac_ext <<_ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h. */
26640 /* Override any GCC internal prototype to avoid an error.
26641 Use char because int might match the return type of a GCC
26642 builtin and then its argument prototype would still apply. */
26655 rm -f conftest.$ac_objext conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662 (eval "$ac_link") 2>conftest.er1
26664 grep -v '^ *+' conftest.er1 >conftest.err
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } && {
26669 test -z "$ac_c_werror_flag" ||
26670 test ! -s conftest.err
26671 } && test -s conftest$ac_exeext &&
26672 $as_test_x conftest$ac_exeext; then
26673 ac_cv_lib_socket_socket=yes
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678 ac_cv_lib_socket_socket=no
26681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26682 conftest$ac_exeext conftest.$ac_ext
26683 LIBS=$ac_check_lib_save_LIBS
26685 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26686 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26687 if test $ac_cv_lib_socket_socket = yes; then
26688 cat >>confdefs.h <<_ACEOF
26689 #define HAVE_LIBSOCKET 1
26692 LIBS="-lsocket $LIBS"
26697 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26698 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26699 if test "${ac_cv_lib_inet_socket+set}" = set; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26702 ac_check_lib_save_LIBS=$LIBS
26703 LIBS="-linet $LIBS"
26704 cat >conftest.$ac_ext <<_ACEOF
26707 cat confdefs.h >>conftest.$ac_ext
26708 cat >>conftest.$ac_ext <<_ACEOF
26709 /* end confdefs.h. */
26711 /* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26726 rm -f conftest.$ac_objext conftest$ac_exeext
26727 if { (ac_try="$ac_link"
26728 case "(($ac_try" in
26729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730 *) ac_try_echo=$ac_try;;
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733 (eval "$ac_link") 2>conftest.er1
26735 grep -v '^ *+' conftest.er1 >conftest.err
26737 cat conftest.err >&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); } && {
26740 test -z "$ac_c_werror_flag" ||
26741 test ! -s conftest.err
26742 } && test -s conftest$ac_exeext &&
26743 $as_test_x conftest$ac_exeext; then
26744 ac_cv_lib_inet_socket=yes
26746 echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26749 ac_cv_lib_inet_socket=no
26752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26753 conftest$ac_exeext conftest.$ac_ext
26754 LIBS=$ac_check_lib_save_LIBS
26756 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26757 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26758 if test $ac_cv_lib_inet_socket = yes; then
26759 cat >>confdefs.h <<_ACEOF
26760 #define HAVE_LIBINET 1
26763 LIBS="-linet $LIBS"
26773 # Check whether --with-tcp-wrappers was given.
26774 if test "${with_tcp_wrappers+set}" = set; then
26775 withval=$with_tcp_wrappers;
26776 if test "x$withval" != "xno" ; then
26778 LIBS="$saved_LIBS -lwrap"
26779 { echo "$as_me:$LINENO: checking for libwrap" >&5
26780 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26781 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26782 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26783 if test "${ac_cv_search_nanosleep+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26786 ac_func_search_save_LIBS=$LIBS
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26794 /* Override any GCC internal prototype to avoid an error.
26795 Use char because int might match the return type of a GCC
26796 builtin and then its argument prototype would still apply. */
26804 return nanosleep ();
26809 for ac_lib in '' rt; do
26810 if test -z "$ac_lib"; then
26811 ac_res="none required"
26814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest$ac_exeext &&
26833 $as_test_x conftest$ac_exeext; then
26834 ac_cv_search_nanosleep=$ac_res
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26844 if test "${ac_cv_search_nanosleep+set}" = set; then
26848 if test "${ac_cv_search_nanosleep+set}" = set; then
26851 ac_cv_search_nanosleep=no
26853 rm conftest.$ac_ext
26854 LIBS=$ac_func_search_save_LIBS
26856 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26857 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26858 ac_res=$ac_cv_search_nanosleep
26859 if test "$ac_res" != no; then
26860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26864 cat >conftest.$ac_ext <<_ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26871 #include <sys/types.h>
26873 int deny_severity = 0;
26874 int allow_severity = 0;
26875 struct request_info *req;
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (ac_try="$ac_link"
26889 case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_link") 2>conftest.er1
26896 grep -v '^ *+' conftest.er1 >conftest.err
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } && {
26901 test -z "$ac_c_werror_flag" ||
26902 test ! -s conftest.err
26903 } && test -s conftest$ac_exeext &&
26904 $as_test_x conftest$ac_exeext; then
26906 { echo "$as_me:$LINENO: result: yes" >&5
26907 echo "${ECHO_T}yes" >&6; }
26909 cat >>confdefs.h <<\_ACEOF
26910 #define HAVE_LIBWRAP 1
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26922 LIBS="$saved_LIBS -lwrap -lnsl"
26923 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26924 cat >conftest.$ac_ext <<_ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26931 #include <sys/types.h>
26933 int deny_severity = 0;
26934 int allow_severity = 0;
26935 struct request_info *req;
26947 rm -f conftest.$ac_objext conftest$ac_exeext
26948 if { (ac_try="$ac_link"
26949 case "(($ac_try" in
26950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26954 (eval "$ac_link") 2>conftest.er1
26956 grep -v '^ *+' conftest.er1 >conftest.err
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } && {
26961 test -z "$ac_c_werror_flag" ||
26962 test ! -s conftest.err
26963 } && test -s conftest$ac_exeext &&
26964 $as_test_x conftest$ac_exeext; then
26966 { echo "$as_me:$LINENO: result: yes" >&5
26967 echo "${ECHO_T}yes" >&6; }
26969 cat >>confdefs.h <<\_ACEOF
26970 #define HAVE_LIBWRAP 1
26978 echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26982 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26983 echo "$as_me: error: *** libwrap missing" >&2;}
26984 { (exit 1); exit 1; }; }
26989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26990 conftest$ac_exeext conftest.$ac_ext
26995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26996 conftest$ac_exeext conftest.$ac_ext
27003 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27004 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27006 # Check whether --with-openssl was given.
27007 if test "${with_openssl+set}" = set; then
27008 withval=$with_openssl;
27009 with_openssl_directory=${withval}
27015 if test "x$with_openssl_directory" != "xno"; then
27016 OPENSSL_LIBS="-lssl -lcrypto"
27019 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27021 # Make sure the $with_openssl_directory also makes sense
27023 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27024 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27025 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27029 saved_LIBS="${LIBS}"
27030 saved_CFLAGS="${CFLAGS}"
27031 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27032 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27041 #include <openssl/ssl.h>
27047 CRYPTO_set_id_callback(NULL);
27053 rm -f conftest.$ac_objext conftest$ac_exeext
27054 if { (ac_try="$ac_link"
27055 case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_link") 2>conftest.er1
27062 grep -v '^ *+' conftest.er1 >conftest.err
27064 cat conftest.err >&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); } && {
27067 test -z "$ac_c_werror_flag" ||
27068 test ! -s conftest.err
27069 } && test -s conftest$ac_exeext &&
27070 $as_test_x conftest$ac_exeext; then
27073 support_crypto="yes"
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27086 conftest$ac_exeext conftest.$ac_ext
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27095 #include <openssl/evp.h>
27107 rm -f conftest.$ac_objext conftest$ac_exeext
27108 if { (ac_try="$ac_link"
27109 case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_link") 2>conftest.er1
27116 grep -v '^ *+' conftest.er1 >conftest.err
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } && {
27121 test -z "$ac_c_werror_flag" ||
27122 test ! -s conftest.err
27123 } && test -s conftest$ac_exeext &&
27124 $as_test_x conftest$ac_exeext; then
27126 ac_cv_openssl_sha2="yes"
27129 echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27133 ac_cv_openssl_sha2="no"
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139 conftest$ac_exeext conftest.$ac_ext
27141 cat >conftest.$ac_ext <<_ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h. */
27148 #include <openssl/evp.h>
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>conftest.er1
27169 grep -v '^ *+' conftest.er1 >conftest.err
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest$ac_exeext &&
27177 $as_test_x conftest$ac_exeext; then
27179 ac_cv_openssl_export="no"
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27186 ac_cv_openssl_export="yes"
27191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27192 conftest$ac_exeext conftest.$ac_ext
27194 LIBS="${saved_LIBS}"
27195 CFLAGS="${saved_CFLAGS}"
27197 if test "$support_tls" = "yes"; then
27199 cat >>confdefs.h <<\_ACEOF
27200 #define HAVE_OPENSSL 1
27204 cat >>confdefs.h <<\_ACEOF
27209 cat >>confdefs.h <<\_ACEOF
27210 #define HAVE_CRYPTO 1
27215 if test "$ac_cv_openssl_sha2" = "yes"; then
27217 cat >>confdefs.h <<\_ACEOF
27218 #define HAVE_SHA2 1
27223 if test "$ac_cv_openssl_export" = "yes"; then
27225 cat >>confdefs.h <<\_ACEOF
27226 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27232 support_crypto="no"
27237 { echo "$as_me:$LINENO: result: $support_tls" >&5
27238 echo "${ECHO_T}$support_tls" >&6; }
27242 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27243 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27244 if test "${ac_cv_search_dlopen+set}" = set; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27247 ac_func_search_save_LIBS=$LIBS
27248 cat >conftest.$ac_ext <<_ACEOF
27251 cat confdefs.h >>conftest.$ac_ext
27252 cat >>conftest.$ac_ext <<_ACEOF
27253 /* end confdefs.h. */
27255 /* Override any GCC internal prototype to avoid an error.
27256 Use char because int might match the return type of a GCC
27257 builtin and then its argument prototype would still apply. */
27270 for ac_lib in '' dl; do
27271 if test -z "$ac_lib"; then
27272 ac_res="none required"
27275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (ac_try="$ac_link"
27279 case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_link") 2>conftest.er1
27286 grep -v '^ *+' conftest.er1 >conftest.err
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } && {
27291 test -z "$ac_c_werror_flag" ||
27292 test ! -s conftest.err
27293 } && test -s conftest$ac_exeext &&
27294 $as_test_x conftest$ac_exeext; then
27295 ac_cv_search_dlopen=$ac_res
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27305 if test "${ac_cv_search_dlopen+set}" = set; then
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27312 ac_cv_search_dlopen=no
27314 rm conftest.$ac_ext
27315 LIBS=$ac_func_search_save_LIBS
27317 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27319 ac_res=$ac_cv_search_dlopen
27320 if test "$ac_res" != no; then
27321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27326 working_dir=`eval echo ${prefix}/var/bacula/working`
27328 # Check whether --with-working-dir was given.
27329 if test "${with_working_dir+set}" = set; then
27330 withval=$with_working_dir;
27331 if test "x$withval" != "xno" ; then
27332 working_dir=$withval
27343 # Check whether --with-archivedir was given.
27344 if test "${with_archivedir+set}" = set; then
27345 withval=$with_archivedir;
27346 if test "x$withval" != "xno" ; then
27347 archivedir=$withval
27356 basename=`hostname`
27358 # Check whether --with-basename was given.
27359 if test "${with_basename+set}" = set; then
27360 withval=$with_basename;
27361 if test "x$withval" != "xno" ; then
27372 scriptdir=`eval echo ${sysconfdir}`
27374 # Check whether --with-scriptdir was given.
27375 if test "${with_scriptdir+set}" = set; then
27376 withval=$with_scriptdir;
27377 if test "x$withval" != "xno" ; then
27390 # Check whether --with-bsrdir was given.
27391 if test "${with_bsrdir+set}" = set; then
27392 withval=$with_bsrdir;
27393 if test "x$withval" != "xno" ; then
27405 # Check whether --with-logdir was given.
27406 if test "${with_logdir+set}" = set; then
27407 withval=$with_logdir;
27408 if test "x$withval" != "xno" ; then
27419 # ------------------------------------------
27420 # Where to place plugindir (plugin files)
27421 # ------------------------------------------
27422 plugindir=`eval echo ${libdir}`
27424 # Check whether --with-plugindir was given.
27425 if test "${with_plugindir+set}" = set; then
27426 withval=$with_plugindir;
27427 if test "x$withval" != "xno" ; then
27437 dump_email=root@localhost
27439 # Check whether --with-dump-email was given.
27440 if test "${with_dump_email+set}" = set; then
27441 withval=$with_dump_email;
27442 if test "x$withval" != "xno" ; then
27443 dump_email=$withval
27452 job_email=root@localhost
27454 # Check whether --with-job-email was given.
27455 if test "${with_job_email+set}" = set; then
27456 withval=$with_job_email;
27457 if test "x$withval" != "xno" ; then
27467 smtp_host=localhost
27469 # Check whether --with-smtp_host was given.
27470 if test "${with_smtp_host+set}" = set; then
27471 withval=$with_smtp_host;
27472 if test "x$withval" != "xno" ; then
27484 # Check whether --with-pid-dir was given.
27485 if test "${with_pid_dir+set}" = set; then
27486 withval=$with_pid_dir;
27487 if test "x$withval" != "xno" ; then
27495 cat >>confdefs.h <<_ACEOF
27496 #define _PATH_BACULA_PIDDIR "$piddir"
27501 subsysdir=/var/run/subsys
27502 if test -d /var/run/subsys; then
27503 subsysdir=/var/run/subsys
27504 elif test -d /var/lock/subsys; then
27505 subsysdir=/var/lock/subsys
27507 subsysdir=/var/run/subsys
27510 # Check whether --with-subsys-dir was given.
27511 if test "${with_subsys_dir+set}" = set; then
27512 withval=$with_subsys_dir;
27513 if test "x$withval" != "xno" ; then
27525 # Check whether --with-baseport was given.
27526 if test "${with_baseport+set}" = set; then
27527 withval=$with_baseport;
27528 if test "x$withval" != "xno" ; then
27537 dir_port=`expr $baseport`
27538 fd_port=`expr $baseport + 1`
27539 sd_port=`expr $fd_port + 1`
27547 # Check whether --with-dir-password was given.
27548 if test "${with_dir_password+set}" = set; then
27549 withval=$with_dir_password;
27550 if test "x$withval" != "xno" ; then
27551 dir_password=$withval
27558 if test "x$dir_password" = "x" ; then
27559 if test "x$OPENSSL" = "xnone" ; then
27560 key=`autoconf/randpass 33`
27562 key=`openssl rand -base64 33`
27569 # Check whether --with-fd-password was given.
27570 if test "${with_fd_password+set}" = set; then
27571 withval=$with_fd_password;
27572 if test "x$withval" != "xno" ; then
27573 fd_password=$withval
27580 if test "x$fd_password" = "x" ; then
27581 if test "x$OPENSSL" = "xnone" ; then
27582 key=`autoconf/randpass 37`
27584 key=`openssl rand -base64 33`
27591 # Check whether --with-sd-password was given.
27592 if test "${with_sd_password+set}" = set; then
27593 withval=$with_sd_password;
27594 if test "x$withval" != "xno" ; then
27595 sd_password=$withval
27602 if test "x$sd_password" = "x" ; then
27603 if test "x$OPENSSL" = "xnone" ; then
27604 key=`autoconf/randpass 41`
27606 key=`openssl rand -base64 33`
27613 # Check whether --with-mon-dir-password was given.
27614 if test "${with_mon_dir_password+set}" = set; then
27615 withval=$with_mon_dir_password;
27616 if test "x$withval" != "xno" ; then
27617 mon_dir_password=$withval
27624 if test "x$mon_dir_password" = "x" ; then
27625 if test "x$OPENSSL" = "xnone" ; then
27626 key=`autoconf/randpass 33`
27628 key=`openssl rand -base64 33`
27630 mon_dir_password=$key
27635 # Check whether --with-mon-fd-password was given.
27636 if test "${with_mon_fd_password+set}" = set; then
27637 withval=$with_mon_fd_password;
27638 if test "x$withval" != "xno" ; then
27639 mon_fd_password=$withval
27646 if test "x$mon_fd_password" = "x" ; then
27647 if test "x$OPENSSL" = "xnone" ; then
27648 key=`autoconf/randpass 37`
27650 key=`openssl rand -base64 33`
27652 mon_fd_password=$key
27657 # Check whether --with-mon-sd-password was given.
27658 if test "${with_mon_sd_password+set}" = set; then
27659 withval=$with_mon_sd_password;
27660 if test "x$withval" != "xno" ; then
27661 mon_sd_password=$withval
27668 if test "x$mon_sd_password" = "x" ; then
27669 if test "x$OPENSSL" = "xnone" ; then
27670 key=`autoconf/randpass 41`
27672 key=`openssl rand -base64 33`
27674 mon_sd_password=$key
27686 # Check whether --with-db_name was given.
27687 if test "${with_db_name+set}" = set; then
27688 withval=$with_db_name;
27689 if test "x$withval" != "x" ; then
27700 # Check whether --with-db_user was given.
27701 if test "${with_db_user+set}" = set; then
27702 withval=$with_db_user;
27703 if test "x$withval" != "x" ; then
27714 # Check whether --with-db_password was given.
27715 if test "${with_db_password+set}" = set; then
27716 withval=$with_db_password;
27717 if test "x$withval" != "x" ; then
27718 db_password=$withval
27728 # Check whether --with-db_port was given.
27729 if test "${with_db_port+set}" = set; then
27730 withval=$with_db_port;
27731 if test "x$withval" != "x" ; then
27741 # Handle users and groups for each daemon
27745 # Check whether --with-dir_user was given.
27746 if test "${with_dir_user+set}" = set; then
27747 withval=$with_dir_user;
27748 if test "x$withval" != "x" ; then
27758 # Check whether --with-dir_group was given.
27759 if test "${with_dir_group+set}" = set; then
27760 withval=$with_dir_group;
27761 if test "x$withval" != "x" ; then
27771 # Check whether --with-sd_user was given.
27772 if test "${with_sd_user+set}" = set; then
27773 withval=$with_sd_user;
27774 if test "x$withval" != "x" ; then
27784 # Check whether --with-sd_group was given.
27785 if test "${with_sd_group+set}" = set; then
27786 withval=$with_sd_group;
27787 if test "x$withval" != "x" ; then
27797 # Check whether --with-fd_user was given.
27798 if test "${with_fd_user+set}" = set; then
27799 withval=$with_fd_user;
27800 if test "x$withval" != "x" ; then
27810 # Check whether --with-fd_group was given.
27811 if test "${with_fd_group+set}" = set; then
27812 withval=$with_fd_group;
27813 if test "x$withval" != "x" ; then
27830 # Check whether --with-sbin-perm was given.
27831 if test "${with_sbin_perm+set}" = set; then
27832 withval=$with_sbin_perm;
27833 if test "x$withval" != "x" ; then
27846 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27847 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27849 # Check whether --with-postgresql was given.
27850 if test "${with_postgresql+set}" = set; then
27851 withval=$with_postgresql;
27852 if test "$withval" != "no"; then
27853 if test "$db_found" = "yes"; then
27854 { echo "$as_me:$LINENO: result: error" >&5
27855 echo "${ECHO_T}error" >&6; }
27856 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27857 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27858 { (exit 1); exit 1; }; };
27860 if test "$withval" = "yes"; then
27861 PG_CONFIG=`which pg_config`
27862 if test -n "$PG_CONFIG";then
27863 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27864 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27865 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27866 elif test -f /usr/local/include/libpq-fe.h; then
27867 POSTGRESQL_INCDIR=/usr/local/include
27868 if test -d /usr/local/lib64; then
27869 POSTGRESQL_LIBDIR=/usr/local/lib64
27871 POSTGRESQL_LIBDIR=/usr/local/lib
27873 POSTGRESQL_BINDIR=/usr/local/bin
27874 elif test -f /usr/include/libpq-fe.h; then
27875 POSTGRESQL_INCDIR=/usr/include
27876 if test -d /usr/lib64; then
27877 POSTGRESQL_LIBDIR=/usr/lib64
27879 POSTGRESQL_LIBDIR=/usr/lib
27881 POSTGRESQL_BINDIR=/usr/bin
27882 elif test -f /usr/include/pgsql/libpq-fe.h; then
27883 POSTGRESQL_INCDIR=/usr/include/pgsql
27884 if test -d /usr/lib64/pgsql; then
27885 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27887 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27889 POSTGRESQL_BINDIR=/usr/bin
27890 elif test -f /usr/include/postgresql/libpq-fe.h; then
27891 POSTGRESQL_INCDIR=/usr/include/postgresql
27892 if test -d /usr/lib64/postgresql; then
27893 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27895 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27897 POSTGRESQL_BINDIR=/usr/bin
27899 { echo "$as_me:$LINENO: result: no" >&5
27900 echo "${ECHO_T}no" >&6; }
27901 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27902 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27903 { (exit 1); exit 1; }; }
27905 elif test -f $withval/include/libpq-fe.h; then
27906 POSTGRESQL_INCDIR=$withval/include
27907 POSTGRESQL_LIBDIR=$withval/lib
27908 POSTGRESQL_BINDIR=$withval/bin
27909 elif test -f $withval/include/postgresql/libpq-fe.h; then
27910 POSTGRESQL_INCDIR=$withval/include/postgresql
27911 if test -d $withval/lib64; then
27912 POSTGRESQL_LIBDIR=$withval/lib64
27914 POSTGRESQL_LIBDIR=$withval/lib
27916 POSTGRESQL_BINDIR=$withval/bin
27918 { echo "$as_me:$LINENO: result: no" >&5
27919 echo "${ECHO_T}no" >&6; }
27920 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27921 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27922 { (exit 1); exit 1; }; }
27924 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27925 { echo "$as_me:$LINENO: checking for crypt" >&5
27926 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27927 if test "${ac_cv_func_crypt+set}" = set; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27938 #define crypt innocuous_crypt
27940 /* System header to define __stub macros and hopefully few prototypes,
27941 which can conflict with char crypt (); below.
27942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27943 <limits.h> exists even on freestanding compilers. */
27946 # include <limits.h>
27948 # include <assert.h>
27953 /* Override any GCC internal prototype to avoid an error.
27954 Use char because int might match the return type of a GCC
27955 builtin and then its argument prototype would still apply. */
27960 /* The GNU C library defines this for functions which it implements
27961 to always fail with ENOSYS. Some functions are actually named
27962 something starting with __ and the normal name is an alias. */
27963 #if defined __stub_crypt || defined __stub___crypt
27975 rm -f conftest.$ac_objext conftest$ac_exeext
27976 if { (ac_try="$ac_link"
27977 case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_link") 2>conftest.er1
27984 grep -v '^ *+' conftest.er1 >conftest.err
27986 cat conftest.err >&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } && {
27989 test -z "$ac_c_werror_flag" ||
27990 test ! -s conftest.err
27991 } && test -s conftest$ac_exeext &&
27992 $as_test_x conftest$ac_exeext; then
27993 ac_cv_func_crypt=yes
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 ac_cv_func_crypt=no
28001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28002 conftest$ac_exeext conftest.$ac_ext
28004 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28005 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28006 if test $ac_cv_func_crypt = yes; then
28009 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28010 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28011 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28014 ac_check_lib_save_LIBS=$LIBS
28015 LIBS="-lcrypt $LIBS"
28016 cat >conftest.$ac_ext <<_ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h. */
28023 /* Override any GCC internal prototype to avoid an error.
28024 Use char because int might match the return type of a GCC
28025 builtin and then its argument prototype would still apply. */
28038 rm -f conftest.$ac_objext conftest$ac_exeext
28039 if { (ac_try="$ac_link"
28040 case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_link") 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } && {
28052 test -z "$ac_c_werror_flag" ||
28053 test ! -s conftest.err
28054 } && test -s conftest$ac_exeext &&
28055 $as_test_x conftest$ac_exeext; then
28056 ac_cv_lib_crypt_crypt=yes
28058 echo "$as_me: failed program was:" >&5
28059 sed 's/^/| /' conftest.$ac_ext >&5
28061 ac_cv_lib_crypt_crypt=no
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065 conftest$ac_exeext conftest.$ac_ext
28066 LIBS=$ac_check_lib_save_LIBS
28068 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28069 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28070 if test $ac_cv_lib_crypt_crypt = yes; then
28071 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28076 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28077 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28078 SQL_BINDIR=$POSTGRESQL_BINDIR
28079 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28081 cat >>confdefs.h <<\_ACEOF
28082 #define HAVE_POSTGRESQL 1
28085 { echo "$as_me:$LINENO: result: yes" >&5
28086 echo "${ECHO_T}yes" >&6; }
28088 support_postgresql=yes
28092 { echo "$as_me:$LINENO: result: no" >&5
28093 echo "${ECHO_T}no" >&6; }
28098 { echo "$as_me:$LINENO: result: no" >&5
28099 echo "${ECHO_T}no" >&6; }
28111 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28112 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28114 # Check whether --with-mysql was given.
28115 if test "${with_mysql+set}" = set; then
28116 withval=$with_mysql;
28117 if test "$withval" != "no"; then
28118 if test "$withval" = "yes"; then
28119 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28120 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28121 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28122 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28123 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28125 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28127 MYSQL_BINDIR=/usr/local/mysql/bin
28128 elif test -f /usr/include/mysql/mysql.h; then
28129 MYSQL_INCDIR=/usr/include/mysql
28130 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28131 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28132 MYSQL_LIBDIR=/usr/lib64/mysql
28133 elif test -f /usr/lib64/libmysqlclient_r.a \
28134 -o -f /usr/lib64/libmysqlclient_r.so; then
28135 MYSQL_LIBDIR=/usr/lib64
28136 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28137 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28138 MYSQL_LIBDIR=/usr/lib/mysql
28140 MYSQL_LIBDIR=/usr/lib
28142 MYSQL_BINDIR=/usr/bin
28143 elif test -f /usr/include/mysql.h; then
28144 MYSQL_INCDIR=/usr/include
28145 if test -f /usr/lib64/libmysqlclient_r.a \
28146 -o -f /usr/lib64/libmysqlclient_r.so; then
28147 MYSQL_LIBDIR=/usr/lib64
28149 MYSQL_LIBDIR=/usr/lib
28151 MYSQL_BINDIR=/usr/bin
28152 elif test -f /usr/local/include/mysql/mysql.h; then
28153 MYSQL_INCDIR=/usr/local/include/mysql
28154 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28155 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28156 MYSQL_LIBDIR=/usr/local/lib64/mysql
28158 MYSQL_LIBDIR=/usr/local/lib/mysql
28160 MYSQL_BINDIR=/usr/local/bin
28161 elif test -f /usr/local/include/mysql.h; then
28162 MYSQL_INCDIR=/usr/local/include
28163 if test -f /usr/local/lib64/libmysqlclient_r.a \
28164 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28165 MYSQL_LIBDIR=/usr/local/lib64
28167 MYSQL_LIBDIR=/usr/local/lib
28169 MYSQL_BINDIR=/usr/local/bin
28171 { echo "$as_me:$LINENO: result: no" >&5
28172 echo "${ECHO_T}no" >&6; }
28173 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28174 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28175 { (exit 1); exit 1; }; }
28178 if test -f $withval/include/mysql/mysql.h; then
28179 MYSQL_INCDIR=$withval/include/mysql
28180 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28181 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28182 MYSQL_LIBDIR=$withval/lib64/mysql
28183 elif test -f $withval/lib64/libmysqlclient_r.a \
28184 -o -f $withval/lib64/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=$withval/lib64
28186 elif test -f $withval/lib/libmysqlclient_r.a \
28187 -o -f $withval/lib/libmysqlclient_r.so; then
28188 MYSQL_LIBDIR=$withval/lib
28190 MYSQL_LIBDIR=$withval/lib/mysql
28192 MYSQL_BINDIR=$withval/bin
28193 elif test -f $withval/include/mysql.h; then
28194 MYSQL_INCDIR=$withval/include
28195 if test -f $withval/lib64/libmysqlclient_r.a \
28196 -o -f $withval/lib64/libmysqlclient_r.so; then
28197 MYSQL_LIBDIR=$withval/lib64
28199 MYSQL_LIBDIR=$withval/lib
28201 MYSQL_BINDIR=$withval/bin
28203 { echo "$as_me:$LINENO: result: no" >&5
28204 echo "${ECHO_T}no" >&6; }
28205 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28206 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28207 { (exit 1); exit 1; }; }
28210 SQL_INCLUDE=-I$MYSQL_INCDIR
28211 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28212 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28213 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28214 cat >>confdefs.h <<\_ACEOF
28215 #define HAVE_THREAD_SAFE_MYSQL 1
28219 SQL_BINDIR=$MYSQL_BINDIR
28220 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28222 cat >>confdefs.h <<\_ACEOF
28223 #define HAVE_MYSQL 1
28226 { echo "$as_me:$LINENO: result: yes" >&5
28227 echo "${ECHO_T}yes" >&6; }
28234 { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28243 # Check whether --with-embedded-mysql was given.
28244 if test "${with_embedded_mysql+set}" = set; then
28245 withval=$with_embedded_mysql;
28246 if test "$withval" != "no"; then
28247 if test "$withval" = "yes"; then
28248 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28249 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28250 if test -d /usr/local/mysql/lib64/mysql; then
28251 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28253 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28255 MYSQL_BINDIR=/usr/local/mysql/bin
28256 elif test -f /usr/include/mysql/mysql.h; then
28257 MYSQL_INCDIR=/usr/include/mysql
28258 if test -d /usr/lib64/mysql; then
28259 MYSQL_LIBDIR=/usr/lib64/mysql
28261 MYSQL_LIBDIR=/usr/lib/mysql
28263 MYSQL_BINDIR=/usr/bin
28264 elif test -f /usr/include/mysql.h; then
28265 MYSQL_INCDIR=/usr/include
28266 if test -d /usr/lib64; then
28267 MYSQL_LIBDIR=/usr/lib64
28269 MYSQL_LIBDIR=/usr/lib
28271 MYSQL_BINDIR=/usr/bin
28272 elif test -f /usr/local/include/mysql/mysql.h; then
28273 MYSQL_INCDIR=/usr/local/include/mysql
28274 if test -d /usr/local/lib64/mysql; then
28275 MYSQL_LIBDIR=/usr/local/lib64/mysql
28277 MYSQL_LIBDIR=/usr/local/lib/mysql
28279 MYSQL_BINDIR=/usr/local/bin
28280 elif test -f /usr/local/include/mysql.h; then
28281 MYSQL_INCDIR=/usr/local/include
28282 if test -d /usr/local/lib64; then
28283 MYSQL_LIBDIR=/usr/local/lib64
28285 MYSQL_LIBDIR=/usr/local/lib
28287 MYSQL_BINDIR=/usr/local/bin
28289 { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28291 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28292 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28293 { (exit 1); exit 1; }; }
28296 if test -f $withval/include/mysql/mysql.h; then
28297 MYSQL_INCDIR=$withval/include/mysql
28298 if test -d $withval/lib64/mysql; then
28299 MYSQL_LIBDIR=$withval/lib64/mysql
28301 MYSQL_LIBDIR=$withval/lib/mysql
28303 MYSQL_BINDIR=$withval/bin
28304 elif test -f $withval/include/mysql.h; then
28305 MYSQL_INCDIR=$withval/include
28306 if test -d $withval/lib64; then
28307 MYSQL_LIBDIR=$withval/lib64
28309 MYSQL_LIBDIR=$withval/lib
28311 MYSQL_BINDIR=$withval/bin
28313 { echo "$as_me:$LINENO: result: no" >&5
28314 echo "${ECHO_T}no" >&6; }
28315 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28316 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28317 { (exit 1); exit 1; }; }
28320 SQL_INCLUDE=-I$MYSQL_INCDIR
28321 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28322 SQL_BINDIR=$MYSQL_BINDIR
28323 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28325 cat >>confdefs.h <<\_ACEOF
28326 #define HAVE_MYSQL 1
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_EMBEDDED_MYSQL 1
28333 { echo "$as_me:$LINENO: result: yes" >&5
28334 echo "${ECHO_T}yes" >&6; }
28341 { echo "$as_me:$LINENO: result: no" >&5
28342 echo "${ECHO_T}no" >&6; }
28358 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28359 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28361 # Check whether --with-sqlite3 was given.
28362 if test "${with_sqlite3+set}" = set; then
28363 withval=$with_sqlite3;
28364 if test "$withval" != "no"; then
28365 if test "$withval" = "yes"; then
28366 if test -f /usr/local/include/sqlite3.h; then
28367 SQLITE_INCDIR=/usr/local/include
28368 if test -d /usr/local/lib64; then
28369 SQLITE_LIBDIR=/usr/local/lib64
28371 SQLITE_LIBDIR=/usr/local/lib
28373 SQLITE_BINDIR=/usr/local/bin
28374 elif test -f /usr/include/sqlite3.h; then
28375 SQLITE_INCDIR=/usr/include
28376 if test -d /usr/lib64; then
28377 SQLITE_LIBDIR=/usr/lib64
28379 SQLITE_LIBDIR=/usr/lib
28381 SQLITE_BINDIR=/usr/bin
28382 elif test -f $prefix/include/sqlite3.h; then
28383 SQLITE_INCDIR=$prefix/include
28384 if test -d $prefix/lib64; then
28385 SQLITE_LIBDIR=$prefix/lib64
28387 SQLITE_LIBDIR=$prefix/lib
28389 SQLITE_BINDIR=$prefix/bin
28391 { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28394 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28395 { (exit 1); exit 1; }; }
28398 if test -f $withval/sqlite3.h; then
28399 SQLITE_INCDIR=$withval
28400 SQLITE_LIBDIR=$withval
28401 SQLITE_BINDIR=$withval
28402 elif test -f $withval/include/sqlite3.h; then
28403 SQLITE_INCDIR=$withval/include
28404 if test -d $withval/lib64; then
28405 SQLITE_LIBDIR=$withval/lib64
28407 SQLITE_LIBDIR=$withval/lib
28409 SQLITE_BINDIR=$withval/bin
28411 { echo "$as_me:$LINENO: result: no" >&5
28412 echo "${ECHO_T}no" >&6; }
28413 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28414 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28415 { (exit 1); exit 1; }; }
28418 SQL_INCLUDE=-I$SQLITE_INCDIR
28419 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28420 SQL_BINDIR=$SQLITE_BINDIR
28421 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28423 cat >>confdefs.h <<\_ACEOF
28424 #define HAVE_SQLITE3 1
28427 { echo "$as_me:$LINENO: result: yes" >&5
28428 echo "${ECHO_T}yes" >&6; }
28430 support_sqlite3=yes
28435 { echo "$as_me:$LINENO: result: no" >&5
28436 echo "${ECHO_T}no" >&6; }
28441 { echo "$as_me:$LINENO: result: no" >&5
28442 echo "${ECHO_T}no" >&6; }
28454 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28455 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28457 # Check whether --with-sqlite was given.
28458 if test "${with_sqlite+set}" = set; then
28459 withval=$with_sqlite;
28460 if test "$withval" != "no"; then
28461 if test "$withval" = "yes"; then
28462 if test -f /usr/local/include/sqlite.h; then
28463 SQLITE_INCDIR=/usr/local/include
28464 if test -d /usr/local/lib64; then
28465 SQLITE_LIBDIR=/usr/local/lib64
28467 SQLITE_LIBDIR=/usr/local/lib
28469 SQLITE_BINDIR=/usr/local/bin
28470 elif test -f /usr/include/sqlite.h; then
28471 SQLITE_INCDIR=/usr/include
28472 if test -d /usr/lib64; then
28473 SQLITE_LIBDIR=/usr/lib64
28475 SQLITE_LIBDIR=/usr/lib
28477 SQLITE_BINDIR=/usr/bin
28478 elif test -f $prefix/include/sqlite.h; then
28479 SQLITE_INCDIR=$prefix/include
28480 if test -d $prefix/lib64; then
28481 SQLITE_LIBDIR=$prefix/lib64
28483 SQLITE_LIBDIR=$prefix/lib
28485 SQLITE_BINDIR=$prefix/bin
28487 { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28489 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28490 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28491 { (exit 1); exit 1; }; }
28494 if test -f $withval/sqlite.h; then
28495 SQLITE_INCDIR=$withval
28496 SQLITE_LIBDIR=$withval
28497 SQLITE_BINDIR=$withval
28498 elif test -f $withval/include/sqlite.h; then
28499 SQLITE_INCDIR=$withval/include
28500 if test -d $withval/lib64; then
28501 SQLITE_LIBDIR=$withval/lib64
28503 SQLITE_LIBDIR=$withval/lib
28505 SQLITE_BINDIR=$withval/bin
28507 { echo "$as_me:$LINENO: result: no" >&5
28508 echo "${ECHO_T}no" >&6; }
28509 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28510 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28511 { (exit 1); exit 1; }; }
28514 SQL_INCLUDE=-I$SQLITE_INCDIR
28515 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28516 SQL_BINDIR=$SQLITE_BINDIR
28517 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_SQLITE 1
28523 { echo "$as_me:$LINENO: result: yes" >&5
28524 echo "${ECHO_T}yes" >&6; }
28531 { echo "$as_me:$LINENO: result: no" >&5
28532 echo "${ECHO_T}no" >&6; }
28537 { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28550 { echo "$as_me:$LINENO: checking for DBI support" >&5
28551 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28553 # Check whether --with-dbi was given.
28554 if test "${with_dbi+set}" = set; then
28556 if test "$withval" != "no"; then
28557 if test "$withval" = "yes"; then
28558 if test -f /usr/local/include/dbi/dbi.h; then
28559 DBI_INCDIR=/usr/local/dbi/include
28560 if test -d /usr/local/lib64; then
28561 DBI_LIBDIR=/usr/local/lib64
28563 DBI_LIBDIR=/usr/local/lib
28565 DBI_BINDIR=/usr/local/bin
28566 elif test -f /usr/include/dbi/dbi.h; then
28567 DBI_INCDIR=/usr/include
28568 if test -d /usr/lib64; then
28569 DBI_LIBDIR=/usr/lib64
28571 DBI_LIBDIR=/usr/lib
28573 DBI_BINDIR=/usr/bin
28574 elif test -f $prefix/include/dbi/dbi.h; then
28575 DBI_INCDIR=$prefix/include
28576 if test -d $prefix/lib64; then
28577 DBI_LIBDIR=$prefix/lib64
28579 DBI_LIBDIR=$prefix/lib
28581 DBI_BINDIR=$prefix/bin
28583 { echo "$as_me:$LINENO: result: no" >&5
28584 echo "${ECHO_T}no" >&6; }
28585 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28586 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28587 { (exit 1); exit 1; }; }
28589 if test -d /usr/local/lib/dbd; then
28590 DRIVERDIR=/usr/local/lib/dbd
28591 if test -d /usr/local/lib64/dbd; then
28592 DRIVERDIR=/usr/local/lib64/dbd
28594 DRIVERDIR=/usr/local/lib/dbd
28596 elif test -d /usr/lib/dbd; then
28597 DRIVERDIR=/usr/lib/dbd
28598 if test -d /usr/lib64/dbd; then
28599 DRIVERDIR=/usr/lib64/dbd
28601 DRIVERDIR=/usr/lib/dbd
28603 elif test -d $prefix/lib/dbd; then
28604 if test -d $prefix/lib64/dbd; then
28605 DRIVERDIR=$prefix/lib64/dbd
28607 DRIVERDIR=$prefix/lib/dbd
28610 { echo "$as_me:$LINENO: result: no" >&5
28611 echo "${ECHO_T}no" >&6; }
28612 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28613 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28614 { (exit 1); exit 1; }; }
28617 if test -f $withval/dbi.h; then
28618 DBI_INCDIR=$withval
28619 DBI_LIBDIR=$withval
28620 DBI_BINDIR=$withval
28621 elif test -f $withval/include/dbi/dbi.h; then
28622 DBI_INCDIR=$withval/include
28623 if test -d $withval/lib64; then
28624 DBI_LIBDIR=$withval/lib64
28626 DBI_LIBDIR=$withval/lib
28628 DBI_BINDIR=$withval/bin
28630 { echo "$as_me:$LINENO: result: no" >&5
28631 echo "${ECHO_T}no" >&6; }
28632 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28633 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28634 { (exit 1); exit 1; }; }
28636 if test -d $withval/dbd; then
28637 DRIVERDIR=$withval/dbd
28638 elif test -d $withval/lib/; then
28639 if test -d $withval/lib64/dbd; then
28640 DRIVERDIR=$withval/lib64/dbd
28642 DRIVERDIR=$withval/lib/dbd
28645 { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28647 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28648 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28649 { (exit 1); exit 1; }; }
28652 SQL_INCLUDE=-I$DBI_INCDIR
28653 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28654 SQL_BINDIR=$DBI_BINDIR
28655 SQL_LIB=$DBI_LIBDIR/libdbi.a
28656 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28659 cat >>confdefs.h <<\_ACEOF
28663 { echo "$as_me:$LINENO: result: yes" >&5
28664 echo "${ECHO_T}yes" >&6; }
28672 { echo "$as_me:$LINENO: result: no" >&5
28673 echo "${ECHO_T}no" >&6; }
28678 { echo "$as_me:$LINENO: result: no" >&5
28679 echo "${ECHO_T}no" >&6; }
28694 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28695 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28697 # Check whether --with-dbi-driver was given.
28698 if test "${with_dbi_driver+set}" = set; then
28699 withval=$with_dbi_driver;
28700 if test "$withval" != "no"; then
28704 if test -f /usr/local/mysql/bin/mysql; then
28705 SQL_BINDIR=/usr/local/mysql/bin
28706 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28707 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28708 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28710 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28712 elif test -f /usr/bin/mysql; then
28713 SQL_BINDIR=/usr/bin
28714 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28715 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28716 SQL_LIBDIR=/usr/lib64/mysql
28717 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28718 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28719 SQL_LIBDIR=/usr/lib/mysql
28721 SQL_LIBDIR=/usr/lib
28723 elif test -f /usr/local/bin/mysql; then
28724 SQL_BINDIR=/usr/local/bin
28725 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28726 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28727 SQL_LIBDIR=/usr/local/lib64/mysql
28728 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28729 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28730 SQL_LIBDIR=/usr/local/lib/mysql
28732 SQL_LIBDIR=/usr/local/lib
28734 elif test -f $withval/bin/mysql; then
28735 SQL_BINDIR=$withval/bin
28736 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28737 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28738 SQL_LIBDIR=$withval/lib64/mysql
28739 elif test -f $withval/lib64/libmysqlclient_r.a \
28740 -o -f $withval/lib64/libmysqlclient_r.so; then
28741 SQL_LIBDIR=$withval/lib64
28742 elif test -f $withval/lib/libmysqlclient_r.a \
28743 -o -f $withval/lib/libmysqlclient_r.so; then
28744 SQL_LIBDIR=$withval/lib/
28746 SQL_LIBDIR=$withval/lib/mysql
28749 { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28752 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28753 { (exit 1); exit 1; }; }
28755 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28756 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28758 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28762 db_prog="postgresql"
28763 PG_CONFIG=`which pg_config`
28764 if test -n "$PG_CONFIG"; then
28765 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28766 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28767 elif test -f /usr/local/bin/psql; then
28768 SQL_BINDIR=/usr/local/bin
28769 if test -d /usr/local/lib64; then
28770 SQL_LIBDIR=/usr/local/lib64
28772 SQL_LIBDIR=/usr/local/lib
28774 elif test -f /usr/bin/psql; then
28775 SQL_BINDIR=/usr/local/bin
28776 if test -d /usr/lib64/postgresql; then
28777 SQL_LIBDIR=/usr/lib64/postgresql
28778 elif test -d /usr/lib/postgresql; then
28779 SQL_LIBDIR=/usr/lib/postgresql
28780 elif test -d /usr/lib64; then
28781 SQL_LIBDIR=/usr/lib64
28783 SQL_LIBDIR=/usr/lib
28785 elif test -f $withval/bin/psql; then
28786 SQL_BINDIR=$withval/bin
28787 if test -d $withval/lib64; then
28788 SQL_LIBDIR=$withval/lib64
28790 SQL_LIBDIR=$withval/lib
28793 { echo "$as_me:$LINENO: result: no" >&5
28794 echo "${ECHO_T}no" >&6; }
28795 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28796 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28797 { (exit 1); exit 1; }; }
28799 if test -f $SQL_LIBDIR/libpq.so; then
28800 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28802 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28807 if test -f /usr/local/bin/sqlite; then
28808 SQL_BINDIR=/usr/local/bin
28809 if test -d /usr/local/lib64; then
28810 SQL_LIBDIR=/usr/local/lib64
28812 SQL_LIBDIR=/usr/local/lib
28814 elif test -f /usr/bin/sqlite; then
28815 SQL_BINDIR=/usr/bin
28816 if test -d /usr/lib64; then
28817 SQL_LIBDIR=/usr/lib64
28819 SQL_LIBDIR=/usr/lib
28821 elif test -f $withval/bin/sqlite; then
28822 SQL_BINDIR=$withval/bin
28823 if test -d $withval/lib64; then
28824 SQL_LIBDIR=$withval/lib64
28826 SQL_LIBDIR=$withval/lib
28829 { echo "$as_me:$LINENO: result: no" >&5
28830 echo "${ECHO_T}no" >&6; }
28831 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28832 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28833 { (exit 1); exit 1; }; }
28835 if test -f $SQL_LIBDIR/libsqlite.so; then
28836 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28838 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28843 if test -f /usr/local/bin/sqlite3; then
28844 SQL_BINDIR=/usr/local/bin
28845 if test -d /usr/local/lib64; then
28846 SQL_LIBDIR=/usr/local/lib64
28848 SQL_LIBDIR=/usr/local/lib
28850 elif test -f /usr/bin/sqlite3; then
28851 SQL_BINDIR=/usr/bin
28852 if test -d /usr/lib64; then
28853 SQL_LIBDIR=/usr/lib64
28855 SQL_LIBDIR=/usr/lib
28857 elif test -f $withval/bin/sqlite3; then
28858 SQL_BINDIR=$withval/bin
28859 if test -d $withval/lib64; then
28860 SQL_LIBDIR=$withval/lib64
28862 SQL_LIBDIR=$withval/lib
28865 { echo "$as_me:$LINENO: result: no" >&5
28866 echo "${ECHO_T}no" >&6; }
28867 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28868 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28869 { (exit 1); exit 1; }; }
28871 if test -f $SQL_LIBDIR/libsqlite3.so; then
28872 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28874 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28878 { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28880 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28881 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28882 { (exit 1); exit 1; }; }
28886 { echo "$as_me:$LINENO: result: yes" >&5
28887 echo "${ECHO_T}yes" >&6; }
28890 { echo "$as_me:$LINENO: result: no" >&5
28891 echo "${ECHO_T}no" >&6; }
28896 { echo "$as_me:$LINENO: result: no" >&5
28897 echo "${ECHO_T}no" >&6; }
28910 support_batch_insert=no
28911 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28913 if test $pkg = 0; then
28914 support_batch_insert=yes
28915 # Check whether --enable-batch-insert was given.
28916 if test "${enable_batch_insert+set}" = set; then
28917 enableval=$enable_batch_insert;
28918 if test x$enableval = xno; then
28919 support_batch_insert=no
28921 support_batch_insert=yes
28929 if test x$DB_TYPE = xpostgresql; then
28930 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28932 if test $pkg != 0; then
28933 support_batch_insert=no
28937 if test x$DB_TYPE = xdbi; then
28941 if test $DB_PROG = postgresql; then
28942 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28946 if test $DB_PROG = mysql; then
28947 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28951 if test $DB_PROG = sqlite3; then
28952 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28956 if test $pkg = 0; then
28957 # Check whether --enable-batch-insert was given.
28958 if test "${enable_batch_insert+set}" = set; then
28959 enableval=$enable_batch_insert;
28960 if test x$enableval = xno; then
28961 support_batch_insert=no
28963 support_batch_insert=yes
28976 if test $support_batch_insert = yes ; then
28978 cat >>confdefs.h <<\_ACEOF
28979 #define HAVE_BATCH_FILE_INSERT 1
28984 cat >>confdefs.h <<\_ACEOF
28985 #define PROTOTYPES 1
28989 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28990 if test -z "$CCOPTS"; then
28991 CCOPTS='-g -O2 -Wall'
28998 largefile_support="no"
29000 # Check whether --enable-largefile was given.
29001 if test "${enable_largefile+set}" = set; then
29002 enableval=$enable_largefile;
29005 if test "$enable_largefile" != no; then
29006 if test -n "$ac_tool_prefix"; then
29007 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29008 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29011 if test "${ac_cv_prog_GETCONF+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29014 if test -n "$GETCONF"; then
29015 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29018 for as_dir in $PATH
29021 test -z "$as_dir" && as_dir=.
29022 for ac_exec_ext in '' $ac_executable_extensions; do
29023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29024 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29034 GETCONF=$ac_cv_prog_GETCONF
29035 if test -n "$GETCONF"; then
29036 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29037 echo "${ECHO_T}$GETCONF" >&6; }
29039 { echo "$as_me:$LINENO: result: no" >&5
29040 echo "${ECHO_T}no" >&6; }
29045 if test -z "$ac_cv_prog_GETCONF"; then
29046 ac_ct_GETCONF=$GETCONF
29047 # Extract the first word of "getconf", so it can be a program name with args.
29048 set dummy getconf; ac_word=$2
29049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29051 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29052 echo $ECHO_N "(cached) $ECHO_C" >&6
29054 if test -n "$ac_ct_GETCONF"; then
29055 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29061 test -z "$as_dir" && as_dir=.
29062 for ac_exec_ext in '' $ac_executable_extensions; do
29063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29064 ac_cv_prog_ac_ct_GETCONF="getconf"
29065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29074 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29075 if test -n "$ac_ct_GETCONF"; then
29076 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29077 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29079 { echo "$as_me:$LINENO: result: no" >&5
29080 echo "${ECHO_T}no" >&6; }
29083 if test "x$ac_ct_GETCONF" = x; then
29086 case $cross_compiling:$ac_tool_warned in
29088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29089 whose name does not start with the host triplet. If you think this
29090 configuration is useful to you, please write to autoconf@gnu.org." >&5
29091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29092 whose name does not start with the host triplet. If you think this
29093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29094 ac_tool_warned=yes ;;
29096 GETCONF=$ac_ct_GETCONF
29099 GETCONF="$ac_cv_prog_GETCONF"
29102 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29103 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29104 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29108 ac_cv_sys_largefile_CFLAGS=no
29110 # IRIX 6.2 and later require cc -n32.
29111 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29112 if test "$GCC" != yes; then
29113 ac_cv_sys_largefile_CFLAGS=-n32
29116 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29117 cat >conftest.$ac_ext <<_ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h. */
29132 rm -f conftest.$ac_objext conftest$ac_exeext
29133 if { (ac_try="$ac_link"
29134 case "(($ac_try" in
29135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136 *) ac_try_echo=$ac_try;;
29138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139 (eval "$ac_link") 2>conftest.er1
29141 grep -v '^ *+' conftest.er1 >conftest.err
29143 cat conftest.err >&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } && {
29146 test -z "$ac_c_werror_flag" ||
29147 test ! -s conftest.err
29148 } && test -s conftest$ac_exeext &&
29149 $as_test_x conftest$ac_exeext; then
29152 echo "$as_me: failed program was:" >&5
29153 sed 's/^/| /' conftest.$ac_ext >&5
29155 ac_cv_sys_largefile_CFLAGS=no
29158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29159 conftest$ac_exeext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29165 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29166 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29167 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29168 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29171 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29172 ac_cv_sys_largefile_LDFLAGS=no
29176 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29177 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29178 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29179 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29180 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29181 echo $ECHO_N "(cached) $ECHO_C" >&6
29183 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29184 ac_cv_sys_largefile_LIBS=no
29188 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29189 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29191 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29194 -D_FILE_OFFSET_BITS=*) ;;
29195 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29196 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29201 case "$CPPFLAGS" in
29202 '') CPPFLAGS="$ac_flag" ;;
29203 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29211 '') CFLAGS="$ac_flag" ;;
29212 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29217 case "$ac_cv_sys_largefile_LDFLAGS" in
29221 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29222 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29225 case "$ac_cv_sys_largefile_LIBS" in
29229 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29230 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29233 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29234 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29235 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29236 echo $ECHO_N "(cached) $ECHO_C" >&6
29238 ac_cv_sys_file_offset_bits=no
29239 ac_cv_sys_file_offset_bits=64
29240 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29242 -D_FILE_OFFSET_BITS)
29243 ac_cv_sys_file_offset_bits=1 ;;
29244 -D_FILE_OFFSET_BITS=*)
29245 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29250 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29251 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29252 if test "$ac_cv_sys_file_offset_bits" != no; then
29254 cat >>confdefs.h <<_ACEOF
29255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29259 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29260 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29261 if test "${ac_cv_sys_largefile_source+set}" = set; then
29262 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 ac_cv_sys_largefile_source=no
29265 ac_cv_sys_largefile_source=1
29266 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29268 -D_LARGEFILE_SOURCE)
29269 ac_cv_sys_largefile_source=1 ;;
29270 -D_LARGEFILE_SOURCE=*)
29271 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29276 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29277 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29278 if test "$ac_cv_sys_largefile_source" != no; then
29280 cat >>confdefs.h <<_ACEOF
29281 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29285 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29286 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29287 if test "${ac_cv_sys_large_files+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29290 ac_cv_sys_large_files=no
29291 ac_cv_sys_large_files=1
29292 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29295 ac_cv_sys_large_files=1 ;;
29297 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29302 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29303 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29304 if test "$ac_cv_sys_large_files" != no; then
29306 cat >>confdefs.h <<_ACEOF
29307 #define _LARGE_FILES $ac_cv_sys_large_files
29314 { echo "$as_me:$LINENO: checking for X" >&5
29315 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29318 # Check whether --with-x was given.
29319 if test "${with_x+set}" = set; then
29323 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29324 if test "x$with_x" = xno; then
29325 # The user explicitly disabled X.
29328 case $x_includes,$x_libraries in #(
29329 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29330 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29331 { (exit 1); exit 1; }; };; #(
29332 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 # One or both of the vars are not set, and there is no cached value.
29336 ac_x_includes=no ac_x_libraries=no
29337 rm -f -r conftest.dir
29338 if mkdir conftest.dir; then
29340 cat >Imakefile <<'_ACEOF'
29342 @echo incroot='${INCROOT}'
29344 @echo usrlibdir='${USRLIBDIR}'
29346 @echo libdir='${LIBDIR}'
29348 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29349 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29350 for ac_var in incroot usrlibdir libdir; do
29351 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29353 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29354 for ac_extension in a so sl; do
29355 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29356 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29357 ac_im_usrlibdir=$ac_im_libdir; break
29360 # Screen out bogus values from the imake configuration. They are
29361 # bogus both because they are the default anyway, and because
29362 # using them would break gcc on systems where it needs fixed includes.
29363 case $ac_im_incroot in
29364 /usr/include) ac_x_includes= ;;
29365 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29367 case $ac_im_usrlibdir in
29368 /usr/lib | /lib) ;;
29369 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29373 rm -f -r conftest.dir
29376 # Standard set of common directories for X headers.
29377 # Check X11 before X11Rn because it is often a symlink to the current release.
29389 /usr/local/X11/include
29390 /usr/local/X11R6/include
29391 /usr/local/X11R5/include
29392 /usr/local/X11R4/include
29394 /usr/local/include/X11
29395 /usr/local/include/X11R6
29396 /usr/local/include/X11R5
29397 /usr/local/include/X11R4
29401 /usr/XFree86/include/X11
29405 /usr/unsupported/include
29406 /usr/athena/include
29407 /usr/local/x11r5/include
29408 /usr/lpp/Xamples/include
29410 /usr/openwin/include
29411 /usr/openwin/share/include'
29413 if test "$ac_x_includes" = no; then
29414 # Guess where to find include files, by looking for Xlib.h.
29415 # First, try using that file with no special directory specified.
29416 cat >conftest.$ac_ext <<_ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 #include <X11/Xlib.h>
29424 if { (ac_try="$ac_cpp conftest.$ac_ext"
29425 case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29432 grep -v '^ *+' conftest.er1 >conftest.err
29434 cat conftest.err >&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); } >/dev/null && {
29437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29438 test ! -s conftest.err
29440 # We can compile using X headers with no special include directory.
29443 echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29446 for ac_dir in $ac_x_header_dirs; do
29447 if test -r "$ac_dir/X11/Xlib.h"; then
29448 ac_x_includes=$ac_dir
29454 rm -f conftest.err conftest.$ac_ext
29455 fi # $ac_x_includes = no
29457 if test "$ac_x_libraries" = no; then
29458 # Check for the libraries.
29459 # See if we find them without any special options.
29460 # Don't add to $LIBS permanently.
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 #include <X11/Xlib.h>
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (ac_try="$ac_link"
29480 case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_link") 2>conftest.er1
29487 grep -v '^ *+' conftest.er1 >conftest.err
29489 cat conftest.err >&5
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); } && {
29492 test -z "$ac_c_werror_flag" ||
29493 test ! -s conftest.err
29494 } && test -s conftest$ac_exeext &&
29495 $as_test_x conftest$ac_exeext; then
29497 # We can link X programs with no special library path.
29500 echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29504 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29506 # Don't even attempt the hair of trying to link an X program!
29507 for ac_extension in a so sl; do
29508 if test -r "$ac_dir/libX11.$ac_extension"; then
29509 ac_x_libraries=$ac_dir
29516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29517 conftest$ac_exeext conftest.$ac_ext
29518 fi # $ac_x_libraries = no
29520 case $ac_x_includes,$ac_x_libraries in #(
29521 no,* | *,no | *\'*)
29522 # Didn't find X, or a directory has "'" in its name.
29523 ac_cv_have_x="have_x=no";; #(
29525 # Record where we found X for the cache.
29526 ac_cv_have_x="have_x=yes\
29527 ac_x_includes='$ac_x_includes'\
29528 ac_x_libraries='$ac_x_libraries'"
29534 eval "$ac_cv_have_x"
29537 if test "$have_x" != yes; then
29538 { echo "$as_me:$LINENO: result: $have_x" >&5
29539 echo "${ECHO_T}$have_x" >&6; }
29542 # If each of the values was on the command line, it overrides each guess.
29543 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29544 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29545 # Update the cache value to reflect the command line values.
29546 ac_cv_have_x="have_x=yes\
29547 ac_x_includes='$x_includes'\
29548 ac_x_libraries='$x_libraries'"
29549 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29550 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29553 if test "$no_x" = yes; then
29554 # Not all programs may use this symbol, but it does not hurt to define it.
29556 cat >>confdefs.h <<\_ACEOF
29557 #define X_DISPLAY_MISSING 1
29560 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29562 if test -n "$x_includes"; then
29563 X_CFLAGS="$X_CFLAGS -I$x_includes"
29566 # It would also be nice to do this for all -L options, not just this one.
29567 if test -n "$x_libraries"; then
29568 X_LIBS="$X_LIBS -L$x_libraries"
29569 # For Solaris; some versions of Sun CC require a space after -R and
29570 # others require no space. Words are not sufficient . . . .
29571 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29572 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29573 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29574 ac_xsave_c_werror_flag=$ac_c_werror_flag
29575 ac_c_werror_flag=yes
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29591 rm -f conftest.$ac_objext conftest$ac_exeext
29592 if { (ac_try="$ac_link"
29593 case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_link") 2>conftest.er1
29600 grep -v '^ *+' conftest.er1 >conftest.err
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } && {
29605 test -z "$ac_c_werror_flag" ||
29606 test ! -s conftest.err
29607 } && test -s conftest$ac_exeext &&
29608 $as_test_x conftest$ac_exeext; then
29609 { echo "$as_me:$LINENO: result: no" >&5
29610 echo "${ECHO_T}no" >&6; }
29611 X_LIBS="$X_LIBS -R$x_libraries"
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 LIBS="$ac_xsave_LIBS -R $x_libraries"
29617 cat >conftest.$ac_ext <<_ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h. */
29632 rm -f conftest.$ac_objext conftest$ac_exeext
29633 if { (ac_try="$ac_link"
29634 case "(($ac_try" in
29635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636 *) ac_try_echo=$ac_try;;
29638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29639 (eval "$ac_link") 2>conftest.er1
29641 grep -v '^ *+' conftest.er1 >conftest.err
29643 cat conftest.err >&5
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); } && {
29646 test -z "$ac_c_werror_flag" ||
29647 test ! -s conftest.err
29648 } && test -s conftest$ac_exeext &&
29649 $as_test_x conftest$ac_exeext; then
29650 { echo "$as_me:$LINENO: result: yes" >&5
29651 echo "${ECHO_T}yes" >&6; }
29652 X_LIBS="$X_LIBS -R $x_libraries"
29654 echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29657 { echo "$as_me:$LINENO: result: neither works" >&5
29658 echo "${ECHO_T}neither works" >&6; }
29661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29662 conftest$ac_exeext conftest.$ac_ext
29665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29666 conftest$ac_exeext conftest.$ac_ext
29667 ac_c_werror_flag=$ac_xsave_c_werror_flag
29668 LIBS=$ac_xsave_LIBS
29671 # Check for system-dependent libraries X programs must link with.
29672 # Do this before checking for the system-independent R6 libraries
29673 # (-lICE), since we may need -lsocket or whatever for X linking.
29675 if test "$ISC" = yes; then
29676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29678 # Martyn Johnson says this is needed for Ultrix, if the X
29679 # libraries were built with DECnet support. And Karl Berry says
29680 # the Alpha needs dnet_stub (dnet does not exist).
29681 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29689 /* Override any GCC internal prototype to avoid an error.
29690 Use char because int might match the return type of a GCC
29691 builtin and then its argument prototype would still apply. */
29695 char XOpenDisplay ();
29699 return XOpenDisplay ();
29704 rm -f conftest.$ac_objext conftest$ac_exeext
29705 if { (ac_try="$ac_link"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_link") 2>conftest.er1
29713 grep -v '^ *+' conftest.er1 >conftest.err
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } && {
29718 test -z "$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29720 } && test -s conftest$ac_exeext &&
29721 $as_test_x conftest$ac_exeext; then
29724 echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.$ac_ext >&5
29727 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29728 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29729 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29732 ac_check_lib_save_LIBS=$LIBS
29733 LIBS="-ldnet $LIBS"
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29741 /* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29751 return dnet_ntoa ();
29756 rm -f conftest.$ac_objext conftest$ac_exeext
29757 if { (ac_try="$ac_link"
29758 case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_link") 2>conftest.er1
29765 grep -v '^ *+' conftest.er1 >conftest.err
29767 cat conftest.err >&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); } && {
29770 test -z "$ac_c_werror_flag" ||
29771 test ! -s conftest.err
29772 } && test -s conftest$ac_exeext &&
29773 $as_test_x conftest$ac_exeext; then
29774 ac_cv_lib_dnet_dnet_ntoa=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_cv_lib_dnet_dnet_ntoa=no
29782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29783 conftest$ac_exeext conftest.$ac_ext
29784 LIBS=$ac_check_lib_save_LIBS
29786 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29787 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29788 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29789 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29792 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29793 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29794 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29795 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29798 ac_check_lib_save_LIBS=$LIBS
29799 LIBS="-ldnet_stub $LIBS"
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29807 /* Override any GCC internal prototype to avoid an error.
29808 Use char because int might match the return type of a GCC
29809 builtin and then its argument prototype would still apply. */
29817 return dnet_ntoa ();
29822 rm -f conftest.$ac_objext conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_link") 2>conftest.er1
29831 grep -v '^ *+' conftest.er1 >conftest.err
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } && {
29836 test -z "$ac_c_werror_flag" ||
29837 test ! -s conftest.err
29838 } && test -s conftest$ac_exeext &&
29839 $as_test_x conftest$ac_exeext; then
29840 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29842 echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29845 ac_cv_lib_dnet_stub_dnet_ntoa=no
29848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29849 conftest$ac_exeext conftest.$ac_ext
29850 LIBS=$ac_check_lib_save_LIBS
29852 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29853 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29854 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29855 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29862 conftest$ac_exeext conftest.$ac_ext
29863 LIBS="$ac_xsave_LIBS"
29865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29866 # to get the SysV transport functions.
29867 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29869 # The nsl library prevents programs from opening the X display
29870 # on Irix 5.2, according to T.E. Dickey.
29871 # The functions gethostbyname, getservbyname, and inet_addr are
29872 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29873 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29874 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29875 if test "${ac_cv_func_gethostbyname+set}" = set; then
29876 echo $ECHO_N "(cached) $ECHO_C" >&6
29878 cat >conftest.$ac_ext <<_ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h. */
29884 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29886 #define gethostbyname innocuous_gethostbyname
29888 /* System header to define __stub macros and hopefully few prototypes,
29889 which can conflict with char gethostbyname (); below.
29890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891 <limits.h> exists even on freestanding compilers. */
29894 # include <limits.h>
29896 # include <assert.h>
29899 #undef gethostbyname
29901 /* Override any GCC internal prototype to avoid an error.
29902 Use char because int might match the return type of a GCC
29903 builtin and then its argument prototype would still apply. */
29907 char gethostbyname ();
29908 /* The GNU C library defines this for functions which it implements
29909 to always fail with ENOSYS. Some functions are actually named
29910 something starting with __ and the normal name is an alias. */
29911 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29918 return gethostbyname ();
29923 rm -f conftest.$ac_objext conftest$ac_exeext
29924 if { (ac_try="$ac_link"
29925 case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_link") 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } && {
29937 test -z "$ac_c_werror_flag" ||
29938 test ! -s conftest.err
29939 } && test -s conftest$ac_exeext &&
29940 $as_test_x conftest$ac_exeext; then
29941 ac_cv_func_gethostbyname=yes
29943 echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29946 ac_cv_func_gethostbyname=no
29949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29950 conftest$ac_exeext conftest.$ac_ext
29952 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29953 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29955 if test $ac_cv_func_gethostbyname = no; then
29956 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29957 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29958 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29961 ac_check_lib_save_LIBS=$LIBS
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29970 /* Override any GCC internal prototype to avoid an error.
29971 Use char because int might match the return type of a GCC
29972 builtin and then its argument prototype would still apply. */
29976 char gethostbyname ();
29980 return gethostbyname ();
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (ac_try="$ac_link"
29987 case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_link") 2>conftest.er1
29994 grep -v '^ *+' conftest.er1 >conftest.err
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && {
29999 test -z "$ac_c_werror_flag" ||
30000 test ! -s conftest.err
30001 } && test -s conftest$ac_exeext &&
30002 $as_test_x conftest$ac_exeext; then
30003 ac_cv_lib_nsl_gethostbyname=yes
30005 echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30008 ac_cv_lib_nsl_gethostbyname=no
30011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30012 conftest$ac_exeext conftest.$ac_ext
30013 LIBS=$ac_check_lib_save_LIBS
30015 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30016 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30017 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30021 if test $ac_cv_lib_nsl_gethostbyname = no; then
30022 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30023 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30024 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30027 ac_check_lib_save_LIBS=$LIBS
30029 cat >conftest.$ac_ext <<_ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30036 /* Override any GCC internal prototype to avoid an error.
30037 Use char because int might match the return type of a GCC
30038 builtin and then its argument prototype would still apply. */
30042 char gethostbyname ();
30046 return gethostbyname ();
30051 rm -f conftest.$ac_objext conftest$ac_exeext
30052 if { (ac_try="$ac_link"
30053 case "(($ac_try" in
30054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055 *) ac_try_echo=$ac_try;;
30057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058 (eval "$ac_link") 2>conftest.er1
30060 grep -v '^ *+' conftest.er1 >conftest.err
30062 cat conftest.err >&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } && {
30065 test -z "$ac_c_werror_flag" ||
30066 test ! -s conftest.err
30067 } && test -s conftest$ac_exeext &&
30068 $as_test_x conftest$ac_exeext; then
30069 ac_cv_lib_bsd_gethostbyname=yes
30071 echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30074 ac_cv_lib_bsd_gethostbyname=no
30077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30078 conftest$ac_exeext conftest.$ac_ext
30079 LIBS=$ac_check_lib_save_LIBS
30081 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30082 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30083 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30090 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30091 # socket/setsockopt and other routines are undefined under SCO ODT
30092 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30093 # on later versions), says Simon Leinen: it contains gethostby*
30094 # variants that don't use the name server (or something). -lsocket
30095 # must be given before -lnsl if both are needed. We assume that
30096 # if connect needs -lnsl, so does gethostbyname.
30097 { echo "$as_me:$LINENO: checking for connect" >&5
30098 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30099 if test "${ac_cv_func_connect+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30108 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30110 #define connect innocuous_connect
30112 /* System header to define __stub macros and hopefully few prototypes,
30113 which can conflict with char connect (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
30118 # include <limits.h>
30120 # include <assert.h>
30125 /* Override any GCC internal prototype to avoid an error.
30126 Use char because int might match the return type of a GCC
30127 builtin and then its argument prototype would still apply. */
30132 /* The GNU C library defines this for functions which it implements
30133 to always fail with ENOSYS. Some functions are actually named
30134 something starting with __ and the normal name is an alias. */
30135 #if defined __stub_connect || defined __stub___connect
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (ac_try="$ac_link"
30149 case "(($ac_try" in
30150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151 *) ac_try_echo=$ac_try;;
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154 (eval "$ac_link") 2>conftest.er1
30156 grep -v '^ *+' conftest.er1 >conftest.err
30158 cat conftest.err >&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } && {
30161 test -z "$ac_c_werror_flag" ||
30162 test ! -s conftest.err
30163 } && test -s conftest$ac_exeext &&
30164 $as_test_x conftest$ac_exeext; then
30165 ac_cv_func_connect=yes
30167 echo "$as_me: failed program was:" >&5
30168 sed 's/^/| /' conftest.$ac_ext >&5
30170 ac_cv_func_connect=no
30173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30174 conftest$ac_exeext conftest.$ac_ext
30176 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30177 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30179 if test $ac_cv_func_connect = no; then
30180 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30181 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30182 if test "${ac_cv_lib_socket_connect+set}" = set; then
30183 echo $ECHO_N "(cached) $ECHO_C" >&6
30185 ac_check_lib_save_LIBS=$LIBS
30186 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30187 cat >conftest.$ac_ext <<_ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30194 /* Override any GCC internal prototype to avoid an error.
30195 Use char because int might match the return type of a GCC
30196 builtin and then its argument prototype would still apply. */
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213 *) ac_try_echo=$ac_try;;
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216 (eval "$ac_link") 2>conftest.er1
30218 grep -v '^ *+' conftest.er1 >conftest.err
30220 cat conftest.err >&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } && {
30223 test -z "$ac_c_werror_flag" ||
30224 test ! -s conftest.err
30225 } && test -s conftest$ac_exeext &&
30226 $as_test_x conftest$ac_exeext; then
30227 ac_cv_lib_socket_connect=yes
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 ac_cv_lib_socket_connect=no
30235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30236 conftest$ac_exeext conftest.$ac_ext
30237 LIBS=$ac_check_lib_save_LIBS
30239 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30240 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30241 if test $ac_cv_lib_socket_connect = yes; then
30242 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30247 # Guillermo Gomez says -lposix is necessary on A/UX.
30248 { echo "$as_me:$LINENO: checking for remove" >&5
30249 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30250 if test "${ac_cv_func_remove+set}" = set; then
30251 echo $ECHO_N "(cached) $ECHO_C" >&6
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30259 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30261 #define remove innocuous_remove
30263 /* System header to define __stub macros and hopefully few prototypes,
30264 which can conflict with char remove (); below.
30265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266 <limits.h> exists even on freestanding compilers. */
30269 # include <limits.h>
30271 # include <assert.h>
30276 /* Override any GCC internal prototype to avoid an error.
30277 Use char because int might match the return type of a GCC
30278 builtin and then its argument prototype would still apply. */
30283 /* The GNU C library defines this for functions which it implements
30284 to always fail with ENOSYS. Some functions are actually named
30285 something starting with __ and the normal name is an alias. */
30286 #if defined __stub_remove || defined __stub___remove
30298 rm -f conftest.$ac_objext conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_link") 2>conftest.er1
30307 grep -v '^ *+' conftest.er1 >conftest.err
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } && {
30312 test -z "$ac_c_werror_flag" ||
30313 test ! -s conftest.err
30314 } && test -s conftest$ac_exeext &&
30315 $as_test_x conftest$ac_exeext; then
30316 ac_cv_func_remove=yes
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 ac_cv_func_remove=no
30324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30325 conftest$ac_exeext conftest.$ac_ext
30327 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30328 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30330 if test $ac_cv_func_remove = no; then
30331 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30332 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30333 if test "${ac_cv_lib_posix_remove+set}" = set; then
30334 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 ac_check_lib_save_LIBS=$LIBS
30337 LIBS="-lposix $LIBS"
30338 cat >conftest.$ac_ext <<_ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h. */
30345 /* Override any GCC internal prototype to avoid an error.
30346 Use char because int might match the return type of a GCC
30347 builtin and then its argument prototype would still apply. */
30360 rm -f conftest.$ac_objext conftest$ac_exeext
30361 if { (ac_try="$ac_link"
30362 case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_link") 2>conftest.er1
30369 grep -v '^ *+' conftest.er1 >conftest.err
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } && {
30374 test -z "$ac_c_werror_flag" ||
30375 test ! -s conftest.err
30376 } && test -s conftest$ac_exeext &&
30377 $as_test_x conftest$ac_exeext; then
30378 ac_cv_lib_posix_remove=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ac_cv_lib_posix_remove=no
30386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30387 conftest$ac_exeext conftest.$ac_ext
30388 LIBS=$ac_check_lib_save_LIBS
30390 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30391 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30392 if test $ac_cv_lib_posix_remove = yes; then
30393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30398 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30399 { echo "$as_me:$LINENO: checking for shmat" >&5
30400 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30401 if test "${ac_cv_func_shmat+set}" = set; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30404 cat >conftest.$ac_ext <<_ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h. */
30410 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30412 #define shmat innocuous_shmat
30414 /* System header to define __stub macros and hopefully few prototypes,
30415 which can conflict with char shmat (); below.
30416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417 <limits.h> exists even on freestanding compilers. */
30420 # include <limits.h>
30422 # include <assert.h>
30427 /* Override any GCC internal prototype to avoid an error.
30428 Use char because int might match the return type of a GCC
30429 builtin and then its argument prototype would still apply. */
30434 /* The GNU C library defines this for functions which it implements
30435 to always fail with ENOSYS. Some functions are actually named
30436 something starting with __ and the normal name is an alias. */
30437 #if defined __stub_shmat || defined __stub___shmat
30449 rm -f conftest.$ac_objext conftest$ac_exeext
30450 if { (ac_try="$ac_link"
30451 case "(($ac_try" in
30452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453 *) ac_try_echo=$ac_try;;
30455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456 (eval "$ac_link") 2>conftest.er1
30458 grep -v '^ *+' conftest.er1 >conftest.err
30460 cat conftest.err >&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); } && {
30463 test -z "$ac_c_werror_flag" ||
30464 test ! -s conftest.err
30465 } && test -s conftest$ac_exeext &&
30466 $as_test_x conftest$ac_exeext; then
30467 ac_cv_func_shmat=yes
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30472 ac_cv_func_shmat=no
30475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30476 conftest$ac_exeext conftest.$ac_ext
30478 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30479 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30481 if test $ac_cv_func_shmat = no; then
30482 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30483 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30484 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30485 echo $ECHO_N "(cached) $ECHO_C" >&6
30487 ac_check_lib_save_LIBS=$LIBS
30489 cat >conftest.$ac_ext <<_ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30496 /* Override any GCC internal prototype to avoid an error.
30497 Use char because int might match the return type of a GCC
30498 builtin and then its argument prototype would still apply. */
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_link") 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } && {
30525 test -z "$ac_c_werror_flag" ||
30526 test ! -s conftest.err
30527 } && test -s conftest$ac_exeext &&
30528 $as_test_x conftest$ac_exeext; then
30529 ac_cv_lib_ipc_shmat=yes
30531 echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30534 ac_cv_lib_ipc_shmat=no
30537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30538 conftest$ac_exeext conftest.$ac_ext
30539 LIBS=$ac_check_lib_save_LIBS
30541 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30542 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30543 if test $ac_cv_lib_ipc_shmat = yes; then
30544 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30550 # Check for libraries that X11R6 Xt/Xaw programs need.
30551 ac_save_LDFLAGS=$LDFLAGS
30552 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30553 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30554 # check for ICE first), but we must link in the order -lSM -lICE or
30555 # we get undefined symbols. So assume we have SM if we have ICE.
30556 # These have to be linked with before -lX11, unlike the other
30557 # libraries we check for below, so use a different variable.
30558 # John Interrante, Karl Berry
30559 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30560 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30561 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30562 echo $ECHO_N "(cached) $ECHO_C" >&6
30564 ac_check_lib_save_LIBS=$LIBS
30565 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30566 cat >conftest.$ac_ext <<_ACEOF
30569 cat confdefs.h >>conftest.$ac_ext
30570 cat >>conftest.$ac_ext <<_ACEOF
30571 /* end confdefs.h. */
30573 /* Override any GCC internal prototype to avoid an error.
30574 Use char because int might match the return type of a GCC
30575 builtin and then its argument prototype would still apply. */
30579 char IceConnectionNumber ();
30583 return IceConnectionNumber ();
30588 rm -f conftest.$ac_objext conftest$ac_exeext
30589 if { (ac_try="$ac_link"
30590 case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595 (eval "$ac_link") 2>conftest.er1
30597 grep -v '^ *+' conftest.er1 >conftest.err
30599 cat conftest.err >&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); } && {
30602 test -z "$ac_c_werror_flag" ||
30603 test ! -s conftest.err
30604 } && test -s conftest$ac_exeext &&
30605 $as_test_x conftest$ac_exeext; then
30606 ac_cv_lib_ICE_IceConnectionNumber=yes
30608 echo "$as_me: failed program was:" >&5
30609 sed 's/^/| /' conftest.$ac_ext >&5
30611 ac_cv_lib_ICE_IceConnectionNumber=no
30614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30615 conftest$ac_exeext conftest.$ac_ext
30616 LIBS=$ac_check_lib_save_LIBS
30618 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30619 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30620 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30624 LDFLAGS=$ac_save_LDFLAGS
30690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30695 echo $ECHO_N "(cached) $ECHO_C" >&6
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30701 # Is the header compilable?
30702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30704 cat >conftest.$ac_ext <<_ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h. */
30710 $ac_includes_default
30711 #include <$ac_header>
30713 rm -f conftest.$ac_objext
30714 if { (ac_try="$ac_compile"
30715 case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_compile") 2>conftest.er1
30722 grep -v '^ *+' conftest.er1 >conftest.err
30724 cat conftest.err >&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } && {
30727 test -z "$ac_c_werror_flag" ||
30728 test ! -s conftest.err
30729 } && test -s conftest.$ac_objext; then
30730 ac_header_compiler=yes
30732 echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30735 ac_header_compiler=no
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740 echo "${ECHO_T}$ac_header_compiler" >&6; }
30742 # Is the header present?
30743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30745 cat >conftest.$ac_ext <<_ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h. */
30751 #include <$ac_header>
30753 if { (ac_try="$ac_cpp conftest.$ac_ext"
30754 case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30761 grep -v '^ *+' conftest.er1 >conftest.err
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } >/dev/null && {
30766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30767 test ! -s conftest.err
30769 ac_header_preproc=yes
30771 echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30774 ac_header_preproc=no
30777 rm -f conftest.err conftest.$ac_ext
30778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779 echo "${ECHO_T}$ac_header_preproc" >&6; }
30781 # So? What about this header?
30782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30788 ac_header_preproc=yes
30791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30809 echo $ECHO_N "(cached) $ECHO_C" >&6
30811 eval "$as_ac_Header=\$ac_header_preproc"
30813 ac_res=`eval echo '${'$as_ac_Header'}'`
30814 { echo "$as_me:$LINENO: result: $ac_res" >&5
30815 echo "${ECHO_T}$ac_res" >&6; }
30818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30829 if test "${ac_cv_header_stdc+set}" = set; then
30830 echo $ECHO_N "(cached) $ECHO_C" >&6
30832 cat >conftest.$ac_ext <<_ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h. */
30838 #include <stdlib.h>
30839 #include <stdarg.h>
30840 #include <string.h>
30851 rm -f conftest.$ac_objext
30852 if { (ac_try="$ac_compile"
30853 case "(($ac_try" in
30854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30855 *) ac_try_echo=$ac_try;;
30857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30858 (eval "$ac_compile") 2>conftest.er1
30860 grep -v '^ *+' conftest.er1 >conftest.err
30862 cat conftest.err >&5
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); } && {
30865 test -z "$ac_c_werror_flag" ||
30866 test ! -s conftest.err
30867 } && test -s conftest.$ac_objext; then
30868 ac_cv_header_stdc=yes
30870 echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30873 ac_cv_header_stdc=no
30876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30878 if test $ac_cv_header_stdc = yes; then
30879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30880 cat >conftest.$ac_ext <<_ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h. */
30886 #include <string.h>
30889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30890 $EGREP "memchr" >/dev/null 2>&1; then
30893 ac_cv_header_stdc=no
30899 if test $ac_cv_header_stdc = yes; then
30900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30901 cat >conftest.$ac_ext <<_ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h. */
30907 #include <stdlib.h>
30910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30911 $EGREP "free" >/dev/null 2>&1; then
30914 ac_cv_header_stdc=no
30920 if test $ac_cv_header_stdc = yes; then
30921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30922 if test "$cross_compiling" = yes; then
30925 cat >conftest.$ac_ext <<_ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h. */
30932 #include <stdlib.h>
30933 #if ((' ' & 0x0FF) == 0x020)
30934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30937 # define ISLOWER(c) \
30938 (('a' <= (c) && (c) <= 'i') \
30939 || ('j' <= (c) && (c) <= 'r') \
30940 || ('s' <= (c) && (c) <= 'z'))
30941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30949 for (i = 0; i < 256; i++)
30950 if (XOR (islower (i), ISLOWER (i))
30951 || toupper (i) != TOUPPER (i))
30956 rm -f conftest$ac_exeext
30957 if { (ac_try="$ac_link"
30958 case "(($ac_try" in
30959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960 *) ac_try_echo=$ac_try;;
30962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963 (eval "$ac_link") 2>&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30967 { (case "(($ac_try" in
30968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972 (eval "$ac_try") 2>&5
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; }; then
30978 echo "$as_me: program exited with status $ac_status" >&5
30979 echo "$as_me: failed program was:" >&5
30980 sed 's/^/| /' conftest.$ac_ext >&5
30982 ( exit $ac_status )
30983 ac_cv_header_stdc=no
30985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30993 if test $ac_cv_header_stdc = yes; then
30995 cat >>confdefs.h <<\_ACEOF
30996 #define STDC_HEADERS 1
31001 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31002 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31003 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31004 echo $ECHO_N "(cached) $ECHO_C" >&6
31006 cat >conftest.$ac_ext <<_ACEOF
31009 cat confdefs.h >>conftest.$ac_ext
31010 cat >>conftest.$ac_ext <<_ACEOF
31011 /* end confdefs.h. */
31012 #include <sys/types.h>
31016 return makedev(0, 0);
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (ac_try="$ac_link"
31023 case "(($ac_try" in
31024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025 *) ac_try_echo=$ac_try;;
31027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028 (eval "$ac_link") 2>conftest.er1
31030 grep -v '^ *+' conftest.er1 >conftest.err
31032 cat conftest.err >&5
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } && {
31035 test -z "$ac_c_werror_flag" ||
31036 test ! -s conftest.err
31037 } && test -s conftest$ac_exeext &&
31038 $as_test_x conftest$ac_exeext; then
31039 ac_cv_header_sys_types_h_makedev=yes
31041 echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31044 ac_cv_header_sys_types_h_makedev=no
31047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31048 conftest$ac_exeext conftest.$ac_ext
31051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31052 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31054 if test $ac_cv_header_sys_types_h_makedev = no; then
31055 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31056 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31057 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31058 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31062 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31064 # Is the header compilable?
31065 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31066 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31067 cat >conftest.$ac_ext <<_ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 $ac_includes_default
31074 #include <sys/mkdev.h>
31076 rm -f conftest.$ac_objext
31077 if { (ac_try="$ac_compile"
31078 case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_compile") 2>conftest.er1
31085 grep -v '^ *+' conftest.er1 >conftest.err
31087 cat conftest.err >&5
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } && {
31090 test -z "$ac_c_werror_flag" ||
31091 test ! -s conftest.err
31092 } && test -s conftest.$ac_objext; then
31093 ac_header_compiler=yes
31095 echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31098 ac_header_compiler=no
31101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31103 echo "${ECHO_T}$ac_header_compiler" >&6; }
31105 # Is the header present?
31106 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31107 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31108 cat >conftest.$ac_ext <<_ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 #include <sys/mkdev.h>
31116 if { (ac_try="$ac_cpp conftest.$ac_ext"
31117 case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31124 grep -v '^ *+' conftest.er1 >conftest.err
31126 cat conftest.err >&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } >/dev/null && {
31129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31130 test ! -s conftest.err
31132 ac_header_preproc=yes
31134 echo "$as_me: failed program was:" >&5
31135 sed 's/^/| /' conftest.$ac_ext >&5
31137 ac_header_preproc=no
31140 rm -f conftest.err conftest.$ac_ext
31141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31142 echo "${ECHO_T}$ac_header_preproc" >&6; }
31144 # So? What about this header?
31145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31147 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31148 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31149 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31150 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31151 ac_header_preproc=yes
31154 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31155 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31156 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31157 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31158 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31159 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31160 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31161 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31162 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31163 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31164 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31165 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31169 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31170 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31171 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31174 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31177 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31180 if test $ac_cv_header_sys_mkdev_h = yes; then
31182 cat >>confdefs.h <<\_ACEOF
31183 #define MAJOR_IN_MKDEV 1
31190 if test $ac_cv_header_sys_mkdev_h = no; then
31191 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31192 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31193 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31194 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31195 echo $ECHO_N "(cached) $ECHO_C" >&6
31197 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31198 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31200 # Is the header compilable?
31201 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31202 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31203 cat >conftest.$ac_ext <<_ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h. */
31209 $ac_includes_default
31210 #include <sys/sysmacros.h>
31212 rm -f conftest.$ac_objext
31213 if { (ac_try="$ac_compile"
31214 case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_compile") 2>conftest.er1
31221 grep -v '^ *+' conftest.er1 >conftest.err
31223 cat conftest.err >&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); } && {
31226 test -z "$ac_c_werror_flag" ||
31227 test ! -s conftest.err
31228 } && test -s conftest.$ac_objext; then
31229 ac_header_compiler=yes
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31234 ac_header_compiler=no
31237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31239 echo "${ECHO_T}$ac_header_compiler" >&6; }
31241 # Is the header present?
31242 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31243 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31244 cat >conftest.$ac_ext <<_ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h. */
31250 #include <sys/sysmacros.h>
31252 if { (ac_try="$ac_cpp conftest.$ac_ext"
31253 case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31260 grep -v '^ *+' conftest.er1 >conftest.err
31262 cat conftest.err >&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); } >/dev/null && {
31265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31266 test ! -s conftest.err
31268 ac_header_preproc=yes
31270 echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31273 ac_header_preproc=no
31276 rm -f conftest.err conftest.$ac_ext
31277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31278 echo "${ECHO_T}$ac_header_preproc" >&6; }
31280 # So? What about this header?
31281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31284 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31285 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31286 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31287 ac_header_preproc=yes
31290 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31291 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31292 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31293 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31294 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31295 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31296 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31297 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31299 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31301 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31305 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31306 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31307 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31312 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31313 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31316 if test $ac_cv_header_sys_sysmacros_h = yes; then
31318 cat >>confdefs.h <<\_ACEOF
31319 #define MAJOR_IN_SYSMACROS 1
31333 ac_header_dirent=no
31334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31335 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31336 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31339 echo $ECHO_N "(cached) $ECHO_C" >&6
31341 cat >conftest.$ac_ext <<_ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h. */
31347 #include <sys/types.h>
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_compile") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } && {
31373 test -z "$ac_c_werror_flag" ||
31374 test ! -s conftest.err
31375 } && test -s conftest.$ac_objext; then
31376 eval "$as_ac_Header=yes"
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 eval "$as_ac_Header=no"
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31386 ac_res=`eval echo '${'$as_ac_Header'}'`
31387 { echo "$as_me:$LINENO: result: $ac_res" >&5
31388 echo "${ECHO_T}$ac_res" >&6; }
31389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31390 cat >>confdefs.h <<_ACEOF
31391 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31394 ac_header_dirent=$ac_hdr; break
31398 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31399 if test $ac_header_dirent = dirent.h; then
31400 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31401 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31402 if test "${ac_cv_search_opendir+set}" = set; then
31403 echo $ECHO_N "(cached) $ECHO_C" >&6
31405 ac_func_search_save_LIBS=$LIBS
31406 cat >conftest.$ac_ext <<_ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h. */
31413 /* Override any GCC internal prototype to avoid an error.
31414 Use char because int might match the return type of a GCC
31415 builtin and then its argument prototype would still apply. */
31428 for ac_lib in '' dir; do
31429 if test -z "$ac_lib"; then
31430 ac_res="none required"
31433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31435 rm -f conftest.$ac_objext conftest$ac_exeext
31436 if { (ac_try="$ac_link"
31437 case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_link") 2>conftest.er1
31444 grep -v '^ *+' conftest.er1 >conftest.err
31446 cat conftest.err >&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && {
31449 test -z "$ac_c_werror_flag" ||
31450 test ! -s conftest.err
31451 } && test -s conftest$ac_exeext &&
31452 $as_test_x conftest$ac_exeext; then
31453 ac_cv_search_opendir=$ac_res
31455 echo "$as_me: failed program was:" >&5
31456 sed 's/^/| /' conftest.$ac_ext >&5
31461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31463 if test "${ac_cv_search_opendir+set}" = set; then
31467 if test "${ac_cv_search_opendir+set}" = set; then
31470 ac_cv_search_opendir=no
31472 rm conftest.$ac_ext
31473 LIBS=$ac_func_search_save_LIBS
31475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31477 ac_res=$ac_cv_search_opendir
31478 if test "$ac_res" != no; then
31479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31486 if test "${ac_cv_search_opendir+set}" = set; then
31487 echo $ECHO_N "(cached) $ECHO_C" >&6
31489 ac_func_search_save_LIBS=$LIBS
31490 cat >conftest.$ac_ext <<_ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h. */
31497 /* Override any GCC internal prototype to avoid an error.
31498 Use char because int might match the return type of a GCC
31499 builtin and then its argument prototype would still apply. */
31512 for ac_lib in '' x; do
31513 if test -z "$ac_lib"; then
31514 ac_res="none required"
31517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31519 rm -f conftest.$ac_objext conftest$ac_exeext
31520 if { (ac_try="$ac_link"
31521 case "(($ac_try" in
31522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523 *) ac_try_echo=$ac_try;;
31525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526 (eval "$ac_link") 2>conftest.er1
31528 grep -v '^ *+' conftest.er1 >conftest.err
31530 cat conftest.err >&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); } && {
31533 test -z "$ac_c_werror_flag" ||
31534 test ! -s conftest.err
31535 } && test -s conftest$ac_exeext &&
31536 $as_test_x conftest$ac_exeext; then
31537 ac_cv_search_opendir=$ac_res
31539 echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31547 if test "${ac_cv_search_opendir+set}" = set; then
31551 if test "${ac_cv_search_opendir+set}" = set; then
31554 ac_cv_search_opendir=no
31556 rm conftest.$ac_ext
31557 LIBS=$ac_func_search_save_LIBS
31559 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31560 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31561 ac_res=$ac_cv_search_opendir
31562 if test "$ac_res" != no; then
31563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31569 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31570 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31571 if test "${ac_cv_header_stat_broken+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31574 cat >conftest.$ac_ext <<_ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 #include <sys/types.h>
31581 #include <sys/stat.h>
31583 #if defined S_ISBLK && defined S_IFDIR
31584 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31587 #if defined S_ISBLK && defined S_IFCHR
31588 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31591 #if defined S_ISLNK && defined S_IFREG
31592 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31595 #if defined S_ISSOCK && defined S_IFREG
31596 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31600 rm -f conftest.$ac_objext
31601 if { (ac_try="$ac_compile"
31602 case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_compile") 2>conftest.er1
31609 grep -v '^ *+' conftest.er1 >conftest.err
31611 cat conftest.err >&5
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); } && {
31614 test -z "$ac_c_werror_flag" ||
31615 test ! -s conftest.err
31616 } && test -s conftest.$ac_objext; then
31617 ac_cv_header_stat_broken=no
31619 echo "$as_me: failed program was:" >&5
31620 sed 's/^/| /' conftest.$ac_ext >&5
31622 ac_cv_header_stat_broken=yes
31625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31627 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31628 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31629 if test $ac_cv_header_stat_broken = yes; then
31631 cat >>confdefs.h <<\_ACEOF
31632 #define STAT_MACROS_BROKEN 1
31637 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31638 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31639 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31640 echo $ECHO_N "(cached) $ECHO_C" >&6
31642 cat >conftest.$ac_ext <<_ACEOF
31645 cat confdefs.h >>conftest.$ac_ext
31646 cat >>conftest.$ac_ext <<_ACEOF
31647 /* end confdefs.h. */
31648 #include <sys/types.h>
31649 #include <sys/wait.h>
31650 #ifndef WEXITSTATUS
31651 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31654 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31667 rm -f conftest.$ac_objext
31668 if { (ac_try="$ac_compile"
31669 case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_compile") 2>conftest.er1
31676 grep -v '^ *+' conftest.er1 >conftest.err
31678 cat conftest.err >&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); } && {
31681 test -z "$ac_c_werror_flag" ||
31682 test ! -s conftest.err
31683 } && test -s conftest.$ac_objext; then
31684 ac_cv_header_sys_wait_h=yes
31686 echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31689 ac_cv_header_sys_wait_h=no
31692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31695 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31696 if test $ac_cv_header_sys_wait_h = yes; then
31698 cat >>confdefs.h <<\_ACEOF
31699 #define HAVE_SYS_WAIT_H 1
31704 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31705 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31706 if test "${ac_cv_header_time+set}" = set; then
31707 echo $ECHO_N "(cached) $ECHO_C" >&6
31709 cat >conftest.$ac_ext <<_ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h. */
31715 #include <sys/types.h>
31716 #include <sys/time.h>
31722 if ((struct tm *) 0)
31728 rm -f conftest.$ac_objext
31729 if { (ac_try="$ac_compile"
31730 case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_compile") 2>conftest.er1
31737 grep -v '^ *+' conftest.er1 >conftest.err
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } && {
31742 test -z "$ac_c_werror_flag" ||
31743 test ! -s conftest.err
31744 } && test -s conftest.$ac_objext; then
31745 ac_cv_header_time=yes
31747 echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31750 ac_cv_header_time=no
31753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31755 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31756 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31757 if test $ac_cv_header_time = yes; then
31759 cat >>confdefs.h <<\_ACEOF
31760 #define TIME_WITH_SYS_TIME 1
31765 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31766 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31767 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31770 cat >conftest.$ac_ext <<_ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31776 $ac_includes_default
31780 static struct stat ac_aggr;
31781 if (ac_aggr.st_blksize)
31787 rm -f conftest.$ac_objext
31788 if { (ac_try="$ac_compile"
31789 case "(($ac_try" in
31790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791 *) ac_try_echo=$ac_try;;
31793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794 (eval "$ac_compile") 2>conftest.er1
31796 grep -v '^ *+' conftest.er1 >conftest.err
31798 cat conftest.err >&5
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); } && {
31801 test -z "$ac_c_werror_flag" ||
31802 test ! -s conftest.err
31803 } && test -s conftest.$ac_objext; then
31804 ac_cv_member_struct_stat_st_blksize=yes
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31809 cat >conftest.$ac_ext <<_ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h. */
31815 $ac_includes_default
31819 static struct stat ac_aggr;
31820 if (sizeof ac_aggr.st_blksize)
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31835 grep -v '^ *+' conftest.er1 >conftest.err
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } && {
31840 test -z "$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 } && test -s conftest.$ac_objext; then
31843 ac_cv_member_struct_stat_st_blksize=yes
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_cv_member_struct_stat_st_blksize=no
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31857 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31858 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31860 cat >>confdefs.h <<_ACEOF
31861 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31865 cat >>confdefs.h <<\_ACEOF
31866 #define HAVE_ST_BLKSIZE 1
31872 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31873 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31874 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 cat >conftest.$ac_ext <<_ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 $ac_includes_default
31887 static struct stat ac_aggr;
31888 if (ac_aggr.st_blocks)
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_compile") 2>conftest.er1
31903 grep -v '^ *+' conftest.er1 >conftest.err
31905 cat conftest.err >&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } && {
31908 test -z "$ac_c_werror_flag" ||
31909 test ! -s conftest.err
31910 } && test -s conftest.$ac_objext; then
31911 ac_cv_member_struct_stat_st_blocks=yes
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31916 cat >conftest.$ac_ext <<_ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h. */
31922 $ac_includes_default
31926 static struct stat ac_aggr;
31927 if (sizeof ac_aggr.st_blocks)
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_compile") 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } && {
31947 test -z "$ac_c_werror_flag" ||
31948 test ! -s conftest.err
31949 } && test -s conftest.$ac_objext; then
31950 ac_cv_member_struct_stat_st_blocks=yes
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_member_struct_stat_st_blocks=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31964 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31965 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31967 cat >>confdefs.h <<_ACEOF
31968 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_ST_BLOCKS 1
31977 case " $LIBOBJS " in
31978 *" fileblocks.$ac_objext "* ) ;;
31979 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31986 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31987 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31988 if test "${ac_cv_struct_tm+set}" = set; then
31989 echo $ECHO_N "(cached) $ECHO_C" >&6
31991 cat >conftest.$ac_ext <<_ACEOF
31994 cat confdefs.h >>conftest.$ac_ext
31995 cat >>conftest.$ac_ext <<_ACEOF
31996 /* end confdefs.h. */
31997 #include <sys/types.h>
32004 int *p = &tm.tm_sec;
32010 rm -f conftest.$ac_objext
32011 if { (ac_try="$ac_compile"
32012 case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_compile") 2>conftest.er1
32019 grep -v '^ *+' conftest.er1 >conftest.err
32021 cat conftest.err >&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } && {
32024 test -z "$ac_c_werror_flag" ||
32025 test ! -s conftest.err
32026 } && test -s conftest.$ac_objext; then
32027 ac_cv_struct_tm=time.h
32029 echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32032 ac_cv_struct_tm=sys/time.h
32035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32037 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32038 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32039 if test $ac_cv_struct_tm = sys/time.h; then
32041 cat >>confdefs.h <<\_ACEOF
32042 #define TM_IN_SYS_TIME 1
32047 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32048 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32049 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 cat >conftest.$ac_ext <<_ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h. */
32058 #include <sys/types.h>
32059 #include <$ac_cv_struct_tm>
32065 static struct tm ac_aggr;
32066 if (ac_aggr.tm_zone)
32072 rm -f conftest.$ac_objext
32073 if { (ac_try="$ac_compile"
32074 case "(($ac_try" in
32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076 *) ac_try_echo=$ac_try;;
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079 (eval "$ac_compile") 2>conftest.er1
32081 grep -v '^ *+' conftest.er1 >conftest.err
32083 cat conftest.err >&5
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); } && {
32086 test -z "$ac_c_werror_flag" ||
32087 test ! -s conftest.err
32088 } && test -s conftest.$ac_objext; then
32089 ac_cv_member_struct_tm_tm_zone=yes
32091 echo "$as_me: failed program was:" >&5
32092 sed 's/^/| /' conftest.$ac_ext >&5
32094 cat >conftest.$ac_ext <<_ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h. */
32100 #include <sys/types.h>
32101 #include <$ac_cv_struct_tm>
32107 static struct tm ac_aggr;
32108 if (sizeof ac_aggr.tm_zone)
32114 rm -f conftest.$ac_objext
32115 if { (ac_try="$ac_compile"
32116 case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_compile") 2>conftest.er1
32123 grep -v '^ *+' conftest.er1 >conftest.err
32125 cat conftest.err >&5
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); } && {
32128 test -z "$ac_c_werror_flag" ||
32129 test ! -s conftest.err
32130 } && test -s conftest.$ac_objext; then
32131 ac_cv_member_struct_tm_tm_zone=yes
32133 echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32136 ac_cv_member_struct_tm_tm_zone=no
32139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32145 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32146 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32148 cat >>confdefs.h <<_ACEOF
32149 #define HAVE_STRUCT_TM_TM_ZONE 1
32155 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_TM_ZONE 1
32162 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32163 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32164 if test "${ac_cv_have_decl_tzname+set}" = set; then
32165 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 cat >conftest.$ac_ext <<_ACEOF
32170 cat confdefs.h >>conftest.$ac_ext
32171 cat >>conftest.$ac_ext <<_ACEOF
32172 /* end confdefs.h. */
32186 rm -f conftest.$ac_objext
32187 if { (ac_try="$ac_compile"
32188 case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_compile") 2>conftest.er1
32195 grep -v '^ *+' conftest.er1 >conftest.err
32197 cat conftest.err >&5
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); } && {
32200 test -z "$ac_c_werror_flag" ||
32201 test ! -s conftest.err
32202 } && test -s conftest.$ac_objext; then
32203 ac_cv_have_decl_tzname=yes
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32208 ac_cv_have_decl_tzname=no
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32214 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32215 if test $ac_cv_have_decl_tzname = yes; then
32217 cat >>confdefs.h <<_ACEOF
32218 #define HAVE_DECL_TZNAME 1
32223 cat >>confdefs.h <<_ACEOF
32224 #define HAVE_DECL_TZNAME 0
32231 { echo "$as_me:$LINENO: checking for tzname" >&5
32232 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32233 if test "${ac_cv_var_tzname+set}" = set; then
32234 echo $ECHO_N "(cached) $ECHO_C" >&6
32236 cat >conftest.$ac_ext <<_ACEOF
32239 cat confdefs.h >>conftest.$ac_ext
32240 cat >>conftest.$ac_ext <<_ACEOF
32241 /* end confdefs.h. */
32243 #if !HAVE_DECL_TZNAME
32244 extern char *tzname[];
32250 return tzname[0][0];
32255 rm -f conftest.$ac_objext conftest$ac_exeext
32256 if { (ac_try="$ac_link"
32257 case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_link") 2>conftest.er1
32264 grep -v '^ *+' conftest.er1 >conftest.err
32266 cat conftest.err >&5
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); } && {
32269 test -z "$ac_c_werror_flag" ||
32270 test ! -s conftest.err
32271 } && test -s conftest$ac_exeext &&
32272 $as_test_x conftest$ac_exeext; then
32273 ac_cv_var_tzname=yes
32275 echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32278 ac_cv_var_tzname=no
32281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32282 conftest$ac_exeext conftest.$ac_ext
32284 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32285 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32286 if test $ac_cv_var_tzname = yes; then
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_TZNAME 1
32296 { echo "$as_me:$LINENO: checking for utime.h" >&5
32297 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32298 if test "${ba_cv_header_utime_h+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32309 #include <sys/types.h>
32322 rm -f conftest.$ac_objext
32323 if { (ac_try="$ac_compile"
32324 case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_compile") 2>conftest.er1
32331 grep -v '^ *+' conftest.er1 >conftest.err
32333 cat conftest.err >&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); } && {
32336 test -z "$ac_c_werror_flag" ||
32337 test ! -s conftest.err
32338 } && test -s conftest.$ac_objext; then
32340 ba_cv_header_utime_h=yes
32343 echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32347 ba_cv_header_utime_h=no
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32356 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32357 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32358 test $ba_cv_header_utime_h = yes &&
32359 cat >>confdefs.h <<\_ACEOF
32360 #define HAVE_UTIME_H 1
32364 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32365 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32366 if test "${ba_cv_header_socklen_t+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32370 cat >conftest.$ac_ext <<_ACEOF
32373 cat confdefs.h >>conftest.$ac_ext
32374 cat >>conftest.$ac_ext <<_ACEOF
32375 /* end confdefs.h. */
32377 #include <sys/types.h>
32378 #include <sys/socket.h>
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
32399 grep -v '^ *+' conftest.er1 >conftest.err
32401 cat conftest.err >&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } && {
32404 test -z "$ac_c_werror_flag" ||
32405 test ! -s conftest.err
32406 } && test -s conftest.$ac_objext; then
32408 ba_cv_header_socklen_t=yes
32411 echo "$as_me: failed program was:" >&5
32412 sed 's/^/| /' conftest.$ac_ext >&5
32415 ba_cv_header_socklen_t=no
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32425 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32426 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32427 #define HAVE_SOCKLEN_T 1
32431 { echo "$as_me:$LINENO: checking for bigendian" >&5
32432 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32433 if test "${ba_cv_bigendian+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32437 if test "$cross_compiling" = yes; then
32443 cat >conftest.$ac_ext <<_ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h. */
32450 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32453 rm -f conftest$ac_exeext
32454 if { (ac_try="$ac_link"
32455 case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_link") 2>&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32464 { (case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_try") 2>&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; }; then
32474 ba_cv_bigendian=yes
32477 echo "$as_me: program exited with status $ac_status" >&5
32478 echo "$as_me: failed program was:" >&5
32479 sed 's/^/| /' conftest.$ac_ext >&5
32481 ( exit $ac_status )
32486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32493 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32494 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32495 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32496 #define HAVE_BIGENDIAN 1
32501 ac_cpp='$CXXCPP $CPPFLAGS'
32502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32506 { echo "$as_me:$LINENO: checking for typeof" >&5
32507 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32508 if test "${ba_cv_have_typeof+set}" = set; then
32509 echo $ECHO_N "(cached) $ECHO_C" >&6
32512 if test "$cross_compiling" = yes; then
32514 ba_cv_have_typeof=no
32518 cat >conftest.$ac_ext <<_ACEOF
32521 cat confdefs.h >>conftest.$ac_ext
32522 cat >>conftest.$ac_ext <<_ACEOF
32523 /* end confdefs.h. */
32525 main(){char *a = 0; a = (typeof a)a;}
32528 rm -f conftest$ac_exeext
32529 if { (ac_try="$ac_link"
32530 case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_link") 2>&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32539 { (case "(($ac_try" in
32540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541 *) ac_try_echo=$ac_try;;
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544 (eval "$ac_try") 2>&5
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); }; }; then
32549 ba_cv_have_typeof=yes
32552 echo "$as_me: program exited with status $ac_status" >&5
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ( exit $ac_status )
32558 ba_cv_have_typeof=no
32561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32568 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32569 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32570 test $ba_cv_have_typeof = yes &&
32571 cat >>confdefs.h <<\_ACEOF
32572 #define HAVE_TYPEOF 1
32576 ac_cpp='$CPP $CPPFLAGS'
32577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32582 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32584 if test "${ac_cv_c_const+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32587 cat >conftest.$ac_ext <<_ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h. */
32597 /* FIXME: Include the comments suggested by Paul. */
32598 #ifndef __cplusplus
32599 /* Ultrix mips cc rejects this. */
32600 typedef int charset[2];
32602 /* SunOS 4.1.1 cc rejects this. */
32603 char const *const *pcpcc;
32605 /* NEC SVR4.0.2 mips cc rejects this. */
32606 struct point {int x, y;};
32607 static struct point const zero = {0,0};
32608 /* AIX XL C 1.02.0.0 rejects this.
32609 It does not let you subtract one const X* pointer from another in
32610 an arm of an if-expression whose if-part is not a constant
32612 const char *g = "string";
32613 pcpcc = &g + (g ? g-g : 0);
32614 /* HPUX 7.0 cc rejects these. */
32616 ppc = (char**) pcpcc;
32617 pcpcc = (char const *const *) ppc;
32618 { /* SCO 3.2v4 cc rejects this. */
32620 char const *s = 0 ? (char *) 0 : (char const *) 0;
32625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32626 int x[] = {25, 17};
32627 const int *foo = &x[0];
32630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32631 typedef const int *iptr;
32635 { /* AIX XL C 1.02.0.0 rejects this saying
32636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32637 struct s { int j; const int *ap[3]; };
32638 struct s *b; b->j = 5;
32640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32641 const int foo = 10;
32642 if (!foo) return 0;
32644 return !cs[0] && !zero.x;
32651 rm -f conftest.$ac_objext
32652 if { (ac_try="$ac_compile"
32653 case "(($ac_try" in
32654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655 *) ac_try_echo=$ac_try;;
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658 (eval "$ac_compile") 2>conftest.er1
32660 grep -v '^ *+' conftest.er1 >conftest.err
32662 cat conftest.err >&5
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } && {
32665 test -z "$ac_c_werror_flag" ||
32666 test ! -s conftest.err
32667 } && test -s conftest.$ac_objext; then
32670 echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32678 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32679 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32680 if test $ac_cv_c_const = no; then
32682 cat >>confdefs.h <<\_ACEOF
32689 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32690 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32692 # The order of these tests is important.
32693 cat >conftest.$ac_ext <<_ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h. */
32700 #include <sys/statvfs.h>
32701 #include <sys/fstyp.h>
32704 if { (ac_try="$ac_cpp conftest.$ac_ext"
32705 case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32712 grep -v '^ *+' conftest.er1 >conftest.err
32714 cat conftest.err >&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } >/dev/null && {
32717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32718 test ! -s conftest.err
32720 cat >>confdefs.h <<\_ACEOF
32721 #define FSTYPE_STATVFS 1
32726 echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32732 rm -f conftest.err conftest.$ac_ext
32733 if test $fstype = no; then
32734 cat >conftest.$ac_ext <<_ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h. */
32741 #include <sys/statfs.h>
32742 #include <sys/fstyp.h>
32745 if { (ac_try="$ac_cpp conftest.$ac_ext"
32746 case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32753 grep -v '^ *+' conftest.er1 >conftest.err
32755 cat conftest.err >&5
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); } >/dev/null && {
32758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32759 test ! -s conftest.err
32761 cat >>confdefs.h <<\_ACEOF
32762 #define FSTYPE_USG_STATFS 1
32767 echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32773 rm -f conftest.err conftest.$ac_ext
32775 if test $fstype = no; then
32776 cat >conftest.$ac_ext <<_ACEOF
32779 cat confdefs.h >>conftest.$ac_ext
32780 cat >>conftest.$ac_ext <<_ACEOF
32781 /* end confdefs.h. */
32783 #include <sys/statfs.h>
32784 #include <sys/vmount.h>
32787 if { (ac_try="$ac_cpp conftest.$ac_ext"
32788 case "(($ac_try" in
32789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790 *) ac_try_echo=$ac_try;;
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32795 grep -v '^ *+' conftest.er1 >conftest.err
32797 cat conftest.err >&5
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); } >/dev/null && {
32800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32801 test ! -s conftest.err
32803 cat >>confdefs.h <<\_ACEOF
32804 #define FSTYPE_AIX_STATFS 1
32809 echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32815 rm -f conftest.err conftest.$ac_ext
32817 if test $fstype = no; then
32818 cat >conftest.$ac_ext <<_ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h. */
32825 #include <mntent.h>
32828 if { (ac_try="$ac_cpp conftest.$ac_ext"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32836 grep -v '^ *+' conftest.er1 >conftest.err
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } >/dev/null && {
32841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32842 test ! -s conftest.err
32844 cat >>confdefs.h <<\_ACEOF
32845 #define FSTYPE_MNTENT 1
32850 echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32856 rm -f conftest.err conftest.$ac_ext
32858 if test $fstype = no; then
32859 cat >conftest.$ac_ext <<_ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <sys/mount.h>
32868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32869 $EGREP "f_type;" >/dev/null 2>&1; then
32870 cat >>confdefs.h <<\_ACEOF
32871 #define FSTYPE_STATFS 1
32878 if test $fstype = no; then
32879 cat >conftest.$ac_ext <<_ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h. */
32886 #include <sys/mount.h>
32887 #include <sys/fs_types.h>
32890 if { (ac_try="$ac_cpp conftest.$ac_ext"
32891 case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } >/dev/null && {
32903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32904 test ! -s conftest.err
32906 cat >>confdefs.h <<\_ACEOF
32907 #define FSTYPE_GETMNT 1
32912 echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32918 rm -f conftest.err conftest.$ac_ext
32920 { echo "$as_me:$LINENO: result: $fstype" >&5
32921 echo "${ECHO_T}$fstype" >&6; }
32923 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32924 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32925 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32926 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32929 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32930 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32932 # Is the header compilable?
32933 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32934 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32935 cat >conftest.$ac_ext <<_ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h. */
32941 $ac_includes_default
32942 #include <sys/statvfs.h>
32944 rm -f conftest.$ac_objext
32945 if { (ac_try="$ac_compile"
32946 case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_compile") 2>conftest.er1
32953 grep -v '^ *+' conftest.er1 >conftest.err
32955 cat conftest.err >&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); } && {
32958 test -z "$ac_c_werror_flag" ||
32959 test ! -s conftest.err
32960 } && test -s conftest.$ac_objext; then
32961 ac_header_compiler=yes
32963 echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32966 ac_header_compiler=no
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32971 echo "${ECHO_T}$ac_header_compiler" >&6; }
32973 # Is the header present?
32974 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32975 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32976 cat >conftest.$ac_ext <<_ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h. */
32982 #include <sys/statvfs.h>
32984 if { (ac_try="$ac_cpp conftest.$ac_ext"
32985 case "(($ac_try" in
32986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987 *) ac_try_echo=$ac_try;;
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32992 grep -v '^ *+' conftest.er1 >conftest.err
32994 cat conftest.err >&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); } >/dev/null && {
32997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32998 test ! -s conftest.err
33000 ac_header_preproc=yes
33002 echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33005 ac_header_preproc=no
33008 rm -f conftest.err conftest.$ac_ext
33009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33010 echo "${ECHO_T}$ac_header_preproc" >&6; }
33012 # So? What about this header?
33013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33015 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33016 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33017 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33018 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33019 ac_header_preproc=yes
33022 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33023 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33024 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33025 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33026 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33027 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33028 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33029 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33030 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33031 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33032 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33033 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33037 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33038 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33039 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33042 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33044 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33045 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33048 if test $ac_cv_header_sys_statvfs_h = yes; then
33050 cat >>confdefs.h <<\_ACEOF
33051 #define HAVE_SYS_STATVFS_H 1
33058 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33059 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33060 if test "${ac_cv_type_signal+set}" = set; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33063 cat >conftest.$ac_ext <<_ACEOF
33066 cat confdefs.h >>conftest.$ac_ext
33067 cat >>conftest.$ac_ext <<_ACEOF
33068 /* end confdefs.h. */
33069 #include <sys/types.h>
33070 #include <signal.h>
33075 return *(signal (0, 0)) (0) == 1;
33080 rm -f conftest.$ac_objext
33081 if { (ac_try="$ac_compile"
33082 case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_compile") 2>conftest.er1
33089 grep -v '^ *+' conftest.er1 >conftest.err
33091 cat conftest.err >&5
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); } && {
33094 test -z "$ac_c_werror_flag" ||
33095 test ! -s conftest.err
33096 } && test -s conftest.$ac_objext; then
33097 ac_cv_type_signal=int
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 ac_cv_type_signal=void
33105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33107 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33108 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33110 cat >>confdefs.h <<_ACEOF
33111 #define RETSIGTYPE $ac_cv_type_signal
33116 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33117 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33118 if test "${bash_cv_signal_vintage+set}" = set; then
33119 echo $ECHO_N "(cached) $ECHO_C" >&6
33122 cat >conftest.$ac_ext <<_ACEOF
33125 cat confdefs.h >>conftest.$ac_ext
33126 cat >>conftest.$ac_ext <<_ACEOF
33127 /* end confdefs.h. */
33128 #include <signal.h>
33134 struct sigaction sa;
33135 sigemptyset(&ss); sigsuspend(&ss);
33136 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33137 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33143 rm -f conftest.$ac_objext conftest$ac_exeext
33144 if { (ac_try="$ac_link"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_link") 2>conftest.er1
33152 grep -v '^ *+' conftest.er1 >conftest.err
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } && {
33157 test -z "$ac_c_werror_flag" ||
33158 test ! -s conftest.err
33159 } && test -s conftest$ac_exeext &&
33160 $as_test_x conftest$ac_exeext; then
33161 bash_cv_signal_vintage="posix"
33163 echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33167 cat >conftest.$ac_ext <<_ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h. */
33173 #include <signal.h>
33178 int mask = sigmask(SIGINT);
33179 sigsetmask(mask); sigblock(mask); sigpause(mask);
33185 rm -f conftest.$ac_objext conftest$ac_exeext
33186 if { (ac_try="$ac_link"
33187 case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_link") 2>conftest.er1
33194 grep -v '^ *+' conftest.er1 >conftest.err
33196 cat conftest.err >&5
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } && {
33199 test -z "$ac_c_werror_flag" ||
33200 test ! -s conftest.err
33201 } && test -s conftest$ac_exeext &&
33202 $as_test_x conftest$ac_exeext; then
33203 bash_cv_signal_vintage="4.2bsd"
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33209 cat >conftest.$ac_ext <<_ACEOF
33212 cat confdefs.h >>conftest.$ac_ext
33213 cat >>conftest.$ac_ext <<_ACEOF
33214 /* end confdefs.h. */
33216 #include <signal.h>
33217 RETSIGTYPE foo() { }
33222 int mask = sigmask(SIGINT);
33223 sigset(SIGINT, foo); sigrelse(SIGINT);
33224 sighold(SIGINT); sigpause(SIGINT);
33230 rm -f conftest.$ac_objext conftest$ac_exeext
33231 if { (ac_try="$ac_link"
33232 case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_link") 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } && {
33244 test -z "$ac_c_werror_flag" ||
33245 test ! -s conftest.err
33246 } && test -s conftest$ac_exeext &&
33247 $as_test_x conftest$ac_exeext; then
33248 bash_cv_signal_vintage="svr3"
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33253 bash_cv_signal_vintage="v7"
33257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33258 conftest$ac_exeext conftest.$ac_ext
33262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33263 conftest$ac_exeext conftest.$ac_ext
33267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33268 conftest$ac_exeext conftest.$ac_ext
33272 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33273 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33274 if test "$bash_cv_signal_vintage" = "posix"; then
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_POSIX_SIGNALS 1
33279 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33280 cat >>confdefs.h <<\_ACEOF
33281 #define HAVE_BSD_SIGNALS 1
33284 elif test "$bash_cv_signal_vintage" = "svr3"; then
33285 cat >>confdefs.h <<\_ACEOF
33286 #define HAVE_USG_SIGHOLD 1
33291 { echo "$as_me:$LINENO: checking for mode_t" >&5
33292 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33293 if test "${ac_cv_type_mode_t+set}" = set; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 cat >conftest.$ac_ext <<_ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h. */
33302 $ac_includes_default
33303 typedef mode_t ac__type_new_;
33307 if ((ac__type_new_ *) 0)
33309 if (sizeof (ac__type_new_))
33315 rm -f conftest.$ac_objext
33316 if { (ac_try="$ac_compile"
33317 case "(($ac_try" in
33318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319 *) ac_try_echo=$ac_try;;
33321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33322 (eval "$ac_compile") 2>conftest.er1
33324 grep -v '^ *+' conftest.er1 >conftest.err
33326 cat conftest.err >&5
33327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328 (exit $ac_status); } && {
33329 test -z "$ac_c_werror_flag" ||
33330 test ! -s conftest.err
33331 } && test -s conftest.$ac_objext; then
33332 ac_cv_type_mode_t=yes
33334 echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33337 ac_cv_type_mode_t=no
33340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33342 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33343 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33344 if test $ac_cv_type_mode_t = yes; then
33348 cat >>confdefs.h <<_ACEOF
33354 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33355 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33356 if test "${ac_cv_type_uid_t+set}" = set; then
33357 echo $ECHO_N "(cached) $ECHO_C" >&6
33359 cat >conftest.$ac_ext <<_ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33365 #include <sys/types.h>
33368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33369 $EGREP "uid_t" >/dev/null 2>&1; then
33370 ac_cv_type_uid_t=yes
33372 ac_cv_type_uid_t=no
33377 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33378 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33379 if test $ac_cv_type_uid_t = no; then
33381 cat >>confdefs.h <<\_ACEOF
33386 cat >>confdefs.h <<\_ACEOF
33392 { echo "$as_me:$LINENO: checking for size_t" >&5
33393 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33394 if test "${ac_cv_type_size_t+set}" = set; then
33395 echo $ECHO_N "(cached) $ECHO_C" >&6
33397 cat >conftest.$ac_ext <<_ACEOF
33400 cat confdefs.h >>conftest.$ac_ext
33401 cat >>conftest.$ac_ext <<_ACEOF
33402 /* end confdefs.h. */
33403 $ac_includes_default
33404 typedef size_t ac__type_new_;
33408 if ((ac__type_new_ *) 0)
33410 if (sizeof (ac__type_new_))
33416 rm -f conftest.$ac_objext
33417 if { (ac_try="$ac_compile"
33418 case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_compile") 2>conftest.er1
33425 grep -v '^ *+' conftest.er1 >conftest.err
33427 cat conftest.err >&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); } && {
33430 test -z "$ac_c_werror_flag" ||
33431 test ! -s conftest.err
33432 } && test -s conftest.$ac_objext; then
33433 ac_cv_type_size_t=yes
33435 echo "$as_me: failed program was:" >&5
33436 sed 's/^/| /' conftest.$ac_ext >&5
33438 ac_cv_type_size_t=no
33441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33443 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33444 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33445 if test $ac_cv_type_size_t = yes; then
33449 cat >>confdefs.h <<_ACEOF
33450 #define size_t unsigned int
33455 { echo "$as_me:$LINENO: checking for pid_t" >&5
33456 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33457 if test "${ac_cv_type_pid_t+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33460 cat >conftest.$ac_ext <<_ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h. */
33466 $ac_includes_default
33467 typedef pid_t ac__type_new_;
33471 if ((ac__type_new_ *) 0)
33473 if (sizeof (ac__type_new_))
33479 rm -f conftest.$ac_objext
33480 if { (ac_try="$ac_compile"
33481 case "(($ac_try" in
33482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33483 *) ac_try_echo=$ac_try;;
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486 (eval "$ac_compile") 2>conftest.er1
33488 grep -v '^ *+' conftest.er1 >conftest.err
33490 cat conftest.err >&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); } && {
33493 test -z "$ac_c_werror_flag" ||
33494 test ! -s conftest.err
33495 } && test -s conftest.$ac_objext; then
33496 ac_cv_type_pid_t=yes
33498 echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33501 ac_cv_type_pid_t=no
33504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33506 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33507 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33508 if test $ac_cv_type_pid_t = yes; then
33512 cat >>confdefs.h <<_ACEOF
33518 { echo "$as_me:$LINENO: checking for off_t" >&5
33519 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33520 if test "${ac_cv_type_off_t+set}" = set; then
33521 echo $ECHO_N "(cached) $ECHO_C" >&6
33523 cat >conftest.$ac_ext <<_ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h. */
33529 $ac_includes_default
33530 typedef off_t ac__type_new_;
33534 if ((ac__type_new_ *) 0)
33536 if (sizeof (ac__type_new_))
33542 rm -f conftest.$ac_objext
33543 if { (ac_try="$ac_compile"
33544 case "(($ac_try" in
33545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546 *) ac_try_echo=$ac_try;;
33548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549 (eval "$ac_compile") 2>conftest.er1
33551 grep -v '^ *+' conftest.er1 >conftest.err
33553 cat conftest.err >&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } && {
33556 test -z "$ac_c_werror_flag" ||
33557 test ! -s conftest.err
33558 } && test -s conftest.$ac_objext; then
33559 ac_cv_type_off_t=yes
33561 echo "$as_me: failed program was:" >&5
33562 sed 's/^/| /' conftest.$ac_ext >&5
33564 ac_cv_type_off_t=no
33567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33569 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33570 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33571 if test $ac_cv_type_off_t = yes; then
33575 cat >>confdefs.h <<_ACEOF
33576 #define off_t long int
33582 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33583 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33584 if test "${ac_cv_type_intptr_t+set}" = set; then
33585 echo $ECHO_N "(cached) $ECHO_C" >&6
33587 cat >conftest.$ac_ext <<_ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h. */
33593 $ac_includes_default
33594 typedef intptr_t ac__type_new_;
33598 if ((ac__type_new_ *) 0)
33600 if (sizeof (ac__type_new_))
33606 rm -f conftest.$ac_objext
33607 if { (ac_try="$ac_compile"
33608 case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_compile") 2>conftest.er1
33615 grep -v '^ *+' conftest.er1 >conftest.err
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } && {
33620 test -z "$ac_c_werror_flag" ||
33621 test ! -s conftest.err
33622 } && test -s conftest.$ac_objext; then
33623 ac_cv_type_intptr_t=yes
33625 echo "$as_me: failed program was:" >&5
33626 sed 's/^/| /' conftest.$ac_ext >&5
33628 ac_cv_type_intptr_t=no
33631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33633 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33634 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33635 if test $ac_cv_type_intptr_t = yes; then
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_INTPTR_T 1
33642 for ac_type in 'int' 'long int' 'long long int'; do
33643 cat >conftest.$ac_ext <<_ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h. */
33649 $ac_includes_default
33653 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33660 rm -f conftest.$ac_objext
33661 if { (ac_try="$ac_compile"
33662 case "(($ac_try" in
33663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664 *) ac_try_echo=$ac_try;;
33666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667 (eval "$ac_compile") 2>conftest.er1
33669 grep -v '^ *+' conftest.er1 >conftest.err
33671 cat conftest.err >&5
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); } && {
33674 test -z "$ac_c_werror_flag" ||
33675 test ! -s conftest.err
33676 } && test -s conftest.$ac_objext; then
33678 cat >>confdefs.h <<_ACEOF
33679 #define intptr_t $ac_type
33684 echo "$as_me: failed program was:" >&5
33685 sed 's/^/| /' conftest.$ac_ext >&5
33690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691 test -z "$ac_type" && break
33697 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33698 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33699 if test "${ac_cv_type_uintptr_t+set}" = set; then
33700 echo $ECHO_N "(cached) $ECHO_C" >&6
33702 cat >conftest.$ac_ext <<_ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h. */
33708 $ac_includes_default
33709 typedef uintptr_t ac__type_new_;
33713 if ((ac__type_new_ *) 0)
33715 if (sizeof (ac__type_new_))
33721 rm -f conftest.$ac_objext
33722 if { (ac_try="$ac_compile"
33723 case "(($ac_try" in
33724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725 *) ac_try_echo=$ac_try;;
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728 (eval "$ac_compile") 2>conftest.er1
33730 grep -v '^ *+' conftest.er1 >conftest.err
33732 cat conftest.err >&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); } && {
33735 test -z "$ac_c_werror_flag" ||
33736 test ! -s conftest.err
33737 } && test -s conftest.$ac_objext; then
33738 ac_cv_type_uintptr_t=yes
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_cv_type_uintptr_t=no
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33748 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33749 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33750 if test $ac_cv_type_uintptr_t = yes; then
33752 cat >>confdefs.h <<\_ACEOF
33753 #define HAVE_UINTPTR_T 1
33757 for ac_type in 'unsigned int' 'unsigned long int' \
33758 'unsigned long long int'; do
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33765 $ac_includes_default
33769 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33776 rm -f conftest.$ac_objext
33777 if { (ac_try="$ac_compile"
33778 case "(($ac_try" in
33779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780 *) ac_try_echo=$ac_try;;
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783 (eval "$ac_compile") 2>conftest.er1
33785 grep -v '^ *+' conftest.er1 >conftest.err
33787 cat conftest.err >&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } && {
33790 test -z "$ac_c_werror_flag" ||
33791 test ! -s conftest.err
33792 } && test -s conftest.$ac_objext; then
33794 cat >>confdefs.h <<_ACEOF
33795 #define uintptr_t $ac_type
33800 echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33807 test -z "$ac_type" && break
33812 { echo "$as_me:$LINENO: checking for ino_t" >&5
33813 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33814 if test "${ac_cv_type_ino_t+set}" = set; then
33815 echo $ECHO_N "(cached) $ECHO_C" >&6
33817 cat >conftest.$ac_ext <<_ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h. */
33823 $ac_includes_default
33824 typedef ino_t ac__type_new_;
33828 if ((ac__type_new_ *) 0)
33830 if (sizeof (ac__type_new_))
33836 rm -f conftest.$ac_objext
33837 if { (ac_try="$ac_compile"
33838 case "(($ac_try" in
33839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840 *) ac_try_echo=$ac_try;;
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843 (eval "$ac_compile") 2>conftest.er1
33845 grep -v '^ *+' conftest.er1 >conftest.err
33847 cat conftest.err >&5
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); } && {
33850 test -z "$ac_c_werror_flag" ||
33851 test ! -s conftest.err
33852 } && test -s conftest.$ac_objext; then
33853 ac_cv_type_ino_t=yes
33855 echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33858 ac_cv_type_ino_t=no
33861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33863 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33864 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33865 if test $ac_cv_type_ino_t = yes; then
33869 cat >>confdefs.h <<_ACEOF
33870 #define ino_t unsigned long
33875 { echo "$as_me:$LINENO: checking for dev_t" >&5
33876 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33877 if test "${ac_cv_type_dev_t+set}" = set; then
33878 echo $ECHO_N "(cached) $ECHO_C" >&6
33880 cat >conftest.$ac_ext <<_ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h. */
33886 $ac_includes_default
33887 typedef dev_t ac__type_new_;
33891 if ((ac__type_new_ *) 0)
33893 if (sizeof (ac__type_new_))
33899 rm -f conftest.$ac_objext
33900 if { (ac_try="$ac_compile"
33901 case "(($ac_try" in
33902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33903 *) ac_try_echo=$ac_try;;
33905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33906 (eval "$ac_compile") 2>conftest.er1
33908 grep -v '^ *+' conftest.er1 >conftest.err
33910 cat conftest.err >&5
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); } && {
33913 test -z "$ac_c_werror_flag" ||
33914 test ! -s conftest.err
33915 } && test -s conftest.$ac_objext; then
33916 ac_cv_type_dev_t=yes
33918 echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33921 ac_cv_type_dev_t=no
33924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33926 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33927 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33928 if test $ac_cv_type_dev_t = yes; then
33932 cat >>confdefs.h <<_ACEOF
33933 #define dev_t unsigned long
33938 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33939 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33940 if test "${ac_cv_type_daddr_t+set}" = set; then
33941 echo $ECHO_N "(cached) $ECHO_C" >&6
33943 cat >conftest.$ac_ext <<_ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h. */
33949 $ac_includes_default
33950 typedef daddr_t ac__type_new_;
33954 if ((ac__type_new_ *) 0)
33956 if (sizeof (ac__type_new_))
33962 rm -f conftest.$ac_objext
33963 if { (ac_try="$ac_compile"
33964 case "(($ac_try" in
33965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33966 *) ac_try_echo=$ac_try;;
33968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33969 (eval "$ac_compile") 2>conftest.er1
33971 grep -v '^ *+' conftest.er1 >conftest.err
33973 cat conftest.err >&5
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); } && {
33976 test -z "$ac_c_werror_flag" ||
33977 test ! -s conftest.err
33978 } && test -s conftest.$ac_objext; then
33979 ac_cv_type_daddr_t=yes
33981 echo "$as_me: failed program was:" >&5
33982 sed 's/^/| /' conftest.$ac_ext >&5
33984 ac_cv_type_daddr_t=no
33987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33989 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33990 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33991 if test $ac_cv_type_daddr_t = yes; then
33995 cat >>confdefs.h <<_ACEOF
33996 #define daddr_t long
34001 { echo "$as_me:$LINENO: checking for major_t" >&5
34002 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34003 if test "${ac_cv_type_major_t+set}" = set; then
34004 echo $ECHO_N "(cached) $ECHO_C" >&6
34006 cat >conftest.$ac_ext <<_ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h. */
34012 $ac_includes_default
34013 typedef major_t ac__type_new_;
34017 if ((ac__type_new_ *) 0)
34019 if (sizeof (ac__type_new_))
34025 rm -f conftest.$ac_objext
34026 if { (ac_try="$ac_compile"
34027 case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34032 (eval "$ac_compile") 2>conftest.er1
34034 grep -v '^ *+' conftest.er1 >conftest.err
34036 cat conftest.err >&5
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); } && {
34039 test -z "$ac_c_werror_flag" ||
34040 test ! -s conftest.err
34041 } && test -s conftest.$ac_objext; then
34042 ac_cv_type_major_t=yes
34044 echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34047 ac_cv_type_major_t=no
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34052 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34053 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34054 if test $ac_cv_type_major_t = yes; then
34058 cat >>confdefs.h <<_ACEOF
34059 #define major_t int
34064 { echo "$as_me:$LINENO: checking for minor_t" >&5
34065 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34066 if test "${ac_cv_type_minor_t+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34069 cat >conftest.$ac_ext <<_ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h. */
34075 $ac_includes_default
34076 typedef minor_t ac__type_new_;
34080 if ((ac__type_new_ *) 0)
34082 if (sizeof (ac__type_new_))
34088 rm -f conftest.$ac_objext
34089 if { (ac_try="$ac_compile"
34090 case "(($ac_try" in
34091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092 *) ac_try_echo=$ac_try;;
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_compile") 2>conftest.er1
34097 grep -v '^ *+' conftest.er1 >conftest.err
34099 cat conftest.err >&5
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } && {
34102 test -z "$ac_c_werror_flag" ||
34103 test ! -s conftest.err
34104 } && test -s conftest.$ac_objext; then
34105 ac_cv_type_minor_t=yes
34107 echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34110 ac_cv_type_minor_t=no
34113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34115 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34116 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34117 if test $ac_cv_type_minor_t = yes; then
34121 cat >>confdefs.h <<_ACEOF
34122 #define minor_t int
34127 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34128 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34129 if test "${ac_cv_type_ssize_t+set}" = set; then
34130 echo $ECHO_N "(cached) $ECHO_C" >&6
34132 cat >conftest.$ac_ext <<_ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h. */
34138 $ac_includes_default
34139 typedef ssize_t ac__type_new_;
34143 if ((ac__type_new_ *) 0)
34145 if (sizeof (ac__type_new_))
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155 *) ac_try_echo=$ac_try;;
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158 (eval "$ac_compile") 2>conftest.er1
34160 grep -v '^ *+' conftest.er1 >conftest.err
34162 cat conftest.err >&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); } && {
34165 test -z "$ac_c_werror_flag" ||
34166 test ! -s conftest.err
34167 } && test -s conftest.$ac_objext; then
34168 ac_cv_type_ssize_t=yes
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34173 ac_cv_type_ssize_t=no
34176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34179 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34180 if test $ac_cv_type_ssize_t = yes; then
34184 cat >>confdefs.h <<_ACEOF
34185 #define ssize_t int
34190 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34191 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34192 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34195 cat >conftest.$ac_ext <<_ACEOF
34198 cat confdefs.h >>conftest.$ac_ext
34199 cat >>conftest.$ac_ext <<_ACEOF
34200 /* end confdefs.h. */
34201 $ac_includes_default
34205 static struct stat ac_aggr;
34206 if (ac_aggr.st_blocks)
34212 rm -f conftest.$ac_objext
34213 if { (ac_try="$ac_compile"
34214 case "(($ac_try" in
34215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34216 *) ac_try_echo=$ac_try;;
34218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34219 (eval "$ac_compile") 2>conftest.er1
34221 grep -v '^ *+' conftest.er1 >conftest.err
34223 cat conftest.err >&5
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); } && {
34226 test -z "$ac_c_werror_flag" ||
34227 test ! -s conftest.err
34228 } && test -s conftest.$ac_objext; then
34229 ac_cv_member_struct_stat_st_blocks=yes
34231 echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34234 cat >conftest.$ac_ext <<_ACEOF
34237 cat confdefs.h >>conftest.$ac_ext
34238 cat >>conftest.$ac_ext <<_ACEOF
34239 /* end confdefs.h. */
34240 $ac_includes_default
34244 static struct stat ac_aggr;
34245 if (sizeof ac_aggr.st_blocks)
34251 rm -f conftest.$ac_objext
34252 if { (ac_try="$ac_compile"
34253 case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_compile") 2>conftest.er1
34260 grep -v '^ *+' conftest.er1 >conftest.err
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } && {
34265 test -z "$ac_c_werror_flag" ||
34266 test ! -s conftest.err
34267 } && test -s conftest.$ac_objext; then
34268 ac_cv_member_struct_stat_st_blocks=yes
34270 echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34273 ac_cv_member_struct_stat_st_blocks=no
34276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34281 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34283 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34285 cat >>confdefs.h <<_ACEOF
34286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34290 cat >>confdefs.h <<\_ACEOF
34291 #define HAVE_ST_BLOCKS 1
34295 case " $LIBOBJS " in
34296 *" fileblocks.$ac_objext "* ) ;;
34297 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34304 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34305 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34306 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34307 echo $ECHO_N "(cached) $ECHO_C" >&6
34309 cat >conftest.$ac_ext <<_ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h. */
34315 $ac_includes_default
34319 static struct stat ac_aggr;
34320 if (ac_aggr.st_rdev)
34326 rm -f conftest.$ac_objext
34327 if { (ac_try="$ac_compile"
34328 case "(($ac_try" in
34329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34330 *) ac_try_echo=$ac_try;;
34332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34333 (eval "$ac_compile") 2>conftest.er1
34335 grep -v '^ *+' conftest.er1 >conftest.err
34337 cat conftest.err >&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); } && {
34340 test -z "$ac_c_werror_flag" ||
34341 test ! -s conftest.err
34342 } && test -s conftest.$ac_objext; then
34343 ac_cv_member_struct_stat_st_rdev=yes
34345 echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34348 cat >conftest.$ac_ext <<_ACEOF
34351 cat confdefs.h >>conftest.$ac_ext
34352 cat >>conftest.$ac_ext <<_ACEOF
34353 /* end confdefs.h. */
34354 $ac_includes_default
34358 static struct stat ac_aggr;
34359 if (sizeof ac_aggr.st_rdev)
34365 rm -f conftest.$ac_objext
34366 if { (ac_try="$ac_compile"
34367 case "(($ac_try" in
34368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34369 *) ac_try_echo=$ac_try;;
34371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34372 (eval "$ac_compile") 2>conftest.er1
34374 grep -v '^ *+' conftest.er1 >conftest.err
34376 cat conftest.err >&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } && {
34379 test -z "$ac_c_werror_flag" ||
34380 test ! -s conftest.err
34381 } && test -s conftest.$ac_objext; then
34382 ac_cv_member_struct_stat_st_rdev=yes
34384 echo "$as_me: failed program was:" >&5
34385 sed 's/^/| /' conftest.$ac_ext >&5
34387 ac_cv_member_struct_stat_st_rdev=no
34390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34396 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34397 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34399 cat >>confdefs.h <<_ACEOF
34400 #define HAVE_STRUCT_STAT_ST_RDEV 1
34404 cat >>confdefs.h <<\_ACEOF
34405 #define HAVE_ST_RDEV 1
34411 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34413 if test "${ac_cv_struct_tm+set}" = set; then
34414 echo $ECHO_N "(cached) $ECHO_C" >&6
34416 cat >conftest.$ac_ext <<_ACEOF
34419 cat confdefs.h >>conftest.$ac_ext
34420 cat >>conftest.$ac_ext <<_ACEOF
34421 /* end confdefs.h. */
34422 #include <sys/types.h>
34429 int *p = &tm.tm_sec;
34435 rm -f conftest.$ac_objext
34436 if { (ac_try="$ac_compile"
34437 case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_compile") 2>conftest.er1
34444 grep -v '^ *+' conftest.er1 >conftest.err
34446 cat conftest.err >&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); } && {
34449 test -z "$ac_c_werror_flag" ||
34450 test ! -s conftest.err
34451 } && test -s conftest.$ac_objext; then
34452 ac_cv_struct_tm=time.h
34454 echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34457 ac_cv_struct_tm=sys/time.h
34460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34462 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34463 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34464 if test $ac_cv_struct_tm = sys/time.h; then
34466 cat >>confdefs.h <<\_ACEOF
34467 #define TM_IN_SYS_TIME 1
34472 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34473 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34474 if test "${ac_cv_c_const+set}" = set; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34477 cat >conftest.$ac_ext <<_ACEOF
34480 cat confdefs.h >>conftest.$ac_ext
34481 cat >>conftest.$ac_ext <<_ACEOF
34482 /* end confdefs.h. */
34487 /* FIXME: Include the comments suggested by Paul. */
34488 #ifndef __cplusplus
34489 /* Ultrix mips cc rejects this. */
34490 typedef int charset[2];
34492 /* SunOS 4.1.1 cc rejects this. */
34493 char const *const *pcpcc;
34495 /* NEC SVR4.0.2 mips cc rejects this. */
34496 struct point {int x, y;};
34497 static struct point const zero = {0,0};
34498 /* AIX XL C 1.02.0.0 rejects this.
34499 It does not let you subtract one const X* pointer from another in
34500 an arm of an if-expression whose if-part is not a constant
34502 const char *g = "string";
34503 pcpcc = &g + (g ? g-g : 0);
34504 /* HPUX 7.0 cc rejects these. */
34506 ppc = (char**) pcpcc;
34507 pcpcc = (char const *const *) ppc;
34508 { /* SCO 3.2v4 cc rejects this. */
34510 char const *s = 0 ? (char *) 0 : (char const *) 0;
34515 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34516 int x[] = {25, 17};
34517 const int *foo = &x[0];
34520 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34521 typedef const int *iptr;
34525 { /* AIX XL C 1.02.0.0 rejects this saying
34526 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34527 struct s { int j; const int *ap[3]; };
34528 struct s *b; b->j = 5;
34530 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34531 const int foo = 10;
34532 if (!foo) return 0;
34534 return !cs[0] && !zero.x;
34541 rm -f conftest.$ac_objext
34542 if { (ac_try="$ac_compile"
34543 case "(($ac_try" in
34544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545 *) ac_try_echo=$ac_try;;
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548 (eval "$ac_compile") 2>conftest.er1
34550 grep -v '^ *+' conftest.er1 >conftest.err
34552 cat conftest.err >&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } && {
34555 test -z "$ac_c_werror_flag" ||
34556 test ! -s conftest.err
34557 } && test -s conftest.$ac_objext; then
34560 echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34568 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34569 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34570 if test $ac_cv_c_const = no; then
34572 cat >>confdefs.h <<\_ACEOF
34579 { echo "$as_me:$LINENO: checking for char" >&5
34580 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34581 if test "${ac_cv_type_char+set}" = set; then
34582 echo $ECHO_N "(cached) $ECHO_C" >&6
34584 cat >conftest.$ac_ext <<_ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h. */
34590 $ac_includes_default
34591 typedef char ac__type_new_;
34595 if ((ac__type_new_ *) 0)
34597 if (sizeof (ac__type_new_))
34603 rm -f conftest.$ac_objext
34604 if { (ac_try="$ac_compile"
34605 case "(($ac_try" in
34606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34607 *) ac_try_echo=$ac_try;;
34609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34610 (eval "$ac_compile") 2>conftest.er1
34612 grep -v '^ *+' conftest.er1 >conftest.err
34614 cat conftest.err >&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } && {
34617 test -z "$ac_c_werror_flag" ||
34618 test ! -s conftest.err
34619 } && test -s conftest.$ac_objext; then
34620 ac_cv_type_char=yes
34622 echo "$as_me: failed program was:" >&5
34623 sed 's/^/| /' conftest.$ac_ext >&5
34628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34630 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34631 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34633 # The cast to long int works around a bug in the HP C Compiler
34634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34636 # This bug is HP SR number 8606223364.
34637 { echo "$as_me:$LINENO: checking size of char" >&5
34638 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34639 if test "${ac_cv_sizeof_char+set}" = set; then
34640 echo $ECHO_N "(cached) $ECHO_C" >&6
34642 if test "$cross_compiling" = yes; then
34643 # Depending upon the size, compute the lo and hi bounds.
34644 cat >conftest.$ac_ext <<_ACEOF
34647 cat confdefs.h >>conftest.$ac_ext
34648 cat >>conftest.$ac_ext <<_ACEOF
34649 /* end confdefs.h. */
34650 $ac_includes_default
34651 typedef char ac__type_sizeof_;
34655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34662 rm -f conftest.$ac_objext
34663 if { (ac_try="$ac_compile"
34664 case "(($ac_try" in
34665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34666 *) ac_try_echo=$ac_try;;
34668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34669 (eval "$ac_compile") 2>conftest.er1
34671 grep -v '^ *+' conftest.er1 >conftest.err
34673 cat conftest.err >&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } && {
34676 test -z "$ac_c_werror_flag" ||
34677 test ! -s conftest.err
34678 } && test -s conftest.$ac_objext; then
34681 cat >conftest.$ac_ext <<_ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h. */
34687 $ac_includes_default
34688 typedef char ac__type_sizeof_;
34692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34699 rm -f conftest.$ac_objext
34700 if { (ac_try="$ac_compile"
34701 case "(($ac_try" in
34702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703 *) ac_try_echo=$ac_try;;
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706 (eval "$ac_compile") 2>conftest.er1
34708 grep -v '^ *+' conftest.er1 >conftest.err
34710 cat conftest.err >&5
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); } && {
34713 test -z "$ac_c_werror_flag" ||
34714 test ! -s conftest.err
34715 } && test -s conftest.$ac_objext; then
34716 ac_hi=$ac_mid; break
34718 echo "$as_me: failed program was:" >&5
34719 sed 's/^/| /' conftest.$ac_ext >&5
34721 ac_lo=`expr $ac_mid + 1`
34722 if test $ac_lo -le $ac_mid; then
34726 ac_mid=`expr 2 '*' $ac_mid + 1`
34729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34735 cat >conftest.$ac_ext <<_ACEOF
34738 cat confdefs.h >>conftest.$ac_ext
34739 cat >>conftest.$ac_ext <<_ACEOF
34740 /* end confdefs.h. */
34741 $ac_includes_default
34742 typedef char ac__type_sizeof_;
34746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34753 rm -f conftest.$ac_objext
34754 if { (ac_try="$ac_compile"
34755 case "(($ac_try" in
34756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757 *) ac_try_echo=$ac_try;;
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760 (eval "$ac_compile") 2>conftest.er1
34762 grep -v '^ *+' conftest.er1 >conftest.err
34764 cat conftest.err >&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } && {
34767 test -z "$ac_c_werror_flag" ||
34768 test ! -s conftest.err
34769 } && test -s conftest.$ac_objext; then
34772 cat >conftest.$ac_ext <<_ACEOF
34775 cat confdefs.h >>conftest.$ac_ext
34776 cat >>conftest.$ac_ext <<_ACEOF
34777 /* end confdefs.h. */
34778 $ac_includes_default
34779 typedef char ac__type_sizeof_;
34783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34790 rm -f conftest.$ac_objext
34791 if { (ac_try="$ac_compile"
34792 case "(($ac_try" in
34793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34794 *) ac_try_echo=$ac_try;;
34796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34797 (eval "$ac_compile") 2>conftest.er1
34799 grep -v '^ *+' conftest.er1 >conftest.err
34801 cat conftest.err >&5
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); } && {
34804 test -z "$ac_c_werror_flag" ||
34805 test ! -s conftest.err
34806 } && test -s conftest.$ac_objext; then
34807 ac_lo=$ac_mid; break
34809 echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34812 ac_hi=`expr '(' $ac_mid ')' - 1`
34813 if test $ac_mid -le $ac_hi; then
34817 ac_mid=`expr 2 '*' $ac_mid`
34820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34823 echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34833 # Binary search between lo and hi bounds.
34834 while test "x$ac_lo" != "x$ac_hi"; do
34835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34836 cat >conftest.$ac_ext <<_ACEOF
34839 cat confdefs.h >>conftest.$ac_ext
34840 cat >>conftest.$ac_ext <<_ACEOF
34841 /* end confdefs.h. */
34842 $ac_includes_default
34843 typedef char ac__type_sizeof_;
34847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34854 rm -f conftest.$ac_objext
34855 if { (ac_try="$ac_compile"
34856 case "(($ac_try" in
34857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34858 *) ac_try_echo=$ac_try;;
34860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34861 (eval "$ac_compile") 2>conftest.er1
34863 grep -v '^ *+' conftest.er1 >conftest.err
34865 cat conftest.err >&5
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } && {
34868 test -z "$ac_c_werror_flag" ||
34869 test ! -s conftest.err
34870 } && test -s conftest.$ac_objext; then
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 ac_lo=`expr '(' $ac_mid ')' + 1`
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34882 ?*) ac_cv_sizeof_char=$ac_lo;;
34883 '') if test "$ac_cv_type_char" = yes; then
34884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34885 See \`config.log' for more details." >&5
34886 echo "$as_me: error: cannot compute sizeof (char)
34887 See \`config.log' for more details." >&2;}
34888 { (exit 77); exit 77; }; }
34890 ac_cv_sizeof_char=0
34894 cat >conftest.$ac_ext <<_ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h. */
34900 $ac_includes_default
34901 typedef char ac__type_sizeof_;
34902 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34903 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34905 #include <stdlib.h>
34910 FILE *f = fopen ("conftest.val", "w");
34913 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34915 long int i = longval ();
34916 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34918 fprintf (f, "%ld\n", i);
34922 unsigned long int i = ulongval ();
34923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34925 fprintf (f, "%lu\n", i);
34927 return ferror (f) || fclose (f) != 0;
34933 rm -f conftest$ac_exeext
34934 if { (ac_try="$ac_link"
34935 case "(($ac_try" in
34936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937 *) ac_try_echo=$ac_try;;
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940 (eval "$ac_link") 2>&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34944 { (case "(($ac_try" in
34945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34946 *) ac_try_echo=$ac_try;;
34948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34949 (eval "$ac_try") 2>&5
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); }; }; then
34953 ac_cv_sizeof_char=`cat conftest.val`
34955 echo "$as_me: program exited with status $ac_status" >&5
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34959 ( exit $ac_status )
34960 if test "$ac_cv_type_char" = yes; then
34961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34962 See \`config.log' for more details." >&5
34963 echo "$as_me: error: cannot compute sizeof (char)
34964 See \`config.log' for more details." >&2;}
34965 { (exit 77); exit 77; }; }
34967 ac_cv_sizeof_char=0
34970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34975 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34979 cat >>confdefs.h <<_ACEOF
34980 #define SIZEOF_CHAR $ac_cv_sizeof_char
34984 { echo "$as_me:$LINENO: checking for short int" >&5
34985 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34986 if test "${ac_cv_type_short_int+set}" = set; then
34987 echo $ECHO_N "(cached) $ECHO_C" >&6
34989 cat >conftest.$ac_ext <<_ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34995 $ac_includes_default
34996 typedef short int ac__type_new_;
35000 if ((ac__type_new_ *) 0)
35002 if (sizeof (ac__type_new_))
35008 rm -f conftest.$ac_objext
35009 if { (ac_try="$ac_compile"
35010 case "(($ac_try" in
35011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012 *) ac_try_echo=$ac_try;;
35014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015 (eval "$ac_compile") 2>conftest.er1
35017 grep -v '^ *+' conftest.er1 >conftest.err
35019 cat conftest.err >&5
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); } && {
35022 test -z "$ac_c_werror_flag" ||
35023 test ! -s conftest.err
35024 } && test -s conftest.$ac_objext; then
35025 ac_cv_type_short_int=yes
35027 echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35030 ac_cv_type_short_int=no
35033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35035 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35036 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35038 # The cast to long int works around a bug in the HP C Compiler
35039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35041 # This bug is HP SR number 8606223364.
35042 { echo "$as_me:$LINENO: checking size of short int" >&5
35043 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35044 if test "${ac_cv_sizeof_short_int+set}" = set; then
35045 echo $ECHO_N "(cached) $ECHO_C" >&6
35047 if test "$cross_compiling" = yes; then
35048 # Depending upon the size, compute the lo and hi bounds.
35049 cat >conftest.$ac_ext <<_ACEOF
35052 cat confdefs.h >>conftest.$ac_ext
35053 cat >>conftest.$ac_ext <<_ACEOF
35054 /* end confdefs.h. */
35055 $ac_includes_default
35056 typedef short int ac__type_sizeof_;
35060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35067 rm -f conftest.$ac_objext
35068 if { (ac_try="$ac_compile"
35069 case "(($ac_try" in
35070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35071 *) ac_try_echo=$ac_try;;
35073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35074 (eval "$ac_compile") 2>conftest.er1
35076 grep -v '^ *+' conftest.er1 >conftest.err
35078 cat conftest.err >&5
35079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080 (exit $ac_status); } && {
35081 test -z "$ac_c_werror_flag" ||
35082 test ! -s conftest.err
35083 } && test -s conftest.$ac_objext; then
35086 cat >conftest.$ac_ext <<_ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h. */
35092 $ac_includes_default
35093 typedef short int ac__type_sizeof_;
35097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35104 rm -f conftest.$ac_objext
35105 if { (ac_try="$ac_compile"
35106 case "(($ac_try" in
35107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108 *) ac_try_echo=$ac_try;;
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111 (eval "$ac_compile") 2>conftest.er1
35113 grep -v '^ *+' conftest.er1 >conftest.err
35115 cat conftest.err >&5
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); } && {
35118 test -z "$ac_c_werror_flag" ||
35119 test ! -s conftest.err
35120 } && test -s conftest.$ac_objext; then
35121 ac_hi=$ac_mid; break
35123 echo "$as_me: failed program was:" >&5
35124 sed 's/^/| /' conftest.$ac_ext >&5
35126 ac_lo=`expr $ac_mid + 1`
35127 if test $ac_lo -le $ac_mid; then
35131 ac_mid=`expr 2 '*' $ac_mid + 1`
35134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35137 echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.$ac_ext >&5
35140 cat >conftest.$ac_ext <<_ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h. */
35146 $ac_includes_default
35147 typedef short int ac__type_sizeof_;
35151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35158 rm -f conftest.$ac_objext
35159 if { (ac_try="$ac_compile"
35160 case "(($ac_try" in
35161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35162 *) ac_try_echo=$ac_try;;
35164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35165 (eval "$ac_compile") 2>conftest.er1
35167 grep -v '^ *+' conftest.er1 >conftest.err
35169 cat conftest.err >&5
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); } && {
35172 test -z "$ac_c_werror_flag" ||
35173 test ! -s conftest.err
35174 } && test -s conftest.$ac_objext; then
35177 cat >conftest.$ac_ext <<_ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35183 $ac_includes_default
35184 typedef short int ac__type_sizeof_;
35188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35195 rm -f conftest.$ac_objext
35196 if { (ac_try="$ac_compile"
35197 case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_compile") 2>conftest.er1
35204 grep -v '^ *+' conftest.er1 >conftest.err
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } && {
35209 test -z "$ac_c_werror_flag" ||
35210 test ! -s conftest.err
35211 } && test -s conftest.$ac_objext; then
35212 ac_lo=$ac_mid; break
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35217 ac_hi=`expr '(' $ac_mid ')' - 1`
35218 if test $ac_mid -le $ac_hi; then
35222 ac_mid=`expr 2 '*' $ac_mid`
35225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238 # Binary search between lo and hi bounds.
35239 while test "x$ac_lo" != "x$ac_hi"; do
35240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35241 cat >conftest.$ac_ext <<_ACEOF
35244 cat confdefs.h >>conftest.$ac_ext
35245 cat >>conftest.$ac_ext <<_ACEOF
35246 /* end confdefs.h. */
35247 $ac_includes_default
35248 typedef short int ac__type_sizeof_;
35252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35259 rm -f conftest.$ac_objext
35260 if { (ac_try="$ac_compile"
35261 case "(($ac_try" in
35262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35263 *) ac_try_echo=$ac_try;;
35265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35266 (eval "$ac_compile") 2>conftest.er1
35268 grep -v '^ *+' conftest.er1 >conftest.err
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } && {
35273 test -z "$ac_c_werror_flag" ||
35274 test ! -s conftest.err
35275 } && test -s conftest.$ac_objext; then
35278 echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35281 ac_lo=`expr '(' $ac_mid ')' + 1`
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35288 '') if test "$ac_cv_type_short_int" = yes; then
35289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35290 See \`config.log' for more details." >&5
35291 echo "$as_me: error: cannot compute sizeof (short int)
35292 See \`config.log' for more details." >&2;}
35293 { (exit 77); exit 77; }; }
35295 ac_cv_sizeof_short_int=0
35299 cat >conftest.$ac_ext <<_ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h. */
35305 $ac_includes_default
35306 typedef short int ac__type_sizeof_;
35307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35310 #include <stdlib.h>
35315 FILE *f = fopen ("conftest.val", "w");
35318 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35320 long int i = longval ();
35321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35323 fprintf (f, "%ld\n", i);
35327 unsigned long int i = ulongval ();
35328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35330 fprintf (f, "%lu\n", i);
35332 return ferror (f) || fclose (f) != 0;
35338 rm -f conftest$ac_exeext
35339 if { (ac_try="$ac_link"
35340 case "(($ac_try" in
35341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35342 *) ac_try_echo=$ac_try;;
35344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35345 (eval "$ac_link") 2>&5
35347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35349 { (case "(($ac_try" in
35350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35351 *) ac_try_echo=$ac_try;;
35353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35354 (eval "$ac_try") 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; }; then
35358 ac_cv_sizeof_short_int=`cat conftest.val`
35360 echo "$as_me: program exited with status $ac_status" >&5
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 ( exit $ac_status )
35365 if test "$ac_cv_type_short_int" = yes; then
35366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35367 See \`config.log' for more details." >&5
35368 echo "$as_me: error: cannot compute sizeof (short int)
35369 See \`config.log' for more details." >&2;}
35370 { (exit 77); exit 77; }; }
35372 ac_cv_sizeof_short_int=0
35375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35380 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35384 cat >>confdefs.h <<_ACEOF
35385 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35389 { echo "$as_me:$LINENO: checking for int" >&5
35390 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35391 if test "${ac_cv_type_int+set}" = set; then
35392 echo $ECHO_N "(cached) $ECHO_C" >&6
35394 cat >conftest.$ac_ext <<_ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h. */
35400 $ac_includes_default
35401 typedef int ac__type_new_;
35405 if ((ac__type_new_ *) 0)
35407 if (sizeof (ac__type_new_))
35413 rm -f conftest.$ac_objext
35414 if { (ac_try="$ac_compile"
35415 case "(($ac_try" in
35416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35417 *) ac_try_echo=$ac_try;;
35419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35420 (eval "$ac_compile") 2>conftest.er1
35422 grep -v '^ *+' conftest.er1 >conftest.err
35424 cat conftest.err >&5
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); } && {
35427 test -z "$ac_c_werror_flag" ||
35428 test ! -s conftest.err
35429 } && test -s conftest.$ac_objext; then
35432 echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35440 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35441 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35443 # The cast to long int works around a bug in the HP C Compiler
35444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35446 # This bug is HP SR number 8606223364.
35447 { echo "$as_me:$LINENO: checking size of int" >&5
35448 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35449 if test "${ac_cv_sizeof_int+set}" = set; then
35450 echo $ECHO_N "(cached) $ECHO_C" >&6
35452 if test "$cross_compiling" = yes; then
35453 # Depending upon the size, compute the lo and hi bounds.
35454 cat >conftest.$ac_ext <<_ACEOF
35457 cat confdefs.h >>conftest.$ac_ext
35458 cat >>conftest.$ac_ext <<_ACEOF
35459 /* end confdefs.h. */
35460 $ac_includes_default
35461 typedef int ac__type_sizeof_;
35465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35472 rm -f conftest.$ac_objext
35473 if { (ac_try="$ac_compile"
35474 case "(($ac_try" in
35475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35476 *) ac_try_echo=$ac_try;;
35478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35479 (eval "$ac_compile") 2>conftest.er1
35481 grep -v '^ *+' conftest.er1 >conftest.err
35483 cat conftest.err >&5
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); } && {
35486 test -z "$ac_c_werror_flag" ||
35487 test ! -s conftest.err
35488 } && test -s conftest.$ac_objext; then
35491 cat >conftest.$ac_ext <<_ACEOF
35494 cat confdefs.h >>conftest.$ac_ext
35495 cat >>conftest.$ac_ext <<_ACEOF
35496 /* end confdefs.h. */
35497 $ac_includes_default
35498 typedef int ac__type_sizeof_;
35502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35509 rm -f conftest.$ac_objext
35510 if { (ac_try="$ac_compile"
35511 case "(($ac_try" in
35512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35513 *) ac_try_echo=$ac_try;;
35515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35516 (eval "$ac_compile") 2>conftest.er1
35518 grep -v '^ *+' conftest.er1 >conftest.err
35520 cat conftest.err >&5
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); } && {
35523 test -z "$ac_c_werror_flag" ||
35524 test ! -s conftest.err
35525 } && test -s conftest.$ac_objext; then
35526 ac_hi=$ac_mid; break
35528 echo "$as_me: failed program was:" >&5
35529 sed 's/^/| /' conftest.$ac_ext >&5
35531 ac_lo=`expr $ac_mid + 1`
35532 if test $ac_lo -le $ac_mid; then
35536 ac_mid=`expr 2 '*' $ac_mid + 1`
35539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35542 echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35545 cat >conftest.$ac_ext <<_ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h. */
35551 $ac_includes_default
35552 typedef int ac__type_sizeof_;
35556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35563 rm -f conftest.$ac_objext
35564 if { (ac_try="$ac_compile"
35565 case "(($ac_try" in
35566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35567 *) ac_try_echo=$ac_try;;
35569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35570 (eval "$ac_compile") 2>conftest.er1
35572 grep -v '^ *+' conftest.er1 >conftest.err
35574 cat conftest.err >&5
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); } && {
35577 test -z "$ac_c_werror_flag" ||
35578 test ! -s conftest.err
35579 } && test -s conftest.$ac_objext; then
35582 cat >conftest.$ac_ext <<_ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h. */
35588 $ac_includes_default
35589 typedef int ac__type_sizeof_;
35593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35600 rm -f conftest.$ac_objext
35601 if { (ac_try="$ac_compile"
35602 case "(($ac_try" in
35603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604 *) ac_try_echo=$ac_try;;
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607 (eval "$ac_compile") 2>conftest.er1
35609 grep -v '^ *+' conftest.er1 >conftest.err
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } && {
35614 test -z "$ac_c_werror_flag" ||
35615 test ! -s conftest.err
35616 } && test -s conftest.$ac_objext; then
35617 ac_lo=$ac_mid; break
35619 echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35622 ac_hi=`expr '(' $ac_mid ')' - 1`
35623 if test $ac_mid -le $ac_hi; then
35627 ac_mid=`expr 2 '*' $ac_mid`
35630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643 # Binary search between lo and hi bounds.
35644 while test "x$ac_lo" != "x$ac_hi"; do
35645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35646 cat >conftest.$ac_ext <<_ACEOF
35649 cat confdefs.h >>conftest.$ac_ext
35650 cat >>conftest.$ac_ext <<_ACEOF
35651 /* end confdefs.h. */
35652 $ac_includes_default
35653 typedef int ac__type_sizeof_;
35657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35664 rm -f conftest.$ac_objext
35665 if { (ac_try="$ac_compile"
35666 case "(($ac_try" in
35667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35668 *) ac_try_echo=$ac_try;;
35670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35671 (eval "$ac_compile") 2>conftest.er1
35673 grep -v '^ *+' conftest.er1 >conftest.err
35675 cat conftest.err >&5
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); } && {
35678 test -z "$ac_c_werror_flag" ||
35679 test ! -s conftest.err
35680 } && test -s conftest.$ac_objext; then
35683 echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35686 ac_lo=`expr '(' $ac_mid ')' + 1`
35689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35692 ?*) ac_cv_sizeof_int=$ac_lo;;
35693 '') if test "$ac_cv_type_int" = yes; then
35694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35695 See \`config.log' for more details." >&5
35696 echo "$as_me: error: cannot compute sizeof (int)
35697 See \`config.log' for more details." >&2;}
35698 { (exit 77); exit 77; }; }
35704 cat >conftest.$ac_ext <<_ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h. */
35710 $ac_includes_default
35711 typedef int ac__type_sizeof_;
35712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35715 #include <stdlib.h>
35720 FILE *f = fopen ("conftest.val", "w");
35723 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35725 long int i = longval ();
35726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35728 fprintf (f, "%ld\n", i);
35732 unsigned long int i = ulongval ();
35733 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35735 fprintf (f, "%lu\n", i);
35737 return ferror (f) || fclose (f) != 0;
35743 rm -f conftest$ac_exeext
35744 if { (ac_try="$ac_link"
35745 case "(($ac_try" in
35746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35747 *) ac_try_echo=$ac_try;;
35749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35750 (eval "$ac_link") 2>&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35754 { (case "(($ac_try" in
35755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35756 *) ac_try_echo=$ac_try;;
35758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35759 (eval "$ac_try") 2>&5
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); }; }; then
35763 ac_cv_sizeof_int=`cat conftest.val`
35765 echo "$as_me: program exited with status $ac_status" >&5
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35769 ( exit $ac_status )
35770 if test "$ac_cv_type_int" = yes; then
35771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (int)
35774 See \`config.log' for more details." >&2;}
35775 { (exit 77); exit 77; }; }
35780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35789 cat >>confdefs.h <<_ACEOF
35790 #define SIZEOF_INT $ac_cv_sizeof_int
35794 { echo "$as_me:$LINENO: checking for long int" >&5
35795 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35796 if test "${ac_cv_type_long_int+set}" = set; then
35797 echo $ECHO_N "(cached) $ECHO_C" >&6
35799 cat >conftest.$ac_ext <<_ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h. */
35805 $ac_includes_default
35806 typedef long int ac__type_new_;
35810 if ((ac__type_new_ *) 0)
35812 if (sizeof (ac__type_new_))
35818 rm -f conftest.$ac_objext
35819 if { (ac_try="$ac_compile"
35820 case "(($ac_try" in
35821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35822 *) ac_try_echo=$ac_try;;
35824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35825 (eval "$ac_compile") 2>conftest.er1
35827 grep -v '^ *+' conftest.er1 >conftest.err
35829 cat conftest.err >&5
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); } && {
35832 test -z "$ac_c_werror_flag" ||
35833 test ! -s conftest.err
35834 } && test -s conftest.$ac_objext; then
35835 ac_cv_type_long_int=yes
35837 echo "$as_me: failed program was:" >&5
35838 sed 's/^/| /' conftest.$ac_ext >&5
35840 ac_cv_type_long_int=no
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35845 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35846 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35848 # The cast to long int works around a bug in the HP C Compiler
35849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35851 # This bug is HP SR number 8606223364.
35852 { echo "$as_me:$LINENO: checking size of long int" >&5
35853 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35854 if test "${ac_cv_sizeof_long_int+set}" = set; then
35855 echo $ECHO_N "(cached) $ECHO_C" >&6
35857 if test "$cross_compiling" = yes; then
35858 # Depending upon the size, compute the lo and hi bounds.
35859 cat >conftest.$ac_ext <<_ACEOF
35862 cat confdefs.h >>conftest.$ac_ext
35863 cat >>conftest.$ac_ext <<_ACEOF
35864 /* end confdefs.h. */
35865 $ac_includes_default
35866 typedef long int ac__type_sizeof_;
35870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35877 rm -f conftest.$ac_objext
35878 if { (ac_try="$ac_compile"
35879 case "(($ac_try" in
35880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35881 *) ac_try_echo=$ac_try;;
35883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35884 (eval "$ac_compile") 2>conftest.er1
35886 grep -v '^ *+' conftest.er1 >conftest.err
35888 cat conftest.err >&5
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); } && {
35891 test -z "$ac_c_werror_flag" ||
35892 test ! -s conftest.err
35893 } && test -s conftest.$ac_objext; then
35896 cat >conftest.$ac_ext <<_ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h. */
35902 $ac_includes_default
35903 typedef long int ac__type_sizeof_;
35907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35914 rm -f conftest.$ac_objext
35915 if { (ac_try="$ac_compile"
35916 case "(($ac_try" in
35917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35918 *) ac_try_echo=$ac_try;;
35920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35921 (eval "$ac_compile") 2>conftest.er1
35923 grep -v '^ *+' conftest.er1 >conftest.err
35925 cat conftest.err >&5
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); } && {
35928 test -z "$ac_c_werror_flag" ||
35929 test ! -s conftest.err
35930 } && test -s conftest.$ac_objext; then
35931 ac_hi=$ac_mid; break
35933 echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35936 ac_lo=`expr $ac_mid + 1`
35937 if test $ac_lo -le $ac_mid; then
35941 ac_mid=`expr 2 '*' $ac_mid + 1`
35944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35947 echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35950 cat >conftest.$ac_ext <<_ACEOF
35953 cat confdefs.h >>conftest.$ac_ext
35954 cat >>conftest.$ac_ext <<_ACEOF
35955 /* end confdefs.h. */
35956 $ac_includes_default
35957 typedef long int ac__type_sizeof_;
35961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35968 rm -f conftest.$ac_objext
35969 if { (ac_try="$ac_compile"
35970 case "(($ac_try" in
35971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35972 *) ac_try_echo=$ac_try;;
35974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35975 (eval "$ac_compile") 2>conftest.er1
35977 grep -v '^ *+' conftest.er1 >conftest.err
35979 cat conftest.err >&5
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); } && {
35982 test -z "$ac_c_werror_flag" ||
35983 test ! -s conftest.err
35984 } && test -s conftest.$ac_objext; then
35987 cat >conftest.$ac_ext <<_ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h. */
35993 $ac_includes_default
35994 typedef long int ac__type_sizeof_;
35998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36005 rm -f conftest.$ac_objext
36006 if { (ac_try="$ac_compile"
36007 case "(($ac_try" in
36008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009 *) ac_try_echo=$ac_try;;
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012 (eval "$ac_compile") 2>conftest.er1
36014 grep -v '^ *+' conftest.er1 >conftest.err
36016 cat conftest.err >&5
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); } && {
36019 test -z "$ac_c_werror_flag" ||
36020 test ! -s conftest.err
36021 } && test -s conftest.$ac_objext; then
36022 ac_lo=$ac_mid; break
36024 echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36027 ac_hi=`expr '(' $ac_mid ')' - 1`
36028 if test $ac_mid -le $ac_hi; then
36032 ac_mid=`expr 2 '*' $ac_mid`
36035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048 # Binary search between lo and hi bounds.
36049 while test "x$ac_lo" != "x$ac_hi"; do
36050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36051 cat >conftest.$ac_ext <<_ACEOF
36054 cat confdefs.h >>conftest.$ac_ext
36055 cat >>conftest.$ac_ext <<_ACEOF
36056 /* end confdefs.h. */
36057 $ac_includes_default
36058 typedef long int ac__type_sizeof_;
36062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36069 rm -f conftest.$ac_objext
36070 if { (ac_try="$ac_compile"
36071 case "(($ac_try" in
36072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36073 *) ac_try_echo=$ac_try;;
36075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36076 (eval "$ac_compile") 2>conftest.er1
36078 grep -v '^ *+' conftest.er1 >conftest.err
36080 cat conftest.err >&5
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); } && {
36083 test -z "$ac_c_werror_flag" ||
36084 test ! -s conftest.err
36085 } && test -s conftest.$ac_objext; then
36088 echo "$as_me: failed program was:" >&5
36089 sed 's/^/| /' conftest.$ac_ext >&5
36091 ac_lo=`expr '(' $ac_mid ')' + 1`
36094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36098 '') if test "$ac_cv_type_long_int" = yes; then
36099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36100 See \`config.log' for more details." >&5
36101 echo "$as_me: error: cannot compute sizeof (long int)
36102 See \`config.log' for more details." >&2;}
36103 { (exit 77); exit 77; }; }
36105 ac_cv_sizeof_long_int=0
36109 cat >conftest.$ac_ext <<_ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h. */
36115 $ac_includes_default
36116 typedef long int ac__type_sizeof_;
36117 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36118 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36120 #include <stdlib.h>
36125 FILE *f = fopen ("conftest.val", "w");
36128 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36130 long int i = longval ();
36131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36133 fprintf (f, "%ld\n", i);
36137 unsigned long int i = ulongval ();
36138 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36140 fprintf (f, "%lu\n", i);
36142 return ferror (f) || fclose (f) != 0;
36148 rm -f conftest$ac_exeext
36149 if { (ac_try="$ac_link"
36150 case "(($ac_try" in
36151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36152 *) ac_try_echo=$ac_try;;
36154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36155 (eval "$ac_link") 2>&5
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36159 { (case "(($ac_try" in
36160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36161 *) ac_try_echo=$ac_try;;
36163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36164 (eval "$ac_try") 2>&5
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; }; then
36168 ac_cv_sizeof_long_int=`cat conftest.val`
36170 echo "$as_me: program exited with status $ac_status" >&5
36171 echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36174 ( exit $ac_status )
36175 if test "$ac_cv_type_long_int" = yes; then
36176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36177 See \`config.log' for more details." >&5
36178 echo "$as_me: error: cannot compute sizeof (long int)
36179 See \`config.log' for more details." >&2;}
36180 { (exit 77); exit 77; }; }
36182 ac_cv_sizeof_long_int=0
36185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36189 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36190 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36194 cat >>confdefs.h <<_ACEOF
36195 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36199 { echo "$as_me:$LINENO: checking for long long int" >&5
36200 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36201 if test "${ac_cv_type_long_long_int+set}" = set; then
36202 echo $ECHO_N "(cached) $ECHO_C" >&6
36204 cat >conftest.$ac_ext <<_ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h. */
36210 $ac_includes_default
36211 typedef long long int ac__type_new_;
36215 if ((ac__type_new_ *) 0)
36217 if (sizeof (ac__type_new_))
36223 rm -f conftest.$ac_objext
36224 if { (ac_try="$ac_compile"
36225 case "(($ac_try" in
36226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36227 *) ac_try_echo=$ac_try;;
36229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36230 (eval "$ac_compile") 2>conftest.er1
36232 grep -v '^ *+' conftest.er1 >conftest.err
36234 cat conftest.err >&5
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); } && {
36237 test -z "$ac_c_werror_flag" ||
36238 test ! -s conftest.err
36239 } && test -s conftest.$ac_objext; then
36240 ac_cv_type_long_long_int=yes
36242 echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36245 ac_cv_type_long_long_int=no
36248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36250 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36251 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36253 # The cast to long int works around a bug in the HP C Compiler
36254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36256 # This bug is HP SR number 8606223364.
36257 { echo "$as_me:$LINENO: checking size of long long int" >&5
36258 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36259 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36260 echo $ECHO_N "(cached) $ECHO_C" >&6
36262 if test "$cross_compiling" = yes; then
36263 # Depending upon the size, compute the lo and hi bounds.
36264 cat >conftest.$ac_ext <<_ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h. */
36270 $ac_includes_default
36271 typedef long long int ac__type_sizeof_;
36275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36282 rm -f conftest.$ac_objext
36283 if { (ac_try="$ac_compile"
36284 case "(($ac_try" in
36285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36286 *) ac_try_echo=$ac_try;;
36288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36289 (eval "$ac_compile") 2>conftest.er1
36291 grep -v '^ *+' conftest.er1 >conftest.err
36293 cat conftest.err >&5
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); } && {
36296 test -z "$ac_c_werror_flag" ||
36297 test ! -s conftest.err
36298 } && test -s conftest.$ac_objext; then
36301 cat >conftest.$ac_ext <<_ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h. */
36307 $ac_includes_default
36308 typedef long long int ac__type_sizeof_;
36312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323 *) ac_try_echo=$ac_try;;
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326 (eval "$ac_compile") 2>conftest.er1
36328 grep -v '^ *+' conftest.er1 >conftest.err
36330 cat conftest.err >&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } && {
36333 test -z "$ac_c_werror_flag" ||
36334 test ! -s conftest.err
36335 } && test -s conftest.$ac_objext; then
36336 ac_hi=$ac_mid; break
36338 echo "$as_me: failed program was:" >&5
36339 sed 's/^/| /' conftest.$ac_ext >&5
36341 ac_lo=`expr $ac_mid + 1`
36342 if test $ac_lo -le $ac_mid; then
36346 ac_mid=`expr 2 '*' $ac_mid + 1`
36349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36352 echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36355 cat >conftest.$ac_ext <<_ACEOF
36358 cat confdefs.h >>conftest.$ac_ext
36359 cat >>conftest.$ac_ext <<_ACEOF
36360 /* end confdefs.h. */
36361 $ac_includes_default
36362 typedef long long int ac__type_sizeof_;
36366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36373 rm -f conftest.$ac_objext
36374 if { (ac_try="$ac_compile"
36375 case "(($ac_try" in
36376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377 *) ac_try_echo=$ac_try;;
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380 (eval "$ac_compile") 2>conftest.er1
36382 grep -v '^ *+' conftest.er1 >conftest.err
36384 cat conftest.err >&5
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); } && {
36387 test -z "$ac_c_werror_flag" ||
36388 test ! -s conftest.err
36389 } && test -s conftest.$ac_objext; then
36392 cat >conftest.$ac_ext <<_ACEOF
36395 cat confdefs.h >>conftest.$ac_ext
36396 cat >>conftest.$ac_ext <<_ACEOF
36397 /* end confdefs.h. */
36398 $ac_includes_default
36399 typedef long long int ac__type_sizeof_;
36403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36410 rm -f conftest.$ac_objext
36411 if { (ac_try="$ac_compile"
36412 case "(($ac_try" in
36413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414 *) ac_try_echo=$ac_try;;
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417 (eval "$ac_compile") 2>conftest.er1
36419 grep -v '^ *+' conftest.er1 >conftest.err
36421 cat conftest.err >&5
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); } && {
36424 test -z "$ac_c_werror_flag" ||
36425 test ! -s conftest.err
36426 } && test -s conftest.$ac_objext; then
36427 ac_lo=$ac_mid; break
36429 echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36432 ac_hi=`expr '(' $ac_mid ')' - 1`
36433 if test $ac_mid -le $ac_hi; then
36437 ac_mid=`expr 2 '*' $ac_mid`
36440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36443 echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.$ac_ext >&5
36449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 # Binary search between lo and hi bounds.
36454 while test "x$ac_lo" != "x$ac_hi"; do
36455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36456 cat >conftest.$ac_ext <<_ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h. */
36462 $ac_includes_default
36463 typedef long long int ac__type_sizeof_;
36467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36474 rm -f conftest.$ac_objext
36475 if { (ac_try="$ac_compile"
36476 case "(($ac_try" in
36477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36478 *) ac_try_echo=$ac_try;;
36480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36481 (eval "$ac_compile") 2>conftest.er1
36483 grep -v '^ *+' conftest.er1 >conftest.err
36485 cat conftest.err >&5
36486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); } && {
36488 test -z "$ac_c_werror_flag" ||
36489 test ! -s conftest.err
36490 } && test -s conftest.$ac_objext; then
36493 echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36496 ac_lo=`expr '(' $ac_mid ')' + 1`
36499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36502 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36503 '') if test "$ac_cv_type_long_long_int" = yes; then
36504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36505 See \`config.log' for more details." >&5
36506 echo "$as_me: error: cannot compute sizeof (long long int)
36507 See \`config.log' for more details." >&2;}
36508 { (exit 77); exit 77; }; }
36510 ac_cv_sizeof_long_long_int=0
36514 cat >conftest.$ac_ext <<_ACEOF
36517 cat confdefs.h >>conftest.$ac_ext
36518 cat >>conftest.$ac_ext <<_ACEOF
36519 /* end confdefs.h. */
36520 $ac_includes_default
36521 typedef long long int ac__type_sizeof_;
36522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36525 #include <stdlib.h>
36530 FILE *f = fopen ("conftest.val", "w");
36533 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36535 long int i = longval ();
36536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36538 fprintf (f, "%ld\n", i);
36542 unsigned long int i = ulongval ();
36543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36545 fprintf (f, "%lu\n", i);
36547 return ferror (f) || fclose (f) != 0;
36553 rm -f conftest$ac_exeext
36554 if { (ac_try="$ac_link"
36555 case "(($ac_try" in
36556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36557 *) ac_try_echo=$ac_try;;
36559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36560 (eval "$ac_link") 2>&5
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36564 { (case "(($ac_try" in
36565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36566 *) ac_try_echo=$ac_try;;
36568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36569 (eval "$ac_try") 2>&5
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; }; then
36573 ac_cv_sizeof_long_long_int=`cat conftest.val`
36575 echo "$as_me: program exited with status $ac_status" >&5
36576 echo "$as_me: failed program was:" >&5
36577 sed 's/^/| /' conftest.$ac_ext >&5
36579 ( exit $ac_status )
36580 if test "$ac_cv_type_long_long_int" = yes; then
36581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36582 See \`config.log' for more details." >&5
36583 echo "$as_me: error: cannot compute sizeof (long long int)
36584 See \`config.log' for more details." >&2;}
36585 { (exit 77); exit 77; }; }
36587 ac_cv_sizeof_long_long_int=0
36590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36595 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36599 cat >>confdefs.h <<_ACEOF
36600 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36604 { echo "$as_me:$LINENO: checking for int *" >&5
36605 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36606 if test "${ac_cv_type_int_p+set}" = set; then
36607 echo $ECHO_N "(cached) $ECHO_C" >&6
36609 cat >conftest.$ac_ext <<_ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h. */
36615 $ac_includes_default
36616 typedef int * ac__type_new_;
36620 if ((ac__type_new_ *) 0)
36622 if (sizeof (ac__type_new_))
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632 *) ac_try_echo=$ac_try;;
36634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36635 (eval "$ac_compile") 2>conftest.er1
36637 grep -v '^ *+' conftest.er1 >conftest.err
36639 cat conftest.err >&5
36640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641 (exit $ac_status); } && {
36642 test -z "$ac_c_werror_flag" ||
36643 test ! -s conftest.err
36644 } && test -s conftest.$ac_objext; then
36645 ac_cv_type_int_p=yes
36647 echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36650 ac_cv_type_int_p=no
36653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36656 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36658 # The cast to long int works around a bug in the HP C Compiler
36659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36661 # This bug is HP SR number 8606223364.
36662 { echo "$as_me:$LINENO: checking size of int *" >&5
36663 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36664 if test "${ac_cv_sizeof_int_p+set}" = set; then
36665 echo $ECHO_N "(cached) $ECHO_C" >&6
36667 if test "$cross_compiling" = yes; then
36668 # Depending upon the size, compute the lo and hi bounds.
36669 cat >conftest.$ac_ext <<_ACEOF
36672 cat confdefs.h >>conftest.$ac_ext
36673 cat >>conftest.$ac_ext <<_ACEOF
36674 /* end confdefs.h. */
36675 $ac_includes_default
36676 typedef int * ac__type_sizeof_;
36680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36687 rm -f conftest.$ac_objext
36688 if { (ac_try="$ac_compile"
36689 case "(($ac_try" in
36690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36691 *) ac_try_echo=$ac_try;;
36693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36694 (eval "$ac_compile") 2>conftest.er1
36696 grep -v '^ *+' conftest.er1 >conftest.err
36698 cat conftest.err >&5
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } && {
36701 test -z "$ac_c_werror_flag" ||
36702 test ! -s conftest.err
36703 } && test -s conftest.$ac_objext; then
36706 cat >conftest.$ac_ext <<_ACEOF
36709 cat confdefs.h >>conftest.$ac_ext
36710 cat >>conftest.$ac_ext <<_ACEOF
36711 /* end confdefs.h. */
36712 $ac_includes_default
36713 typedef int * ac__type_sizeof_;
36717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728 *) ac_try_echo=$ac_try;;
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731 (eval "$ac_compile") 2>conftest.er1
36733 grep -v '^ *+' conftest.er1 >conftest.err
36735 cat conftest.err >&5
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); } && {
36738 test -z "$ac_c_werror_flag" ||
36739 test ! -s conftest.err
36740 } && test -s conftest.$ac_objext; then
36741 ac_hi=$ac_mid; break
36743 echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36746 ac_lo=`expr $ac_mid + 1`
36747 if test $ac_lo -le $ac_mid; then
36751 ac_mid=`expr 2 '*' $ac_mid + 1`
36754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36757 echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36760 cat >conftest.$ac_ext <<_ACEOF
36763 cat confdefs.h >>conftest.$ac_ext
36764 cat >>conftest.$ac_ext <<_ACEOF
36765 /* end confdefs.h. */
36766 $ac_includes_default
36767 typedef int * ac__type_sizeof_;
36771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36778 rm -f conftest.$ac_objext
36779 if { (ac_try="$ac_compile"
36780 case "(($ac_try" in
36781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36782 *) ac_try_echo=$ac_try;;
36784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36785 (eval "$ac_compile") 2>conftest.er1
36787 grep -v '^ *+' conftest.er1 >conftest.err
36789 cat conftest.err >&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); } && {
36792 test -z "$ac_c_werror_flag" ||
36793 test ! -s conftest.err
36794 } && test -s conftest.$ac_objext; then
36797 cat >conftest.$ac_ext <<_ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h. */
36803 $ac_includes_default
36804 typedef int * ac__type_sizeof_;
36808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822 (eval "$ac_compile") 2>conftest.er1
36824 grep -v '^ *+' conftest.er1 >conftest.err
36826 cat conftest.err >&5
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); } && {
36829 test -z "$ac_c_werror_flag" ||
36830 test ! -s conftest.err
36831 } && test -s conftest.$ac_objext; then
36832 ac_lo=$ac_mid; break
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36837 ac_hi=`expr '(' $ac_mid ')' - 1`
36838 if test $ac_mid -le $ac_hi; then
36842 ac_mid=`expr 2 '*' $ac_mid`
36845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36848 echo "$as_me: failed program was:" >&5
36849 sed 's/^/| /' conftest.$ac_ext >&5
36854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36858 # Binary search between lo and hi bounds.
36859 while test "x$ac_lo" != "x$ac_hi"; do
36860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36861 cat >conftest.$ac_ext <<_ACEOF
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h. */
36867 $ac_includes_default
36868 typedef int * ac__type_sizeof_;
36872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36879 rm -f conftest.$ac_objext
36880 if { (ac_try="$ac_compile"
36881 case "(($ac_try" in
36882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36883 *) ac_try_echo=$ac_try;;
36885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36886 (eval "$ac_compile") 2>conftest.er1
36888 grep -v '^ *+' conftest.er1 >conftest.err
36890 cat conftest.err >&5
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); } && {
36893 test -z "$ac_c_werror_flag" ||
36894 test ! -s conftest.err
36895 } && test -s conftest.$ac_objext; then
36898 echo "$as_me: failed program was:" >&5
36899 sed 's/^/| /' conftest.$ac_ext >&5
36901 ac_lo=`expr '(' $ac_mid ')' + 1`
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36907 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36908 '') if test "$ac_cv_type_int_p" = yes; then
36909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36910 See \`config.log' for more details." >&5
36911 echo "$as_me: error: cannot compute sizeof (int *)
36912 See \`config.log' for more details." >&2;}
36913 { (exit 77); exit 77; }; }
36915 ac_cv_sizeof_int_p=0
36919 cat >conftest.$ac_ext <<_ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h. */
36925 $ac_includes_default
36926 typedef int * ac__type_sizeof_;
36927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36930 #include <stdlib.h>
36935 FILE *f = fopen ("conftest.val", "w");
36938 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36940 long int i = longval ();
36941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36943 fprintf (f, "%ld\n", i);
36947 unsigned long int i = ulongval ();
36948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36950 fprintf (f, "%lu\n", i);
36952 return ferror (f) || fclose (f) != 0;
36958 rm -f conftest$ac_exeext
36959 if { (ac_try="$ac_link"
36960 case "(($ac_try" in
36961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36962 *) ac_try_echo=$ac_try;;
36964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36965 (eval "$ac_link") 2>&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36969 { (case "(($ac_try" in
36970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36971 *) ac_try_echo=$ac_try;;
36973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36974 (eval "$ac_try") 2>&5
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; }; then
36978 ac_cv_sizeof_int_p=`cat conftest.val`
36980 echo "$as_me: program exited with status $ac_status" >&5
36981 echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36984 ( exit $ac_status )
36985 if test "$ac_cv_type_int_p" = yes; then
36986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36987 See \`config.log' for more details." >&5
36988 echo "$as_me: error: cannot compute sizeof (int *)
36989 See \`config.log' for more details." >&2;}
36990 { (exit 77); exit 77; }; }
36992 ac_cv_sizeof_int_p=0
36995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37000 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37004 cat >>confdefs.h <<_ACEOF
37005 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37010 { echo "$as_me:$LINENO: checking for u_int type" >&5
37011 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37012 if test "${ac_cv_have_u_int+set}" = set; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37016 cat >conftest.$ac_ext <<_ACEOF
37019 cat confdefs.h >>conftest.$ac_ext
37020 cat >>conftest.$ac_ext <<_ACEOF
37021 /* end confdefs.h. */
37023 #include <sys/types.h>
37035 rm -f conftest.$ac_objext
37036 if { (ac_try="$ac_compile"
37037 case "(($ac_try" in
37038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039 *) ac_try_echo=$ac_try;;
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042 (eval "$ac_compile") 2>conftest.er1
37044 grep -v '^ *+' conftest.er1 >conftest.err
37046 cat conftest.err >&5
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); } && {
37049 test -z "$ac_c_werror_flag" ||
37050 test ! -s conftest.err
37051 } && test -s conftest.$ac_objext; then
37053 ac_cv_have_u_int="yes"
37056 echo "$as_me: failed program was:" >&5
37057 sed 's/^/| /' conftest.$ac_ext >&5
37060 ac_cv_have_u_int="no"
37065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37069 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37070 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37071 if test "x$ac_cv_have_u_int" = "xyes" ; then
37072 cat >>confdefs.h <<\_ACEOF
37073 #define HAVE_U_INT 1
37079 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37080 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37081 if test "${ac_cv_have_intmax_t+set}" = set; then
37082 echo $ECHO_N "(cached) $ECHO_C" >&6
37085 cat >conftest.$ac_ext <<_ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h. */
37092 #include <sys/types.h>
37104 rm -f conftest.$ac_objext
37105 if { (ac_try="$ac_compile"
37106 case "(($ac_try" in
37107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108 *) ac_try_echo=$ac_try;;
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111 (eval "$ac_compile") 2>conftest.er1
37113 grep -v '^ *+' conftest.er1 >conftest.err
37115 cat conftest.err >&5
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); } && {
37118 test -z "$ac_c_werror_flag" ||
37119 test ! -s conftest.err
37120 } && test -s conftest.$ac_objext; then
37122 ac_cv_have_intmax_t="yes"
37125 echo "$as_me: failed program was:" >&5
37126 sed 's/^/| /' conftest.$ac_ext >&5
37129 cat >conftest.$ac_ext <<_ACEOF
37132 cat confdefs.h >>conftest.$ac_ext
37133 cat >>conftest.$ac_ext <<_ACEOF
37134 /* end confdefs.h. */
37136 #include <stdint.h>
37148 rm -f conftest.$ac_objext
37149 if { (ac_try="$ac_compile"
37150 case "(($ac_try" in
37151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152 *) ac_try_echo=$ac_try;;
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155 (eval "$ac_compile") 2>conftest.er1
37157 grep -v '^ *+' conftest.er1 >conftest.err
37159 cat conftest.err >&5
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); } && {
37162 test -z "$ac_c_werror_flag" ||
37163 test ! -s conftest.err
37164 } && test -s conftest.$ac_objext; then
37166 ac_cv_have_intmax_t="yes"
37169 echo "$as_me: failed program was:" >&5
37170 sed 's/^/| /' conftest.$ac_ext >&5
37173 ac_cv_have_intmax_t="no"
37178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37187 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37188 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37189 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37190 cat >>confdefs.h <<\_ACEOF
37191 #define HAVE_INTMAX_T 1
37197 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37198 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37199 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37200 echo $ECHO_N "(cached) $ECHO_C" >&6
37203 cat >conftest.$ac_ext <<_ACEOF
37206 cat confdefs.h >>conftest.$ac_ext
37207 cat >>conftest.$ac_ext <<_ACEOF
37208 /* end confdefs.h. */
37210 #include <sys/types.h>
37216 u_intmax_t a; a = 1;
37222 rm -f conftest.$ac_objext
37223 if { (ac_try="$ac_compile"
37224 case "(($ac_try" in
37225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226 *) ac_try_echo=$ac_try;;
37228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37229 (eval "$ac_compile") 2>conftest.er1
37231 grep -v '^ *+' conftest.er1 >conftest.err
37233 cat conftest.err >&5
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } && {
37236 test -z "$ac_c_werror_flag" ||
37237 test ! -s conftest.err
37238 } && test -s conftest.$ac_objext; then
37240 ac_cv_have_u_intmax_t="yes"
37243 echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37247 cat >conftest.$ac_ext <<_ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h. */
37254 #include <stdint.h>
37260 u_intmax_t a; a = 1;
37266 rm -f conftest.$ac_objext
37267 if { (ac_try="$ac_compile"
37268 case "(($ac_try" in
37269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37270 *) ac_try_echo=$ac_try;;
37272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37273 (eval "$ac_compile") 2>conftest.er1
37275 grep -v '^ *+' conftest.er1 >conftest.err
37277 cat conftest.err >&5
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); } && {
37280 test -z "$ac_c_werror_flag" ||
37281 test ! -s conftest.err
37282 } && test -s conftest.$ac_objext; then
37284 ac_cv_have_u_intmax_t="yes"
37287 echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37291 ac_cv_have_u_intmax_t="no"
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37305 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37306 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37307 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37308 cat >>confdefs.h <<\_ACEOF
37309 #define HAVE_U_INTMAX_T 1
37315 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37316 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37317 if test "${ac_cv_have_intxx_t+set}" = set; then
37318 echo $ECHO_N "(cached) $ECHO_C" >&6
37321 cat >conftest.$ac_ext <<_ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h. */
37328 #include <sys/types.h>
37334 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37340 rm -f conftest.$ac_objext
37341 if { (ac_try="$ac_compile"
37342 case "(($ac_try" in
37343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37344 *) ac_try_echo=$ac_try;;
37346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37347 (eval "$ac_compile") 2>conftest.er1
37349 grep -v '^ *+' conftest.er1 >conftest.err
37351 cat conftest.err >&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } && {
37354 test -z "$ac_c_werror_flag" ||
37355 test ! -s conftest.err
37356 } && test -s conftest.$ac_objext; then
37358 ac_cv_have_intxx_t="yes"
37361 echo "$as_me: failed program was:" >&5
37362 sed 's/^/| /' conftest.$ac_ext >&5
37365 ac_cv_have_intxx_t="no"
37370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37374 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37375 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37376 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37377 cat >>confdefs.h <<\_ACEOF
37378 #define HAVE_INTXX_T 1
37384 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37385 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37386 if test "${ac_cv_have_int64_t+set}" = set; then
37387 echo $ECHO_N "(cached) $ECHO_C" >&6
37390 cat >conftest.$ac_ext <<_ACEOF
37393 cat confdefs.h >>conftest.$ac_ext
37394 cat >>conftest.$ac_ext <<_ACEOF
37395 /* end confdefs.h. */
37397 #include <sys/types.h>
37409 rm -f conftest.$ac_objext
37410 if { (ac_try="$ac_compile"
37411 case "(($ac_try" in
37412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37413 *) ac_try_echo=$ac_try;;
37415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37416 (eval "$ac_compile") 2>conftest.er1
37418 grep -v '^ *+' conftest.er1 >conftest.err
37420 cat conftest.err >&5
37421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422 (exit $ac_status); } && {
37423 test -z "$ac_c_werror_flag" ||
37424 test ! -s conftest.err
37425 } && test -s conftest.$ac_objext; then
37427 ac_cv_have_int64_t="yes"
37430 echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37434 ac_cv_have_int64_t="no"
37439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37443 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37444 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37445 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37446 cat >>confdefs.h <<\_ACEOF
37447 #define HAVE_INT64_T 1
37453 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37454 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37455 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37456 echo $ECHO_N "(cached) $ECHO_C" >&6
37459 cat >conftest.$ac_ext <<_ACEOF
37462 cat confdefs.h >>conftest.$ac_ext
37463 cat >>conftest.$ac_ext <<_ACEOF
37464 /* end confdefs.h. */
37466 #include <sys/types.h>
37472 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37478 rm -f conftest.$ac_objext
37479 if { (ac_try="$ac_compile"
37480 case "(($ac_try" in
37481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37482 *) ac_try_echo=$ac_try;;
37484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37485 (eval "$ac_compile") 2>conftest.er1
37487 grep -v '^ *+' conftest.er1 >conftest.err
37489 cat conftest.err >&5
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); } && {
37492 test -z "$ac_c_werror_flag" ||
37493 test ! -s conftest.err
37494 } && test -s conftest.$ac_objext; then
37496 ac_cv_have_u_intxx_t="yes"
37499 echo "$as_me: failed program was:" >&5
37500 sed 's/^/| /' conftest.$ac_ext >&5
37503 ac_cv_have_u_intxx_t="no"
37508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37512 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37513 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37514 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37515 cat >>confdefs.h <<\_ACEOF
37516 #define HAVE_U_INTXX_T 1
37522 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37523 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37524 if test "${ac_cv_have_u_int64_t+set}" = set; then
37525 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 cat >conftest.$ac_ext <<_ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h. */
37535 #include <sys/types.h>
37541 u_int64_t a; a = 1;
37547 rm -f conftest.$ac_objext
37548 if { (ac_try="$ac_compile"
37549 case "(($ac_try" in
37550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37551 *) ac_try_echo=$ac_try;;
37553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37554 (eval "$ac_compile") 2>conftest.er1
37556 grep -v '^ *+' conftest.er1 >conftest.err
37558 cat conftest.err >&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } && {
37561 test -z "$ac_c_werror_flag" ||
37562 test ! -s conftest.err
37563 } && test -s conftest.$ac_objext; then
37565 ac_cv_have_u_int64_t="yes"
37568 echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37572 ac_cv_have_u_int64_t="no"
37577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37581 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37582 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37583 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37584 cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_U_INT64_T 1
37591 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37592 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37594 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37595 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37596 cat >conftest.$ac_ext <<_ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h. */
37603 #include <sys/bitypes.h>
37609 int8_t a; int16_t b; int32_t c;
37610 u_int8_t e; u_int16_t f; u_int32_t g;
37611 a = b = c = e = f = g = 1;
37617 rm -f conftest.$ac_objext
37618 if { (ac_try="$ac_compile"
37619 case "(($ac_try" in
37620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37621 *) ac_try_echo=$ac_try;;
37623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37624 (eval "$ac_compile") 2>conftest.er1
37626 grep -v '^ *+' conftest.er1 >conftest.err
37628 cat conftest.err >&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); } && {
37631 test -z "$ac_c_werror_flag" ||
37632 test ! -s conftest.err
37633 } && test -s conftest.$ac_objext; then
37635 cat >>confdefs.h <<\_ACEOF
37636 #define HAVE_U_INTXX_T 1
37639 cat >>confdefs.h <<\_ACEOF
37640 #define HAVE_INTXX_T 1
37643 cat >>confdefs.h <<\_ACEOF
37644 #define HAVE_SYS_BITYPES_H 1
37647 { echo "$as_me:$LINENO: result: yes" >&5
37648 echo "${ECHO_T}yes" >&6; }
37651 echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37655 { echo "$as_me:$LINENO: result: no" >&5
37656 echo "${ECHO_T}no" >&6; }
37661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37664 if test -z "$have_u_intxx_t" ; then
37665 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37666 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37667 if test "${ac_cv_have_uintxx_t+set}" = set; then
37668 echo $ECHO_N "(cached) $ECHO_C" >&6
37671 cat >conftest.$ac_ext <<_ACEOF
37674 cat confdefs.h >>conftest.$ac_ext
37675 cat >>conftest.$ac_ext <<_ACEOF
37676 /* end confdefs.h. */
37678 #include <sys/types.h>
37684 uint8_t a; uint16_t b;
37685 uint32_t c; a = b = c = 1;
37691 rm -f conftest.$ac_objext
37692 if { (ac_try="$ac_compile"
37693 case "(($ac_try" in
37694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37695 *) ac_try_echo=$ac_try;;
37697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37698 (eval "$ac_compile") 2>conftest.er1
37700 grep -v '^ *+' conftest.er1 >conftest.err
37702 cat conftest.err >&5
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); } && {
37705 test -z "$ac_c_werror_flag" ||
37706 test ! -s conftest.err
37707 } && test -s conftest.$ac_objext; then
37709 ac_cv_have_uintxx_t="yes"
37712 echo "$as_me: failed program was:" >&5
37713 sed 's/^/| /' conftest.$ac_ext >&5
37716 ac_cv_have_uintxx_t="no"
37721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37725 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37726 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37727 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37728 cat >>confdefs.h <<\_ACEOF
37729 #define HAVE_UINTXX_T 1
37735 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37736 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37738 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37739 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37740 cat >conftest.$ac_ext <<_ACEOF
37743 cat confdefs.h >>conftest.$ac_ext
37744 cat >>conftest.$ac_ext <<_ACEOF
37745 /* end confdefs.h. */
37747 #include <sys/bitypes.h>
37753 int64_t a; u_int64_t b;
37760 rm -f conftest.$ac_objext
37761 if { (ac_try="$ac_compile"
37762 case "(($ac_try" in
37763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764 *) ac_try_echo=$ac_try;;
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767 (eval "$ac_compile") 2>conftest.er1
37769 grep -v '^ *+' conftest.er1 >conftest.err
37771 cat conftest.err >&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } && {
37774 test -z "$ac_c_werror_flag" ||
37775 test ! -s conftest.err
37776 } && test -s conftest.$ac_objext; then
37778 cat >>confdefs.h <<\_ACEOF
37779 #define HAVE_U_INT64_T 1
37782 cat >>confdefs.h <<\_ACEOF
37783 #define HAVE_INT64_T 1
37786 { echo "$as_me:$LINENO: result: yes" >&5
37787 echo "${ECHO_T}yes" >&6; }
37790 echo "$as_me: failed program was:" >&5
37791 sed 's/^/| /' conftest.$ac_ext >&5
37794 { echo "$as_me:$LINENO: result: no" >&5
37795 echo "${ECHO_T}no" >&6; }
37800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 if (test -z "$have_uintxx_t" && \
37804 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37806 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37807 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37808 cat >conftest.$ac_ext <<_ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h. */
37815 #include <sys/bitypes.h>
37821 uint8_t a; uint16_t b;
37822 uint32_t c; a = b = c = 1;
37828 rm -f conftest.$ac_objext
37829 if { (ac_try="$ac_compile"
37830 case "(($ac_try" in
37831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832 *) ac_try_echo=$ac_try;;
37834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37835 (eval "$ac_compile") 2>conftest.er1
37837 grep -v '^ *+' conftest.er1 >conftest.err
37839 cat conftest.err >&5
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); } && {
37842 test -z "$ac_c_werror_flag" ||
37843 test ! -s conftest.err
37844 } && test -s conftest.$ac_objext; then
37846 cat >>confdefs.h <<\_ACEOF
37847 #define HAVE_UINTXX_T 1
37850 { echo "$as_me:$LINENO: result: yes" >&5
37851 echo "${ECHO_T}yes" >&6; }
37854 echo "$as_me: failed program was:" >&5
37855 sed 's/^/| /' conftest.$ac_ext >&5
37858 { echo "$as_me:$LINENO: result: no" >&5
37859 echo "${ECHO_T}no" >&6; }
37864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
37902 cat >conftest.$ac_ext <<_ACEOF
37905 cat confdefs.h >>conftest.$ac_ext
37906 cat >>conftest.$ac_ext <<_ACEOF
37907 /* end confdefs.h. */
37908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37910 #define $ac_func innocuous_$ac_func
37912 /* System header to define __stub macros and hopefully few prototypes,
37913 which can conflict with char $ac_func (); below.
37914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37915 <limits.h> exists even on freestanding compilers. */
37918 # include <limits.h>
37920 # include <assert.h>
37925 /* Override any GCC internal prototype to avoid an error.
37926 Use char because int might match the return type of a GCC
37927 builtin and then its argument prototype would still apply. */
37932 /* The GNU C library defines this for functions which it implements
37933 to always fail with ENOSYS. Some functions are actually named
37934 something starting with __ and the normal name is an alias. */
37935 #if defined __stub_$ac_func || defined __stub___$ac_func
37942 return $ac_func ();
37947 rm -f conftest.$ac_objext conftest$ac_exeext
37948 if { (ac_try="$ac_link"
37949 case "(($ac_try" in
37950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37951 *) ac_try_echo=$ac_try;;
37953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37954 (eval "$ac_link") 2>conftest.er1
37956 grep -v '^ *+' conftest.er1 >conftest.err
37958 cat conftest.err >&5
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); } && {
37961 test -z "$ac_c_werror_flag" ||
37962 test ! -s conftest.err
37963 } && test -s conftest$ac_exeext &&
37964 $as_test_x conftest$ac_exeext; then
37965 eval "$as_ac_var=yes"
37967 echo "$as_me: failed program was:" >&5
37968 sed 's/^/| /' conftest.$ac_ext >&5
37970 eval "$as_ac_var=no"
37973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37974 conftest$ac_exeext conftest.$ac_ext
37976 ac_res=`eval echo '${'$as_ac_var'}'`
37977 { echo "$as_me:$LINENO: result: $ac_res" >&5
37978 echo "${ECHO_T}$ac_res" >&6; }
37979 if test `eval echo '${'$as_ac_var'}'` = yes; then
37980 cat >>confdefs.h <<_ACEOF
37981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37985 echo 'configure: cannot find needed function.'; exit 1
37992 for ac_func in fchdir
37994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37998 echo $ECHO_N "(cached) $ECHO_C" >&6
38000 cat >conftest.$ac_ext <<_ACEOF
38003 cat confdefs.h >>conftest.$ac_ext
38004 cat >>conftest.$ac_ext <<_ACEOF
38005 /* end confdefs.h. */
38006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38008 #define $ac_func innocuous_$ac_func
38010 /* System header to define __stub macros and hopefully few prototypes,
38011 which can conflict with char $ac_func (); below.
38012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38013 <limits.h> exists even on freestanding compilers. */
38016 # include <limits.h>
38018 # include <assert.h>
38023 /* Override any GCC internal prototype to avoid an error.
38024 Use char because int might match the return type of a GCC
38025 builtin and then its argument prototype would still apply. */
38030 /* The GNU C library defines this for functions which it implements
38031 to always fail with ENOSYS. Some functions are actually named
38032 something starting with __ and the normal name is an alias. */
38033 #if defined __stub_$ac_func || defined __stub___$ac_func
38040 return $ac_func ();
38045 rm -f conftest.$ac_objext conftest$ac_exeext
38046 if { (ac_try="$ac_link"
38047 case "(($ac_try" in
38048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38049 *) ac_try_echo=$ac_try;;
38051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38052 (eval "$ac_link") 2>conftest.er1
38054 grep -v '^ *+' conftest.er1 >conftest.err
38056 cat conftest.err >&5
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); } && {
38059 test -z "$ac_c_werror_flag" ||
38060 test ! -s conftest.err
38061 } && test -s conftest$ac_exeext &&
38062 $as_test_x conftest$ac_exeext; then
38063 eval "$as_ac_var=yes"
38065 echo "$as_me: failed program was:" >&5
38066 sed 's/^/| /' conftest.$ac_ext >&5
38068 eval "$as_ac_var=no"
38071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38072 conftest$ac_exeext conftest.$ac_ext
38074 ac_res=`eval echo '${'$as_ac_var'}'`
38075 { echo "$as_me:$LINENO: result: $ac_res" >&5
38076 echo "${ECHO_T}$ac_res" >&6; }
38077 if test `eval echo '${'$as_ac_var'}'` = yes; then
38078 cat >>confdefs.h <<_ACEOF
38079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38081 cat >>confdefs.h <<\_ACEOF
38082 #define HAVE_FCHDIR 1
38089 for ac_func in strtoll
38091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38095 echo $ECHO_N "(cached) $ECHO_C" >&6
38097 cat >conftest.$ac_ext <<_ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h. */
38103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38105 #define $ac_func innocuous_$ac_func
38107 /* System header to define __stub macros and hopefully few prototypes,
38108 which can conflict with char $ac_func (); below.
38109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38110 <limits.h> exists even on freestanding compilers. */
38113 # include <limits.h>
38115 # include <assert.h>
38120 /* Override any GCC internal prototype to avoid an error.
38121 Use char because int might match the return type of a GCC
38122 builtin and then its argument prototype would still apply. */
38127 /* The GNU C library defines this for functions which it implements
38128 to always fail with ENOSYS. Some functions are actually named
38129 something starting with __ and the normal name is an alias. */
38130 #if defined __stub_$ac_func || defined __stub___$ac_func
38137 return $ac_func ();
38142 rm -f conftest.$ac_objext conftest$ac_exeext
38143 if { (ac_try="$ac_link"
38144 case "(($ac_try" in
38145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38146 *) ac_try_echo=$ac_try;;
38148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38149 (eval "$ac_link") 2>conftest.er1
38151 grep -v '^ *+' conftest.er1 >conftest.err
38153 cat conftest.err >&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); } && {
38156 test -z "$ac_c_werror_flag" ||
38157 test ! -s conftest.err
38158 } && test -s conftest$ac_exeext &&
38159 $as_test_x conftest$ac_exeext; then
38160 eval "$as_ac_var=yes"
38162 echo "$as_me: failed program was:" >&5
38163 sed 's/^/| /' conftest.$ac_ext >&5
38165 eval "$as_ac_var=no"
38168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38169 conftest$ac_exeext conftest.$ac_ext
38171 ac_res=`eval echo '${'$as_ac_var'}'`
38172 { echo "$as_me:$LINENO: result: $ac_res" >&5
38173 echo "${ECHO_T}$ac_res" >&6; }
38174 if test `eval echo '${'$as_ac_var'}'` = yes; then
38175 cat >>confdefs.h <<_ACEOF
38176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38178 cat >>confdefs.h <<\_ACEOF
38179 #define HAVE_STRTOLL 1
38186 for ac_func in posix_fadvise
38188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38192 echo $ECHO_N "(cached) $ECHO_C" >&6
38194 cat >conftest.$ac_ext <<_ACEOF
38197 cat confdefs.h >>conftest.$ac_ext
38198 cat >>conftest.$ac_ext <<_ACEOF
38199 /* end confdefs.h. */
38200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38202 #define $ac_func innocuous_$ac_func
38204 /* System header to define __stub macros and hopefully few prototypes,
38205 which can conflict with char $ac_func (); below.
38206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38207 <limits.h> exists even on freestanding compilers. */
38210 # include <limits.h>
38212 # include <assert.h>
38217 /* Override any GCC internal prototype to avoid an error.
38218 Use char because int might match the return type of a GCC
38219 builtin and then its argument prototype would still apply. */
38224 /* The GNU C library defines this for functions which it implements
38225 to always fail with ENOSYS. Some functions are actually named
38226 something starting with __ and the normal name is an alias. */
38227 #if defined __stub_$ac_func || defined __stub___$ac_func
38234 return $ac_func ();
38239 rm -f conftest.$ac_objext conftest$ac_exeext
38240 if { (ac_try="$ac_link"
38241 case "(($ac_try" in
38242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38243 *) ac_try_echo=$ac_try;;
38245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38246 (eval "$ac_link") 2>conftest.er1
38248 grep -v '^ *+' conftest.er1 >conftest.err
38250 cat conftest.err >&5
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); } && {
38253 test -z "$ac_c_werror_flag" ||
38254 test ! -s conftest.err
38255 } && test -s conftest$ac_exeext &&
38256 $as_test_x conftest$ac_exeext; then
38257 eval "$as_ac_var=yes"
38259 echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38262 eval "$as_ac_var=no"
38265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38266 conftest$ac_exeext conftest.$ac_ext
38268 ac_res=`eval echo '${'$as_ac_var'}'`
38269 { echo "$as_me:$LINENO: result: $ac_res" >&5
38270 echo "${ECHO_T}$ac_res" >&6; }
38271 if test `eval echo '${'$as_ac_var'}'` = yes; then
38272 cat >>confdefs.h <<_ACEOF
38273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38280 for ac_func in fdatasync
38282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38286 echo $ECHO_N "(cached) $ECHO_C" >&6
38288 cat >conftest.$ac_ext <<_ACEOF
38291 cat confdefs.h >>conftest.$ac_ext
38292 cat >>conftest.$ac_ext <<_ACEOF
38293 /* end confdefs.h. */
38294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38296 #define $ac_func innocuous_$ac_func
38298 /* System header to define __stub macros and hopefully few prototypes,
38299 which can conflict with char $ac_func (); below.
38300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38301 <limits.h> exists even on freestanding compilers. */
38304 # include <limits.h>
38306 # include <assert.h>
38311 /* Override any GCC internal prototype to avoid an error.
38312 Use char because int might match the return type of a GCC
38313 builtin and then its argument prototype would still apply. */
38318 /* The GNU C library defines this for functions which it implements
38319 to always fail with ENOSYS. Some functions are actually named
38320 something starting with __ and the normal name is an alias. */
38321 #if defined __stub_$ac_func || defined __stub___$ac_func
38328 return $ac_func ();
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (ac_try="$ac_link"
38335 case "(($ac_try" in
38336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38337 *) ac_try_echo=$ac_try;;
38339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38340 (eval "$ac_link") 2>conftest.er1
38342 grep -v '^ *+' conftest.er1 >conftest.err
38344 cat conftest.err >&5
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); } && {
38347 test -z "$ac_c_werror_flag" ||
38348 test ! -s conftest.err
38349 } && test -s conftest$ac_exeext &&
38350 $as_test_x conftest$ac_exeext; then
38351 eval "$as_ac_var=yes"
38353 echo "$as_me: failed program was:" >&5
38354 sed 's/^/| /' conftest.$ac_ext >&5
38356 eval "$as_ac_var=no"
38359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38360 conftest$ac_exeext conftest.$ac_ext
38362 ac_res=`eval echo '${'$as_ac_var'}'`
38363 { echo "$as_me:$LINENO: result: $ac_res" >&5
38364 echo "${ECHO_T}$ac_res" >&6; }
38365 if test `eval echo '${'$as_ac_var'}'` = yes; then
38366 cat >>confdefs.h <<_ACEOF
38367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38375 for ac_func in chflags
38377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38381 echo $ECHO_N "(cached) $ECHO_C" >&6
38383 cat >conftest.$ac_ext <<_ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h. */
38389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38391 #define $ac_func innocuous_$ac_func
38393 /* System header to define __stub macros and hopefully few prototypes,
38394 which can conflict with char $ac_func (); below.
38395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38396 <limits.h> exists even on freestanding compilers. */
38399 # include <limits.h>
38401 # include <assert.h>
38406 /* Override any GCC internal prototype to avoid an error.
38407 Use char because int might match the return type of a GCC
38408 builtin and then its argument prototype would still apply. */
38413 /* The GNU C library defines this for functions which it implements
38414 to always fail with ENOSYS. Some functions are actually named
38415 something starting with __ and the normal name is an alias. */
38416 #if defined __stub_$ac_func || defined __stub___$ac_func
38423 return $ac_func ();
38428 rm -f conftest.$ac_objext conftest$ac_exeext
38429 if { (ac_try="$ac_link"
38430 case "(($ac_try" in
38431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38432 *) ac_try_echo=$ac_try;;
38434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38435 (eval "$ac_link") 2>conftest.er1
38437 grep -v '^ *+' conftest.er1 >conftest.err
38439 cat conftest.err >&5
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); } && {
38442 test -z "$ac_c_werror_flag" ||
38443 test ! -s conftest.err
38444 } && test -s conftest$ac_exeext &&
38445 $as_test_x conftest$ac_exeext; then
38446 eval "$as_ac_var=yes"
38448 echo "$as_me: failed program was:" >&5
38449 sed 's/^/| /' conftest.$ac_ext >&5
38451 eval "$as_ac_var=no"
38454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38455 conftest$ac_exeext conftest.$ac_ext
38457 ac_res=`eval echo '${'$as_ac_var'}'`
38458 { echo "$as_me:$LINENO: result: $ac_res" >&5
38459 echo "${ECHO_T}$ac_res" >&6; }
38460 if test `eval echo '${'$as_ac_var'}'` = yes; then
38461 cat >>confdefs.h <<_ACEOF
38462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38473 for ac_func in snprintf vsnprintf gethostid fseeko
38475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38479 echo $ECHO_N "(cached) $ECHO_C" >&6
38481 cat >conftest.$ac_ext <<_ACEOF
38484 cat confdefs.h >>conftest.$ac_ext
38485 cat >>conftest.$ac_ext <<_ACEOF
38486 /* end confdefs.h. */
38487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38489 #define $ac_func innocuous_$ac_func
38491 /* System header to define __stub macros and hopefully few prototypes,
38492 which can conflict with char $ac_func (); below.
38493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38494 <limits.h> exists even on freestanding compilers. */
38497 # include <limits.h>
38499 # include <assert.h>
38504 /* Override any GCC internal prototype to avoid an error.
38505 Use char because int might match the return type of a GCC
38506 builtin and then its argument prototype would still apply. */
38511 /* The GNU C library defines this for functions which it implements
38512 to always fail with ENOSYS. Some functions are actually named
38513 something starting with __ and the normal name is an alias. */
38514 #if defined __stub_$ac_func || defined __stub___$ac_func
38521 return $ac_func ();
38526 rm -f conftest.$ac_objext conftest$ac_exeext
38527 if { (ac_try="$ac_link"
38528 case "(($ac_try" in
38529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38530 *) ac_try_echo=$ac_try;;
38532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38533 (eval "$ac_link") 2>conftest.er1
38535 grep -v '^ *+' conftest.er1 >conftest.err
38537 cat conftest.err >&5
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); } && {
38540 test -z "$ac_c_werror_flag" ||
38541 test ! -s conftest.err
38542 } && test -s conftest$ac_exeext &&
38543 $as_test_x conftest$ac_exeext; then
38544 eval "$as_ac_var=yes"
38546 echo "$as_me: failed program was:" >&5
38547 sed 's/^/| /' conftest.$ac_ext >&5
38549 eval "$as_ac_var=no"
38552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38553 conftest$ac_exeext conftest.$ac_ext
38555 ac_res=`eval echo '${'$as_ac_var'}'`
38556 { echo "$as_me:$LINENO: result: $ac_res" >&5
38557 echo "${ECHO_T}$ac_res" >&6; }
38558 if test `eval echo '${'$as_ac_var'}'` = yes; then
38559 cat >>confdefs.h <<_ACEOF
38560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38567 { echo "$as_me:$LINENO: checking for va_copy" >&5
38568 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38569 if test "${ba_cv_va_copy+set}" = set; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38573 cat >conftest.$ac_ext <<_ACEOF
38576 cat confdefs.h >>conftest.$ac_ext
38577 cat >>conftest.$ac_ext <<_ACEOF
38578 /* end confdefs.h. */
38580 #include <stdarg.h>
38581 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38582 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38588 call_use_va_copy(1,2,3)
38594 rm -f conftest.$ac_objext conftest$ac_exeext
38595 if { (ac_try="$ac_link"
38596 case "(($ac_try" in
38597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38598 *) ac_try_echo=$ac_try;;
38600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38601 (eval "$ac_link") 2>conftest.er1
38603 grep -v '^ *+' conftest.er1 >conftest.err
38605 cat conftest.err >&5
38606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607 (exit $ac_status); } && {
38608 test -z "$ac_c_werror_flag" ||
38609 test ! -s conftest.err
38610 } && test -s conftest$ac_exeext &&
38611 $as_test_x conftest$ac_exeext; then
38616 echo "$as_me: failed program was:" >&5
38617 sed 's/^/| /' conftest.$ac_ext >&5
38625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38626 conftest$ac_exeext conftest.$ac_ext
38630 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38631 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38632 test $ba_cv_va_copy = yes &&
38633 cat >>confdefs.h <<\_ACEOF
38634 #define HAVE_VA_COPY 1
38642 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38648 echo $ECHO_N "(cached) $ECHO_C" >&6
38650 cat >conftest.$ac_ext <<_ACEOF
38653 cat confdefs.h >>conftest.$ac_ext
38654 cat >>conftest.$ac_ext <<_ACEOF
38655 /* end confdefs.h. */
38656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38658 #define $ac_func innocuous_$ac_func
38660 /* System header to define __stub macros and hopefully few prototypes,
38661 which can conflict with char $ac_func (); below.
38662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38663 <limits.h> exists even on freestanding compilers. */
38666 # include <limits.h>
38668 # include <assert.h>
38673 /* Override any GCC internal prototype to avoid an error.
38674 Use char because int might match the return type of a GCC
38675 builtin and then its argument prototype would still apply. */
38680 /* The GNU C library defines this for functions which it implements
38681 to always fail with ENOSYS. Some functions are actually named
38682 something starting with __ and the normal name is an alias. */
38683 #if defined __stub_$ac_func || defined __stub___$ac_func
38690 return $ac_func ();
38695 rm -f conftest.$ac_objext conftest$ac_exeext
38696 if { (ac_try="$ac_link"
38697 case "(($ac_try" in
38698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38699 *) ac_try_echo=$ac_try;;
38701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38702 (eval "$ac_link") 2>conftest.er1
38704 grep -v '^ *+' conftest.er1 >conftest.err
38706 cat conftest.err >&5
38707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708 (exit $ac_status); } && {
38709 test -z "$ac_c_werror_flag" ||
38710 test ! -s conftest.err
38711 } && test -s conftest$ac_exeext &&
38712 $as_test_x conftest$ac_exeext; then
38713 eval "$as_ac_var=yes"
38715 echo "$as_me: failed program was:" >&5
38716 sed 's/^/| /' conftest.$ac_ext >&5
38718 eval "$as_ac_var=no"
38721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38722 conftest$ac_exeext conftest.$ac_ext
38724 ac_res=`eval echo '${'$as_ac_var'}'`
38725 { echo "$as_me:$LINENO: result: $ac_res" >&5
38726 echo "${ECHO_T}$ac_res" >&6; }
38727 if test `eval echo '${'$as_ac_var'}'` = yes; then
38728 cat >>confdefs.h <<_ACEOF
38729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38736 # If resolver functions are not in libc check for -lnsl or -lresolv.
38737 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38738 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38739 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38740 echo $ECHO_N "(cached) $ECHO_C" >&6
38742 cat >conftest.$ac_ext <<_ACEOF
38745 cat confdefs.h >>conftest.$ac_ext
38746 cat >>conftest.$ac_ext <<_ACEOF
38747 /* end confdefs.h. */
38748 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38750 #define gethostbyname_r innocuous_gethostbyname_r
38752 /* System header to define __stub macros and hopefully few prototypes,
38753 which can conflict with char gethostbyname_r (); below.
38754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38755 <limits.h> exists even on freestanding compilers. */
38758 # include <limits.h>
38760 # include <assert.h>
38763 #undef gethostbyname_r
38765 /* Override any GCC internal prototype to avoid an error.
38766 Use char because int might match the return type of a GCC
38767 builtin and then its argument prototype would still apply. */
38771 char gethostbyname_r ();
38772 /* The GNU C library defines this for functions which it implements
38773 to always fail with ENOSYS. Some functions are actually named
38774 something starting with __ and the normal name is an alias. */
38775 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38782 return gethostbyname_r ();
38787 rm -f conftest.$ac_objext conftest$ac_exeext
38788 if { (ac_try="$ac_link"
38789 case "(($ac_try" in
38790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38791 *) ac_try_echo=$ac_try;;
38793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38794 (eval "$ac_link") 2>conftest.er1
38796 grep -v '^ *+' conftest.er1 >conftest.err
38798 cat conftest.err >&5
38799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); } && {
38801 test -z "$ac_c_werror_flag" ||
38802 test ! -s conftest.err
38803 } && test -s conftest$ac_exeext &&
38804 $as_test_x conftest$ac_exeext; then
38805 ac_cv_func_gethostbyname_r=yes
38807 echo "$as_me: failed program was:" >&5
38808 sed 's/^/| /' conftest.$ac_ext >&5
38810 ac_cv_func_gethostbyname_r=no
38813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38814 conftest$ac_exeext conftest.$ac_ext
38816 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38817 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38818 if test $ac_cv_func_gethostbyname_r = yes; then
38819 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38820 echo "${ECHO_T}using libc's resolver" >&6; }
38823 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38824 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38825 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38826 echo $ECHO_N "(cached) $ECHO_C" >&6
38828 ac_check_lib_save_LIBS=$LIBS
38830 cat >conftest.$ac_ext <<_ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h. */
38837 /* Override any GCC internal prototype to avoid an error.
38838 Use char because int might match the return type of a GCC
38839 builtin and then its argument prototype would still apply. */
38843 char gethostbyname_r ();
38847 return gethostbyname_r ();
38852 rm -f conftest.$ac_objext conftest$ac_exeext
38853 if { (ac_try="$ac_link"
38854 case "(($ac_try" in
38855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38856 *) ac_try_echo=$ac_try;;
38858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38859 (eval "$ac_link") 2>conftest.er1
38861 grep -v '^ *+' conftest.er1 >conftest.err
38863 cat conftest.err >&5
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); } && {
38866 test -z "$ac_c_werror_flag" ||
38867 test ! -s conftest.err
38868 } && test -s conftest$ac_exeext &&
38869 $as_test_x conftest$ac_exeext; then
38870 ac_cv_lib_nsl_gethostbyname_r=yes
38872 echo "$as_me: failed program was:" >&5
38873 sed 's/^/| /' conftest.$ac_ext >&5
38875 ac_cv_lib_nsl_gethostbyname_r=no
38878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38879 conftest$ac_exeext conftest.$ac_ext
38880 LIBS=$ac_check_lib_save_LIBS
38882 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38883 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38884 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38885 cat >>confdefs.h <<_ACEOF
38886 #define HAVE_LIBNSL 1
38894 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38895 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38896 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38897 echo $ECHO_N "(cached) $ECHO_C" >&6
38899 ac_check_lib_save_LIBS=$LIBS
38900 LIBS="-lresolv $LIBS"
38901 cat >conftest.$ac_ext <<_ACEOF
38904 cat confdefs.h >>conftest.$ac_ext
38905 cat >>conftest.$ac_ext <<_ACEOF
38906 /* end confdefs.h. */
38908 /* Override any GCC internal prototype to avoid an error.
38909 Use char because int might match the return type of a GCC
38910 builtin and then its argument prototype would still apply. */
38914 char gethostbyname_r ();
38918 return gethostbyname_r ();
38923 rm -f conftest.$ac_objext conftest$ac_exeext
38924 if { (ac_try="$ac_link"
38925 case "(($ac_try" in
38926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38927 *) ac_try_echo=$ac_try;;
38929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38930 (eval "$ac_link") 2>conftest.er1
38932 grep -v '^ *+' conftest.er1 >conftest.err
38934 cat conftest.err >&5
38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936 (exit $ac_status); } && {
38937 test -z "$ac_c_werror_flag" ||
38938 test ! -s conftest.err
38939 } && test -s conftest$ac_exeext &&
38940 $as_test_x conftest$ac_exeext; then
38941 ac_cv_lib_resolv_gethostbyname_r=yes
38943 echo "$as_me: failed program was:" >&5
38944 sed 's/^/| /' conftest.$ac_ext >&5
38946 ac_cv_lib_resolv_gethostbyname_r=no
38949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38950 conftest$ac_exeext conftest.$ac_ext
38951 LIBS=$ac_check_lib_save_LIBS
38953 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38954 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38955 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38956 cat >>confdefs.h <<_ACEOF
38957 #define HAVE_LIBRESOLV 1
38960 LIBS="-lresolv $LIBS"
38968 for ac_func in inet_pton
38970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38974 echo $ECHO_N "(cached) $ECHO_C" >&6
38976 cat >conftest.$ac_ext <<_ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h. */
38982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38984 #define $ac_func innocuous_$ac_func
38986 /* System header to define __stub macros and hopefully few prototypes,
38987 which can conflict with char $ac_func (); below.
38988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38989 <limits.h> exists even on freestanding compilers. */
38992 # include <limits.h>
38994 # include <assert.h>
38999 /* Override any GCC internal prototype to avoid an error.
39000 Use char because int might match the return type of a GCC
39001 builtin and then its argument prototype would still apply. */
39006 /* The GNU C library defines this for functions which it implements
39007 to always fail with ENOSYS. Some functions are actually named
39008 something starting with __ and the normal name is an alias. */
39009 #if defined __stub_$ac_func || defined __stub___$ac_func
39016 return $ac_func ();
39021 rm -f conftest.$ac_objext conftest$ac_exeext
39022 if { (ac_try="$ac_link"
39023 case "(($ac_try" in
39024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39025 *) ac_try_echo=$ac_try;;
39027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39028 (eval "$ac_link") 2>conftest.er1
39030 grep -v '^ *+' conftest.er1 >conftest.err
39032 cat conftest.err >&5
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } && {
39035 test -z "$ac_c_werror_flag" ||
39036 test ! -s conftest.err
39037 } && test -s conftest$ac_exeext &&
39038 $as_test_x conftest$ac_exeext; then
39039 eval "$as_ac_var=yes"
39041 echo "$as_me: failed program was:" >&5
39042 sed 's/^/| /' conftest.$ac_ext >&5
39044 eval "$as_ac_var=no"
39047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39048 conftest$ac_exeext conftest.$ac_ext
39050 ac_res=`eval echo '${'$as_ac_var'}'`
39051 { echo "$as_me:$LINENO: result: $ac_res" >&5
39052 echo "${ECHO_T}$ac_res" >&6; }
39053 if test `eval echo '${'$as_ac_var'}'` = yes; then
39054 cat >>confdefs.h <<_ACEOF
39055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39057 cat >>confdefs.h <<\_ACEOF
39058 #define HAVE_INET_PTON 1
39065 for ac_func in inet_ntop
39067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39071 echo $ECHO_N "(cached) $ECHO_C" >&6
39073 cat >conftest.$ac_ext <<_ACEOF
39076 cat confdefs.h >>conftest.$ac_ext
39077 cat >>conftest.$ac_ext <<_ACEOF
39078 /* end confdefs.h. */
39079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39081 #define $ac_func innocuous_$ac_func
39083 /* System header to define __stub macros and hopefully few prototypes,
39084 which can conflict with char $ac_func (); below.
39085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39086 <limits.h> exists even on freestanding compilers. */
39089 # include <limits.h>
39091 # include <assert.h>
39096 /* Override any GCC internal prototype to avoid an error.
39097 Use char because int might match the return type of a GCC
39098 builtin and then its argument prototype would still apply. */
39103 /* The GNU C library defines this for functions which it implements
39104 to always fail with ENOSYS. Some functions are actually named
39105 something starting with __ and the normal name is an alias. */
39106 #if defined __stub_$ac_func || defined __stub___$ac_func
39113 return $ac_func ();
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (ac_try="$ac_link"
39120 case "(($ac_try" in
39121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39122 *) ac_try_echo=$ac_try;;
39124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39125 (eval "$ac_link") 2>conftest.er1
39127 grep -v '^ *+' conftest.er1 >conftest.err
39129 cat conftest.err >&5
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); } && {
39132 test -z "$ac_c_werror_flag" ||
39133 test ! -s conftest.err
39134 } && test -s conftest$ac_exeext &&
39135 $as_test_x conftest$ac_exeext; then
39136 eval "$as_ac_var=yes"
39138 echo "$as_me: failed program was:" >&5
39139 sed 's/^/| /' conftest.$ac_ext >&5
39141 eval "$as_ac_var=no"
39144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39145 conftest$ac_exeext conftest.$ac_ext
39147 ac_res=`eval echo '${'$as_ac_var'}'`
39148 { echo "$as_me:$LINENO: result: $ac_res" >&5
39149 echo "${ECHO_T}$ac_res" >&6; }
39150 if test `eval echo '${'$as_ac_var'}'` = yes; then
39151 cat >>confdefs.h <<_ACEOF
39152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39154 cat >>confdefs.h <<\_ACEOF
39155 #define HAVE_INET_NTOP 1
39162 for ac_func in gethostbyname2
39164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39168 echo $ECHO_N "(cached) $ECHO_C" >&6
39170 cat >conftest.$ac_ext <<_ACEOF
39173 cat confdefs.h >>conftest.$ac_ext
39174 cat >>conftest.$ac_ext <<_ACEOF
39175 /* end confdefs.h. */
39176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39178 #define $ac_func innocuous_$ac_func
39180 /* System header to define __stub macros and hopefully few prototypes,
39181 which can conflict with char $ac_func (); below.
39182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39183 <limits.h> exists even on freestanding compilers. */
39186 # include <limits.h>
39188 # include <assert.h>
39193 /* Override any GCC internal prototype to avoid an error.
39194 Use char because int might match the return type of a GCC
39195 builtin and then its argument prototype would still apply. */
39200 /* The GNU C library defines this for functions which it implements
39201 to always fail with ENOSYS. Some functions are actually named
39202 something starting with __ and the normal name is an alias. */
39203 #if defined __stub_$ac_func || defined __stub___$ac_func
39210 return $ac_func ();
39215 rm -f conftest.$ac_objext conftest$ac_exeext
39216 if { (ac_try="$ac_link"
39217 case "(($ac_try" in
39218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39219 *) ac_try_echo=$ac_try;;
39221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39222 (eval "$ac_link") 2>conftest.er1
39224 grep -v '^ *+' conftest.er1 >conftest.err
39226 cat conftest.err >&5
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); } && {
39229 test -z "$ac_c_werror_flag" ||
39230 test ! -s conftest.err
39231 } && test -s conftest$ac_exeext &&
39232 $as_test_x conftest$ac_exeext; then
39233 eval "$as_ac_var=yes"
39235 echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39238 eval "$as_ac_var=no"
39241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39242 conftest$ac_exeext conftest.$ac_ext
39244 ac_res=`eval echo '${'$as_ac_var'}'`
39245 { echo "$as_me:$LINENO: result: $ac_res" >&5
39246 echo "${ECHO_T}$ac_res" >&6; }
39247 if test `eval echo '${'$as_ac_var'}'` = yes; then
39248 cat >>confdefs.h <<_ACEOF
39249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39251 cat >>confdefs.h <<\_ACEOF
39252 #define HAVE_GETHOSTBYNAME2 1
39259 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39260 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39261 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39262 echo $ECHO_N "(cached) $ECHO_C" >&6
39265 cat >conftest.$ac_ext <<_ACEOF
39268 cat confdefs.h >>conftest.$ac_ext
39269 cat >>conftest.$ac_ext <<_ACEOF
39270 /* end confdefs.h. */
39272 #include <sys/socket.h>
39278 struct sockaddr s; s.sa_len;
39284 rm -f conftest.$ac_objext
39285 if { (ac_try="$ac_compile"
39286 case "(($ac_try" in
39287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39288 *) ac_try_echo=$ac_try;;
39290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39291 (eval "$ac_compile") 2>conftest.er1
39293 grep -v '^ *+' conftest.er1 >conftest.err
39295 cat conftest.err >&5
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); } && {
39298 test -z "$ac_c_werror_flag" ||
39299 test ! -s conftest.err
39300 } && test -s conftest.$ac_objext; then
39302 ac_cv_struct_sockaddr_sa_len=yes
39305 echo "$as_me: failed program was:" >&5
39306 sed 's/^/| /' conftest.$ac_ext >&5
39308 ac_cv_struct_sockaddr_sa_len=no
39313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39317 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39318 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39320 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39322 cat >>confdefs.h <<\_ACEOF
39323 #define HAVE_SA_LEN 1
39329 for ac_func in strftime
39331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39335 echo $ECHO_N "(cached) $ECHO_C" >&6
39337 cat >conftest.$ac_ext <<_ACEOF
39340 cat confdefs.h >>conftest.$ac_ext
39341 cat >>conftest.$ac_ext <<_ACEOF
39342 /* end confdefs.h. */
39343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39345 #define $ac_func innocuous_$ac_func
39347 /* System header to define __stub macros and hopefully few prototypes,
39348 which can conflict with char $ac_func (); below.
39349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39350 <limits.h> exists even on freestanding compilers. */
39353 # include <limits.h>
39355 # include <assert.h>
39360 /* Override any GCC internal prototype to avoid an error.
39361 Use char because int might match the return type of a GCC
39362 builtin and then its argument prototype would still apply. */
39367 /* The GNU C library defines this for functions which it implements
39368 to always fail with ENOSYS. Some functions are actually named
39369 something starting with __ and the normal name is an alias. */
39370 #if defined __stub_$ac_func || defined __stub___$ac_func
39377 return $ac_func ();
39382 rm -f conftest.$ac_objext conftest$ac_exeext
39383 if { (ac_try="$ac_link"
39384 case "(($ac_try" in
39385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39386 *) ac_try_echo=$ac_try;;
39388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39389 (eval "$ac_link") 2>conftest.er1
39391 grep -v '^ *+' conftest.er1 >conftest.err
39393 cat conftest.err >&5
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); } && {
39396 test -z "$ac_c_werror_flag" ||
39397 test ! -s conftest.err
39398 } && test -s conftest$ac_exeext &&
39399 $as_test_x conftest$ac_exeext; then
39400 eval "$as_ac_var=yes"
39402 echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39405 eval "$as_ac_var=no"
39408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39409 conftest$ac_exeext conftest.$ac_ext
39411 ac_res=`eval echo '${'$as_ac_var'}'`
39412 { echo "$as_me:$LINENO: result: $ac_res" >&5
39413 echo "${ECHO_T}$ac_res" >&6; }
39414 if test `eval echo '${'$as_ac_var'}'` = yes; then
39415 cat >>confdefs.h <<_ACEOF
39416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39420 # strftime is in -lintl on SCO UNIX.
39421 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39424 echo $ECHO_N "(cached) $ECHO_C" >&6
39426 ac_check_lib_save_LIBS=$LIBS
39427 LIBS="-lintl $LIBS"
39428 cat >conftest.$ac_ext <<_ACEOF
39431 cat confdefs.h >>conftest.$ac_ext
39432 cat >>conftest.$ac_ext <<_ACEOF
39433 /* end confdefs.h. */
39435 /* Override any GCC internal prototype to avoid an error.
39436 Use char because int might match the return type of a GCC
39437 builtin and then its argument prototype would still apply. */
39445 return strftime ();
39450 rm -f conftest.$ac_objext conftest$ac_exeext
39451 if { (ac_try="$ac_link"
39452 case "(($ac_try" in
39453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39454 *) ac_try_echo=$ac_try;;
39456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39457 (eval "$ac_link") 2>conftest.er1
39459 grep -v '^ *+' conftest.er1 >conftest.err
39461 cat conftest.err >&5
39462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39463 (exit $ac_status); } && {
39464 test -z "$ac_c_werror_flag" ||
39465 test ! -s conftest.err
39466 } && test -s conftest$ac_exeext &&
39467 $as_test_x conftest$ac_exeext; then
39468 ac_cv_lib_intl_strftime=yes
39470 echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39473 ac_cv_lib_intl_strftime=no
39476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39477 conftest$ac_exeext conftest.$ac_ext
39478 LIBS=$ac_check_lib_save_LIBS
39480 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39481 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39482 if test $ac_cv_lib_intl_strftime = yes; then
39483 cat >>confdefs.h <<\_ACEOF
39484 #define HAVE_STRFTIME 1
39487 LIBS="-lintl $LIBS"
39494 for ac_func in vprintf
39496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39500 echo $ECHO_N "(cached) $ECHO_C" >&6
39502 cat >conftest.$ac_ext <<_ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h. */
39508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39510 #define $ac_func innocuous_$ac_func
39512 /* System header to define __stub macros and hopefully few prototypes,
39513 which can conflict with char $ac_func (); below.
39514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39515 <limits.h> exists even on freestanding compilers. */
39518 # include <limits.h>
39520 # include <assert.h>
39525 /* Override any GCC internal prototype to avoid an error.
39526 Use char because int might match the return type of a GCC
39527 builtin and then its argument prototype would still apply. */
39532 /* The GNU C library defines this for functions which it implements
39533 to always fail with ENOSYS. Some functions are actually named
39534 something starting with __ and the normal name is an alias. */
39535 #if defined __stub_$ac_func || defined __stub___$ac_func
39542 return $ac_func ();
39547 rm -f conftest.$ac_objext conftest$ac_exeext
39548 if { (ac_try="$ac_link"
39549 case "(($ac_try" in
39550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39551 *) ac_try_echo=$ac_try;;
39553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39554 (eval "$ac_link") 2>conftest.er1
39556 grep -v '^ *+' conftest.er1 >conftest.err
39558 cat conftest.err >&5
39559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560 (exit $ac_status); } && {
39561 test -z "$ac_c_werror_flag" ||
39562 test ! -s conftest.err
39563 } && test -s conftest$ac_exeext &&
39564 $as_test_x conftest$ac_exeext; then
39565 eval "$as_ac_var=yes"
39567 echo "$as_me: failed program was:" >&5
39568 sed 's/^/| /' conftest.$ac_ext >&5
39570 eval "$as_ac_var=no"
39573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39574 conftest$ac_exeext conftest.$ac_ext
39576 ac_res=`eval echo '${'$as_ac_var'}'`
39577 { echo "$as_me:$LINENO: result: $ac_res" >&5
39578 echo "${ECHO_T}$ac_res" >&6; }
39579 if test `eval echo '${'$as_ac_var'}'` = yes; then
39580 cat >>confdefs.h <<_ACEOF
39581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39584 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39585 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39586 if test "${ac_cv_func__doprnt+set}" = set; then
39587 echo $ECHO_N "(cached) $ECHO_C" >&6
39589 cat >conftest.$ac_ext <<_ACEOF
39592 cat confdefs.h >>conftest.$ac_ext
39593 cat >>conftest.$ac_ext <<_ACEOF
39594 /* end confdefs.h. */
39595 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39597 #define _doprnt innocuous__doprnt
39599 /* System header to define __stub macros and hopefully few prototypes,
39600 which can conflict with char _doprnt (); below.
39601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39602 <limits.h> exists even on freestanding compilers. */
39605 # include <limits.h>
39607 # include <assert.h>
39612 /* Override any GCC internal prototype to avoid an error.
39613 Use char because int might match the return type of a GCC
39614 builtin and then its argument prototype would still apply. */
39619 /* The GNU C library defines this for functions which it implements
39620 to always fail with ENOSYS. Some functions are actually named
39621 something starting with __ and the normal name is an alias. */
39622 #if defined __stub__doprnt || defined __stub____doprnt
39634 rm -f conftest.$ac_objext conftest$ac_exeext
39635 if { (ac_try="$ac_link"
39636 case "(($ac_try" in
39637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39638 *) ac_try_echo=$ac_try;;
39640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39641 (eval "$ac_link") 2>conftest.er1
39643 grep -v '^ *+' conftest.er1 >conftest.err
39645 cat conftest.err >&5
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); } && {
39648 test -z "$ac_c_werror_flag" ||
39649 test ! -s conftest.err
39650 } && test -s conftest$ac_exeext &&
39651 $as_test_x conftest$ac_exeext; then
39652 ac_cv_func__doprnt=yes
39654 echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39657 ac_cv_func__doprnt=no
39660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39661 conftest$ac_exeext conftest.$ac_ext
39663 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39664 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39665 if test $ac_cv_func__doprnt = yes; then
39667 cat >>confdefs.h <<\_ACEOF
39668 #define HAVE_DOPRNT 1
39677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39678 # for constant arguments. Useless!
39679 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39680 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39681 if test "${ac_cv_working_alloca_h+set}" = set; then
39682 echo $ECHO_N "(cached) $ECHO_C" >&6
39684 cat >conftest.$ac_ext <<_ACEOF
39687 cat confdefs.h >>conftest.$ac_ext
39688 cat >>conftest.$ac_ext <<_ACEOF
39689 /* end confdefs.h. */
39690 #include <alloca.h>
39694 char *p = (char *) alloca (2 * sizeof (int));
39700 rm -f conftest.$ac_objext conftest$ac_exeext
39701 if { (ac_try="$ac_link"
39702 case "(($ac_try" in
39703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39704 *) ac_try_echo=$ac_try;;
39706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39707 (eval "$ac_link") 2>conftest.er1
39709 grep -v '^ *+' conftest.er1 >conftest.err
39711 cat conftest.err >&5
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); } && {
39714 test -z "$ac_c_werror_flag" ||
39715 test ! -s conftest.err
39716 } && test -s conftest$ac_exeext &&
39717 $as_test_x conftest$ac_exeext; then
39718 ac_cv_working_alloca_h=yes
39720 echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39723 ac_cv_working_alloca_h=no
39726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39727 conftest$ac_exeext conftest.$ac_ext
39729 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39730 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39731 if test $ac_cv_working_alloca_h = yes; then
39733 cat >>confdefs.h <<\_ACEOF
39734 #define HAVE_ALLOCA_H 1
39739 { echo "$as_me:$LINENO: checking for alloca" >&5
39740 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39741 if test "${ac_cv_func_alloca_works+set}" = set; then
39742 echo $ECHO_N "(cached) $ECHO_C" >&6
39744 cat >conftest.$ac_ext <<_ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h. */
39751 # define alloca __builtin_alloca
39754 # include <malloc.h>
39755 # define alloca _alloca
39757 # ifdef HAVE_ALLOCA_H
39758 # include <alloca.h>
39763 # ifndef alloca /* predefined by HP cc +Olibcalls */
39774 char *p = (char *) alloca (1);
39780 rm -f conftest.$ac_objext conftest$ac_exeext
39781 if { (ac_try="$ac_link"
39782 case "(($ac_try" in
39783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39784 *) ac_try_echo=$ac_try;;
39786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39787 (eval "$ac_link") 2>conftest.er1
39789 grep -v '^ *+' conftest.er1 >conftest.err
39791 cat conftest.err >&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); } && {
39794 test -z "$ac_c_werror_flag" ||
39795 test ! -s conftest.err
39796 } && test -s conftest$ac_exeext &&
39797 $as_test_x conftest$ac_exeext; then
39798 ac_cv_func_alloca_works=yes
39800 echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39803 ac_cv_func_alloca_works=no
39806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39807 conftest$ac_exeext conftest.$ac_ext
39809 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39812 if test $ac_cv_func_alloca_works = yes; then
39814 cat >>confdefs.h <<\_ACEOF
39815 #define HAVE_ALLOCA 1
39819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39820 # that cause trouble. Some versions do not even contain alloca or
39821 # contain a buggy version. If you still want to use their alloca,
39822 # use ar to extract alloca.o from them instead of compiling alloca.c.
39824 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39826 cat >>confdefs.h <<\_ACEOF
39831 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39833 if test "${ac_cv_os_cray+set}" = set; then
39834 echo $ECHO_N "(cached) $ECHO_C" >&6
39836 cat >conftest.$ac_ext <<_ACEOF
39839 cat confdefs.h >>conftest.$ac_ext
39840 cat >>conftest.$ac_ext <<_ACEOF
39841 /* end confdefs.h. */
39842 #if defined CRAY && ! defined CRAY2
39849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39850 $EGREP "webecray" >/dev/null 2>&1; then
39858 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39859 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39860 if test $ac_cv_os_cray = yes; then
39861 for ac_func in _getb67 GETB67 getb67; do
39862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39866 echo $ECHO_N "(cached) $ECHO_C" >&6
39868 cat >conftest.$ac_ext <<_ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h. */
39874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39876 #define $ac_func innocuous_$ac_func
39878 /* System header to define __stub macros and hopefully few prototypes,
39879 which can conflict with char $ac_func (); below.
39880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39881 <limits.h> exists even on freestanding compilers. */
39884 # include <limits.h>
39886 # include <assert.h>
39891 /* Override any GCC internal prototype to avoid an error.
39892 Use char because int might match the return type of a GCC
39893 builtin and then its argument prototype would still apply. */
39898 /* The GNU C library defines this for functions which it implements
39899 to always fail with ENOSYS. Some functions are actually named
39900 something starting with __ and the normal name is an alias. */
39901 #if defined __stub_$ac_func || defined __stub___$ac_func
39908 return $ac_func ();
39913 rm -f conftest.$ac_objext conftest$ac_exeext
39914 if { (ac_try="$ac_link"
39915 case "(($ac_try" in
39916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39917 *) ac_try_echo=$ac_try;;
39919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39920 (eval "$ac_link") 2>conftest.er1
39922 grep -v '^ *+' conftest.er1 >conftest.err
39924 cat conftest.err >&5
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); } && {
39927 test -z "$ac_c_werror_flag" ||
39928 test ! -s conftest.err
39929 } && test -s conftest$ac_exeext &&
39930 $as_test_x conftest$ac_exeext; then
39931 eval "$as_ac_var=yes"
39933 echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39936 eval "$as_ac_var=no"
39939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39940 conftest$ac_exeext conftest.$ac_ext
39942 ac_res=`eval echo '${'$as_ac_var'}'`
39943 { echo "$as_me:$LINENO: result: $ac_res" >&5
39944 echo "${ECHO_T}$ac_res" >&6; }
39945 if test `eval echo '${'$as_ac_var'}'` = yes; then
39947 cat >>confdefs.h <<_ACEOF
39948 #define CRAY_STACKSEG_END $ac_func
39957 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39958 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39959 if test "${ac_cv_c_stack_direction+set}" = set; then
39960 echo $ECHO_N "(cached) $ECHO_C" >&6
39962 if test "$cross_compiling" = yes; then
39963 ac_cv_c_stack_direction=0
39965 cat >conftest.$ac_ext <<_ACEOF
39968 cat confdefs.h >>conftest.$ac_ext
39969 cat >>conftest.$ac_ext <<_ACEOF
39970 /* end confdefs.h. */
39971 $ac_includes_default
39973 find_stack_direction ()
39975 static char *addr = 0;
39980 return find_stack_direction ();
39983 return (&dummy > addr) ? 1 : -1;
39989 return find_stack_direction () < 0;
39992 rm -f conftest$ac_exeext
39993 if { (ac_try="$ac_link"
39994 case "(($ac_try" in
39995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39996 *) ac_try_echo=$ac_try;;
39998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39999 (eval "$ac_link") 2>&5
40001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40003 { (case "(($ac_try" in
40004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40005 *) ac_try_echo=$ac_try;;
40007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40008 (eval "$ac_try") 2>&5
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); }; }; then
40012 ac_cv_c_stack_direction=1
40014 echo "$as_me: program exited with status $ac_status" >&5
40015 echo "$as_me: failed program was:" >&5
40016 sed 's/^/| /' conftest.$ac_ext >&5
40018 ( exit $ac_status )
40019 ac_cv_c_stack_direction=-1
40021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40026 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40027 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40029 cat >>confdefs.h <<_ACEOF
40030 #define STACK_DIRECTION $ac_cv_c_stack_direction
40036 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40037 # -lseq on Dynix/PTX, -lgen on Unixware.
40038 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40039 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40040 if test "${ac_cv_search_getmntent+set}" = set; then
40041 echo $ECHO_N "(cached) $ECHO_C" >&6
40043 ac_func_search_save_LIBS=$LIBS
40044 cat >conftest.$ac_ext <<_ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h. */
40051 /* Override any GCC internal prototype to avoid an error.
40052 Use char because int might match the return type of a GCC
40053 builtin and then its argument prototype would still apply. */
40061 return getmntent ();
40066 for ac_lib in '' sun seq gen; do
40067 if test -z "$ac_lib"; then
40068 ac_res="none required"
40071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40073 rm -f conftest.$ac_objext conftest$ac_exeext
40074 if { (ac_try="$ac_link"
40075 case "(($ac_try" in
40076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077 *) ac_try_echo=$ac_try;;
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080 (eval "$ac_link") 2>conftest.er1
40082 grep -v '^ *+' conftest.er1 >conftest.err
40084 cat conftest.err >&5
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } && {
40087 test -z "$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40089 } && test -s conftest$ac_exeext &&
40090 $as_test_x conftest$ac_exeext; then
40091 ac_cv_search_getmntent=$ac_res
40093 echo "$as_me: failed program was:" >&5
40094 sed 's/^/| /' conftest.$ac_ext >&5
40099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40101 if test "${ac_cv_search_getmntent+set}" = set; then
40105 if test "${ac_cv_search_getmntent+set}" = set; then
40108 ac_cv_search_getmntent=no
40110 rm conftest.$ac_ext
40111 LIBS=$ac_func_search_save_LIBS
40113 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40114 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40115 ac_res=$ac_cv_search_getmntent
40116 if test "$ac_res" != no; then
40117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40118 ac_cv_func_getmntent=yes
40120 cat >>confdefs.h <<\_ACEOF
40121 #define HAVE_GETMNTENT 1
40125 ac_cv_func_getmntent=no
40129 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40130 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40131 if test "${ac_cv_func_closedir_void+set}" = set; then
40132 echo $ECHO_N "(cached) $ECHO_C" >&6
40134 if test "$cross_compiling" = yes; then
40135 ac_cv_func_closedir_void=yes
40137 cat >conftest.$ac_ext <<_ACEOF
40140 cat confdefs.h >>conftest.$ac_ext
40141 cat >>conftest.$ac_ext <<_ACEOF
40142 /* end confdefs.h. */
40143 $ac_includes_default
40144 #include <$ac_header_dirent>
40145 #ifndef __cplusplus
40152 return closedir (opendir (".")) != 0;
40157 rm -f conftest$ac_exeext
40158 if { (ac_try="$ac_link"
40159 case "(($ac_try" in
40160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40161 *) ac_try_echo=$ac_try;;
40163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40164 (eval "$ac_link") 2>&5
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40168 { (case "(($ac_try" in
40169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170 *) ac_try_echo=$ac_try;;
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173 (eval "$ac_try") 2>&5
40175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176 (exit $ac_status); }; }; then
40177 ac_cv_func_closedir_void=no
40179 echo "$as_me: program exited with status $ac_status" >&5
40180 echo "$as_me: failed program was:" >&5
40181 sed 's/^/| /' conftest.$ac_ext >&5
40183 ( exit $ac_status )
40184 ac_cv_func_closedir_void=yes
40186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40191 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40192 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40193 if test $ac_cv_func_closedir_void = yes; then
40195 cat >>confdefs.h <<\_ACEOF
40196 #define CLOSEDIR_VOID 1
40201 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40202 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40203 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40204 echo $ECHO_N "(cached) $ECHO_C" >&6
40206 if test "$cross_compiling" = yes; then
40207 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40208 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40209 { (exit 1); exit 1; }; }
40211 cat >conftest.$ac_ext <<_ACEOF
40214 cat confdefs.h >>conftest.$ac_ext
40215 cat >>conftest.$ac_ext <<_ACEOF
40216 /* end confdefs.h. */
40217 $ac_includes_default
40221 /* If this system has a BSD-style setpgrp which takes arguments,
40222 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40223 exit successfully. */
40224 return setpgrp (1,1) != -1;
40229 rm -f conftest$ac_exeext
40230 if { (ac_try="$ac_link"
40231 case "(($ac_try" in
40232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40233 *) ac_try_echo=$ac_try;;
40235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40236 (eval "$ac_link") 2>&5
40238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40240 { (case "(($ac_try" in
40241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40242 *) ac_try_echo=$ac_try;;
40244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40245 (eval "$ac_try") 2>&5
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); }; }; then
40249 ac_cv_func_setpgrp_void=no
40251 echo "$as_me: program exited with status $ac_status" >&5
40252 echo "$as_me: failed program was:" >&5
40253 sed 's/^/| /' conftest.$ac_ext >&5
40255 ( exit $ac_status )
40256 ac_cv_func_setpgrp_void=yes
40258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40263 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40264 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40265 if test $ac_cv_func_setpgrp_void = yes; then
40267 cat >>confdefs.h <<\_ACEOF
40268 #define SETPGRP_VOID 1
40272 # AC_FUNC_FNMATCH dnl use local version
40274 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40275 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40276 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40277 echo $ECHO_N "(cached) $ECHO_C" >&6
40279 ac_check_lib_save_LIBS=$LIBS
40280 LIBS="-lintl $LIBS"
40281 cat >conftest.$ac_ext <<_ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h. */
40288 /* Override any GCC internal prototype to avoid an error.
40289 Use char because int might match the return type of a GCC
40290 builtin and then its argument prototype would still apply. */
40303 rm -f conftest.$ac_objext conftest$ac_exeext
40304 if { (ac_try="$ac_link"
40305 case "(($ac_try" in
40306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40307 *) ac_try_echo=$ac_try;;
40309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40310 (eval "$ac_link") 2>conftest.er1
40312 grep -v '^ *+' conftest.er1 >conftest.err
40314 cat conftest.err >&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); } && {
40317 test -z "$ac_c_werror_flag" ||
40318 test ! -s conftest.err
40319 } && test -s conftest$ac_exeext &&
40320 $as_test_x conftest$ac_exeext; then
40321 ac_cv_lib_intl_gettext=yes
40323 echo "$as_me: failed program was:" >&5
40324 sed 's/^/| /' conftest.$ac_ext >&5
40326 ac_cv_lib_intl_gettext=no
40329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40330 conftest$ac_exeext conftest.$ac_ext
40331 LIBS=$ac_check_lib_save_LIBS
40333 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40334 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40335 if test $ac_cv_lib_intl_gettext = yes; then
40336 LIBS="$LIBS -lintl"
40341 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40342 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40343 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40344 echo $ECHO_N "(cached) $ECHO_C" >&6
40346 ac_check_lib_save_LIBS=$LIBS
40348 cat >conftest.$ac_ext <<_ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h. */
40355 /* Override any GCC internal prototype to avoid an error.
40356 Use char because int might match the return type of a GCC
40357 builtin and then its argument prototype would still apply. */
40365 return getpwnam ();
40370 rm -f conftest.$ac_objext conftest$ac_exeext
40371 if { (ac_try="$ac_link"
40372 case "(($ac_try" in
40373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374 *) ac_try_echo=$ac_try;;
40376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40377 (eval "$ac_link") 2>conftest.er1
40379 grep -v '^ *+' conftest.er1 >conftest.err
40381 cat conftest.err >&5
40382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383 (exit $ac_status); } && {
40384 test -z "$ac_c_werror_flag" ||
40385 test ! -s conftest.err
40386 } && test -s conftest$ac_exeext &&
40387 $as_test_x conftest$ac_exeext; then
40388 ac_cv_lib_sun_getpwnam=yes
40390 echo "$as_me: failed program was:" >&5
40391 sed 's/^/| /' conftest.$ac_ext >&5
40393 ac_cv_lib_sun_getpwnam=no
40396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40397 conftest$ac_exeext conftest.$ac_ext
40398 LIBS=$ac_check_lib_save_LIBS
40400 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40401 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40402 if test $ac_cv_lib_sun_getpwnam = yes; then
40403 cat >>confdefs.h <<_ACEOF
40404 #define HAVE_LIBSUN 1
40413 for ac_header in zlib.h
40415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40420 echo $ECHO_N "(cached) $ECHO_C" >&6
40422 ac_res=`eval echo '${'$as_ac_Header'}'`
40423 { echo "$as_me:$LINENO: result: $ac_res" >&5
40424 echo "${ECHO_T}$ac_res" >&6; }
40426 # Is the header compilable?
40427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40429 cat >conftest.$ac_ext <<_ACEOF
40432 cat confdefs.h >>conftest.$ac_ext
40433 cat >>conftest.$ac_ext <<_ACEOF
40434 /* end confdefs.h. */
40435 $ac_includes_default
40436 #include <$ac_header>
40438 rm -f conftest.$ac_objext
40439 if { (ac_try="$ac_compile"
40440 case "(($ac_try" in
40441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442 *) ac_try_echo=$ac_try;;
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445 (eval "$ac_compile") 2>conftest.er1
40447 grep -v '^ *+' conftest.er1 >conftest.err
40449 cat conftest.err >&5
40450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 (exit $ac_status); } && {
40452 test -z "$ac_c_werror_flag" ||
40453 test ! -s conftest.err
40454 } && test -s conftest.$ac_objext; then
40455 ac_header_compiler=yes
40457 echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40460 ac_header_compiler=no
40463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40465 echo "${ECHO_T}$ac_header_compiler" >&6; }
40467 # Is the header present?
40468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40470 cat >conftest.$ac_ext <<_ACEOF
40473 cat confdefs.h >>conftest.$ac_ext
40474 cat >>conftest.$ac_ext <<_ACEOF
40475 /* end confdefs.h. */
40476 #include <$ac_header>
40478 if { (ac_try="$ac_cpp conftest.$ac_ext"
40479 case "(($ac_try" in
40480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40481 *) ac_try_echo=$ac_try;;
40483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40486 grep -v '^ *+' conftest.er1 >conftest.err
40488 cat conftest.err >&5
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490 (exit $ac_status); } >/dev/null && {
40491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40492 test ! -s conftest.err
40494 ac_header_preproc=yes
40496 echo "$as_me: failed program was:" >&5
40497 sed 's/^/| /' conftest.$ac_ext >&5
40499 ac_header_preproc=no
40502 rm -f conftest.err conftest.$ac_ext
40503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40504 echo "${ECHO_T}$ac_header_preproc" >&6; }
40506 # So? What about this header?
40507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40513 ac_header_preproc=yes
40516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40534 echo $ECHO_N "(cached) $ECHO_C" >&6
40536 eval "$as_ac_Header=\$ac_header_preproc"
40538 ac_res=`eval echo '${'$as_ac_Header'}'`
40539 { echo "$as_me:$LINENO: result: $ac_res" >&5
40540 echo "${ECHO_T}$ac_res" >&6; }
40543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40544 cat >>confdefs.h <<_ACEOF
40545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40552 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40553 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40554 if test "${ac_cv_lib_z_deflate+set}" = set; then
40555 echo $ECHO_N "(cached) $ECHO_C" >&6
40557 ac_check_lib_save_LIBS=$LIBS
40559 cat >conftest.$ac_ext <<_ACEOF
40562 cat confdefs.h >>conftest.$ac_ext
40563 cat >>conftest.$ac_ext <<_ACEOF
40564 /* end confdefs.h. */
40566 /* Override any GCC internal prototype to avoid an error.
40567 Use char because int might match the return type of a GCC
40568 builtin and then its argument prototype would still apply. */
40581 rm -f conftest.$ac_objext conftest$ac_exeext
40582 if { (ac_try="$ac_link"
40583 case "(($ac_try" in
40584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40585 *) ac_try_echo=$ac_try;;
40587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40588 (eval "$ac_link") 2>conftest.er1
40590 grep -v '^ *+' conftest.er1 >conftest.err
40592 cat conftest.err >&5
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); } && {
40595 test -z "$ac_c_werror_flag" ||
40596 test ! -s conftest.err
40597 } && test -s conftest$ac_exeext &&
40598 $as_test_x conftest$ac_exeext; then
40599 ac_cv_lib_z_deflate=yes
40601 echo "$as_me: failed program was:" >&5
40602 sed 's/^/| /' conftest.$ac_ext >&5
40604 ac_cv_lib_z_deflate=no
40607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40608 conftest$ac_exeext conftest.$ac_ext
40609 LIBS=$ac_check_lib_save_LIBS
40611 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40612 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40613 if test $ac_cv_lib_z_deflate = yes; then
40618 if test x$FDLIBS = x-lz; then
40619 cat >>confdefs.h <<\_ACEOF
40620 #define HAVE_LIBZ 1
40627 # Check whether --enable-acl was given.
40628 if test "${enable_acl+set}" = set; then
40629 enableval=$enable_acl;
40630 if test x$enableval = xno; then
40639 have_extended_acl=no
40640 if test x$support_acl = xyes; then
40641 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40642 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40643 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40644 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40645 echo $ECHO_N "(cached) $ECHO_C" >&6
40647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40648 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40650 # Is the header compilable?
40651 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40652 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40653 cat >conftest.$ac_ext <<_ACEOF
40656 cat confdefs.h >>conftest.$ac_ext
40657 cat >>conftest.$ac_ext <<_ACEOF
40658 /* end confdefs.h. */
40659 $ac_includes_default
40660 #include <sys/acl.h>
40662 rm -f conftest.$ac_objext
40663 if { (ac_try="$ac_compile"
40664 case "(($ac_try" in
40665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40666 *) ac_try_echo=$ac_try;;
40668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40669 (eval "$ac_compile") 2>conftest.er1
40671 grep -v '^ *+' conftest.er1 >conftest.err
40673 cat conftest.err >&5
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); } && {
40676 test -z "$ac_c_werror_flag" ||
40677 test ! -s conftest.err
40678 } && test -s conftest.$ac_objext; then
40679 ac_header_compiler=yes
40681 echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40684 ac_header_compiler=no
40687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40689 echo "${ECHO_T}$ac_header_compiler" >&6; }
40691 # Is the header present?
40692 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40693 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40694 cat >conftest.$ac_ext <<_ACEOF
40697 cat confdefs.h >>conftest.$ac_ext
40698 cat >>conftest.$ac_ext <<_ACEOF
40699 /* end confdefs.h. */
40700 #include <sys/acl.h>
40702 if { (ac_try="$ac_cpp conftest.$ac_ext"
40703 case "(($ac_try" in
40704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40705 *) ac_try_echo=$ac_try;;
40707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40710 grep -v '^ *+' conftest.er1 >conftest.err
40712 cat conftest.err >&5
40713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714 (exit $ac_status); } >/dev/null && {
40715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40716 test ! -s conftest.err
40718 ac_header_preproc=yes
40720 echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40723 ac_header_preproc=no
40726 rm -f conftest.err conftest.$ac_ext
40727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40728 echo "${ECHO_T}$ac_header_preproc" >&6; }
40730 # So? What about this header?
40731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40733 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40734 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40735 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40736 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40737 ac_header_preproc=yes
40740 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40741 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40742 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40743 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40744 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40745 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40746 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40747 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40748 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40749 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40750 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40751 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40755 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40756 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40757 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40758 echo $ECHO_N "(cached) $ECHO_C" >&6
40760 ac_cv_header_sys_acl_h=$ac_header_preproc
40762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40763 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40766 if test $ac_cv_header_sys_acl_h = yes; then
40768 cat >>confdefs.h <<\_ACEOF
40769 #define HAVE_SYS_ACL_H 1
40775 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40776 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40777 if test "${ac_cv_func_acl_get_file+set}" = set; then
40778 echo $ECHO_N "(cached) $ECHO_C" >&6
40780 cat >conftest.$ac_ext <<_ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h. */
40786 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40788 #define acl_get_file innocuous_acl_get_file
40790 /* System header to define __stub macros and hopefully few prototypes,
40791 which can conflict with char acl_get_file (); below.
40792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40793 <limits.h> exists even on freestanding compilers. */
40796 # include <limits.h>
40798 # include <assert.h>
40801 #undef acl_get_file
40803 /* Override any GCC internal prototype to avoid an error.
40804 Use char because int might match the return type of a GCC
40805 builtin and then its argument prototype would still apply. */
40809 char acl_get_file ();
40810 /* The GNU C library defines this for functions which it implements
40811 to always fail with ENOSYS. Some functions are actually named
40812 something starting with __ and the normal name is an alias. */
40813 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40820 return acl_get_file ();
40825 rm -f conftest.$ac_objext conftest$ac_exeext
40826 if { (ac_try="$ac_link"
40827 case "(($ac_try" in
40828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40829 *) ac_try_echo=$ac_try;;
40831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40832 (eval "$ac_link") 2>conftest.er1
40834 grep -v '^ *+' conftest.er1 >conftest.err
40836 cat conftest.err >&5
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); } && {
40839 test -z "$ac_c_werror_flag" ||
40840 test ! -s conftest.err
40841 } && test -s conftest$ac_exeext &&
40842 $as_test_x conftest$ac_exeext; then
40843 ac_cv_func_acl_get_file=yes
40845 echo "$as_me: failed program was:" >&5
40846 sed 's/^/| /' conftest.$ac_ext >&5
40848 ac_cv_func_acl_get_file=no
40851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40852 conftest$ac_exeext conftest.$ac_ext
40854 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40855 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40856 if test $ac_cv_func_acl_get_file = yes; then
40862 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40863 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40864 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40865 echo $ECHO_N "(cached) $ECHO_C" >&6
40867 ac_check_lib_save_LIBS=$LIBS
40869 cat >conftest.$ac_ext <<_ACEOF
40872 cat confdefs.h >>conftest.$ac_ext
40873 cat >>conftest.$ac_ext <<_ACEOF
40874 /* end confdefs.h. */
40876 /* Override any GCC internal prototype to avoid an error.
40877 Use char because int might match the return type of a GCC
40878 builtin and then its argument prototype would still apply. */
40882 char acl_get_file ();
40886 return acl_get_file ();
40891 rm -f conftest.$ac_objext conftest$ac_exeext
40892 if { (ac_try="$ac_link"
40893 case "(($ac_try" in
40894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40895 *) ac_try_echo=$ac_try;;
40897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40898 (eval "$ac_link") 2>conftest.er1
40900 grep -v '^ *+' conftest.er1 >conftest.err
40902 cat conftest.err >&5
40903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904 (exit $ac_status); } && {
40905 test -z "$ac_c_werror_flag" ||
40906 test ! -s conftest.err
40907 } && test -s conftest$ac_exeext &&
40908 $as_test_x conftest$ac_exeext; then
40909 ac_cv_lib_acl_acl_get_file=yes
40911 echo "$as_me: failed program was:" >&5
40912 sed 's/^/| /' conftest.$ac_ext >&5
40914 ac_cv_lib_acl_acl_get_file=no
40917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40918 conftest$ac_exeext conftest.$ac_ext
40919 LIBS=$ac_check_lib_save_LIBS
40921 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40922 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40923 if test $ac_cv_lib_acl_acl_get_file = yes; then
40926 FDLIBS="-lacl $FDLIBS"
40930 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40931 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40932 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40933 echo $ECHO_N "(cached) $ECHO_C" >&6
40935 ac_check_lib_save_LIBS=$LIBS
40936 LIBS="-lpacl $LIBS"
40937 cat >conftest.$ac_ext <<_ACEOF
40940 cat confdefs.h >>conftest.$ac_ext
40941 cat >>conftest.$ac_ext <<_ACEOF
40942 /* end confdefs.h. */
40944 /* Override any GCC internal prototype to avoid an error.
40945 Use char because int might match the return type of a GCC
40946 builtin and then its argument prototype would still apply. */
40950 char acl_get_file ();
40954 return acl_get_file ();
40959 rm -f conftest.$ac_objext conftest$ac_exeext
40960 if { (ac_try="$ac_link"
40961 case "(($ac_try" in
40962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40963 *) ac_try_echo=$ac_try;;
40965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40966 (eval "$ac_link") 2>conftest.er1
40968 grep -v '^ *+' conftest.er1 >conftest.err
40970 cat conftest.err >&5
40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972 (exit $ac_status); } && {
40973 test -z "$ac_c_werror_flag" ||
40974 test ! -s conftest.err
40975 } && test -s conftest$ac_exeext &&
40976 $as_test_x conftest$ac_exeext; then
40977 ac_cv_lib_pacl_acl_get_file=yes
40979 echo "$as_me: failed program was:" >&5
40980 sed 's/^/| /' conftest.$ac_ext >&5
40982 ac_cv_lib_pacl_acl_get_file=no
40985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40986 conftest$ac_exeext conftest.$ac_ext
40987 LIBS=$ac_check_lib_save_LIBS
40989 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40990 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40991 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40994 FDLIBS="-lpacl $FDLIBS"
40998 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40999 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41000 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41001 echo $ECHO_N "(cached) $ECHO_C" >&6
41003 ac_check_lib_save_LIBS=$LIBS
41005 cat >conftest.$ac_ext <<_ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h. */
41012 /* Override any GCC internal prototype to avoid an error.
41013 Use char because int might match the return type of a GCC
41014 builtin and then its argument prototype would still apply. */
41022 return acltotext ();
41027 rm -f conftest.$ac_objext conftest$ac_exeext
41028 if { (ac_try="$ac_link"
41029 case "(($ac_try" in
41030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41031 *) ac_try_echo=$ac_try;;
41033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41034 (eval "$ac_link") 2>conftest.er1
41036 grep -v '^ *+' conftest.er1 >conftest.err
41038 cat conftest.err >&5
41039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41040 (exit $ac_status); } && {
41041 test -z "$ac_c_werror_flag" ||
41042 test ! -s conftest.err
41043 } && test -s conftest$ac_exeext &&
41044 $as_test_x conftest$ac_exeext; then
41045 ac_cv_lib_sec_acltotext=yes
41047 echo "$as_me: failed program was:" >&5
41048 sed 's/^/| /' conftest.$ac_ext >&5
41050 ac_cv_lib_sec_acltotext=no
41053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41054 conftest$ac_exeext conftest.$ac_ext
41055 LIBS=$ac_check_lib_save_LIBS
41057 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41058 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41059 if test $ac_cv_lib_sec_acltotext = yes; then
41062 FDLIBS="-lsec $FDLIBS"
41064 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41065 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41066 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41067 echo $ECHO_N "(cached) $ECHO_C" >&6
41069 ac_check_lib_save_LIBS=$LIBS
41071 cat >conftest.$ac_ext <<_ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h. */
41078 /* Override any GCC internal prototype to avoid an error.
41079 Use char because int might match the return type of a GCC
41080 builtin and then its argument prototype would still apply. */
41084 char acl_totext ();
41088 return acl_totext ();
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097 *) ac_try_echo=$ac_try;;
41099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41100 (eval "$ac_link") 2>conftest.er1
41102 grep -v '^ *+' conftest.er1 >conftest.err
41104 cat conftest.err >&5
41105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41106 (exit $ac_status); } && {
41107 test -z "$ac_c_werror_flag" ||
41108 test ! -s conftest.err
41109 } && test -s conftest$ac_exeext &&
41110 $as_test_x conftest$ac_exeext; then
41111 ac_cv_lib_sec_acl_totext=yes
41113 echo "$as_me: failed program was:" >&5
41114 sed 's/^/| /' conftest.$ac_ext >&5
41116 ac_cv_lib_sec_acl_totext=no
41119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41120 conftest$ac_exeext conftest.$ac_ext
41121 LIBS=$ac_check_lib_save_LIBS
41123 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41124 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41125 if test $ac_cv_lib_sec_acl_totext = yes; then
41127 have_extended_acl=yes
41148 if test $have_acl = yes; then
41150 cat >>confdefs.h <<\_ACEOF
41156 if test $have_extended_acl = yes; then
41158 cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_EXTENDED_ACL
41166 # Check whether --enable-xattr was given.
41167 if test "${enable_xattr+set}" = set; then
41168 enableval=$enable_xattr;
41169 if test x$enableval = xno; then
41178 if test x$support_xattr = xyes; then
41179 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41180 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41181 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41182 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41183 echo $ECHO_N "(cached) $ECHO_C" >&6
41185 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41186 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41188 # Is the header compilable?
41189 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41190 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41191 cat >conftest.$ac_ext <<_ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h. */
41197 $ac_includes_default
41198 #include <sys/xattr.h>
41200 rm -f conftest.$ac_objext
41201 if { (ac_try="$ac_compile"
41202 case "(($ac_try" in
41203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41204 *) ac_try_echo=$ac_try;;
41206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41207 (eval "$ac_compile") 2>conftest.er1
41209 grep -v '^ *+' conftest.er1 >conftest.err
41211 cat conftest.err >&5
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); } && {
41214 test -z "$ac_c_werror_flag" ||
41215 test ! -s conftest.err
41216 } && test -s conftest.$ac_objext; then
41217 ac_header_compiler=yes
41219 echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41222 ac_header_compiler=no
41225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41227 echo "${ECHO_T}$ac_header_compiler" >&6; }
41229 # Is the header present?
41230 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41231 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41232 cat >conftest.$ac_ext <<_ACEOF
41235 cat confdefs.h >>conftest.$ac_ext
41236 cat >>conftest.$ac_ext <<_ACEOF
41237 /* end confdefs.h. */
41238 #include <sys/xattr.h>
41240 if { (ac_try="$ac_cpp conftest.$ac_ext"
41241 case "(($ac_try" in
41242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41243 *) ac_try_echo=$ac_try;;
41245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41248 grep -v '^ *+' conftest.er1 >conftest.err
41250 cat conftest.err >&5
41251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252 (exit $ac_status); } >/dev/null && {
41253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41254 test ! -s conftest.err
41256 ac_header_preproc=yes
41258 echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41261 ac_header_preproc=no
41264 rm -f conftest.err conftest.$ac_ext
41265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41266 echo "${ECHO_T}$ac_header_preproc" >&6; }
41268 # So? What about this header?
41269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41271 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41272 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41273 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41274 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41275 ac_header_preproc=yes
41278 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41279 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41280 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41281 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41282 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41283 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41284 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41285 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41286 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41287 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41288 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41289 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41293 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41294 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41295 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41296 echo $ECHO_N "(cached) $ECHO_C" >&6
41298 ac_cv_header_sys_xattr_h=$ac_header_preproc
41300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41301 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41304 if test $ac_cv_header_sys_xattr_h = yes; then
41306 cat >>confdefs.h <<\_ACEOF
41307 #define HAVE_SYS_XATTR_H 1
41316 for ac_func in llistxattr lgetxattr lsetxattr
41318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41322 echo $ECHO_N "(cached) $ECHO_C" >&6
41324 cat >conftest.$ac_ext <<_ACEOF
41327 cat confdefs.h >>conftest.$ac_ext
41328 cat >>conftest.$ac_ext <<_ACEOF
41329 /* end confdefs.h. */
41330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41332 #define $ac_func innocuous_$ac_func
41334 /* System header to define __stub macros and hopefully few prototypes,
41335 which can conflict with char $ac_func (); below.
41336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41337 <limits.h> exists even on freestanding compilers. */
41340 # include <limits.h>
41342 # include <assert.h>
41347 /* Override any GCC internal prototype to avoid an error.
41348 Use char because int might match the return type of a GCC
41349 builtin and then its argument prototype would still apply. */
41354 /* The GNU C library defines this for functions which it implements
41355 to always fail with ENOSYS. Some functions are actually named
41356 something starting with __ and the normal name is an alias. */
41357 #if defined __stub_$ac_func || defined __stub___$ac_func
41364 return $ac_func ();
41369 rm -f conftest.$ac_objext conftest$ac_exeext
41370 if { (ac_try="$ac_link"
41371 case "(($ac_try" in
41372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41373 *) ac_try_echo=$ac_try;;
41375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41376 (eval "$ac_link") 2>conftest.er1
41378 grep -v '^ *+' conftest.er1 >conftest.err
41380 cat conftest.err >&5
41381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382 (exit $ac_status); } && {
41383 test -z "$ac_c_werror_flag" ||
41384 test ! -s conftest.err
41385 } && test -s conftest$ac_exeext &&
41386 $as_test_x conftest$ac_exeext; then
41387 eval "$as_ac_var=yes"
41389 echo "$as_me: failed program was:" >&5
41390 sed 's/^/| /' conftest.$ac_ext >&5
41392 eval "$as_ac_var=no"
41395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41396 conftest$ac_exeext conftest.$ac_ext
41398 ac_res=`eval echo '${'$as_ac_var'}'`
41399 { echo "$as_me:$LINENO: result: $ac_res" >&5
41400 echo "${ECHO_T}$ac_res" >&6; }
41401 if test `eval echo '${'$as_ac_var'}'` = yes; then
41402 cat >>confdefs.h <<_ACEOF
41403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41408 cat >>confdefs.h <<\_ACEOF
41409 #define HAVE_LLISTXATTR
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_LGETXATTR
41418 cat >>confdefs.h <<\_ACEOF
41419 #define HAVE_LSETXATTR
41431 if test $have_xattr = no; then
41435 for ac_func in listxattr getxattr setxattr
41437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41441 echo $ECHO_N "(cached) $ECHO_C" >&6
41443 cat >conftest.$ac_ext <<_ACEOF
41446 cat confdefs.h >>conftest.$ac_ext
41447 cat >>conftest.$ac_ext <<_ACEOF
41448 /* end confdefs.h. */
41449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41451 #define $ac_func innocuous_$ac_func
41453 /* System header to define __stub macros and hopefully few prototypes,
41454 which can conflict with char $ac_func (); below.
41455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41456 <limits.h> exists even on freestanding compilers. */
41459 # include <limits.h>
41461 # include <assert.h>
41466 /* Override any GCC internal prototype to avoid an error.
41467 Use char because int might match the return type of a GCC
41468 builtin and then its argument prototype would still apply. */
41473 /* The GNU C library defines this for functions which it implements
41474 to always fail with ENOSYS. Some functions are actually named
41475 something starting with __ and the normal name is an alias. */
41476 #if defined __stub_$ac_func || defined __stub___$ac_func
41483 return $ac_func ();
41488 rm -f conftest.$ac_objext conftest$ac_exeext
41489 if { (ac_try="$ac_link"
41490 case "(($ac_try" in
41491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41492 *) ac_try_echo=$ac_try;;
41494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41495 (eval "$ac_link") 2>conftest.er1
41497 grep -v '^ *+' conftest.er1 >conftest.err
41499 cat conftest.err >&5
41500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501 (exit $ac_status); } && {
41502 test -z "$ac_c_werror_flag" ||
41503 test ! -s conftest.err
41504 } && test -s conftest$ac_exeext &&
41505 $as_test_x conftest$ac_exeext; then
41506 eval "$as_ac_var=yes"
41508 echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41511 eval "$as_ac_var=no"
41514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41515 conftest$ac_exeext conftest.$ac_ext
41517 ac_res=`eval echo '${'$as_ac_var'}'`
41518 { echo "$as_me:$LINENO: result: $ac_res" >&5
41519 echo "${ECHO_T}$ac_res" >&6; }
41520 if test `eval echo '${'$as_ac_var'}'` = yes; then
41521 cat >>confdefs.h <<_ACEOF
41522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41527 cat >>confdefs.h <<\_ACEOF
41528 #define HAVE_LLISTXATTR
41532 cat >>confdefs.h <<\_ACEOF
41533 #define HAVE_LGETXATTR
41537 cat >>confdefs.h <<\_ACEOF
41538 #define HAVE_LSETXATTR
41551 if test $have_xattr = no; then
41552 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41553 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41554 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41555 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41556 echo $ECHO_N "(cached) $ECHO_C" >&6
41558 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41559 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41561 # Is the header compilable?
41562 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41563 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41564 cat >conftest.$ac_ext <<_ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h. */
41570 $ac_includes_default
41571 #include <sys/attr.h>
41573 rm -f conftest.$ac_objext
41574 if { (ac_try="$ac_compile"
41575 case "(($ac_try" in
41576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41577 *) ac_try_echo=$ac_try;;
41579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41580 (eval "$ac_compile") 2>conftest.er1
41582 grep -v '^ *+' conftest.er1 >conftest.err
41584 cat conftest.err >&5
41585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586 (exit $ac_status); } && {
41587 test -z "$ac_c_werror_flag" ||
41588 test ! -s conftest.err
41589 } && test -s conftest.$ac_objext; then
41590 ac_header_compiler=yes
41592 echo "$as_me: failed program was:" >&5
41593 sed 's/^/| /' conftest.$ac_ext >&5
41595 ac_header_compiler=no
41598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41600 echo "${ECHO_T}$ac_header_compiler" >&6; }
41602 # Is the header present?
41603 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41604 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41605 cat >conftest.$ac_ext <<_ACEOF
41608 cat confdefs.h >>conftest.$ac_ext
41609 cat >>conftest.$ac_ext <<_ACEOF
41610 /* end confdefs.h. */
41611 #include <sys/attr.h>
41613 if { (ac_try="$ac_cpp conftest.$ac_ext"
41614 case "(($ac_try" in
41615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41616 *) ac_try_echo=$ac_try;;
41618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41621 grep -v '^ *+' conftest.er1 >conftest.err
41623 cat conftest.err >&5
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); } >/dev/null && {
41626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41627 test ! -s conftest.err
41629 ac_header_preproc=yes
41631 echo "$as_me: failed program was:" >&5
41632 sed 's/^/| /' conftest.$ac_ext >&5
41634 ac_header_preproc=no
41637 rm -f conftest.err conftest.$ac_ext
41638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41639 echo "${ECHO_T}$ac_header_preproc" >&6; }
41641 # So? What about this header?
41642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41644 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41645 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41646 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41647 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41648 ac_header_preproc=yes
41651 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41652 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41653 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41654 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41655 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41656 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41657 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41658 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41659 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41660 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41661 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41662 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41666 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41667 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41668 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41669 echo $ECHO_N "(cached) $ECHO_C" >&6
41671 ac_cv_header_sys_attr_h=$ac_header_preproc
41673 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41674 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41677 if test $ac_cv_header_sys_attr_h = yes; then
41679 cat >>confdefs.h <<\_ACEOF
41680 #define HAVE_SYS_ATTR_H 1
41686 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41687 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41688 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41689 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41690 echo $ECHO_N "(cached) $ECHO_C" >&6
41692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41693 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41695 # Is the header compilable?
41696 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41697 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41698 cat >conftest.$ac_ext <<_ACEOF
41701 cat confdefs.h >>conftest.$ac_ext
41702 cat >>conftest.$ac_ext <<_ACEOF
41703 /* end confdefs.h. */
41704 $ac_includes_default
41705 #include <sys/nvpair.h>
41707 rm -f conftest.$ac_objext
41708 if { (ac_try="$ac_compile"
41709 case "(($ac_try" in
41710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41711 *) ac_try_echo=$ac_try;;
41713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41714 (eval "$ac_compile") 2>conftest.er1
41716 grep -v '^ *+' conftest.er1 >conftest.err
41718 cat conftest.err >&5
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); } && {
41721 test -z "$ac_c_werror_flag" ||
41722 test ! -s conftest.err
41723 } && test -s conftest.$ac_objext; then
41724 ac_header_compiler=yes
41726 echo "$as_me: failed program was:" >&5
41727 sed 's/^/| /' conftest.$ac_ext >&5
41729 ac_header_compiler=no
41732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41734 echo "${ECHO_T}$ac_header_compiler" >&6; }
41736 # Is the header present?
41737 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41738 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41739 cat >conftest.$ac_ext <<_ACEOF
41742 cat confdefs.h >>conftest.$ac_ext
41743 cat >>conftest.$ac_ext <<_ACEOF
41744 /* end confdefs.h. */
41745 #include <sys/nvpair.h>
41747 if { (ac_try="$ac_cpp conftest.$ac_ext"
41748 case "(($ac_try" in
41749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41750 *) ac_try_echo=$ac_try;;
41752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41755 grep -v '^ *+' conftest.er1 >conftest.err
41757 cat conftest.err >&5
41758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759 (exit $ac_status); } >/dev/null && {
41760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41761 test ! -s conftest.err
41763 ac_header_preproc=yes
41765 echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41768 ac_header_preproc=no
41771 rm -f conftest.err conftest.$ac_ext
41772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41773 echo "${ECHO_T}$ac_header_preproc" >&6; }
41775 # So? What about this header?
41776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41778 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41779 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41780 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41781 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41782 ac_header_preproc=yes
41785 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41786 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41787 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41788 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41789 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41790 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41791 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41792 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41793 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41794 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41795 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41796 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41800 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41801 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41802 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41803 echo $ECHO_N "(cached) $ECHO_C" >&6
41805 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41807 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41808 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41811 if test $ac_cv_header_sys_nvpair_h = yes; then
41813 cat >>confdefs.h <<\_ACEOF
41814 #define HAVE_SYS_NVPAIR_H 1
41820 if test "${ac_cv_header_attr_h+set}" = set; then
41821 { echo "$as_me:$LINENO: checking for attr.h" >&5
41822 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41823 if test "${ac_cv_header_attr_h+set}" = set; then
41824 echo $ECHO_N "(cached) $ECHO_C" >&6
41826 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41827 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41829 # Is the header compilable?
41830 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41831 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41832 cat >conftest.$ac_ext <<_ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h. */
41838 $ac_includes_default
41841 rm -f conftest.$ac_objext
41842 if { (ac_try="$ac_compile"
41843 case "(($ac_try" in
41844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41845 *) ac_try_echo=$ac_try;;
41847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41848 (eval "$ac_compile") 2>conftest.er1
41850 grep -v '^ *+' conftest.er1 >conftest.err
41852 cat conftest.err >&5
41853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854 (exit $ac_status); } && {
41855 test -z "$ac_c_werror_flag" ||
41856 test ! -s conftest.err
41857 } && test -s conftest.$ac_objext; then
41858 ac_header_compiler=yes
41860 echo "$as_me: failed program was:" >&5
41861 sed 's/^/| /' conftest.$ac_ext >&5
41863 ac_header_compiler=no
41866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41868 echo "${ECHO_T}$ac_header_compiler" >&6; }
41870 # Is the header present?
41871 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41872 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41873 cat >conftest.$ac_ext <<_ACEOF
41876 cat confdefs.h >>conftest.$ac_ext
41877 cat >>conftest.$ac_ext <<_ACEOF
41878 /* end confdefs.h. */
41881 if { (ac_try="$ac_cpp conftest.$ac_ext"
41882 case "(($ac_try" in
41883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41884 *) ac_try_echo=$ac_try;;
41886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41889 grep -v '^ *+' conftest.er1 >conftest.err
41891 cat conftest.err >&5
41892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41893 (exit $ac_status); } >/dev/null && {
41894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41895 test ! -s conftest.err
41897 ac_header_preproc=yes
41899 echo "$as_me: failed program was:" >&5
41900 sed 's/^/| /' conftest.$ac_ext >&5
41902 ac_header_preproc=no
41905 rm -f conftest.err conftest.$ac_ext
41906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41907 echo "${ECHO_T}$ac_header_preproc" >&6; }
41909 # So? What about this header?
41910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41912 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41913 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41914 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41915 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41916 ac_header_preproc=yes
41919 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41920 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41921 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41922 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41923 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41924 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41925 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41926 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41927 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41928 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41929 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41930 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41934 { echo "$as_me:$LINENO: checking for attr.h" >&5
41935 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41936 if test "${ac_cv_header_attr_h+set}" = set; then
41937 echo $ECHO_N "(cached) $ECHO_C" >&6
41939 ac_cv_header_attr_h=$ac_header_preproc
41941 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41942 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41945 if test $ac_cv_header_attr_h = yes; then
41947 cat >>confdefs.h <<\_ACEOF
41948 #define HAVE_ATTR_H 1
41960 for ac_func in openat fstatat unlinkat fchownat futimesat
41962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41966 echo $ECHO_N "(cached) $ECHO_C" >&6
41968 cat >conftest.$ac_ext <<_ACEOF
41971 cat confdefs.h >>conftest.$ac_ext
41972 cat >>conftest.$ac_ext <<_ACEOF
41973 /* end confdefs.h. */
41974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41976 #define $ac_func innocuous_$ac_func
41978 /* System header to define __stub macros and hopefully few prototypes,
41979 which can conflict with char $ac_func (); below.
41980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41981 <limits.h> exists even on freestanding compilers. */
41984 # include <limits.h>
41986 # include <assert.h>
41991 /* Override any GCC internal prototype to avoid an error.
41992 Use char because int might match the return type of a GCC
41993 builtin and then its argument prototype would still apply. */
41998 /* The GNU C library defines this for functions which it implements
41999 to always fail with ENOSYS. Some functions are actually named
42000 something starting with __ and the normal name is an alias. */
42001 #if defined __stub_$ac_func || defined __stub___$ac_func
42008 return $ac_func ();
42013 rm -f conftest.$ac_objext conftest$ac_exeext
42014 if { (ac_try="$ac_link"
42015 case "(($ac_try" in
42016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42017 *) ac_try_echo=$ac_try;;
42019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42020 (eval "$ac_link") 2>conftest.er1
42022 grep -v '^ *+' conftest.er1 >conftest.err
42024 cat conftest.err >&5
42025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42026 (exit $ac_status); } && {
42027 test -z "$ac_c_werror_flag" ||
42028 test ! -s conftest.err
42029 } && test -s conftest$ac_exeext &&
42030 $as_test_x conftest$ac_exeext; then
42031 eval "$as_ac_var=yes"
42033 echo "$as_me: failed program was:" >&5
42034 sed 's/^/| /' conftest.$ac_ext >&5
42036 eval "$as_ac_var=no"
42039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42040 conftest$ac_exeext conftest.$ac_ext
42042 ac_res=`eval echo '${'$as_ac_var'}'`
42043 { echo "$as_me:$LINENO: result: $ac_res" >&5
42044 echo "${ECHO_T}$ac_res" >&6; }
42045 if test `eval echo '${'$as_ac_var'}'` = yes; then
42046 cat >>confdefs.h <<_ACEOF
42047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42052 cat >>confdefs.h <<\_ACEOF
42053 #define HAVE_OPENAT
42057 cat >>confdefs.h <<\_ACEOF
42058 #define HAVE_FSTATAT
42062 cat >>confdefs.h <<\_ACEOF
42063 #define HAVE_UNLINKAT
42067 cat >>confdefs.h <<\_ACEOF
42068 #define HAVE_FCHOWNAT
42072 cat >>confdefs.h <<\_ACEOF
42073 #define HAVE_FUTIMESAT
42082 if test $have_xattr = yes; then
42083 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42084 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42085 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42086 echo $ECHO_N "(cached) $ECHO_C" >&6
42088 ac_check_lib_save_LIBS=$LIBS
42089 LIBS="-lnvpair $LIBS"
42090 cat >conftest.$ac_ext <<_ACEOF
42093 cat confdefs.h >>conftest.$ac_ext
42094 cat >>conftest.$ac_ext <<_ACEOF
42095 /* end confdefs.h. */
42097 /* Override any GCC internal prototype to avoid an error.
42098 Use char because int might match the return type of a GCC
42099 builtin and then its argument prototype would still apply. */
42103 char nvlist_next_nvpair ();
42107 return nvlist_next_nvpair ();
42112 rm -f conftest.$ac_objext conftest$ac_exeext
42113 if { (ac_try="$ac_link"
42114 case "(($ac_try" in
42115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42116 *) ac_try_echo=$ac_try;;
42118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42119 (eval "$ac_link") 2>conftest.er1
42121 grep -v '^ *+' conftest.er1 >conftest.err
42123 cat conftest.err >&5
42124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42125 (exit $ac_status); } && {
42126 test -z "$ac_c_werror_flag" ||
42127 test ! -s conftest.err
42128 } && test -s conftest$ac_exeext &&
42129 $as_test_x conftest$ac_exeext; then
42130 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42132 echo "$as_me: failed program was:" >&5
42133 sed 's/^/| /' conftest.$ac_ext >&5
42135 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42139 conftest$ac_exeext conftest.$ac_ext
42140 LIBS=$ac_check_lib_save_LIBS
42142 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42143 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42144 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42146 FDLIBS="-lnvpair $FDLIBS"
42154 if test $have_xattr = yes; then
42156 cat >>confdefs.h <<\_ACEOF
42164 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42165 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42166 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42167 echo $ECHO_N "(cached) $ECHO_C" >&6
42169 ac_check_lib_save_LIBS=$LIBS
42170 LIBS="-lpthread $LIBS"
42171 cat >conftest.$ac_ext <<_ACEOF
42174 cat confdefs.h >>conftest.$ac_ext
42175 cat >>conftest.$ac_ext <<_ACEOF
42176 /* end confdefs.h. */
42178 /* Override any GCC internal prototype to avoid an error.
42179 Use char because int might match the return type of a GCC
42180 builtin and then its argument prototype would still apply. */
42184 char pthread_create ();
42188 return pthread_create ();
42193 rm -f conftest.$ac_objext conftest$ac_exeext
42194 if { (ac_try="$ac_link"
42195 case "(($ac_try" in
42196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42197 *) ac_try_echo=$ac_try;;
42199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42200 (eval "$ac_link") 2>conftest.er1
42202 grep -v '^ *+' conftest.er1 >conftest.err
42204 cat conftest.err >&5
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); } && {
42207 test -z "$ac_c_werror_flag" ||
42208 test ! -s conftest.err
42209 } && test -s conftest$ac_exeext &&
42210 $as_test_x conftest$ac_exeext; then
42211 ac_cv_lib_pthread_pthread_create=yes
42213 echo "$as_me: failed program was:" >&5
42214 sed 's/^/| /' conftest.$ac_ext >&5
42216 ac_cv_lib_pthread_pthread_create=no
42219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42220 conftest$ac_exeext conftest.$ac_ext
42221 LIBS=$ac_check_lib_save_LIBS
42223 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42224 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42225 if test $ac_cv_lib_pthread_pthread_create = yes; then
42226 PTHREAD_LIB="-lpthread"
42229 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42230 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42231 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42232 echo $ECHO_N "(cached) $ECHO_C" >&6
42234 ac_check_lib_save_LIBS=$LIBS
42235 LIBS="-lpthreads $LIBS"
42236 cat >conftest.$ac_ext <<_ACEOF
42239 cat confdefs.h >>conftest.$ac_ext
42240 cat >>conftest.$ac_ext <<_ACEOF
42241 /* end confdefs.h. */
42243 /* Override any GCC internal prototype to avoid an error.
42244 Use char because int might match the return type of a GCC
42245 builtin and then its argument prototype would still apply. */
42249 char pthread_create ();
42253 return pthread_create ();
42258 rm -f conftest.$ac_objext conftest$ac_exeext
42259 if { (ac_try="$ac_link"
42260 case "(($ac_try" in
42261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42262 *) ac_try_echo=$ac_try;;
42264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42265 (eval "$ac_link") 2>conftest.er1
42267 grep -v '^ *+' conftest.er1 >conftest.err
42269 cat conftest.err >&5
42270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271 (exit $ac_status); } && {
42272 test -z "$ac_c_werror_flag" ||
42273 test ! -s conftest.err
42274 } && test -s conftest$ac_exeext &&
42275 $as_test_x conftest$ac_exeext; then
42276 ac_cv_lib_pthreads_pthread_create=yes
42278 echo "$as_me: failed program was:" >&5
42279 sed 's/^/| /' conftest.$ac_ext >&5
42281 ac_cv_lib_pthreads_pthread_create=no
42284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42285 conftest$ac_exeext conftest.$ac_ext
42286 LIBS=$ac_check_lib_save_LIBS
42288 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42289 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42290 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42291 PTHREAD_LIB="-lpthreads"
42294 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42295 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42296 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42297 echo $ECHO_N "(cached) $ECHO_C" >&6
42299 ac_check_lib_save_LIBS=$LIBS
42301 cat >conftest.$ac_ext <<_ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h. */
42308 /* Override any GCC internal prototype to avoid an error.
42309 Use char because int might match the return type of a GCC
42310 builtin and then its argument prototype would still apply. */
42314 char pthread_create ();
42318 return pthread_create ();
42323 rm -f conftest.$ac_objext conftest$ac_exeext
42324 if { (ac_try="$ac_link"
42325 case "(($ac_try" in
42326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42327 *) ac_try_echo=$ac_try;;
42329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42330 (eval "$ac_link") 2>conftest.er1
42332 grep -v '^ *+' conftest.er1 >conftest.err
42334 cat conftest.err >&5
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); } && {
42337 test -z "$ac_c_werror_flag" ||
42338 test ! -s conftest.err
42339 } && test -s conftest$ac_exeext &&
42340 $as_test_x conftest$ac_exeext; then
42341 ac_cv_lib_c_r_pthread_create=yes
42343 echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42346 ac_cv_lib_c_r_pthread_create=no
42349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42350 conftest$ac_exeext conftest.$ac_ext
42351 LIBS=$ac_check_lib_save_LIBS
42353 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42354 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42355 if test $ac_cv_lib_c_r_pthread_create = yes; then
42356 PTHREAD_LIB="-lc_r"
42359 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42360 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42361 if test "${ac_cv_func_pthread_create+set}" = set; then
42362 echo $ECHO_N "(cached) $ECHO_C" >&6
42364 cat >conftest.$ac_ext <<_ACEOF
42367 cat confdefs.h >>conftest.$ac_ext
42368 cat >>conftest.$ac_ext <<_ACEOF
42369 /* end confdefs.h. */
42370 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42372 #define pthread_create innocuous_pthread_create
42374 /* System header to define __stub macros and hopefully few prototypes,
42375 which can conflict with char pthread_create (); below.
42376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42377 <limits.h> exists even on freestanding compilers. */
42380 # include <limits.h>
42382 # include <assert.h>
42385 #undef pthread_create
42387 /* Override any GCC internal prototype to avoid an error.
42388 Use char because int might match the return type of a GCC
42389 builtin and then its argument prototype would still apply. */
42393 char pthread_create ();
42394 /* The GNU C library defines this for functions which it implements
42395 to always fail with ENOSYS. Some functions are actually named
42396 something starting with __ and the normal name is an alias. */
42397 #if defined __stub_pthread_create || defined __stub___pthread_create
42404 return pthread_create ();
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (ac_try="$ac_link"
42411 case "(($ac_try" in
42412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42413 *) ac_try_echo=$ac_try;;
42415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42416 (eval "$ac_link") 2>conftest.er1
42418 grep -v '^ *+' conftest.er1 >conftest.err
42420 cat conftest.err >&5
42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422 (exit $ac_status); } && {
42423 test -z "$ac_c_werror_flag" ||
42424 test ! -s conftest.err
42425 } && test -s conftest$ac_exeext &&
42426 $as_test_x conftest$ac_exeext; then
42427 ac_cv_func_pthread_create=yes
42429 echo "$as_me: failed program was:" >&5
42430 sed 's/^/| /' conftest.$ac_ext >&5
42432 ac_cv_func_pthread_create=no
42435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42436 conftest$ac_exeext conftest.$ac_ext
42438 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42439 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42455 cat >>confdefs.h <<\_ACEOF
42460 CFLAGS=${CFLAGS--O}
42462 if test x$have_gcc = xyes ; then
42463 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42464 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42466 LDFLAGS=${LDFLAGS--O}
42467 DB_LIBS="${SQL_LFLAGS}"
42468 CPPFLAGS="$CPPFLAGS"
42495 PFILES="platforms/Makefile"
42499 hostname=`uname -n | cut -d '.' -f 1`
42500 if test x${hostname} = x ; then
42501 hostname="localhost"
42503 case "$DISTNAME" in
42506 PSCMD="ps -e -o pid,comm"
42507 PFILES="${PFILES} \
42508 platforms/aix/Makefile"
42509 TAPEDRIVE="/dev/rmt0.1"
42513 PTHREAD_LIB="-lpthread -lexc"
42514 if test "${CC}" = "gcc" ; then
42521 TAPEDRIVE="/dev/nrmt0"
42524 DISTVER=`uname -a |awk '{print $3}'`
42525 TAPEDRIVE="/dev/nrmt0"
42526 PTHREAD_LIB="-pthread"
42527 CFLAGS="${CFLAGS} -pthread"
42528 PSCMD="ps -ax -o pid,command"
42531 PFILES="${PFILES} \
42532 platforms/bsdi/Makefile \
42533 platforms/bsdi/bacula-fd \
42534 platforms/bsdi/bacula-sd \
42535 platforms/bsdi/bacula-dir"
42536 largefile_support="yes"
42539 DISTVER=`uname -a |awk '{print $3}'`
42540 TAPEDRIVE="/dev/nrst0"
42542 WCFLAGS="-mwindows"
42543 WLDFLAGS="-mwindows"
42547 TAPEDRIVE="/dev/nst0"
42548 PSCMD="ps -e -o pid,command"
42550 PFILES="${PFILES} \
42551 platforms/darwin/Makefile"
42554 ping -c 1 $hostname 2>&1 1>/dev/null
42555 if test ! $? = 0; then
42556 hostname="localhost"
42558 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42561 DISTVER=`cat /etc/debian_version`
42562 if test -f /etc/lsb-release ; then
42564 if test "x$DISTRIB_ID" != "x" ; then
42565 DISTNAME=$DISTRIB_ID
42567 if test "x$DISTRIB_RELEASE" != "x" ; then
42568 DISTVER=$DISTRIB_RELEASE
42571 if test "$DISTNAME" = "Ubuntu" ; then
42574 TAPEDRIVE="/dev/nst0"
42575 PSCMD="ps -e -o pid,command"
42576 if test "$DISTNAME" = "ubuntu" ; then
42577 PFILES="${PFILES} \
42578 platforms/ubuntu/Makefile \
42579 platforms/ubuntu/bacula-fd \
42580 platforms/ubuntu/bacula-sd \
42581 platforms/ubuntu/bacula-dir"
42583 PFILES="${PFILES} \
42584 platforms/debian/Makefile \
42585 platforms/debian/bacula-fd \
42586 platforms/debian/bacula-sd \
42587 platforms/debian/bacula-dir"
42591 ping -c 1 $hostname 2>&1 1>/dev/null
42592 if test ! $? = 0; then
42593 hostname="localhost"
42595 DISTVER=`uname -a |awk '{print $3}'`
42596 VER=`echo $DISTVER | cut -c 1`
42597 if test x$VER = x4 ; then
42598 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42599 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42603 TAPEDRIVE="/dev/nrsa0"
42604 PSCMD="ps -ax -o pid,command"
42605 PFILES="${PFILES} \
42606 platforms/freebsd/Makefile \
42607 platforms/freebsd/bacula-fd \
42608 platforms/freebsd/bacula-sd \
42609 platforms/freebsd/bacula-dir"
42610 largefile_support="yes"
42613 PSCMD="UNIX95=1; ps -e -o pid,comm"
42614 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42616 TAPEDRIVE="/dev/rmt/0hnb"
42617 PTHREAD_LIB="-lpthread"
42618 cat >>confdefs.h <<\_ACEOF
42619 #define _INCLUDE_LONGLONG 1
42625 TAPEDRIVE="/dev/rmt/0cbn"
42626 PSCMD="ps -e -o pid,comm"
42627 PFILES="${PFILES} \
42628 platforms/irix/Makefile \
42629 platforms/irix/bacula-fd \
42630 platforms/irix/bacula-sd \
42631 platforms/irix/bacula-dir"
42634 DISTVER=`uname -a |awk '{print $3}'`
42637 TAPEDRIVE="/dev/nrst0"
42638 PSCMD="ps -ax -o pid,command"
42639 PTHREAD_LIB="-pthread"
42640 CFLAGS="${CFLAGS} -pthread"
42643 DISTVER=`uname -a |awk '{print $3}'`
42646 TAPEDRIVE="/dev/nrst0"
42647 PSCMD="ps -ax -o pid,command"
42648 PTHREAD_LIB="-pthread"
42649 CFLAGS="${CFLAGS} -pthread"
42650 PFILES="${PFILES} \
42651 platforms/openbsd/Makefile \
42652 platforms/openbsd/bacula-fd \
42653 platforms/openbsd/bacula-sd \
42654 platforms/openbsd/bacula-dir"
42657 ping -c 1 $hostname 2>&1 1>/dev/null
42658 if test ! $? = 0; then
42659 hostname="localhost"
42661 if test -f /etc/whitebox-release ; then
42662 f=/etc/whitebox-release
42664 f=/etc/redhat-release
42666 if test `cat $f | grep release |\
42667 cut -f 3 -d ' '`x = "Enterprise"x ; then
42668 DISTVER="Enterprise "`cat $f | grep release |\
42671 DISTVER=`cat /etc/redhat-release | grep release |\
42674 TAPEDRIVE="/dev/nst0"
42675 PSCMD="ps -e -o pid,command"
42676 PFILES="${PFILES} \
42677 platforms/redhat/Makefile \
42678 platforms/redhat/bacula-fd \
42679 platforms/redhat/bacula-sd \
42680 platforms/redhat/bacula-dir \
42681 platforms/redhat/bacula.spec \
42685 ping -c 1 $hostname 2>&1 1>/dev/null
42686 if test ! $? = 0; then
42687 hostname="localhost"
42689 DISTVER=`cat /etc/mandrake-release | grep release |\
42691 TAPEDRIVE="/dev/nst0"
42692 PSCMD="ps -e -o pid,command"
42693 PFILES="${PFILES} \
42694 platforms/mandrake/Makefile \
42695 platforms/mandrake/bacula-fd \
42696 platforms/mandrake/bacula-sd \
42697 platforms/mandrake/bacula-dir \
42698 platforms/mandrake/bacula.spec \
42702 ping -c 1 $hostname 2>&1 1>/dev/null
42703 if test ! $? = 0; then
42704 hostname="localhost"
42706 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42707 TAPEDRIVE="/dev/nst0"
42708 PSCMD="ps -e -o pid,command"
42709 PFILES="${PFILES} \
42710 platforms/gentoo/Makefile \
42711 platforms/gentoo/bacula-init \
42712 platforms/gentoo/bacula-fd \
42713 platforms/gentoo/bacula-sd \
42714 platforms/gentoo/bacula-dir"
42717 ping -c 1 $hostname 2>&1 1>/dev/null
42718 if test ! $? = 0; then
42719 hostname="localhost"
42721 DISTVER=`cat /etc/slackware-version`
42722 TAPEDRIVE="/dev/nst0"
42723 PSCMD="ps -e -o pid,command"
42724 PFILES="${PFILES} \
42725 platforms/slackware/Makefile \
42726 platforms/slackware/rc.bacula-fd \
42727 platforms/slackware/rc.bacula-sd \
42728 platforms/slackware/rc.bacula-dir\
42729 platforms/slackware/functions.bacula"
42733 TAPEDRIVE="/dev/rmt/0cbn"
42734 PSCMD="ps -e -o pid,comm"
42735 PFILES="${PFILES} \
42736 platforms/solaris/Makefile \
42737 platforms/solaris/bacula-fd \
42738 platforms/solaris/bacula-sd \
42739 platforms/solaris/bacula-dir"
42740 if test x$DISTVER = x5.6 ; then
42741 cat >>confdefs.h <<\_ACEOF
42742 #define HAVE_OLD_SOCKOPT 1
42746 LIBS="$LIBS -lresolv"
42749 ping -c 1 $hostname 2>&1 1>/dev/null
42750 if test ! $? = 0; then
42751 hostname="localhost"
42753 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42755 TAPEDRIVE="/dev/nst0"
42756 PSCMD="ps -e -o pid,command"
42757 PFILES="${PFILES} \
42758 platforms/suse/Makefile \
42759 platforms/suse/bacula-fd \
42760 platforms/suse/bacula-sd \
42761 platforms/suse/bacula-dir \
42762 platforms/suse/bacula \
42763 platforms/suse/bacula.spec"
42766 ping -c 1 $hostname 2>&1 1>/dev/null
42767 if test ! $? = 0; then
42768 hostname="localhost"
42772 TAPEDRIVE="/dev/nst0"
42773 PSCMD="ps -e -o pid,command"
42774 PFILES="${PFILES} \
42775 platforms/suse/Makefile \
42776 platforms/suse/bacula-fd \
42777 platforms/suse/bacula-sd \
42778 platforms/suse/bacula-dir"
42782 TAPEDRIVE="/dev/nst0"
42785 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42791 LIBS="$PTHREAD_LIB $LIBS"
42793 cat >>confdefs.h <<_ACEOF
42797 cat >>confdefs.h <<_ACEOF
42808 MCOMMON=./autoconf/Make.common
42811 if test "x${subsysdir}" = "x${sbindir}" ; then
42814 echo "You have set both --sbindir and --with-subsys-dir"
42815 echo " equal to: ${subsysdir} "
42816 echo "This is not permitted. Please reconfigure."
42818 echo "Aborting configuration ..."
42824 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"
42826 ac_config_commands="$ac_config_commands default"
42828 cat >confcache <<\_ACEOF
42829 # This file is a shell script that caches the results of configure
42830 # tests run on this system so they can be shared between configure
42831 # scripts and configure runs, see configure's option --config-cache.
42832 # It is not useful on other systems. If it contains results you don't
42833 # want to keep, you may remove or edit it.
42835 # config.status only pays attention to the cache file if you give it
42836 # the --recheck option to rerun configure.
42838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42840 # following values.
42844 # The following way of writing the cache mishandles newlines in values,
42845 # but we know of no workaround that is simple, portable, and efficient.
42846 # So, we kill variables containing newlines.
42847 # Ultrix sh set writes to stderr and can't be redirected directly,
42848 # and sets the high bit in the cache file unless we assign to the vars.
42850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42851 eval ac_val=\$$ac_var
42855 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42856 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42859 _ | IFS | as_nl) ;; #(
42860 *) $as_unset $ac_var ;;
42866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42867 *${as_nl}ac_space=\ *)
42868 # `set' does not quote correctly, so add quotes (double-quote
42869 # substitution turns \\\\ into \\, and sed turns \\ into \).
42872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42875 # `set' quotes correctly as required by POSIX, so do not add quotes.
42876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42890 if test -w "$cache_file"; then
42891 test "x$cache_file" != "x/dev/null" &&
42892 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42893 echo "$as_me: updating cache $cache_file" >&6;}
42894 cat confcache >$cache_file
42896 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42897 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42903 # Let make expand exec_prefix.
42904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42906 DEFS=-DHAVE_CONFIG_H
42910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42911 # 1. Remove the extension, and $U if already installed.
42912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42913 ac_i=`echo "$ac_i" | sed "$ac_script"`
42914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42915 # will be set to the directory where LIBOBJS objects are built.
42916 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42917 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42919 LIBOBJS=$ac_libobjs
42921 LTLIBOBJS=$ac_ltlibobjs
42925 : ${CONFIG_STATUS=./config.status}
42926 ac_clean_files_save=$ac_clean_files
42927 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42928 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42929 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42930 cat >$CONFIG_STATUS <<_ACEOF
42932 # Generated by $as_me.
42933 # Run this file to recreate the current configuration.
42934 # Compiler output produced by configure, useful for debugging
42935 # configure, is in config.log if it exists.
42938 ac_cs_recheck=false
42940 SHELL=\${CONFIG_SHELL-$SHELL}
42943 cat >>$CONFIG_STATUS <<\_ACEOF
42944 ## --------------------- ##
42945 ## M4sh Initialization. ##
42946 ## --------------------- ##
42948 # Be more Bourne compatible
42949 DUALCASE=1; export DUALCASE # for MKS sh
42950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42954 # is contrary to our usage. Disable this feature.
42955 alias -g '${1+"$@"}'='"$@"'
42956 setopt NO_GLOB_SUBST
42958 case `(set -o) 2>/dev/null` in
42959 *posix*) set -o posix ;;
42968 # Avoid depending upon Character Ranges.
42969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42972 as_cr_digits='0123456789'
42973 as_cr_alnum=$as_cr_Letters$as_cr_digits
42975 # The user is always right.
42976 if test "${PATH_SEPARATOR+set}" != set; then
42977 echo "#! /bin/sh" >conf$$.sh
42978 echo "exit 0" >>conf$$.sh
42980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42988 # Support unset when possible.
42989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42997 # We need space, tab and new line, in precisely that order. Quoting is
42998 # there to prevent editors from complaining about space-tab.
42999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43000 # splitting by setting IFS to empty value.)
43005 # Find who we are. Look in the path if we contain no directory separator.
43007 *[\\/]* ) as_myself=$0 ;;
43008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43009 for as_dir in $PATH
43012 test -z "$as_dir" && as_dir=.
43013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43019 # We did not find ourselves, most probably we were run as `sh COMMAND'
43020 # in which case we are not to be found in the path.
43021 if test "x$as_myself" = x; then
43024 if test ! -f "$as_myself"; then
43025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43026 { (exit 1); exit 1; }
43029 # Work around bugs in pre-3.0 UWIN ksh.
43030 for as_var in ENV MAIL MAILPATH
43031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43041 LC_TELEPHONE LC_TIME
43043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43044 eval $as_var=C; export $as_var
43046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43050 # Required to use basename.
43051 if expr a : '\(a\)' >/dev/null 2>&1 &&
43052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43059 as_basename=basename
43065 # Name of the executable.
43066 as_me=`$as_basename -- "$0" ||
43067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43068 X"$0" : 'X\(//\)$' \| \
43069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43071 sed '/^.*\/\([^/][^/]*\)\/*$/{
43090 as_lineno_1=$LINENO
43091 as_lineno_2=$LINENO
43092 test "x$as_lineno_1" != "x$as_lineno_2" &&
43093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43096 # uniformly replaced by the line number. The first 'sed' inserts a
43097 # line-number line after each line using $LINENO; the second 'sed'
43098 # does the real work. The second script uses 'N' to pair each
43099 # line-number line with the line containing $LINENO, and appends
43100 # trailing '-' during substitution so that $LINENO is not a special
43101 # case at line end.
43102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43103 # scripts with optimization help from Paolo Bonzini. Blame Lee
43104 # E. McMahon (1931-1989) for sed's syntax. :-)
43116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43119 ' >$as_me.lineno &&
43120 chmod +x "$as_me.lineno" ||
43121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43122 { (exit 1); exit 1; }; }
43124 # Don't try to exec as it changes $[0], causing all sort of problems
43125 # (the dirname of $[0] is not the place where we might find the
43126 # original and so on. Autoconf is especially sensitive to this).
43127 . "./$as_me.lineno"
43128 # Exit status is that of the last command.
43133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43139 ECHO_C= ECHO_N= ECHO_T=
43140 case `echo -n x` in
43142 case `echo 'x\c'` in
43143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43150 if expr a : '\(a\)' >/dev/null 2>&1 &&
43151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43157 rm -f conf$$ conf$$.exe conf$$.file
43158 if test -d conf$$.dir; then
43159 rm -f conf$$.dir/conf$$.file
43165 if ln -s conf$$.file conf$$ 2>/dev/null; then
43167 # ... but there are two gotchas:
43168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43170 # In both cases, we have to default to `cp -p'.
43171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43173 elif ln conf$$.file conf$$ 2>/dev/null; then
43178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43179 rmdir conf$$.dir 2>/dev/null
43181 if mkdir -p . 2>/dev/null; then
43184 test -d ./-p && rmdir ./-p
43188 if test -x / >/dev/null 2>&1; then
43189 as_test_x='test -x'
43191 if ls -dL / >/dev/null 2>&1; then
43198 if test -d "$1"; then
43204 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43205 ???[sx]*):;;*)false;;esac;fi
43209 as_executable_p=$as_test_x
43211 # Sed expression to map a string onto a valid CPP name.
43212 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43214 # Sed expression to map a string onto a valid variable name.
43215 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43220 # Save the log message, to keep $[0] and so on meaningful, and to
43221 # report actual input values of CONFIG_FILES etc. instead of their
43222 # values after options handling.
43224 This file was extended by $as_me, which was
43225 generated by GNU Autoconf 2.61. Invocation command line was
43227 CONFIG_FILES = $CONFIG_FILES
43228 CONFIG_HEADERS = $CONFIG_HEADERS
43229 CONFIG_LINKS = $CONFIG_LINKS
43230 CONFIG_COMMANDS = $CONFIG_COMMANDS
43233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43238 cat >>$CONFIG_STATUS <<_ACEOF
43239 # Files that config.status was made for.
43240 config_files="$ac_config_files"
43241 config_headers="$ac_config_headers"
43242 config_commands="$ac_config_commands"
43246 cat >>$CONFIG_STATUS <<\_ACEOF
43248 \`$as_me' instantiates files from templates according to the
43249 current configuration.
43251 Usage: $0 [OPTIONS] [FILE]...
43253 -h, --help print this help, then exit
43254 -V, --version print version number and configuration settings, then exit
43255 -q, --quiet do not print progress messages
43256 -d, --debug don't remove temporary files
43257 --recheck update $as_me by reconfiguring in the same conditions
43258 --file=FILE[:TEMPLATE]
43259 instantiate the configuration file FILE
43260 --header=FILE[:TEMPLATE]
43261 instantiate the configuration header FILE
43263 Configuration files:
43266 Configuration headers:
43269 Configuration commands:
43272 Report bugs to <bug-autoconf@gnu.org>."
43275 cat >>$CONFIG_STATUS <<_ACEOF
43278 configured by $0, generated by GNU Autoconf 2.61,
43279 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43281 Copyright (C) 2006 Free Software Foundation, Inc.
43282 This config.status script is free software; the Free Software Foundation
43283 gives unlimited permission to copy, distribute and modify it."
43290 cat >>$CONFIG_STATUS <<\_ACEOF
43291 # If no file are specified by the user, then we need to provide default
43292 # value. By we need to know if files were specified by the user.
43298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43310 # Handling of the options.
43311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43314 echo "$ac_cs_version"; exit ;;
43315 --debug | --debu | --deb | --de | --d | -d )
43317 --file | --fil | --fi | --f )
43319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43320 ac_need_defaults=false;;
43321 --header | --heade | --head | --hea )
43323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43324 ac_need_defaults=false;;
43326 # Conflict between --help and --header
43327 { echo "$as_me: error: ambiguous option: $1
43328 Try \`$0 --help' for more information." >&2
43329 { (exit 1); exit 1; }; };;
43330 --help | --hel | -h )
43331 echo "$ac_cs_usage"; exit ;;
43332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43336 # This is an error.
43337 -*) { echo "$as_me: error: unrecognized option: $1
43338 Try \`$0 --help' for more information." >&2
43339 { (exit 1); exit 1; }; } ;;
43341 *) ac_config_targets="$ac_config_targets $1"
43342 ac_need_defaults=false ;;
43348 ac_configure_extra_args=
43350 if $ac_cs_silent; then
43352 ac_configure_extra_args="$ac_configure_extra_args --silent"
43356 cat >>$CONFIG_STATUS <<_ACEOF
43357 if \$ac_cs_recheck; then
43358 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43359 CONFIG_SHELL=$SHELL
43360 export CONFIG_SHELL
43361 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43365 cat >>$CONFIG_STATUS <<\_ACEOF
43369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43370 ## Running $as_me. ##
43376 cat >>$CONFIG_STATUS <<_ACEOF
43382 # The HP-UX ksh and POSIX shell print the target directory to stdout
43383 # if CDPATH is set.
43384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43386 sed_quote_subst='$sed_quote_subst'
43387 double_quote_subst='$double_quote_subst'
43388 delay_variable_subst='$delay_variable_subst'
43389 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43390 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43391 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43392 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43393 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43394 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43395 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43396 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43397 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43398 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43399 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43400 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43401 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43402 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43403 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43404 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43405 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43406 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43407 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43408 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43409 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43410 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43411 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43412 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43413 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43414 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43415 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43416 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43417 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43418 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43419 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43420 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43421 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43422 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43423 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43424 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43425 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43426 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43427 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43428 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43429 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43430 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43431 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43432 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43433 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"`'
43434 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"`'
43435 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43436 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43437 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43438 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43439 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43440 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43441 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43442 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43443 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43444 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43445 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43446 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43447 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43448 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43449 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43450 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43451 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43452 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43453 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43454 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43455 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43456 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43457 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43458 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43459 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43460 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43461 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43463 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43464 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43465 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43466 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43467 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43468 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43469 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43470 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43471 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43472 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43473 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43474 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43475 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43476 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43477 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43478 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43479 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43480 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43481 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43482 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43483 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43484 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43485 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43486 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43487 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43488 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43489 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43490 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43491 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43492 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43493 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43494 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43495 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43496 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43497 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43498 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43499 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43500 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43501 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43502 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43503 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43504 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43505 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43506 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43507 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43508 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43509 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43510 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43511 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43512 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43513 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43514 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43515 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43516 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43517 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43518 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43519 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43520 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43521 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43522 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43523 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43524 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43525 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43526 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43527 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43528 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43529 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43530 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43531 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43532 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43533 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43534 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43535 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43536 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43537 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43538 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43539 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43540 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43541 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43542 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43543 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43544 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43545 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43546 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43547 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43548 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43549 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43550 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43551 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43552 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43553 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43554 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43555 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43556 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43557 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43558 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43559 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43562 LTCFLAGS='$LTCFLAGS'
43563 compiler='$compiler_DEFAULT'
43565 # Quote evaled strings.
43577 deplibs_check_method \
43586 lt_cv_sys_global_symbol_pipe \
43587 lt_cv_sys_global_symbol_to_cdecl \
43588 lt_cv_sys_global_symbol_to_c_name_address \
43589 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43592 lt_prog_compiler_no_builtin_flag \
43593 lt_prog_compiler_wl \
43594 lt_prog_compiler_pic \
43595 lt_prog_compiler_static \
43596 lt_cv_prog_compiler_c_o \
43604 export_dynamic_flag_spec \
43605 whole_archive_flag_spec \
43606 compiler_needs_object \
43608 allow_undefined_flag \
43609 no_undefined_flag \
43610 hardcode_libdir_flag_spec \
43611 hardcode_libdir_flag_spec_ld \
43612 hardcode_libdir_separator \
43617 variables_saved_for_relink \
43619 library_names_spec \
43624 compiler_lib_search_dirs \
43629 compiler_lib_search_path \
43632 lt_prog_compiler_no_builtin_flag_CXX \
43633 lt_prog_compiler_wl_CXX \
43634 lt_prog_compiler_pic_CXX \
43635 lt_prog_compiler_static_CXX \
43636 lt_cv_prog_compiler_c_o_CXX \
43637 export_dynamic_flag_spec_CXX \
43638 whole_archive_flag_spec_CXX \
43639 compiler_needs_object_CXX \
43641 allow_undefined_flag_CXX \
43642 no_undefined_flag_CXX \
43643 hardcode_libdir_flag_spec_CXX \
43644 hardcode_libdir_flag_spec_ld_CXX \
43645 hardcode_libdir_separator_CXX \
43646 fix_srcfile_path_CXX \
43647 exclude_expsyms_CXX \
43648 include_expsyms_CXX \
43649 file_list_spec_CXX \
43650 compiler_lib_search_dirs_CXX \
43651 predep_objects_CXX \
43652 postdep_objects_CXX \
43655 compiler_lib_search_path_CXX; do
43656 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43657 *[\\\\\\\`\\"\\\$]*)
43658 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43661 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43666 # Double-quote double-evaled strings.
43667 for var in reload_cmds \
43668 old_postinstall_cmds \
43669 old_postuninstall_cmds \
43671 extract_expsyms_cmds \
43672 old_archive_from_new_cmds \
43673 old_archive_from_expsyms_cmds \
43675 archive_expsym_cmds \
43677 module_expsym_cmds \
43678 export_symbols_cmds \
43681 postuninstall_cmds \
43683 sys_lib_search_path_spec \
43684 sys_lib_dlsearch_path_spec \
43685 old_archive_cmds_CXX \
43686 old_archive_from_new_cmds_CXX \
43687 old_archive_from_expsyms_cmds_CXX \
43689 archive_expsym_cmds_CXX \
43691 module_expsym_cmds_CXX \
43692 export_symbols_cmds_CXX \
43693 prelink_cmds_CXX; do
43694 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43695 *[\\\\\\\`\\"\\\$]*)
43696 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43699 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43704 # Fix-up fallback echo if it was mangled by the above quoting rules.
43706 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43710 ac_aux_dir='$ac_aux_dir'
43711 xsi_shell='$xsi_shell'
43712 lt_shell_append='$lt_shell_append'
43714 # See if we are running on zsh, and set the options which allow our
43715 # commands through without removal of \ escapes INIT.
43716 if test -n "\${ZSH_VERSION+set}" ; then
43717 setopt NO_GLOB_SUBST
43723 TIMESTAMP='$TIMESTAMP'
43731 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43732 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43734 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43735 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43736 LINGUAS="${LINGUAS-%UNSET%}"
43741 cat >>$CONFIG_STATUS <<\_ACEOF
43743 # Handling of arguments.
43744 for ac_config_target in $ac_config_targets
43746 case $ac_config_target in
43747 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43748 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43749 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43750 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43752 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43753 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43754 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43755 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43756 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43757 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43758 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43759 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43760 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43761 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43762 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43763 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43764 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43765 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43766 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43767 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43768 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43769 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43770 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43771 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43772 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43773 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43774 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43775 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43776 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43777 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43778 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43779 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43780 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43781 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43782 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43783 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43784 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43785 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43786 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43787 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43788 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43789 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43790 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43791 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43792 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43793 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43794 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43795 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43796 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43797 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43798 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43799 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43800 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43801 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43802 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43803 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43804 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43805 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43806 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43807 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43808 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43809 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43810 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43811 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43812 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43813 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43814 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43815 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43816 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43817 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43818 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43819 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43820 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43821 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43822 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43823 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43824 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43825 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43826 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43827 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43828 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43829 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43830 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43831 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43832 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43833 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43834 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43835 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43836 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43837 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43838 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43839 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43840 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43841 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43842 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43843 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43844 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43845 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43846 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43847 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43848 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43849 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43850 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43851 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43852 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43853 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43854 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43855 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43856 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43857 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43858 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43859 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43860 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43861 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43862 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43863 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43864 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43865 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43866 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43868 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43869 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43870 { (exit 1); exit 1; }; };;
43875 # If the user did not use the arguments to specify the items to instantiate,
43876 # then the envvar interface is used. Set only those that are not.
43877 # We use the long form for the default assignment because of an extremely
43878 # bizarre bug on SunOS 4.1.3.
43879 if $ac_need_defaults; then
43880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43885 # Have a temporary directory for convenience. Make it in the build tree
43886 # simply because there is no reason against having it here, and in addition,
43887 # creating and moving files from /tmp can sometimes cause problems.
43888 # Hook for its removal unless debugging.
43889 # Note that there is a small window in which the directory will not be cleaned:
43890 # after its creation but before its name has been assigned to `$tmp'.
43894 trap 'exit_status=$?
43895 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43897 trap '{ (exit 1); exit 1; }' 1 2 13 15
43899 # Create a (secure) tmp directory for tmp files.
43902 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43903 test -n "$tmp" && test -d "$tmp"
43906 tmp=./conf$$-$RANDOM
43907 (umask 077 && mkdir "$tmp")
43910 echo "$me: cannot create a temporary directory in ." >&2
43911 { (exit 1); exit 1; }
43915 # Set up the sed scripts for CONFIG_FILES section.
43918 # No need to generate the scripts if there are no CONFIG_FILES.
43919 # This happens for instance when ./config.status config.h
43920 if test -n "$CONFIG_FILES"; then
43924 # Create sed commands to just substitute file output variables.
43926 # Remaining file output variables are in a fragment that also has non-file
43932 for ac_last_try in false false false false false :; do
43933 cat >conf$$subs.sed <<_ACEOF
43934 SHELL!$SHELL$ac_delim
43935 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43936 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43937 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43938 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43939 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43940 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43941 exec_prefix!$exec_prefix$ac_delim
43942 prefix!$prefix$ac_delim
43943 program_transform_name!$program_transform_name$ac_delim
43944 bindir!$bindir$ac_delim
43945 sbindir!$sbindir$ac_delim
43946 libexecdir!$libexecdir$ac_delim
43947 datarootdir!$datarootdir$ac_delim
43948 datadir!$datadir$ac_delim
43949 sysconfdir!$sysconfdir$ac_delim
43950 sharedstatedir!$sharedstatedir$ac_delim
43951 localstatedir!$localstatedir$ac_delim
43952 includedir!$includedir$ac_delim
43953 oldincludedir!$oldincludedir$ac_delim
43954 docdir!$docdir$ac_delim
43955 infodir!$infodir$ac_delim
43956 htmldir!$htmldir$ac_delim
43957 dvidir!$dvidir$ac_delim
43958 pdfdir!$pdfdir$ac_delim
43959 psdir!$psdir$ac_delim
43960 libdir!$libdir$ac_delim
43961 localedir!$localedir$ac_delim
43962 mandir!$mandir$ac_delim
43963 DEFS!$DEFS$ac_delim
43964 ECHO_C!$ECHO_C$ac_delim
43965 ECHO_N!$ECHO_N$ac_delim
43966 ECHO_T!$ECHO_T$ac_delim
43967 LIBS!$LIBS$ac_delim
43968 build_alias!$build_alias$ac_delim
43969 host_alias!$host_alias$ac_delim
43970 target_alias!$target_alias$ac_delim
43971 BUILD_DIR!$BUILD_DIR$ac_delim
43972 TOP_DIR!$TOP_DIR$ac_delim
43973 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43974 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43975 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43976 TRUEPRG!$TRUEPRG$ac_delim
43977 FALSEPRG!$FALSEPRG$ac_delim
43978 VERSION!$VERSION$ac_delim
43979 DATE!$DATE$ac_delim
43980 LSMDATE!$LSMDATE$ac_delim
43981 BACULA!$BACULA$ac_delim
43982 post_host!$post_host$ac_delim
43984 CFLAGS!$CFLAGS$ac_delim
43985 LDFLAGS!$LDFLAGS$ac_delim
43986 CPPFLAGS!$CPPFLAGS$ac_delim
43987 ac_ct_CC!$ac_ct_CC$ac_delim
43988 EXEEXT!$EXEEXT$ac_delim
43989 OBJEXT!$OBJEXT$ac_delim
43991 CXXFLAGS!$CXXFLAGS$ac_delim
43992 ac_ct_CXX!$ac_ct_CXX$ac_delim
43994 GREP!$GREP$ac_delim
43995 EGREP!$EGREP$ac_delim
43996 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43997 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43998 INSTALL_DATA!$INSTALL_DATA$ac_delim
44000 REMOVE!$REMOVE$ac_delim
44003 ECHO!$ECHO$ac_delim
44007 OPENSSL!$OPENSSL$ac_delim
44010 MKISOFS!$MKISOFS$ac_delim
44011 PYTHON!$PYTHON$ac_delim
44012 GROWISOFS!$GROWISOFS$ac_delim
44013 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44014 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44015 PKGCONFIG!$PKGCONFIG$ac_delim
44016 QMAKE!$QMAKE$ac_delim
44017 QMAKEQT4!$QMAKEQT4$ac_delim
44018 GMAKE!$GMAKE$ac_delim
44019 WXCONFIG!$WXCONFIG$ac_delim
44020 WXFLAGS!$WXFLAGS$ac_delim
44021 CDRECORD!$CDRECORD$ac_delim
44022 PIDOF!$PIDOF$ac_delim
44024 ARFLAGS!$ARFLAGS$ac_delim
44025 MAKE_SHELL!$MAKE_SHELL$ac_delim
44026 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44027 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44030 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44032 elif $ac_last_try; then
44033 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44035 { (exit 1); exit 1; }; }
44037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44042 if test -n "$ac_eof"; then
44043 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44044 ac_eof=`expr $ac_eof + 1`
44047 cat >>$CONFIG_STATUS <<_ACEOF
44048 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44050 /^[ ]*@MCOMMON@[ ]*$/{
44056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44057 s/^/s,@/; s/!/@,|#_!!_#|/
44060 s/'"$ac_delim"'$/,g/; t
44062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44063 ' >>$CONFIG_STATUS <conf$$subs.sed
44064 rm -f conf$$subs.sed
44065 cat >>$CONFIG_STATUS <<_ACEOF
44071 for ac_last_try in false false false false false :; do
44072 cat >conf$$subs.sed <<_ACEOF
44073 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44074 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44075 LIBTOOL!$LIBTOOL$ac_delim
44076 build!$build$ac_delim
44077 build_cpu!$build_cpu$ac_delim
44078 build_vendor!$build_vendor$ac_delim
44079 build_os!$build_os$ac_delim
44080 host!$host$ac_delim
44081 host_cpu!$host_cpu$ac_delim
44082 host_vendor!$host_vendor$ac_delim
44083 host_os!$host_os$ac_delim
44084 FGREP!$FGREP$ac_delim
44086 DUMPBIN!$DUMPBIN$ac_delim
44087 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44089 LN_S!$LN_S$ac_delim
44090 OBJDUMP!$OBJDUMP$ac_delim
44091 STRIP!$STRIP$ac_delim
44092 RANLIB!$RANLIB$ac_delim
44093 lt_ECHO!$lt_ECHO$ac_delim
44094 DSYMUTIL!$DSYMUTIL$ac_delim
44095 NMEDIT!$NMEDIT$ac_delim
44096 LIPO!$LIPO$ac_delim
44097 OTOOL!$OTOOL$ac_delim
44098 OTOOL64!$OTOOL64$ac_delim
44099 CXXCPP!$CXXCPP$ac_delim
44100 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44101 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44102 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44103 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44104 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44105 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44106 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44107 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44108 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44109 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44110 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44111 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44112 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44113 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44114 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44115 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44116 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44117 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44118 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44119 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44120 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44121 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44122 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44123 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44124 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44125 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44126 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44127 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44128 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44129 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44130 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44131 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44132 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44133 SET_MAKE!$SET_MAKE$ac_delim
44134 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44135 USE_NLS!$USE_NLS$ac_delim
44136 MSGFMT!$MSGFMT$ac_delim
44137 GMSGFMT!$GMSGFMT$ac_delim
44138 XGETTEXT!$XGETTEXT$ac_delim
44139 MSGMERGE!$MSGMERGE$ac_delim
44140 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44141 LIBICONV!$LIBICONV$ac_delim
44142 LTLIBICONV!$LTLIBICONV$ac_delim
44143 INTLLIBS!$INTLLIBS$ac_delim
44144 LIBINTL!$LIBINTL$ac_delim
44145 LTLIBINTL!$LTLIBINTL$ac_delim
44146 POSUB!$POSUB$ac_delim
44147 GLIBC2!$GLIBC2$ac_delim
44148 ALLOCA!$ALLOCA$ac_delim
44149 GLIBC21!$GLIBC21$ac_delim
44150 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44151 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44152 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44153 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44154 INTLBISON!$INTLBISON$ac_delim
44155 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44156 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44157 CATOBJEXT!$CATOBJEXT$ac_delim
44158 DATADIRNAME!$DATADIRNAME$ac_delim
44159 INSTOBJEXT!$INSTOBJEXT$ac_delim
44160 GENCAT!$GENCAT$ac_delim
44161 INTLOBJS!$INTLOBJS$ac_delim
44162 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44163 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44164 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44165 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44166 GNOME_LIBS!$GNOME_LIBS$ac_delim
44167 GNOME_DIR!$GNOME_DIR$ac_delim
44168 BAT_DIR!$BAT_DIR$ac_delim
44169 QWT_INC!$QWT_INC$ac_delim
44172 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44174 elif $ac_last_try; then
44175 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44177 { (exit 1); exit 1; }; }
44179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44184 if test -n "$ac_eof"; then
44185 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44186 ac_eof=`expr $ac_eof + 1`
44189 cat >>$CONFIG_STATUS <<_ACEOF
44190 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44195 s/^/s,@/; s/!/@,|#_!!_#|/
44198 s/'"$ac_delim"'$/,g/; t
44200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44201 ' >>$CONFIG_STATUS <conf$$subs.sed
44202 rm -f conf$$subs.sed
44203 cat >>$CONFIG_STATUS <<_ACEOF
44209 for ac_last_try in false false false false false :; do
44210 cat >conf$$subs.sed <<_ACEOF
44211 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44212 QWT_LIB!$QWT_LIB$ac_delim
44214 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44215 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44216 WX_DIR!$WX_DIR$ac_delim
44217 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44218 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44219 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44220 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44221 STATIC_FD!$STATIC_FD$ac_delim
44222 STATIC_SD!$STATIC_SD$ac_delim
44223 STATIC_DIR!$STATIC_DIR$ac_delim
44224 STATIC_CONS!$STATIC_CONS$ac_delim
44225 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44226 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44227 ALL_DIRS!$ALL_DIRS$ac_delim
44228 DIRD_DIR!$DIRD_DIR$ac_delim
44229 DIR_TOOLS!$DIR_TOOLS$ac_delim
44230 STORED_DIR!$STORED_DIR$ac_delim
44231 CONS_INC!$CONS_INC$ac_delim
44232 CONS_OBJ!$CONS_OBJ$ac_delim
44233 CONS_SRC!$CONS_SRC$ac_delim
44234 CONS_LIBS!$CONS_LIBS$ac_delim
44235 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44236 READLINE_SRC!$READLINE_SRC$ac_delim
44237 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44238 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44239 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44240 OPENSSL_INC!$OPENSSL_INC$ac_delim
44241 working_dir!$working_dir$ac_delim
44242 archivedir!$archivedir$ac_delim
44243 basename!$basename$ac_delim
44244 scriptdir!$scriptdir$ac_delim
44245 bsrdir!$bsrdir$ac_delim
44246 logdir!$logdir$ac_delim
44247 plugindir!$plugindir$ac_delim
44248 dump_email!$dump_email$ac_delim
44249 job_email!$job_email$ac_delim
44250 smtp_host!$smtp_host$ac_delim
44251 piddir!$piddir$ac_delim
44252 subsysdir!$subsysdir$ac_delim
44253 baseport!$baseport$ac_delim
44254 dir_port!$dir_port$ac_delim
44255 fd_port!$fd_port$ac_delim
44256 sd_port!$sd_port$ac_delim
44257 dir_password!$dir_password$ac_delim
44258 fd_password!$fd_password$ac_delim
44259 sd_password!$sd_password$ac_delim
44260 mon_dir_password!$mon_dir_password$ac_delim
44261 mon_fd_password!$mon_fd_password$ac_delim
44262 mon_sd_password!$mon_sd_password$ac_delim
44263 db_name!$db_name$ac_delim
44264 db_user!$db_user$ac_delim
44265 db_password!$db_password$ac_delim
44266 db_port!$db_port$ac_delim
44267 dir_user!$dir_user$ac_delim
44268 dir_group!$dir_group$ac_delim
44269 sd_user!$sd_user$ac_delim
44270 sd_group!$sd_group$ac_delim
44271 fd_user!$fd_user$ac_delim
44272 fd_group!$fd_group$ac_delim
44273 SBINPERM!$SBINPERM$ac_delim
44274 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44275 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44276 SQL_BINDIR!$SQL_BINDIR$ac_delim
44277 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44278 uncomment_dbi!$uncomment_dbi$ac_delim
44279 DB_PROG!$DB_PROG$ac_delim
44280 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44281 cats!$cats$ac_delim
44282 DB_TYPE!$DB_TYPE$ac_delim
44283 GETCONF!$GETCONF$ac_delim
44284 XMKMF!$XMKMF$ac_delim
44285 X_CFLAGS!$X_CFLAGS$ac_delim
44286 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44287 X_LIBS!$X_LIBS$ac_delim
44288 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44289 LIBOBJS!$LIBOBJS$ac_delim
44290 FDLIBS!$FDLIBS$ac_delim
44291 DEBUG!$DEBUG$ac_delim
44292 DINCLUDE!$DINCLUDE$ac_delim
44293 DLIB!$DLIB$ac_delim
44294 DB_LIBS!$DB_LIBS$ac_delim
44295 WCFLAGS!$WCFLAGS$ac_delim
44296 WLDFLAGS!$WLDFLAGS$ac_delim
44297 WRAPLIBS!$WRAPLIBS$ac_delim
44298 OBJLIST!$OBJLIST$ac_delim
44299 hostname!$hostname$ac_delim
44300 TAPEDRIVE!$TAPEDRIVE$ac_delim
44301 PSCMD!$PSCMD$ac_delim
44302 WIN32!$WIN32$ac_delim
44303 MACOSX!$MACOSX$ac_delim
44304 DISTNAME!$DISTNAME$ac_delim
44305 DISTVER!$DISTVER$ac_delim
44306 LTLIBOBJS!$LTLIBOBJS$ac_delim
44309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44311 elif $ac_last_try; then
44312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44314 { (exit 1); exit 1; }; }
44316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44321 if test -n "$ac_eof"; then
44322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44323 ac_eof=`expr $ac_eof + 1`
44326 cat >>$CONFIG_STATUS <<_ACEOF
44327 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44332 s/^/s,@/; s/!/@,|#_!!_#|/
44335 s/'"$ac_delim"'$/,g/; t
44337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44338 ' >>$CONFIG_STATUS <conf$$subs.sed
44339 rm -f conf$$subs.sed
44340 cat >>$CONFIG_STATUS <<_ACEOF
44345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44347 # trailing colons and then remove the whole line if VPATH becomes empty
44348 # (actually we leave an empty line to preserve line numbers).
44349 if test "x$srcdir" = x.; then
44350 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44351 s/:*\$(srcdir):*/:/
44352 s/:*\${srcdir}:*/:/
44354 s/^\([^=]*=[ ]*\):*/\1/
44360 cat >>$CONFIG_STATUS <<\_ACEOF
44361 fi # test -n "$CONFIG_FILES"
44364 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44367 :[FHLC]) ac_mode=$ac_tag; continue;;
44369 case $ac_mode$ac_tag in
44371 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44372 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44373 { (exit 1); exit 1; }; };;
44374 :[FH]-) ac_tag=-:-;;
44375 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44392 -) ac_f="$tmp/stdin";;
44393 *) # Look for the file first in the build tree, then in the source tree
44394 # (if the path is not absolute). The absolute path cannot be DOS-style,
44395 # because $ac_f cannot contain `:'.
44399 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44401 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44402 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44403 { (exit 1); exit 1; }; };;
44405 ac_file_inputs="$ac_file_inputs $ac_f"
44408 # Let's still pretend it is `configure' which instantiates (i.e., don't
44409 # use $as_me), people would be surprised to read:
44410 # /* config.h. Generated by config.status. */
44411 configure_input="Generated from "`IFS=:
44412 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44413 if test x"$ac_file" != x-; then
44414 configure_input="$ac_file. $configure_input"
44415 { echo "$as_me:$LINENO: creating $ac_file" >&5
44416 echo "$as_me: creating $ac_file" >&6;}
44420 *:-:* | *:-) cat >"$tmp/stdin";;
44425 ac_dir=`$as_dirname -- "$ac_file" ||
44426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44427 X"$ac_file" : 'X\(//\)[^/]' \| \
44428 X"$ac_file" : 'X\(//\)$' \| \
44429 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44435 /^X\(\/\/\)[^/].*/{
44450 -*) as_dir=./$as_dir;;
44452 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44456 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44457 *) as_qdir=$as_dir;;
44459 as_dirs="'$as_qdir' $as_dirs"
44460 as_dir=`$as_dirname -- "$as_dir" ||
44461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44462 X"$as_dir" : 'X\(//\)[^/]' \| \
44463 X"$as_dir" : 'X\(//\)$' \| \
44464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44470 /^X\(\/\/\)[^/].*/{
44483 test -d "$as_dir" && break
44485 test -z "$as_dirs" || eval "mkdir $as_dirs"
44486 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44487 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44488 { (exit 1); exit 1; }; }; }
44492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44495 # A ".." for each directory in $ac_dir_suffix.
44496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44497 case $ac_top_builddir_sub in
44498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44502 ac_abs_top_builddir=$ac_pwd
44503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44504 # for backward compatibility:
44505 ac_top_builddir=$ac_top_build_prefix
44508 .) # We are building in place.
44510 ac_top_srcdir=$ac_top_builddir_sub
44511 ac_abs_top_srcdir=$ac_pwd ;;
44512 [\\/]* | ?:[\\/]* ) # Absolute name.
44513 ac_srcdir=$srcdir$ac_dir_suffix;
44514 ac_top_srcdir=$srcdir
44515 ac_abs_top_srcdir=$srcdir ;;
44516 *) # Relative name.
44517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44518 ac_top_srcdir=$ac_top_build_prefix$srcdir
44519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44532 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44536 cat >>$CONFIG_STATUS <<\_ACEOF
44537 # If the template does not know about datarootdir, expand it.
44538 # FIXME: This hack should be removed a few years after 2.60.
44539 ac_datarootdir_hack=; ac_datarootdir_seen=
44541 case `sed -n '/datarootdir/ {
44550 ' $ac_file_inputs` in
44551 *datarootdir*) ac_datarootdir_seen=yes;;
44552 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44553 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44554 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44556 cat >>$CONFIG_STATUS <<_ACEOF
44557 ac_datarootdir_hack='
44558 s&@datadir@&$datadir&g
44559 s&@docdir@&$docdir&g
44560 s&@infodir@&$infodir&g
44561 s&@localedir@&$localedir&g
44562 s&@mandir@&$mandir&g
44563 s&\\\${datarootdir}&$datarootdir&g' ;;
44567 # Neutralize VPATH when `$srcdir' = `.'.
44568 # Shell code in configure.ac might set extrasub.
44569 # FIXME: do we really want to maintain this feature?
44570 cat >>$CONFIG_STATUS <<_ACEOF
44574 cat >>$CONFIG_STATUS <<\_ACEOF
44576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44577 s&@configure_input@&$configure_input&;t t
44578 s&@top_builddir@&$ac_top_builddir_sub&;t t
44579 s&@srcdir@&$ac_srcdir&;t t
44580 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44581 s&@top_srcdir@&$ac_top_srcdir&;t t
44582 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44583 s&@builddir@&$ac_builddir&;t t
44584 s&@abs_builddir@&$ac_abs_builddir&;t t
44585 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44586 s&@INSTALL@&$ac_INSTALL&;t t
44587 $ac_datarootdir_hack
44588 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
44590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44591 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44593 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44594 which seems to be undefined. Please make sure it is defined." >&5
44595 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44596 which seems to be undefined. Please make sure it is defined." >&2;}
44600 -) cat "$tmp/out"; rm -f "$tmp/out";;
44601 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44610 # Transform confdefs.h into a sed script `conftest.defines', that
44611 # substitutes the proper values into config.h.in to produce config.h.
44612 rm -f conftest.defines conftest.tail
44613 # First, append a space to every undef/define line, to ease matching.
44614 echo 's/$/ /' >conftest.defines
44615 # Then, protect against being on the right side of a sed subst, or in
44616 # an unquoted here document, in config.status. If some macros were
44617 # called several times there might be several #defines for the same
44618 # symbol, which is useless. But do not sort them, since the last
44619 # AC_DEFINE must be honored.
44620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44621 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44622 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44623 # PARAMS is the parameter list in the macro definition--in most cases, it's
44624 # just an empty string.
44625 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44626 ac_dB='\\)[ (].*,\\1define\\2'
44634 s/^[ ]*#[ ]*define[ ][ ]*//
44639 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44640 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44641 ' >>conftest.defines
44643 # Remove the space that was appended to ease matching.
44644 # Then replace #undef with comments. This is necessary, for
44645 # example, in the case of _POSIX_SOURCE, which is predefined and required
44646 # on some systems where configure will not decide to define it.
44647 # (The regexp can be short, since the line contains either #define or #undef.)
44649 s,^[ #]*u.*,/* & */,' >>conftest.defines
44651 # Break up conftest.defines:
44652 ac_max_sed_lines=50
44654 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44655 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44656 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44658 ac_in='$ac_file_inputs'
44659 ac_out='"$tmp/out1"'
44660 ac_nxt='"$tmp/out2"'
44664 # Write a here document:
44665 cat >>$CONFIG_STATUS <<_ACEOF
44666 # First, check the format of the line:
44667 cat >"\$tmp/defines.sed" <<\\CEOF
44668 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44669 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44673 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44675 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44676 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44677 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44678 grep . conftest.tail >/dev/null || break
44679 rm -f conftest.defines
44680 mv conftest.tail conftest.defines
44682 rm -f conftest.defines conftest.tail
44684 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44685 cat >>$CONFIG_STATUS <<\_ACEOF
44686 if test x"$ac_file" != x-; then
44687 echo "/* $configure_input */" >"$tmp/config.h"
44688 cat "$ac_result" >>"$tmp/config.h"
44689 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44690 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44691 echo "$as_me: $ac_file is unchanged" >&6;}
44694 mv "$tmp/config.h" $ac_file
44697 echo "/* $configure_input */"
44703 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44704 echo "$as_me: executing $ac_file commands" >&6;}
44709 case $ac_file$ac_mode in
44712 # See if we are running on zsh, and set the options which allow our
44713 # commands through without removal of \ escapes.
44714 if test -n "${ZSH_VERSION+set}" ; then
44715 setopt NO_GLOB_SUBST
44718 cfgfile="${ofile}T"
44719 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44722 cat <<_LT_EOF >> "$cfgfile"
44725 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44726 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44728 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44730 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44731 # 2006, 2007, 2008 Free Software Foundation, Inc.
44732 # Written by Gordon Matzigkeit, 1996
44734 # This file is part of GNU Libtool.
44736 # GNU Libtool is free software; you can redistribute it and/or
44737 # modify it under the terms of the GNU General Public License as
44738 # published by the Free Software Foundation; either version 2 of
44739 # the License, or (at your option) any later version.
44741 # As a special exception to the GNU General Public License,
44742 # if you distribute this file as part of a program or library that
44743 # is built using GNU Libtool, you may include this file under the
44744 # same distribution terms that you use for the rest of that program.
44746 # GNU Libtool is distributed in the hope that it will be useful,
44747 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44748 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44749 # GNU General Public License for more details.
44751 # You should have received a copy of the GNU General Public License
44752 # along with GNU Libtool; see the file COPYING. If not, a copy
44753 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44754 # obtained by writing to the Free Software Foundation, Inc.,
44755 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44758 # The names of the tagged configurations supported by this script.
44759 available_tags="CXX "
44761 # ### BEGIN LIBTOOL CONFIG
44763 # Which release of libtool.m4 was used?
44764 macro_version=$macro_version
44765 macro_revision=$macro_revision
44767 # Whether or not to build shared libraries.
44768 build_libtool_libs=$enable_shared
44770 # Whether or not to build static libraries.
44771 build_old_libs=$enable_static
44773 # What type of objects to build.
44776 # Whether or not to optimize for fast installation.
44777 fast_install=$enable_fast_install
44780 host_alias=$host_alias
44784 # The build system.
44785 build_alias=$build_alias
44789 # A sed program that does not truncate output.
44792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44793 Xsed="\$SED -e 1s/^X//"
44795 # A grep program that handles long lines.
44801 # A literal string matcher.
44804 # A BSD- or MS-compatible name lister.
44807 # Whether we need soft or hard links.
44810 # What is the maximum length of a command?
44811 max_cmd_len=$max_cmd_len
44813 # Object file suffix (normally "o").
44816 # Executable file suffix (normally "").
44819 # whether the shell understands "unset".
44822 # turn spaces into newlines.
44825 # turn newlines into spaces.
44828 # How to create reloadable object files.
44829 reload_flag=$lt_reload_flag
44830 reload_cmds=$lt_reload_cmds
44832 # An object symbol dumper.
44833 OBJDUMP=$lt_OBJDUMP
44835 # Method to check whether dependent libraries are shared objects.
44836 deplibs_check_method=$lt_deplibs_check_method
44838 # Command to use when deplibs_check_method == "file_magic".
44839 file_magic_cmd=$lt_file_magic_cmd
44843 AR_FLAGS=$lt_AR_FLAGS
44845 # A symbol stripping program.
44848 # Commands used to install an old-style archive.
44850 old_postinstall_cmds=$lt_old_postinstall_cmds
44851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44856 # LTCC compiler flags.
44857 LTCFLAGS=$lt_CFLAGS
44859 # Take the output of nm and produce a listing of raw symbols and C names.
44860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44862 # Transform the output of nm in a proper C declaration.
44863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44865 # Transform the output of nm in a C name address pair.
44866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44868 # Transform the output of nm in a C name address pair when lib prefix is needed.
44869 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44871 # The name of the directory that contains temporary libtool files.
44874 # Shell to use when invoking shell scripts.
44877 # An echo program that does not interpret backslashes.
44880 # Used to examine libraries when file_magic_cmd begins with "file".
44881 MAGIC_CMD=$MAGIC_CMD
44883 # Must we lock files when doing compilation?
44884 need_locks=$lt_need_locks
44886 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44887 DSYMUTIL=$lt_DSYMUTIL
44889 # Tool to change global to local symbols on Mac OS X.
44892 # Tool to manipulate fat objects and archives on Mac OS X.
44895 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44898 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44899 OTOOL64=$lt_OTOOL64
44901 # Old archive suffix (normally "a").
44904 # Shared library suffix (normally ".so").
44905 shrext_cmds=$lt_shrext_cmds
44907 # The commands to extract the exported symbol list from a shared archive.
44908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44910 # Variables whose values should be saved in libtool wrapper scripts and
44911 # restored at link time.
44912 variables_saved_for_relink=$lt_variables_saved_for_relink
44914 # Do we need the "lib" prefix for modules?
44915 need_lib_prefix=$need_lib_prefix
44917 # Do we need a version for libraries?
44918 need_version=$need_version
44920 # Library versioning type.
44921 version_type=$version_type
44923 # Shared library runtime path variable.
44924 runpath_var=$runpath_var
44926 # Shared library path variable.
44927 shlibpath_var=$shlibpath_var
44929 # Is shlibpath searched before the hard-coded library search path?
44930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44932 # Format of library name prefix.
44933 libname_spec=$lt_libname_spec
44935 # List of archive names. First name is the real one, the rest are links.
44936 # The last name is the one that the linker finds with -lNAME
44937 library_names_spec=$lt_library_names_spec
44939 # The coded name of the library, if different from the real name.
44940 soname_spec=$lt_soname_spec
44942 # Command to use after installation of a shared archive.
44943 postinstall_cmds=$lt_postinstall_cmds
44945 # Command to use after uninstallation of a shared archive.
44946 postuninstall_cmds=$lt_postuninstall_cmds
44948 # Commands used to finish a libtool library installation in a directory.
44949 finish_cmds=$lt_finish_cmds
44951 # As "finish_cmds", except a single script fragment to be evaled but
44953 finish_eval=$lt_finish_eval
44955 # Whether we should hardcode library paths into libraries.
44956 hardcode_into_libs=$hardcode_into_libs
44958 # Compile-time system search path for libraries.
44959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44961 # Run-time system search path for libraries.
44962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44964 # Whether dlopen is supported.
44965 dlopen_support=$enable_dlopen
44967 # Whether dlopen of programs is supported.
44968 dlopen_self=$enable_dlopen_self
44970 # Whether dlopen of statically linked programs is supported.
44971 dlopen_self_static=$enable_dlopen_self_static
44973 # Commands to strip libraries.
44974 old_striplib=$lt_old_striplib
44975 striplib=$lt_striplib
44978 # The linker used to build libraries.
44981 # Commands used to build an old-style archive.
44982 old_archive_cmds=$lt_old_archive_cmds
44984 # A language specific compiler.
44987 # Is the compiler the GNU compiler?
44990 # Compiler flag to turn off builtin functions.
44991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44993 # How to pass a linker flag through the compiler.
44994 wl=$lt_lt_prog_compiler_wl
44996 # Additional compiler flags for building library objects.
44997 pic_flag=$lt_lt_prog_compiler_pic
44999 # Compiler flag to prevent dynamic linking.
45000 link_static_flag=$lt_lt_prog_compiler_static
45002 # Does compiler simultaneously support -c and -o options?
45003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45005 # Whether or not to add -lc for building shared libraries.
45006 build_libtool_need_lc=$archive_cmds_need_lc
45008 # Whether or not to disallow shared libs when runtime libs are static.
45009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45011 # Compiler flag to allow reflexive dlopens.
45012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45014 # Compiler flag to generate shared objects directly from archives.
45015 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45017 # Whether the compiler copes with passing no objects directly.
45018 compiler_needs_object=$lt_compiler_needs_object
45020 # Create an old-style archive from a shared archive.
45021 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45023 # Create a temporary old-style archive to link instead of a shared archive.
45024 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45026 # Commands used to build a shared archive.
45027 archive_cmds=$lt_archive_cmds
45028 archive_expsym_cmds=$lt_archive_expsym_cmds
45030 # Commands used to build a loadable module if different from building
45031 # a shared archive.
45032 module_cmds=$lt_module_cmds
45033 module_expsym_cmds=$lt_module_expsym_cmds
45035 # Whether we are building with GNU ld or not.
45036 with_gnu_ld=$lt_with_gnu_ld
45038 # Flag that allows shared libraries with undefined symbols to be built.
45039 allow_undefined_flag=$lt_allow_undefined_flag
45041 # Flag that enforces no undefined symbols.
45042 no_undefined_flag=$lt_no_undefined_flag
45044 # Flag to hardcode \$libdir into a binary during linking.
45045 # This must work even if \$libdir does not exist
45046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45048 # If ld is used when linking, flag to hardcode \$libdir into a binary
45049 # during linking. This must work even if \$libdir does not exist.
45050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45052 # Whether we need a single "-rpath" flag with a separated argument.
45053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45056 # DIR into the resulting binary.
45057 hardcode_direct=$hardcode_direct
45059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45060 # DIR into the resulting binary and the resulting library dependency is
45061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45062 # library is relocated.
45063 hardcode_direct_absolute=$hardcode_direct_absolute
45065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45066 # into the resulting binary.
45067 hardcode_minus_L=$hardcode_minus_L
45069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45070 # into the resulting binary.
45071 hardcode_shlibpath_var=$hardcode_shlibpath_var
45073 # Set to "yes" if building a shared library automatically hardcodes DIR
45074 # into the library and all subsequent libraries and executables linked
45076 hardcode_automatic=$hardcode_automatic
45078 # Set to yes if linker adds runtime paths of dependent libraries
45079 # to runtime path list.
45080 inherit_rpath=$inherit_rpath
45082 # Whether libtool must link a program against all its dependency libraries.
45083 link_all_deplibs=$link_all_deplibs
45085 # Fix the shell variable \$srcfile for the compiler.
45086 fix_srcfile_path=$lt_fix_srcfile_path
45088 # Set to "yes" if exported symbols are required.
45089 always_export_symbols=$always_export_symbols
45091 # The commands to list exported symbols.
45092 export_symbols_cmds=$lt_export_symbols_cmds
45094 # Symbols that should not be listed in the preloaded symbols.
45095 exclude_expsyms=$lt_exclude_expsyms
45097 # Symbols that must always be exported.
45098 include_expsyms=$lt_include_expsyms
45100 # Commands necessary for linking programs (against libraries) with templates.
45101 prelink_cmds=$lt_prelink_cmds
45103 # Specify filename containing input files.
45104 file_list_spec=$lt_file_list_spec
45106 # How to hardcode a shared library path into an executable.
45107 hardcode_action=$hardcode_action
45109 # The directories searched by this compiler when creating a shared library.
45110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45112 # Dependencies to place before and after the objects being linked to
45113 # create a shared library.
45114 predep_objects=$lt_predep_objects
45115 postdep_objects=$lt_postdep_objects
45116 predeps=$lt_predeps
45117 postdeps=$lt_postdeps
45119 # The library search path used internally by the compiler when linking
45120 # a shared library.
45121 compiler_lib_search_path=$lt_compiler_lib_search_path
45123 # ### END LIBTOOL CONFIG
45129 cat <<\_LT_EOF >> "$cfgfile"
45130 # AIX sometimes has problems with the GCC collect2 program. For some
45131 # reason, if we set the COLLECT_NAMES environment variable, the problems
45132 # vanish in a puff of smoke.
45133 if test "X${COLLECT_NAMES+set}" != Xset; then
45135 export COLLECT_NAMES
45142 ltmain="$ac_aux_dir/ltmain.sh"
45145 # We use sed instead of cat because bash on DJGPP gets confused if
45146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45147 # text mode, it properly converts lines to CR/LF. This bash problem
45148 # is reportedly fixed, but why not run on old versions too?
45149 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45150 || (rm -f "$cfgfile"; exit 1)
45154 cat << \_LT_EOF >> "$cfgfile"
45156 # func_dirname file append nondir_replacement
45157 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45158 # otherwise set result to NONDIR_REPLACEMENT.
45162 */*) func_dirname_result="${1%/*}${2}" ;;
45163 * ) func_dirname_result="${3}" ;;
45167 # func_basename file
45170 func_basename_result="${1##*/}"
45173 # func_dirname_and_basename file append nondir_replacement
45174 # perform func_basename and func_dirname in a single function
45176 # dirname: Compute the dirname of FILE. If nonempty,
45177 # add APPEND to the result, otherwise set result
45178 # to NONDIR_REPLACEMENT.
45179 # value returned in "$func_dirname_result"
45180 # basename: Compute filename of FILE.
45181 # value retuned in "$func_basename_result"
45182 # Implementation must be kept synchronized with func_dirname
45183 # and func_basename. For efficiency, we do not delegate to
45184 # those functions but instead duplicate the functionality here.
45185 func_dirname_and_basename ()
45188 */*) func_dirname_result="${1%/*}${2}" ;;
45189 * ) func_dirname_result="${3}" ;;
45191 func_basename_result="${1##*/}"
45194 # func_stripname prefix suffix name
45195 # strip PREFIX and SUFFIX off of NAME.
45196 # PREFIX and SUFFIX must not contain globbing or regex special
45197 # characters, hashes, percent signs, but SUFFIX may contain a leading
45198 # dot (in which case that matches only a dot).
45201 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45202 # positional parameters, so assign one to ordinary parameter first.
45203 func_stripname_result=${3}
45204 func_stripname_result=${func_stripname_result#"${1}"}
45205 func_stripname_result=${func_stripname_result%"${2}"}
45211 func_opt_split_opt=${1%%=*}
45212 func_opt_split_arg=${1#*=}
45219 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45220 *) func_lo2o_result=${1} ;;
45224 # func_xform libobj-or-source
45227 func_xform_result=${1%.*}.lo
45230 # func_arith arithmetic-term...
45233 func_arith_result=$(( $* ))
45237 # STRING may not start with a hyphen.
45240 func_len_result=${#1}
45245 *) # Bourne compatible functions.
45246 cat << \_LT_EOF >> "$cfgfile"
45248 # func_dirname file append nondir_replacement
45249 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45250 # otherwise set result to NONDIR_REPLACEMENT.
45253 # Extract subdirectory from the argument.
45254 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45255 if test "X$func_dirname_result" = "X${1}"; then
45256 func_dirname_result="${3}"
45258 func_dirname_result="$func_dirname_result${2}"
45262 # func_basename file
45265 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45269 # func_stripname prefix suffix name
45270 # strip PREFIX and SUFFIX off of NAME.
45271 # PREFIX and SUFFIX must not contain globbing or regex special
45272 # characters, hashes, percent signs, but SUFFIX may contain a leading
45273 # dot (in which case that matches only a dot).
45274 # func_strip_suffix prefix name
45278 .*) func_stripname_result=`$ECHO "X${3}" \
45279 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45280 *) func_stripname_result=`$ECHO "X${3}" \
45281 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45286 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45287 my_sed_long_arg='1s/^-[^=]*=//'
45292 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45293 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45299 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45302 # func_xform libobj-or-source
45305 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45308 # func_arith arithmetic-term...
45311 func_arith_result=`expr "$@"`
45315 # STRING may not start with a hyphen.
45318 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45324 case $lt_shell_append in
45326 cat << \_LT_EOF >> "$cfgfile"
45328 # func_append var value
45329 # Append VALUE to the end of shell variable VAR.
45337 cat << \_LT_EOF >> "$cfgfile"
45339 # func_append var value
45340 # Append VALUE to the end of shell variable VAR.
45351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45352 || (rm -f "$cfgfile"; exit 1)
45354 mv -f "$cfgfile" "$ofile" ||
45355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45359 cat <<_LT_EOF >> "$ofile"
45361 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45363 # The linker used to build libraries.
45366 # Commands used to build an old-style archive.
45367 old_archive_cmds=$lt_old_archive_cmds_CXX
45369 # A language specific compiler.
45370 CC=$lt_compiler_CXX
45372 # Is the compiler the GNU compiler?
45375 # Compiler flag to turn off builtin functions.
45376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45378 # How to pass a linker flag through the compiler.
45379 wl=$lt_lt_prog_compiler_wl_CXX
45381 # Additional compiler flags for building library objects.
45382 pic_flag=$lt_lt_prog_compiler_pic_CXX
45384 # Compiler flag to prevent dynamic linking.
45385 link_static_flag=$lt_lt_prog_compiler_static_CXX
45387 # Does compiler simultaneously support -c and -o options?
45388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45390 # Whether or not to add -lc for building shared libraries.
45391 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45393 # Whether or not to disallow shared libs when runtime libs are static.
45394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45396 # Compiler flag to allow reflexive dlopens.
45397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45399 # Compiler flag to generate shared objects directly from archives.
45400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45402 # Whether the compiler copes with passing no objects directly.
45403 compiler_needs_object=$lt_compiler_needs_object_CXX
45405 # Create an old-style archive from a shared archive.
45406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45408 # Create a temporary old-style archive to link instead of a shared archive.
45409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45411 # Commands used to build a shared archive.
45412 archive_cmds=$lt_archive_cmds_CXX
45413 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45415 # Commands used to build a loadable module if different from building
45416 # a shared archive.
45417 module_cmds=$lt_module_cmds_CXX
45418 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45420 # Whether we are building with GNU ld or not.
45421 with_gnu_ld=$lt_with_gnu_ld_CXX
45423 # Flag that allows shared libraries with undefined symbols to be built.
45424 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45426 # Flag that enforces no undefined symbols.
45427 no_undefined_flag=$lt_no_undefined_flag_CXX
45429 # Flag to hardcode \$libdir into a binary during linking.
45430 # This must work even if \$libdir does not exist
45431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45433 # If ld is used when linking, flag to hardcode \$libdir into a binary
45434 # during linking. This must work even if \$libdir does not exist.
45435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45437 # Whether we need a single "-rpath" flag with a separated argument.
45438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45441 # DIR into the resulting binary.
45442 hardcode_direct=$hardcode_direct_CXX
45444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45445 # DIR into the resulting binary and the resulting library dependency is
45446 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45447 # library is relocated.
45448 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45451 # into the resulting binary.
45452 hardcode_minus_L=$hardcode_minus_L_CXX
45454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45455 # into the resulting binary.
45456 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45458 # Set to "yes" if building a shared library automatically hardcodes DIR
45459 # into the library and all subsequent libraries and executables linked
45461 hardcode_automatic=$hardcode_automatic_CXX
45463 # Set to yes if linker adds runtime paths of dependent libraries
45464 # to runtime path list.
45465 inherit_rpath=$inherit_rpath_CXX
45467 # Whether libtool must link a program against all its dependency libraries.
45468 link_all_deplibs=$link_all_deplibs_CXX
45470 # Fix the shell variable \$srcfile for the compiler.
45471 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45473 # Set to "yes" if exported symbols are required.
45474 always_export_symbols=$always_export_symbols_CXX
45476 # The commands to list exported symbols.
45477 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45479 # Symbols that should not be listed in the preloaded symbols.
45480 exclude_expsyms=$lt_exclude_expsyms_CXX
45482 # Symbols that must always be exported.
45483 include_expsyms=$lt_include_expsyms_CXX
45485 # Commands necessary for linking programs (against libraries) with templates.
45486 prelink_cmds=$lt_prelink_cmds_CXX
45488 # Specify filename containing input files.
45489 file_list_spec=$lt_file_list_spec_CXX
45491 # How to hardcode a shared library path into an executable.
45492 hardcode_action=$hardcode_action_CXX
45494 # The directories searched by this compiler when creating a shared library.
45495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45497 # Dependencies to place before and after the objects being linked to
45498 # create a shared library.
45499 predep_objects=$lt_predep_objects_CXX
45500 postdep_objects=$lt_postdep_objects_CXX
45501 predeps=$lt_predeps_CXX
45502 postdeps=$lt_postdeps_CXX
45504 # The library search path used internally by the compiler when linking
45505 # a shared library.
45506 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45508 # ### END LIBTOOL TAG CONFIG: CXX
45513 for ac_file in $CONFIG_FILES; do
45514 # Support "outfile[:infile[:infile...]]"
45516 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45518 # PO directories have a Makefile.in generated from Makefile.in.in.
45519 case "$ac_file" in */Makefile.in)
45520 # Adjust a relative srcdir.
45521 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45522 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45523 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45524 # In autoconf-2.13 it is called $ac_given_srcdir.
45525 # In autoconf-2.50 it is called $srcdir.
45526 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45527 case "$ac_given_srcdir" in
45528 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45529 /*) top_srcdir="$ac_given_srcdir" ;;
45530 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45532 # Treat a directory as a PO directory if and only if it has a
45533 # POTFILES.in file. This allows packages to have multiple PO
45534 # directories under different names or in different locations.
45535 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45536 rm -f "$ac_dir/POTFILES"
45537 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45538 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45539 POMAKEFILEDEPS="POTFILES.in"
45540 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45541 # on $ac_dir but don't depend on user-specified configuration
45543 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45544 # The LINGUAS file contains the set of available languages.
45545 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45546 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45548 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45549 # Hide the ALL_LINGUAS assigment from automake.
45550 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45551 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45553 # The set of available languages was given in configure.in.
45554 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45557 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45558 # Compute UPDATEPOFILES
45559 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45560 # Compute DUMMYPOFILES
45561 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45563 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45564 case "$ac_given_srcdir" in
45566 *) srcdirpre='$(srcdir)/' ;;
45572 for lang in $ALL_LINGUAS; do
45573 POFILES="$POFILES $srcdirpre$lang.po"
45574 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45575 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45576 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45578 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45579 # environment variable.
45581 if test -n "$ALL_LINGUAS"; then
45582 for presentlang in $ALL_LINGUAS; do
45584 if test "%UNSET%" != "$LINGUAS"; then
45585 desiredlanguages="$LINGUAS"
45587 desiredlanguages="$ALL_LINGUAS"
45589 for desiredlang in $desiredlanguages; do
45590 # Use the presentlang catalog if desiredlang is
45591 # a. equal to presentlang, or
45592 # b. a variant of presentlang (because in this case,
45593 # presentlang can be used as a fallback for messages
45594 # which are not translated in the desiredlang catalog).
45595 case "$desiredlang" in
45596 "$presentlang"*) useit=yes;;
45599 if test $useit = yes; then
45600 INST_LINGUAS="$INST_LINGUAS $presentlang"
45605 if test -n "$INST_LINGUAS"; then
45606 for lang in $INST_LINGUAS; do
45607 CATALOGS="$CATALOGS $lang.gmo"
45610 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45611 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"
45612 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45613 if test -f "$f"; then
45615 *.orig | *.bak | *~) ;;
45616 *) cat "$f" >> "$ac_dir/Makefile" ;;
45631 { (exit 0); exit 0; }
45633 chmod +x $CONFIG_STATUS
45634 ac_clean_files=$ac_clean_files_save
45637 # configure is writing to config.log, and then calls config.status.
45638 # config.status does its own redirection, appending to config.log.
45639 # Unfortunately, on DOS this fails, as config.log is still kept open
45640 # by configure, so config.status won't be able to write to it; its
45641 # output is simply discarded. So we exec the FD to /dev/null,
45642 # effectively closing config.log, so it can be properly (re)opened and
45643 # appended to by config.status. When coming back to configure, we
45644 # need to make the FD available again.
45645 if test "$no_create" != yes; then
45647 ac_config_status_args=
45648 test "$silent" = yes &&
45649 ac_config_status_args="$ac_config_status_args --quiet"
45651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45654 # would make configure fail if this is the last instruction.
45655 $ac_cs_success || { (exit 1); exit 1; }
45659 if test "${support_bat}" = "yes" ; then
45660 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45661 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45667 if test "x$QMAKEQT4" != "xnone"; then
45672 echo "Creating bat Makefile"
45679 if test X"$GCC" = "Xyes" ; then
45680 echo "Doing make of dependencies"
45681 ${MAKE:-make} depend
45685 chmod 755 install_conf_file build-depkgs-qt-console
45689 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45690 chmod 755 dvd-handler dvd-simulator
45691 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45695 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45696 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45700 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45701 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45703 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45704 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45706 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45707 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45709 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45710 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45712 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45713 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45715 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45716 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45718 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45719 chmod 755 $c/sqlite
45722 chmod 755 src/win32/build-depkgs-mingw32
45724 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45725 largefile_support="yes"
45728 if test X"$GCC" = "Xyes" ; then
45729 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45730 if test "x${CCVERSION}" = "x" ; then
45731 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45733 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45734 if test x"${CXXVERSION}" = x ; then
45735 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45739 # clean up any old junk
45745 if test "x${db_type}" = "xInternal" ; then
45748 echo "You have not specified either --enable-client-only or one of the"
45749 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45750 echo " This is not permitted. Please reconfigure."
45752 echo "Aborting the configuration ..."
45759 Configuration on `date`:
45761 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45762 Bacula version: ${BACULA} ${VERSION} (${DATE})
45763 Source code location: ${srcdir}
45764 Install binaries: ${sbindir}
45765 Install libraries: ${libdir}
45766 Install config files: ${sysconfdir}
45767 Scripts directory: ${scriptdir}
45768 Archive directory: ${archivedir}
45769 Working directory: ${working_dir}
45770 PID directory: ${piddir}
45771 Subsys directory: ${subsysdir}
45772 Man directory: ${mandir}
45773 Data directory: ${datarootdir}
45774 Plugin directory: ${plugindir}
45775 C Compiler: ${CC} ${CCVERSION}
45776 C++ Compiler: ${CXX} ${CXXVERSION}
45777 Compiler flags: ${WCFLAGS} ${CFLAGS}
45778 Linker flags: ${WLDFLAGS} ${LDFLAGS}
45780 Statically Linked Tools: ${support_static_tools}
45781 Statically Linked FD: ${support_static_fd}
45782 Statically Linked SD: ${support_static_sd}
45783 Statically Linked DIR: ${support_static_dir}
45784 Statically Linked CONS: ${support_static_cons}
45785 Database type: ${db_type}
45786 Database port: ${db_port}
45787 Database lib: ${DB_LIBS}
45788 Database name: ${db_name}
45789 Database user: ${db_user}
45791 Job Output Email: ${job_email}
45792 Traceback Email: ${dump_email}
45793 SMTP Host Address: ${smtp_host}
45795 Director Port: ${dir_port}
45796 File daemon Port: ${fd_port}
45797 Storage daemon Port: ${sd_port}
45799 Director User: ${dir_user}
45800 Director Group: ${dir_group}
45801 Storage Daemon User: ${sd_user}
45802 Storage DaemonGroup: ${sd_group}
45803 File Daemon User: ${fd_user}
45804 File Daemon Group: ${fd_group}
45806 SQL binaries Directory ${SQL_BINDIR}
45808 Large file support: $largefile_support
45809 Bacula conio support: ${got_conio} ${CONS_LIBS}
45810 readline support: ${got_readline} ${PRTREADLINE_SRC}
45811 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
45812 TLS support: ${support_tls}
45813 Encryption support: ${support_crypto}
45814 ZLIB support: ${have_zlib}
45815 enable-smartalloc: ${support_smartalloc}
45816 enable-lockmgr: ${support_lockmgr}
45817 bat support: ${support_bat} ${QWT_LDFLAGS}
45818 enable-gnome: ${support_gnome} ${gnome_version}
45819 enable-bwx-console: ${support_wx_console} ${wx_version}
45820 enable-tray-monitor: ${support_tray_monitor}
45821 client-only: ${build_client_only}
45822 build-dird: ${build_dird}
45823 build-stored: ${build_stored}
45824 ACL support: ${have_acl}
45825 XATTR support: ${have_xattr}
45826 Python support: ${support_python} ${PYTHON_LIBS}
45827 Batch insert enabled: ${support_batch_insert}