2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
957 TRAY_MONITOR_CPPFLAGS
1048 ac_subst_files='MCOMMON'
1049 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1079 program_transform_name=s,x,x,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174 eval enable_$ac_feature=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193 eval enable_$ac_feature=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1357 -site=* | --site=* | --sit=*)
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1384 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 { echo "$as_me: error: invalid package name: $ac_package" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390 eval with_$ac_package=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=no ;;
1402 # Obsolete; use --with-x.
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1419 -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 { echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 # Be sure to have absolute directory names.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462 { (exit 1); exit 1; }; }
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 { echo "$as_me: error: Working directory cannot be determined" >&2
1493 { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 { echo "$as_me: error: pwd does not report name of working directory" >&2
1496 { (exit 1); exit 1; }; }
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$0" : 'X\(//\)[^/]' \| \
1506 X"$0" : 'X\(//\)$' \| \
1507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536 { (exit 1); exit 1; }; }
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541 { (exit 1); exit 1; }; }
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=no]
1670 --disable-largefile omit support for large files
1671 --disable-acl disable acl support [default=auto]
1672 --disable-xattr disable xattr support [default=auto]
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1684 --without-libintl-prefix don't search for libintl in includedir and libdir
1685 --with-included-gettext use the GNU gettext library included here
1686 --with-qwt[=DIR] specify qwt library directory
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1742 install directory, default is to search through a
1743 number of common places for the SQLite3 files.
1744 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1745 install directory, default is to search through a
1746 number of common places for the SQLite files.
1747 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1748 directory, default is to search through a number of
1749 common places for the DBI files.
1750 --with-dbi-driver[=DRIVER]
1751 Suport for DBI driver. DRIVER is the one DBI driver
1752 like Mysql, Postgresql, others. Default is to not
1753 configure any driver.
1754 --with-x use the X Window System
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 WXCONFIG wx-config command. On some systems, you must set it to
1768 wx-config-2.6 to use wxWidgets 2.6.
1769 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1770 CXXCPP C++ preprocessor
1771 XMKMF Path to xmkmf, Makefile generator for X Window System
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" || continue
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1837 generated by GNU Autoconf 2.61
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61. Invocation command line was
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 echo "PATH: $as_dir"
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_must_keep_next=false
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1940 -* ) ac_must_keep_next=true ;;
1943 ac_configure_args="$ac_configure_args '$ac_arg'"
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 *) $as_unset $ac_var ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2004 for ac_var in $ac_subst_vars
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 echo "$ac_var='\''$ac_val'\''"
2014 if test -n "$ac_subst_files"; then
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2021 for ac_var in $ac_subst_files
2023 eval ac_val=\$$ac_var
2025 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 echo "$ac_var='\''$ac_val'\''"
2032 if test -s confdefs.h; then
2042 test "$ac_signal" != 0 &&
2043 echo "$as_me: caught signal $ac_signal"
2044 echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 # Predefined preprocessor variables.
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088 set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2092 set x "$ac_default_prefix/share/config.site" \
2093 "$ac_default_prefix/etc/config.site"
2098 if test -r "$ac_site_file"; then
2099 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
2110 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2118 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2123 # Check that the precious variables saved in the cache have kept the same
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
2131 case $ac_old_set,$ac_new_set in
2133 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2137 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
2143 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2146 echo "$as_me: former value: $ac_old_val" >&2;}
2147 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2148 echo "$as_me: current value: $ac_new_val" >&2;}
2149 ac_cache_corrupted=:
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2155 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164 if $ac_cache_corrupted; then
2165 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169 { (exit 1); exit 1; }; }
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203 if test -f "$ac_dir/install-sh"; then
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2207 elif test -f "$ac_dir/install.sh"; then
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2211 elif test -f "$ac_dir/shtool"; then
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2217 if test -z "$ac_aux_dir"; then
2218 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220 { (exit 1); exit 1; }; }
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2287 test -n "$TRUEPRG" && break
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2291 for ac_prog in false
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2328 { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2333 test -n "$FALSEPRG" && break
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2340 if test "x$BACULA" != x; then
2341 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2394 if test -z "$ac_cv_prog_CC"; then
2396 # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_CC="gcc"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2432 if test "x$ac_ct_CC" = x; then
2435 case $cross_compiling:$ac_tool_warned in
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: 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." >&2;}
2443 ac_tool_warned=yes ;;
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2589 test -n "$CC" && break
2592 if test -z "$CC"; then
2594 for ac_prog in cl.exe
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$ac_ct_CC" && break
2636 if test "x$ac_ct_CC" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: 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." >&2;}
2647 ac_tool_warned=yes ;;
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler --version >&5") 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -v >&5") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -V >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort. b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions. Remove them first so a
2727 # subsequent execution test works.
2729 for ac_file in $ac_files
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 if { (ac_try="$ac_link_default"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_link_default") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; then
2748 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2753 for ac_file in $ac_files ''
2755 test -f "$ac_file" || continue
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2760 # We found the default executable, but exeext='' is most
2764 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768 # We set ac_cv_exeext here because the later test for it is not
2769 # safe: cross compilers may not add the suffix if given an `-o'
2770 # argument, so we may need to know it at that point already.
2771 # Even if this section looks crufty: it has the advantage of
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 ac_c_werror_flag=$ac_save_c_werror_flag
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3142 if test "$GCC" = yes; then
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_prog_cc_c89=no
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3179 s = g (p, va_arg (v,int));
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 rm -f conftest.$ac_ext
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275 if test -n "$CCC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3321 if test -z "$CXX"; then
3323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$ac_ct_CXX"; then
3333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CXX="$ac_prog"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3362 test -n "$ac_ct_CXX" && break
3365 if test "x$ac_ct_CXX" = x; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: 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." >&2;}
3376 ac_tool_warned=yes ;;
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler --version >&5") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compiler -v >&5") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compiler -V >&5") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_cxx_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481 ac_cxx_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3516 ac_cv_prog_cxx_g=yes
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_cxx_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_cxx_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cxx_g=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613 CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615 if test "$GXX" = yes; then
3621 if test "$GXX" = yes; then
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test "x$CC" != xcc; then
3634 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3640 set dummy $CC; ac_cc=`echo $2 |
3641 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3665 if { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); };
3684 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685 if test "x$CC" != xcc; then
3686 # Test first that cc exists at all.
3687 if { ac_try='cc -c conftest.$ac_ext >&5'
3688 { (case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_try") 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3699 if { (case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_try") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); };
3721 # cc exists but doesn't like -o.
3722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3729 rm -f core conftest*
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733 { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3756 if test -z "$CPP"; then
3757 if test "${ac_cv_prog_CPP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Double quotes because CPP needs to be expanded
3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in grep ggrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998 # Check for GNU ac_path_GREP and select it if it is found.
3999 # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'GREP' >> "conftest.nl"
4012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_GREP="$ac_path_GREP"
4018 ac_path_GREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_GREP_found && break 3
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_GREP=$GREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4063 # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4087 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 ac_count=`expr $ac_count + 1`
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_EGREP_found && break 3
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cv_path_EGREP=$EGREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_pattern="Autoconf.*'x'"
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4158 ac_cv_prog_gcc_traditional=no
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175 ac_cv_prog_gcc_traditional=yes
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183 if test $ac_cv_prog_gcc_traditional = yes; then
4184 CC="$CC -traditional"
4188 BASECC=`basename $CC`
4190 if test "x$BASECC" = xgcc; then
4191 cat >>confdefs.h <<\_ACEOF
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229 if test -n "$CXX"; then
4230 { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test ! -e $CXX; then
4239 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241 { (exit 1); exit 1; }; }
4244 # Find a good install program. We prefer a C program (faster),
4245 # so one script is as good as another. But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 # Account for people who put trailing slashes in PATH elements.
4270 ./ | .// | /cC/* | \
4271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4275 # OSF1 and SCO ODT 3.0 have their own names for install.
4276 # Don't use installbsd from OSF since it installs stuff as root
4278 for ac_prog in ginstall scoinst install; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281 if test $ac_prog = install &&
4282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # AIX install. It has an incompatible calling convention.
4285 elif test $ac_prog = install &&
4286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287 # program-specific install script used by HP pwplus--don't use.
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4303 if test "${ac_cv_path_install+set}" = set; then
4304 INSTALL=$ac_cv_path_install
4306 # As a last resort, use the slow shell script. Don't cache a
4307 # value for INSTALL within a source directory, because that will
4308 # break other packages using the cache if that directory is
4309 # removed, or if the value is a relative name.
4310 INSTALL=$ac_install_sh
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356 if test -n "$MV"; then
4357 { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438 if test -n "$CP"; then
4439 { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479 if test -n "$SED"; then
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521 { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561 if test -n "$CMP"; then
4562 { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602 if test -n "$TBL"; then
4603 { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643 if test -n "$AR"; then
4644 { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725 if test -n "$MTX"; then
4726 { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766 if test -n "$DD"; then
4767 { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 case $DVDRWMEDIAINFO in
4907 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 case $DVDRWFORMAT in
4948 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4975 { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5057 { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 if test "x$WXCONFIG" = x; then
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5272 for ac_prog in gawk mawk nawk awk
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$AWK"; then
5282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AWK="$ac_prog"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 if test -n "$AWK"; then
5303 { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 test -n "$AWK" && break
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316 { if ((prog == $2) || (("(" prog ")") == $2) ||
5317 (("" prog "") == $2) ||
5318 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5320 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321 The regex engine of $AWK is too broken to be used you
5322 might want to install GNU AWK.
5323 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325 The regex engine of $AWK is too broken to be used you
5326 might want to install GNU AWK.
5327 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328 { (exit 1); exit 1; }; }
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363 if test -n "$AWK"; then
5364 { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5367 { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5386 # Check whether --enable-libtool was given.
5387 if test "${enable_libtool+set}" = set; then
5388 enableval=$enable_libtool;
5389 if test x$enableval = xno; then
5398 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5399 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404 macro_version='2.2.6'
5405 macro_revision='1.3012'
5419 ltmain="$ac_aux_dir/ltmain.sh"
5421 # Make sure we can run config.sub.
5422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5423 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5424 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5425 { (exit 1); exit 1; }; }
5427 { echo "$as_me:$LINENO: checking build system type" >&5
5428 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5429 if test "${ac_cv_build+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_build_alias=$build_alias
5433 test "x$ac_build_alias" = x &&
5434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5435 test "x$ac_build_alias" = x &&
5436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5438 { (exit 1); exit 1; }; }
5439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5440 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5441 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5442 { (exit 1); exit 1; }; }
5445 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5446 echo "${ECHO_T}$ac_cv_build" >&6; }
5447 case $ac_cv_build in
5449 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5450 echo "$as_me: error: invalid value of canonical build" >&2;}
5451 { (exit 1); exit 1; }; };;
5454 ac_save_IFS=$IFS; IFS='-'
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5467 { echo "$as_me:$LINENO: checking host system type" >&5
5468 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5469 if test "${ac_cv_host+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test "x$host_alias" = x; then
5473 ac_cv_host=$ac_cv_build
5475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5476 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5478 { (exit 1); exit 1; }; }
5482 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5483 echo "${ECHO_T}$ac_cv_host" >&6; }
5486 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5487 echo "$as_me: error: invalid value of canonical host" >&2;}
5488 { (exit 1); exit 1; }; };;
5491 ac_save_IFS=$IFS; IFS='-'
5497 # Remember, the first character of IFS is used to create $*,
5498 # except with old shells:
5501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5504 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5505 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_SED+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5510 for ac_i in 1 2 3 4 5 6 7; do
5511 ac_script="$ac_script$as_nl$ac_script"
5513 echo "$ac_script" | sed 99q >conftest.sed
5514 $as_unset ac_script || ac_script=
5515 # Extract the first word of "sed gsed" to use in msg output
5516 if test -z "$SED"; then
5517 set dummy sed gsed; ac_prog_name=$2
5518 if test "${ac_cv_path_SED+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 ac_path_SED_found=false
5522 # Loop through the user's path and test for each of PROGNAME-LIST
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_prog in sed gsed; do
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5531 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5532 # Check for GNU ac_path_SED and select it if it is found.
5533 # Check for GNU $ac_path_SED
5534 case `"$ac_path_SED" --version 2>&1` in
5536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5542 cat "conftest.in" "conftest.in" >"conftest.tmp"
5543 mv "conftest.tmp" "conftest.in"
5544 cp "conftest.in" "conftest.nl"
5545 echo '' >> "conftest.nl"
5546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5548 ac_count=`expr $ac_count + 1`
5549 if test $ac_count -gt ${ac_path_SED_max-0}; then
5550 # Best one so far, save it but keep looking for a better one
5551 ac_cv_path_SED="$ac_path_SED"
5552 ac_path_SED_max=$ac_count
5554 # 10*(2^10) chars as input seems more than enough
5555 test $ac_count -gt 10 && break
5557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 $ac_path_SED_found && break 3
5571 SED="$ac_cv_path_SED"
5572 if test -z "$SED"; then
5573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5574 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5575 { (exit 1); exit 1; }; }
5583 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5584 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5585 SED="$ac_cv_path_SED"
5588 test -z "$SED" && SED=sed
5589 Xsed="$SED -e 1s/^X//"
5601 { echo "$as_me:$LINENO: checking for fgrep" >&5
5602 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5607 then ac_cv_path_FGREP="$GREP -F"
5609 # Extract the first word of "fgrep" to use in msg output
5610 if test -z "$FGREP"; then
5611 set dummy fgrep; ac_prog_name=$2
5612 if test "${ac_cv_path_FGREP+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_path_FGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in fgrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5626 # Check for GNU ac_path_FGREP and select it if it is found.
5627 # Check for GNU $ac_path_FGREP
5628 case `"$ac_path_FGREP" --version 2>&1` in
5630 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 echo 'FGREP' >> "conftest.nl"
5640 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 ac_count=`expr $ac_count + 1`
5643 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_FGREP="$ac_path_FGREP"
5646 ac_path_FGREP_max=$ac_count
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 $ac_path_FGREP_found && break 3
5665 FGREP="$ac_cv_path_FGREP"
5666 if test -z "$FGREP"; then
5667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5668 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5669 { (exit 1); exit 1; }; }
5673 ac_cv_path_FGREP=$FGREP
5679 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5681 FGREP="$ac_cv_path_FGREP"
5684 test -z "$GREP" && GREP=grep
5704 # Check whether --with-gnu-ld was given.
5705 if test "${with_gnu_ld+set}" = set; then
5706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5712 if test "$GCC" = yes; then
5713 # Check if gcc -print-prog-name=ld gives a path.
5714 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5715 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5718 # gcc leaves a trailing carriage return which upsets mingw
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5724 # Accept absolute paths.
5726 re_direlt='/[^/][^/]*/\.\./'
5727 # Canonicalize the pathname of ld
5728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5732 test -z "$LD" && LD="$ac_prog"
5735 # If it fails, then pretend we aren't using GCC.
5739 # If it is relative, then search for the first ld in PATH.
5743 elif test "$with_gnu_ld" = yes; then
5744 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5747 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5750 if test "${lt_cv_path_LD+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -z "$LD"; then
5754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5755 for ac_dir in $PATH; do
5757 test -z "$ac_dir" && ac_dir=.
5758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5759 lt_cv_path_LD="$ac_dir/$ac_prog"
5760 # Check to see if the program is GNU ld. I'd rather use --version,
5761 # but apparently some variants of GNU ld only accept -v.
5762 # Break only if it was the GNU/non-GNU ld that we prefer.
5763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5764 *GNU* | *'with BFD'*)
5765 test "$with_gnu_ld" != no && break
5768 test "$with_gnu_ld" != yes && break
5775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5780 if test -n "$LD"; then
5781 { echo "$as_me:$LINENO: result: $LD" >&5
5782 echo "${ECHO_T}$LD" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5787 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5788 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5789 { (exit 1); exit 1; }; }
5790 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5791 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5792 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5796 case `$LD -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798 lt_cv_prog_gnu_ld=yes
5801 lt_cv_prog_gnu_ld=no
5805 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5806 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5807 with_gnu_ld=$lt_cv_prog_gnu_ld
5817 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5818 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_NM+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if test -n "$NM"; then
5823 # Let the user override the test.
5826 lt_nm_to_check="${ac_tool_prefix}nm"
5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5828 lt_nm_to_check="$lt_nm_to_check nm"
5830 for lt_tmp_nm in $lt_nm_to_check; do
5831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834 test -z "$ac_dir" && ac_dir=.
5835 tmp_nm="$ac_dir/$lt_tmp_nm"
5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5837 # Check to see if the nm accepts a BSD-compat flag.
5838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5839 # nm: unknown option "B" ignored
5840 # Tru64's nm complains that /dev/null is an invalid object file
5841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5842 */dev/null* | *'Invalid file or object type'*)
5843 lt_cv_path_NM="$tmp_nm -B"
5847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849 lt_cv_path_NM="$tmp_nm -p"
5853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5854 continue # so that we can try to find one that supports BSD flags
5863 : ${lt_cv_path_NM=no}
5866 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5867 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5868 if test "$lt_cv_path_NM" != "no"; then
5871 # Didn't find any BSD compatible name lister, look for dumpbin.
5872 if test -n "$ac_tool_prefix"; then
5873 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$DUMPBIN"; then
5883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 DUMPBIN=$ac_cv_prog_DUMPBIN
5903 if test -n "$DUMPBIN"; then
5904 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5905 echo "${ECHO_T}$DUMPBIN" >&6; }
5907 { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5912 test -n "$DUMPBIN" && break
5915 if test -z "$DUMPBIN"; then
5916 ac_ct_DUMPBIN=$DUMPBIN
5917 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5919 # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 if test -n "$ac_ct_DUMPBIN"; then
5927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5947 if test -n "$ac_ct_DUMPBIN"; then
5948 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5949 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 test -n "$ac_ct_DUMPBIN" && break
5959 if test "x$ac_ct_DUMPBIN" = x; then
5962 case $cross_compiling:$ac_tool_warned in
5964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet. If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&5
5967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet. If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970 ac_tool_warned=yes ;;
5972 DUMPBIN=$ac_ct_DUMPBIN
5977 if test "$DUMPBIN" != ":"; then
5981 test -z "$NM" && NM=nm
5988 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5989 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5990 if test "${lt_cv_nm_interface+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 lt_cv_nm_interface="BSD nm"
5994 echo "int some_variable = 0;" > conftest.$ac_ext
5995 (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996 (eval "$ac_compile" 2>conftest.err)
5997 cat conftest.err >&5
5998 (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000 cat conftest.err >&5
6001 (eval echo "\"\$as_me:6001: output\"" >&5)
6002 cat conftest.out >&5
6003 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004 lt_cv_nm_interface="MS dumpbin"
6008 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6009 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6014 if test "$LN_S" = "ln -s"; then
6015 { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6018 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6022 # find the maximum length of command line arguments
6023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 # On DJGPP, this test can blow up pretty badly due to problems in libc
6034 # (any single argument exceeding 2000 bytes causes a buffer overrun
6035 # during glob expansion). Even if it were fixed, the result of this
6036 # check would be larger than it should be.
6037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6041 # Under GNU Hurd, this test is not required because there is
6042 # no limit to the length of command line arguments.
6043 # Libtool will interpret -1 as no limit whatsoever
6044 lt_cv_sys_max_cmd_len=-1;
6047 cygwin* | mingw* | cegcc*)
6048 # On Win9x/ME, this test blows up -- it succeeds, but takes
6049 # about 5 minutes as the teststring grows exponentially.
6050 # Worse, since 9x/ME are not pre-emptively multitasking,
6051 # you end up with a "frozen" computer, even though with patience
6052 # the test eventually succeeds (with a max line length of 256k).
6053 # Instead, let's just punt: use the minimum linelength reported by
6054 # all of the supported platforms: 8192 (on NT/2K/XP).
6055 lt_cv_sys_max_cmd_len=8192;
6059 # On AmigaOS with pdksh, this test takes hours, literally.
6060 # So we just punt and use a minimum line length of 8192.
6061 lt_cv_sys_max_cmd_len=8192;
6064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065 # This has been around since 386BSD, at least. Likely further.
6066 if test -x /sbin/sysctl; then
6067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068 elif test -x /usr/sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6073 # And add a safety zone
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080 lt_cv_sys_max_cmd_len=196608
6084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086 # nice to cause kernel panics so lets avoid the loop below.
6087 # First set a reasonable default.
6088 lt_cv_sys_max_cmd_len=16384
6090 if test -x /sbin/sysconfig; then
6091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097 lt_cv_sys_max_cmd_len=102400
6099 sysv5* | sco5v6* | sysv4.2uw2*)
6100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101 if test -n "$kargmax"; then
6102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6104 lt_cv_sys_max_cmd_len=32768
6108 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109 if test -n "$lt_cv_sys_max_cmd_len"; then
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 # Make teststring a little bigger before we do anything with it.
6114 # a 1K string should be a reasonable start.
6115 for i in 1 2 3 4 5 6 7 8 ; do
6116 teststring=$teststring$teststring
6118 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119 # If test is not a shell built-in, we'll probably end up computing a
6120 # maximum length that is only half of the actual maximum length, but
6122 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124 test $i != 17 # 1/2 MB should be enough
6127 teststring=$teststring$teststring
6129 # Only check the string length outside the loop.
6130 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6132 # Add a significant safety factor because C++ compilers can tack on
6133 # massive amounts of additional arguments before passing them to the
6134 # linker. It appears as though 1/2 is a usable value.
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6146 { echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6; }
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6160 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6162 # Try some XSI features
6165 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6167 && eval 'test $(( 1 + 1 )) -eq 2 \
6168 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6170 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6171 echo "${ECHO_T}$xsi_shell" >&6; }
6174 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6175 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6177 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6179 && lt_shell_append=yes
6180 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6181 echo "${ECHO_T}$lt_shell_append" >&6; }
6184 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194 # test EBCDIC or ASCII
6195 case `echo X|tr X '\101'` in
6196 A) # ASCII based system
6197 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198 lt_SP2NL='tr \040 \012'
6199 lt_NL2SP='tr \015\012 \040\040'
6201 *) # EBCDIC based system
6202 lt_SP2NL='tr \100 \n'
6203 lt_NL2SP='tr \r\n \100\100'
6215 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6216 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6217 if test "${lt_cv_ld_reload_flag+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 lt_cv_ld_reload_flag='-r'
6222 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6223 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6224 reload_flag=$lt_cv_ld_reload_flag
6225 case $reload_flag in
6227 *) reload_flag=" $reload_flag" ;;
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 if test "$GCC" = yes; then
6233 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 if test -n "$OBJDUMP"; then
6257 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 OBJDUMP=$ac_cv_prog_OBJDUMP
6277 if test -n "$OBJDUMP"; then
6278 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6279 echo "${ECHO_T}$OBJDUMP" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6287 if test -z "$ac_cv_prog_OBJDUMP"; then
6288 ac_ct_OBJDUMP=$OBJDUMP
6289 # Extract the first word of "objdump", so it can be a program name with args.
6290 set dummy objdump; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 if test -n "$ac_ct_OBJDUMP"; then
6297 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317 if test -n "$ac_ct_OBJDUMP"; then
6318 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6319 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6325 if test "x$ac_ct_OBJDUMP" = x; then
6328 case $cross_compiling:$ac_tool_warned in
6330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet. If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&5
6333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6336 ac_tool_warned=yes ;;
6338 OBJDUMP=$ac_ct_OBJDUMP
6341 OBJDUMP="$ac_cv_prog_OBJDUMP"
6344 test -z "$OBJDUMP" && OBJDUMP=objdump
6354 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6355 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6356 if test "${lt_cv_deplibs_check_method+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 lt_cv_file_magic_cmd='$MAGIC_CMD'
6360 lt_cv_file_magic_test_file=
6361 lt_cv_deplibs_check_method='unknown'
6362 # Need to set the preceding variable on all platforms that support
6363 # interlibrary dependencies.
6364 # 'none' -- dependencies not supported.
6365 # `unknown' -- same as none, but documents that we really don't know.
6366 # 'pass_all' -- all dependencies passed with no checks.
6367 # 'test_compile' -- check by making test program.
6368 # 'file_magic [[regex]]' -- check by looking for files in library path
6369 # which responds to the $file_magic_cmd with a given extended regex.
6370 # If you have `file' or equivalent on your system and you're not sure
6371 # whether `pass_all' will *always* work, you probably want this one.
6375 lt_cv_deplibs_check_method=pass_all
6379 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384 lt_cv_file_magic_cmd='/usr/bin/file -L'
6385 lt_cv_file_magic_test_file=/shlib/libc.so
6389 # func_win32_libid is a shell function defined in ltmain.sh
6390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391 lt_cv_file_magic_cmd='func_win32_libid'
6395 # Base MSYS/MinGW do not provide the 'file' command needed by
6396 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397 # unless we find 'file', for example because we are cross-compiling.
6398 if ( file / ) >/dev/null 2>&1; then
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6402 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6403 lt_cv_file_magic_cmd='$OBJDUMP -f'
6408 # use the weaker test based on 'objdump'. See mingw*.
6409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6410 lt_cv_file_magic_cmd='$OBJDUMP -f'
6413 darwin* | rhapsody*)
6414 lt_cv_deplibs_check_method=pass_all
6417 freebsd* | dragonfly*)
6418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6421 # Not sure whether the presence of OpenBSD here was a mistake.
6422 # Let's accept both of them until this is cleared up.
6423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6429 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6437 hpux10.20* | hpux11*)
6438 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460 irix5* | irix6* | nonstopux*)
6462 *-32|*"-32 ") libmagic=32-bit;;
6463 *-n32|*"-n32 ") libmagic=N32;;
6464 *-64|*"-64 ") libmagic=64-bit;;
6465 *) libmagic=never-match;;
6467 lt_cv_deplibs_check_method=pass_all
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu)
6472 lt_cv_deplibs_check_method=pass_all
6476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6490 lt_cv_deplibs_check_method=pass_all
6494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501 osf3* | osf4* | osf5*)
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_deplibs_check_method=pass_all
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514 lt_cv_deplibs_check_method=pass_all
6518 case $host_vendor in
6520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6524 lt_cv_deplibs_check_method=pass_all
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6531 lt_cv_file_magic_cmd='/bin/file'
6532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533 lt_cv_file_magic_test_file=/lib/libc.so
6536 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_prog_AR+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_AR="${ac_tool_prefix}ar"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 if test -n "$AR"; then
6597 { echo "$as_me:$LINENO: result: $AR" >&5
6598 echo "${ECHO_T}$AR" >&6; }
6600 { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6606 if test -z "$ac_cv_prog_AR"; then
6608 # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_AR="ar"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6638 echo "${ECHO_T}$ac_ct_AR" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6644 if test "x$ac_ct_AR" = x; then
6647 case $cross_compiling:$ac_tool_warned in
6649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&5
6652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6655 ac_tool_warned=yes ;;
6663 test -z "$AR" && AR=ar
6664 test -z "$AR_FLAGS" && AR_FLAGS=cru
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}strip; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_STRIP+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 if test -n "$STRIP"; then
6685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 STRIP=$ac_cv_prog_STRIP
6705 if test -n "$STRIP"; then
6706 { echo "$as_me:$LINENO: result: $STRIP" >&5
6707 echo "${ECHO_T}$STRIP" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6715 if test -z "$ac_cv_prog_STRIP"; then
6717 # Extract the first word of "strip", so it can be a program name with args.
6718 set dummy strip; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 if test -n "$ac_ct_STRIP"; then
6725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_STRIP="strip"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745 if test -n "$ac_ct_STRIP"; then
6746 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6753 if test "x$ac_ct_STRIP" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6769 STRIP="$ac_cv_prog_STRIP"
6772 test -z "$STRIP" && STRIP=:
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_RANLIB+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 if test -n "$RANLIB"; then
6788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 RANLIB=$ac_cv_prog_RANLIB
6808 if test -n "$RANLIB"; then
6809 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6810 echo "${ECHO_T}$RANLIB" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6818 if test -z "$ac_cv_prog_RANLIB"; then
6819 ac_ct_RANLIB=$RANLIB
6820 # Extract the first word of "ranlib", so it can be a program name with args.
6821 set dummy ranlib; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 if test -n "$ac_ct_RANLIB"; then
6828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_RANLIB="ranlib"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6850 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6856 if test "x$ac_ct_RANLIB" = x; then
6859 case $cross_compiling:$ac_tool_warned in
6861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&5
6864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet. If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6867 ac_tool_warned=yes ;;
6869 RANLIB=$ac_ct_RANLIB
6872 RANLIB="$ac_cv_prog_RANLIB"
6875 test -z "$RANLIB" && RANLIB=:
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6887 if test -n "$RANLIB"; then
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6932 # If no C compiler was specified, use CC.
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938 # Allow CC to be a program name with arguments.
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6944 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6945 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6958 # Define system-specific variables.
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6972 symcode='[BCDEGRST]'
6975 symcode='[BCDEGQRST]'
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7009 # Handle CRLF in mingw tool chain
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx=^$ac_symprfx"
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044 # Check to see that the pipe works correctly.
7048 cat > conftest.$ac_ext <<_LT_EOF
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; then
7066 # Now try to grab the symbols.
7068 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7069 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092 cat <<_LT_EOF >> conftest.$ac_ext
7094 /* The mapping between symbol names and symbols. */
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 { "@PROGRAM@", (void *) 0 },
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7135 echo "cannot find nm_test_func in $nlist" >&5
7138 echo "cannot find nm_test_var in $nlist" >&5
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 rm -rf conftest* conftst*
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7153 lt_cv_sys_global_symbol_pipe=
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { echo "$as_me:$LINENO: result: failed" >&5
7164 echo "${ECHO_T}failed" >&6; }
7166 { echo "$as_me:$LINENO: result: ok" >&5
7167 echo "${ECHO_T}ok" >&6; }
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then
7193 enableval=$enable_libtool_lock;
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198 # Some flags need to be propagated to the compiler or linker for good
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7221 # Find out which ABI we are using.
7222 echo '#line 7222 "configure"' > conftest.$ac_ext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7231 LD="${LD-ld} -melf32bsmip"
7234 LD="${LD-ld} -melf32bmipn32"
7237 LD="${LD-ld} -melf64bmip"
7241 case `/usr/bin/file conftest.$ac_objext` in
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; then
7266 case `/usr/bin/file conftest.o` in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7273 LD="${LD-ld} -m elf_i386"
7275 ppc64-*linux*|powerpc64-*linux*)
7276 LD="${LD-ld} -m elf32ppclinux"
7279 LD="${LD-ld} -m elf_s390"
7282 LD="${LD-ld} -m elf32_sparc"
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_x86_64_fbsd"
7292 LD="${LD-ld} -m elf_x86_64"
7294 ppc*-*linux*|powerpc*-*linux*)
7295 LD="${LD-ld} -m elf64ppc"
7297 s390*-*linux*|s390*-*tpf*)
7298 LD="${LD-ld} -m elf64_s390"
7301 LD="${LD-ld} -m elf64_sparc"
7311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7312 SAVE_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS -belf"
7314 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7316 if test "${lt_cv_cc_needs_belf+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7340 rm -f conftest.$ac_objext conftest$ac_exeext
7341 if { (ac_try="$ac_link"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_link") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest$ac_exeext &&
7357 $as_test_x conftest$ac_exeext; then
7358 lt_cv_cc_needs_belf=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 lt_cv_cc_needs_belf=no
7366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7367 conftest$ac_exeext conftest.$ac_ext
7369 ac_cpp='$CPP $CPPFLAGS'
7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7379 CFLAGS="$SAVE_CFLAGS"
7383 # Find out which ABI we are using.
7384 echo 'int i;' > conftest.$ac_ext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; then
7390 case `/usr/bin/file conftest.o` in
7392 case $lt_cv_prog_gnu_ld in
7393 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7395 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7407 need_locks="$enable_libtool_lock"
7411 rhapsody* | darwin*)
7412 if test -n "$ac_tool_prefix"; then
7413 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7414 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 if test -n "$DSYMUTIL"; then
7421 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7441 if test -n "$DSYMUTIL"; then
7442 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7443 echo "${ECHO_T}$DSYMUTIL" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7451 if test -z "$ac_cv_prog_DSYMUTIL"; then
7452 ac_ct_DSYMUTIL=$DSYMUTIL
7453 # Extract the first word of "dsymutil", so it can be a program name with args.
7454 set dummy dsymutil; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7481 if test -n "$ac_ct_DSYMUTIL"; then
7482 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7483 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7489 if test "x$ac_ct_DSYMUTIL" = x; then
7492 case $cross_compiling:$ac_tool_warned in
7494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet. If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&5
7497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet. If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7500 ac_tool_warned=yes ;;
7502 DSYMUTIL=$ac_ct_DSYMUTIL
7505 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 if test -n "$NMEDIT"; then
7517 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 NMEDIT=$ac_cv_prog_NMEDIT
7537 if test -n "$NMEDIT"; then
7538 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7539 echo "${ECHO_T}$NMEDIT" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7547 if test -z "$ac_cv_prog_NMEDIT"; then
7548 ac_ct_NMEDIT=$NMEDIT
7549 # Extract the first word of "nmedit", so it can be a program name with args.
7550 set dummy nmedit; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$ac_ct_NMEDIT"; then
7557 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577 if test -n "$ac_ct_NMEDIT"; then
7578 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7579 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7585 if test "x$ac_ct_NMEDIT" = x; then
7588 case $cross_compiling:$ac_tool_warned in
7590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet. If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&5
7593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet. If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7596 ac_tool_warned=yes ;;
7598 NMEDIT=$ac_ct_NMEDIT
7601 NMEDIT="$ac_cv_prog_NMEDIT"
7604 if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_prog_LIPO+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test -n "$LIPO"; then
7613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 LIPO=$ac_cv_prog_LIPO
7633 if test -n "$LIPO"; then
7634 { echo "$as_me:$LINENO: result: $LIPO" >&5
7635 echo "${ECHO_T}$LIPO" >&6; }
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7643 if test -z "$ac_cv_prog_LIPO"; then
7645 # Extract the first word of "lipo", so it can be a program name with args.
7646 set dummy lipo; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test -n "$ac_ct_LIPO"; then
7653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_prog_ac_ct_LIPO="lipo"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7673 if test -n "$ac_ct_LIPO"; then
7674 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7675 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7681 if test "x$ac_ct_LIPO" = x; then
7684 case $cross_compiling:$ac_tool_warned in
7686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet. If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&5
7689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet. If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7692 ac_tool_warned=yes ;;
7697 LIPO="$ac_cv_prog_LIPO"
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}otool; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_prog_OTOOL+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 if test -n "$OTOOL"; then
7709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 OTOOL=$ac_cv_prog_OTOOL
7729 if test -n "$OTOOL"; then
7730 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7731 echo "${ECHO_T}$OTOOL" >&6; }
7733 { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7739 if test -z "$ac_cv_prog_OTOOL"; then
7741 # Extract the first word of "otool", so it can be a program name with args.
7742 set dummy otool; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 if test -n "$ac_ct_OTOOL"; then
7749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_prog_ac_ct_OTOOL="otool"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7769 if test -n "$ac_ct_OTOOL"; then
7770 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7771 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7777 if test "x$ac_ct_OTOOL" = x; then
7780 case $cross_compiling:$ac_tool_warned in
7782 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet. If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&5
7785 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet. If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7788 ac_tool_warned=yes ;;
7793 OTOOL="$ac_cv_prog_OTOOL"
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 if test -n "$OTOOL64"; then
7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7827 echo "${ECHO_T}$OTOOL64" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836 ac_ct_OTOOL64=$OTOOL64
7837 # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 if test -n "$ac_ct_OTOOL64"; then
7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_OTOOL64="otool64"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7867 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7869 { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7873 if test "x$ac_ct_OTOOL64" = x; then
7876 case $cross_compiling:$ac_tool_warned in
7878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet. If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&5
7881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet. If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7884 ac_tool_warned=yes ;;
7886 OTOOL64=$ac_ct_OTOOL64
7889 OTOOL64="$ac_cv_prog_OTOOL64"
7918 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7919 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7920 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 lt_cv_apple_cc_single_mod=no
7924 if test -z "${LT_MULTI_MODULE}"; then
7925 # By default we will add the -single_module flag. You can override
7926 # by either setting the environment variable LT_MULTI_MODULE
7927 # non-empty at configure time, or by adding -multi_module to the
7929 rm -rf libconftest.dylib*
7930 echo "int foo(void){return 1;}" > conftest.c
7931 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c" >&5
7933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7936 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7937 lt_cv_apple_cc_single_mod=yes
7939 cat conftest.err >&5
7941 rm -rf libconftest.dylib*
7945 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7946 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7947 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7948 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7949 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 lt_cv_ld_exported_symbols_list=no
7953 save_LDFLAGS=$LDFLAGS
7954 echo "_main" > conftest.sym
7955 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7989 lt_cv_ld_exported_symbols_list=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 lt_cv_ld_exported_symbols_list=no
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 LDFLAGS="$save_LDFLAGS"
8002 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8003 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8005 rhapsody* | darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 darwin*) # darwin 5.x on
8010 # if running on 10.5 or later, the deployment target defaults
8011 # to the OS version, if on x86, and 10.4, the deployment
8012 # target defaults to 10.4. Don't you love it?
8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 if test "$DSYMUTIL" != ":"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8041 if test "${ac_cv_header_stdc+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_header_stdc=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_cv_header_stdc=no
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test $ac_cv_header_stdc = yes; then
8091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102 $EGREP "memchr" >/dev/null 2>&1; then
8105 ac_cv_header_stdc=no
8111 if test $ac_cv_header_stdc = yes; then
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123 $EGREP "free" >/dev/null 2>&1; then
8126 ac_cv_header_stdc=no
8132 if test $ac_cv_header_stdc = yes; then
8133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134 if test "$cross_compiling" = yes; then
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8145 #if ((' ' & 0x0FF) == 0x020)
8146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 # define ISLOWER(c) \
8150 (('a' <= (c) && (c) <= 'i') \
8151 || ('j' <= (c) && (c) <= 'r') \
8152 || ('s' <= (c) && (c) <= 'z'))
8153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8161 for (i = 0; i < 256; i++)
8162 if (XOR (islower (i), ISLOWER (i))
8163 || toupper (i) != TOUPPER (i))
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_link") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8190 echo "$as_me: program exited with status $ac_status" >&5
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_header_stdc=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8204 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 cat >>confdefs.h <<\_ACEOF
8208 #define STDC_HEADERS 1
8213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8224 inttypes.h stdint.h unistd.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8240 #include <$ac_header>
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 eval "$as_ac_Header=yes"
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 eval "$as_ac_Header=no"
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 for ac_header in dlfcn.h
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8299 #include <$ac_header>
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 eval "$as_ac_Header=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_Header=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348 if test -n "$CCC"; then
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_CXX+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test -n "$CXX"; then
8362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 if test -n "$CXX"; then
8383 { echo "$as_me:$LINENO: result: $CXX" >&5
8384 echo "${ECHO_T}$CXX" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 test -n "$CXX" && break
8394 if test -z "$CXX"; then
8396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 if test -n "$ac_ct_CXX"; then
8406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_CXX="$ac_prog"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8428 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8435 test -n "$ac_ct_CXX" && break
8438 if test "x$ac_ct_CXX" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8457 # Provide some information about the compiler.
8458 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8459 ac_compiler=`set X $ac_compile; echo $2`
8460 { (ac_try="$ac_compiler --version >&5"
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compiler --version >&5") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }
8470 { (ac_try="$ac_compiler -v >&5"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compiler -v >&5") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }
8480 { (ac_try="$ac_compiler -V >&5"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_compiler -V >&5") 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }
8491 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8492 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8493 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_compile") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_cxx_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest.$ac_objext; then
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8543 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8544 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8545 GXX=`test $ac_compiler_gnu = yes && echo yes`
8546 ac_test_CXXFLAGS=${CXXFLAGS+set}
8547 ac_save_CXXFLAGS=$CXXFLAGS
8548 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8549 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8550 if test "${ac_cv_prog_cxx_g+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8554 ac_cxx_werror_flag=yes
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_cxx_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_prog_cxx_g=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_cxx_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_cxx_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_cv_prog_cxx_g=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8684 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8685 if test "$ac_test_CXXFLAGS" = set; then
8686 CXXFLAGS=$ac_save_CXXFLAGS
8687 elif test $ac_cv_prog_cxx_g = yes; then
8688 if test "$GXX" = yes; then
8694 if test "$GXX" = yes; then
8701 ac_cpp='$CPP $CPPFLAGS'
8702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8708 (test "X$CXX" != "Xg++"))) ; then
8710 ac_cpp='$CXXCPP $CPPFLAGS'
8711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8714 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8716 if test -z "$CXXCPP"; then
8717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 # Double quotes because CXXCPP needs to be expanded
8721 for CXXCPP in "$CXX -E" "/lib/cpp"
8724 for ac_cxx_preproc_warn_flag in '' yes
8726 # Use a header file that comes with gcc, so configuring glibc
8727 # with a fresh cross-compiler works.
8728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 # <limits.h> exists even on freestanding compilers.
8730 # On the NeXT, cc -E runs the code through the compiler's parser,
8731 # not just through cpp. "Syntax error" is here to catch this case.
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 # include <limits.h>
8741 # include <assert.h>
8745 if { (ac_try="$ac_cpp conftest.$ac_ext"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null && {
8758 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8759 test ! -s conftest.err
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 # Broken: fails on valid input.
8770 rm -f conftest.err conftest.$ac_ext
8772 # OK, works on sane cases. Now check whether nonexistent headers
8773 # can be detected and how.
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 #include <ac_nonexistent.h>
8782 if { (ac_try="$ac_cpp conftest.$ac_ext"
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } >/dev/null && {
8795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8798 # Broken: success on invalid input.
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 # Passes both tests.
8809 rm -f conftest.err conftest.$ac_ext
8812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813 rm -f conftest.err conftest.$ac_ext
8814 if $ac_preproc_ok; then
8819 ac_cv_prog_CXXCPP=$CXXCPP
8822 CXXCPP=$ac_cv_prog_CXXCPP
8824 ac_cv_prog_CXXCPP=$CXXCPP
8826 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8827 echo "${ECHO_T}$CXXCPP" >&6; }
8829 for ac_cxx_preproc_warn_flag in '' yes
8831 # Use a header file that comes with gcc, so configuring glibc
8832 # with a fresh cross-compiler works.
8833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834 # <limits.h> exists even on freestanding compilers.
8835 # On the NeXT, cc -E runs the code through the compiler's parser,
8836 # not just through cpp. "Syntax error" is here to catch this case.
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 # include <limits.h>
8846 # include <assert.h>
8850 if { (ac_try="$ac_cpp conftest.$ac_ext"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null && {
8863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8864 test ! -s conftest.err
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 # Broken: fails on valid input.
8875 rm -f conftest.err conftest.$ac_ext
8877 # OK, works on sane cases. Now check whether nonexistent headers
8878 # can be detected and how.
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <ac_nonexistent.h>
8887 if { (ac_try="$ac_cpp conftest.$ac_ext"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } >/dev/null && {
8900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8901 test ! -s conftest.err
8903 # Broken: success on invalid input.
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 # Passes both tests.
8914 rm -f conftest.err conftest.$ac_ext
8917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8918 rm -f conftest.err conftest.$ac_ext
8919 if $ac_preproc_ok; then
8922 _lt_caught_CXX_error=yes
8926 ac_cpp='$CPP $CPPFLAGS'
8927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932 _lt_caught_CXX_error=yes
8940 # Check whether --enable-shared was given.
8941 if test "${enable_shared+set}" = set; then
8942 enableval=$enable_shared; p=${PACKAGE-default}
8944 yes) enable_shared=yes ;;
8945 no) enable_shared=no ;;
8948 # Look at the argument we got. We use all the common list separators.
8949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950 for pkg in $enableval; do
8952 if test "X$pkg" = "X$p"; then
8969 # Check whether --enable-static was given.
8970 if test "${enable_static+set}" = set; then
8971 enableval=$enable_static; p=${PACKAGE-default}
8973 yes) enable_static=yes ;;
8974 no) enable_static=no ;;
8977 # Look at the argument we got. We use all the common list separators.
8978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979 for pkg in $enableval; do
8981 if test "X$pkg" = "X$p"; then
9010 # Check whether --with-pic was given.
9011 if test "${with_pic+set}" = set; then
9012 withval=$with_pic; pic_mode="$withval"
9018 test -z "$pic_mode" && pic_mode=default
9026 # Check whether --enable-fast-install was given.
9027 if test "${enable_fast_install+set}" = set; then
9028 enableval=$enable_fast_install; p=${PACKAGE-default}
9030 yes) enable_fast_install=yes ;;
9031 no) enable_fast_install=no ;;
9033 enable_fast_install=no
9034 # Look at the argument we got. We use all the common list separators.
9035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9036 for pkg in $enableval; do
9038 if test "X$pkg" = "X$p"; then
9039 enable_fast_install=yes
9046 enable_fast_install=yes
9059 # This can be used to rebuild libtool when needed
9060 LIBTOOL_DEPS="$ltmain"
9062 # Always use our own libtool.
9063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089 test -z "$LN_S" && LN_S="ln -s"
9104 if test -n "${ZSH_VERSION+set}" ; then
9105 setopt NO_GLOB_SUBST
9108 { echo "$as_me:$LINENO: checking for objdir" >&5
9109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9110 if test "${lt_cv_objdir+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9118 # MS-DOS does not allow filenames that begin with a dot.
9121 rmdir .libs 2>/dev/null
9123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9153 # AIX sometimes has problems with the GCC collect2 program. For some
9154 # reason, if we set the COLLECT_NAMES environment variable, the problems
9155 # vanish in a puff of smoke.
9156 if test "X${COLLECT_NAMES+set}" != Xset; then
9158 export COLLECT_NAMES
9163 # Sed substitution that helps us do robust quoting. It backslashifies
9164 # metacharacters that are still active within double-quoted strings.
9165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9167 # Same as above, but do not quote variable references.
9168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9170 # Sed substitution to delay expansion of an escaped shell variable in a
9171 # double_quote_subst'ed string.
9172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9174 # Sed substitution to delay expansion of an escaped single quote.
9175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9177 # Sed substitution to avoid accidental globbing in evaled expressions
9178 no_glob_subst='s/\*/\\\*/g'
9182 can_build_shared=yes
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9191 old_CFLAGS="$CFLAGS"
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9200 for cc_temp in $compiler""; do
9202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9208 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9217 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9218 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9226 lt_save_MAGIC_CMD="$MAGIC_CMD"
9227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229 for ac_dir in $ac_dummy; do
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/${ac_tool_prefix}file; then
9233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234 if test -n "$file_magic_test_file"; then
9235 case $deplibs_check_method in
9237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240 $EGREP "$file_magic_regex" > /dev/null; then
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such. This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem. Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9262 MAGIC_CMD="$lt_save_MAGIC_CMD"
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9270 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9272 { echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6; }
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281 if test -n "$ac_tool_prefix"; then
9282 { echo "$as_me:$LINENO: checking for file" >&5
9283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292 lt_save_MAGIC_CMD="$MAGIC_CMD"
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295 for ac_dir in $ac_dummy; do
9297 test -z "$ac_dir" && ac_dir=.
9298 if test -f $ac_dir/file; then
9299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300 if test -n "$file_magic_test_file"; then
9301 case $deplibs_check_method in
9303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306 $EGREP "$file_magic_regex" > /dev/null; then
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such. This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem. Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9328 MAGIC_CMD="$lt_save_MAGIC_CMD"
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9338 { echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6; }
9352 # Use C for the default configuration in the libtool script
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362 # Source file extension for C test sources.
9365 # Object file extension for compiled C test sources.
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9381 # If no C compiler was specified, use CC.
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9387 # Allow CC to be a program name with arguments.
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9414 lt_prog_compiler_no_builtin_flag=
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9419 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 lt_cv_prog_compiler_rtti_exceptions=no
9425 ac_outfile=conftest.$ac_objext
9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427 lt_compiler_flag="-fno-rtti -fno-exceptions"
9428 # Insert the option either (1) after the last *FLAGS variable, or
9429 # (2) before a word containing "conftest.", or (3) at the end.
9430 # Note that $ac_compile itself does not contain backslashes and begins
9431 # with a dollar sign (not a hyphen), so the echo should work correctly.
9432 # The option is referenced via a variable to avoid confusing sed.
9433 lt_compile=`echo "$ac_compile" | $SED \
9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436 -e 's:$: $lt_compiler_flag:'`
9437 (eval echo "\"\$as_me:9437: $lt_compile\"" >&5)
9438 (eval "$lt_compile" 2>conftest.err)
9440 cat conftest.err >&5
9441 echo "$as_me:9441: \$? = $ac_status" >&5
9442 if (exit $ac_status) && test -s "$ac_outfile"; then
9443 # The compiler can only warn and ignore the option if not recognized
9444 # So say no if there are warnings other than the usual output.
9445 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448 lt_cv_prog_compiler_rtti_exceptions=yes
9454 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9470 lt_prog_compiler_wl=
9471 lt_prog_compiler_pic=
9472 lt_prog_compiler_static=
9474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9477 if test "$GCC" = yes; then
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_static='-static'
9483 # All AIX code is PIC.
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 now supports IA64 processor
9486 lt_prog_compiler_static='-Bstatic'
9493 # see comment about AmigaOS4 .so support
9494 lt_prog_compiler_pic='-fPIC'
9497 # FIXME: we need at least 68020 code to build shared libraries, but
9498 # adding the `-m68020' flag to GCC prevents building anything better,
9500 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9506 # PIC is the default for these OSes.
9509 mingw* | cygwin* | pw32* | os2* | cegcc*)
9510 # This hack is so that the source file can tell whether it is being
9511 # built for inclusion in a dll (and should export symbols for example).
9512 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9513 # (--disable-auto-import) libraries
9514 lt_prog_compiler_pic='-DDLL_EXPORT'
9517 darwin* | rhapsody*)
9518 # PIC is the default on this platform
9519 # Common symbols not allowed in MH_DYLIB files
9520 lt_prog_compiler_pic='-fno-common'
9524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9526 # sets the default TLS model and affects inlining.
9532 lt_prog_compiler_pic='-fPIC'
9538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9539 # Instead, we relocate shared libraries at runtime.
9543 # Just because we use GCC doesn't mean we suddenly get shared libraries
9544 # on systems that don't support them.
9545 lt_prog_compiler_can_build_shared=no
9550 # QNX uses GNU C++, but need to define -shared option too, otherwise
9552 lt_prog_compiler_pic='-fPIC -shared'
9556 if test -d /usr/nec; then
9557 lt_prog_compiler_pic=-Kconform_pic
9562 lt_prog_compiler_pic='-fPIC'
9566 # PORTME Check for flag to pass linker flags through the system compiler.
9569 lt_prog_compiler_wl='-Wl,'
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 now supports IA64 processor
9572 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9578 mingw* | cygwin* | pw32* | os2* | cegcc*)
9579 # This hack is so that the source file can tell whether it is being
9580 # built for inclusion in a dll (and should export symbols for example).
9581 lt_prog_compiler_pic='-DDLL_EXPORT'
9584 hpux9* | hpux10* | hpux11*)
9585 lt_prog_compiler_wl='-Wl,'
9586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593 lt_prog_compiler_pic='+Z'
9596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9597 lt_prog_compiler_static='${wl}-a ${wl}archive'
9600 irix5* | irix6* | nonstopux*)
9601 lt_prog_compiler_wl='-Wl,'
9602 # PIC (with -KPIC) is the default.
9603 lt_prog_compiler_static='-non_shared'
9606 linux* | k*bsd*-gnu)
9607 case $cc_basename in
9608 # old Intel for x86_64 which still supported -KPIC.
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_pic='-KPIC'
9612 lt_prog_compiler_static='-static'
9614 # icc used to be incompatible with GCC.
9615 # ICC 10 doesn't accept -KPIC any more.
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-fPIC'
9619 lt_prog_compiler_static='-static'
9621 # Lahey Fortran 8.1.
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='--shared'
9625 lt_prog_compiler_static='--static'
9627 pgcc* | pgf77* | pgf90* | pgf95*)
9628 # Portland Group compilers (*not* the Pentium gcc compiler,
9629 # which looks to be a dead project)
9630 lt_prog_compiler_wl='-Wl,'
9631 lt_prog_compiler_pic='-fpic'
9632 lt_prog_compiler_static='-Bstatic'
9635 lt_prog_compiler_wl='-Wl,'
9636 # All Alpha code is PIC.
9637 lt_prog_compiler_static='-non_shared'
9640 # IBM XL C 8.0/Fortran 10.1 on PPC
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='-qpic'
9643 lt_prog_compiler_static='-qstaticlink'
9646 case `$CC -V 2>&1 | sed 5q` in
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl='-Wl,'
9654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl=''
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9670 # QNX uses GNU C++, but need to define -shared option too, otherwise
9672 lt_prog_compiler_pic='-fPIC -shared'
9675 osf3* | osf4* | osf5*)
9676 lt_prog_compiler_wl='-Wl,'
9677 # All OSF/1 code is PIC.
9678 lt_prog_compiler_static='-non_shared'
9682 lt_prog_compiler_static='-non_shared'
9686 lt_prog_compiler_pic='-KPIC'
9687 lt_prog_compiler_static='-Bstatic'
9688 case $cc_basename in
9690 lt_prog_compiler_wl='-Qoption ld ';;
9692 lt_prog_compiler_wl='-Wl,';;
9697 lt_prog_compiler_wl='-Qoption ld '
9698 lt_prog_compiler_pic='-PIC'
9699 lt_prog_compiler_static='-Bstatic'
9702 sysv4 | sysv4.2uw2* | sysv4.3*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-KPIC'
9705 lt_prog_compiler_static='-Bstatic'
9709 if test -d /usr/nec ;then
9710 lt_prog_compiler_pic='-Kconform_pic'
9711 lt_prog_compiler_static='-Bstatic'
9715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_pic='-KPIC'
9718 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_can_build_shared=no
9727 lt_prog_compiler_pic='-pic'
9728 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_can_build_shared=no
9738 # For platforms which do not support PIC, -DPIC is meaningless:
9740 lt_prog_compiler_pic=
9743 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9747 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9755 # Check to make sure the PIC flag actually works.
9757 if test -n "$lt_prog_compiler_pic"; then
9758 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 lt_cv_prog_compiler_pic_works=no
9764 ac_outfile=conftest.$ac_objext
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 # The option is referenced via a variable to avoid confusing sed.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
9776 (eval echo "\"\$as_me:9776: $lt_compile\"" >&5)
9777 (eval "$lt_compile" 2>conftest.err)
9779 cat conftest.err >&5
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 if (exit $ac_status) && test -s "$ac_outfile"; then
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings other than the usual output.
9784 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_pic_works=yes
9793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9794 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9796 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9797 case $lt_prog_compiler_pic in
9799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9802 lt_prog_compiler_pic=
9803 lt_prog_compiler_can_build_shared=no
9814 # Check to make sure the static flag actually works.
9816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9819 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 lt_cv_prog_compiler_static_works=no
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9827 # The linker can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 if test -s conftest.err; then
9830 # Append any errors to the config.log.
9831 cat conftest.err 1>&5
9832 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834 if diff conftest.exp conftest.er2 >/dev/null; then
9835 lt_cv_prog_compiler_static_works=yes
9838 lt_cv_prog_compiler_static_works=yes
9842 LDFLAGS="$save_LDFLAGS"
9845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9846 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9851 lt_prog_compiler_static=
9860 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9862 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 lt_cv_prog_compiler_c_o=no
9866 $RM -r conftest 2>/dev/null
9870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9872 lt_compiler_flag="-o out/conftest2.$ac_objext"
9873 # Insert the option either (1) after the last *FLAGS variable, or
9874 # (2) before a word containing "conftest.", or (3) at the end.
9875 # Note that $ac_compile itself does not contain backslashes and begins
9876 # with a dollar sign (not a hyphen), so the echo should work correctly.
9877 lt_compile=`echo "$ac_compile" | $SED \
9878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880 -e 's:$: $lt_compiler_flag:'`
9881 (eval echo "\"\$as_me:9881: $lt_compile\"" >&5)
9882 (eval "$lt_compile" 2>out/conftest.err)
9884 cat out/conftest.err >&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9888 # The compiler can only warn and ignore the option if not recognized
9889 # So say no if there are warnings
9890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9893 lt_cv_prog_compiler_c_o=yes
9898 # SGI C++ compiler will create directory out/ii_files/ for
9899 # template instantiation
9900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9901 $RM out/* && rmdir out
9907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9915 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9917 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 lt_cv_prog_compiler_c_o=no
9921 $RM -r conftest 2>/dev/null
9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927 lt_compiler_flag="-o out/conftest2.$ac_objext"
9928 # Insert the option either (1) after the last *FLAGS variable, or
9929 # (2) before a word containing "conftest.", or (3) at the end.
9930 # Note that $ac_compile itself does not contain backslashes and begins
9931 # with a dollar sign (not a hyphen), so the echo should work correctly.
9932 lt_compile=`echo "$ac_compile" | $SED \
9933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9935 -e 's:$: $lt_compiler_flag:'`
9936 (eval echo "\"\$as_me:9936: $lt_compile\"" >&5)
9937 (eval "$lt_compile" 2>out/conftest.err)
9939 cat out/conftest.err >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9943 # The compiler can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9948 lt_cv_prog_compiler_c_o=yes
9953 # SGI C++ compiler will create directory out/ii_files/ for
9954 # template instantiation
9955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9956 $RM out/* && rmdir out
9962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9968 hard_links="nottested"
9969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9970 # do not overwrite the value of need_locks provided by the user
9971 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9972 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9977 ln conftest.a conftest.b 2>&5 || hard_links=no
9978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979 { echo "$as_me:$LINENO: result: $hard_links" >&5
9980 echo "${ECHO_T}$hard_links" >&6; }
9981 if test "$hard_links" = no; then
9982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9983 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9995 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9999 allow_undefined_flag=
10000 always_export_symbols=no
10002 archive_expsym_cmds=
10003 compiler_needs_object=no
10004 enable_shared_with_static_runtimes=no
10005 export_dynamic_flag_spec=
10006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10007 hardcode_automatic=no
10009 hardcode_direct_absolute=no
10010 hardcode_libdir_flag_spec=
10011 hardcode_libdir_flag_spec_ld=
10012 hardcode_libdir_separator=
10013 hardcode_minus_L=no
10014 hardcode_shlibpath_var=unsupported
10016 link_all_deplibs=unknown
10018 module_expsym_cmds=
10019 old_archive_from_new_cmds=
10020 old_archive_from_expsyms_cmds=
10021 thread_safe_flag_spec=
10022 whole_archive_flag_spec=
10023 # include_expsyms should be a list of space-separated symbols to be *always*
10024 # included in the symbol list
10026 # exclude_expsyms can be an extended regexp of symbols to exclude
10027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10029 # as well as any symbol that contains `d'.
10030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10032 # platforms (ab)use it in PIC code, but their linkers get confused if
10033 # the symbol is explicitly referenced. Since portable code cannot
10034 # rely on this symbol name, it's probably fine to never include it in
10035 # preloaded symbol tables.
10036 # Exclude shared library initialization/finalization symbols.
10037 extract_expsyms_cmds=
10040 cygwin* | mingw* | pw32* | cegcc*)
10041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10042 # When not using gcc, we currently assume that we are using
10043 # Microsoft Visual C++.
10044 if test "$GCC" != yes; then
10049 # we just hope/assume this is gcc and not c89 (= MSVC++)
10058 if test "$with_gnu_ld" = yes; then
10059 # If archive_cmds runs LD, not CC, wlarc should be empty
10062 # Set some defaults for GNU ld with shared library support. These
10063 # are reset later if shared libraries are not supported. Putting them
10064 # here allows them to be overridden if necessary.
10065 runpath_var=LD_RUN_PATH
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 export_dynamic_flag_spec='${wl}--export-dynamic'
10068 # ancient GNU ld didn't support --whole-archive et. al.
10069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072 whole_archive_flag_spec=
10074 supports_anon_versioning=no
10075 case `$LD -v 2>&1` in
10076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10079 *\ 2.11.*) ;; # other 2.11 versions
10080 *) supports_anon_versioning=yes ;;
10083 # See if GNU ld supports shared libraries.
10086 # On AIX/PPC, the GNU linker is very broken
10087 if test "$host_cpu" != ia64; then
10091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10092 *** to be unable to reliably create shared libraries on AIX.
10093 *** Therefore, libtool is disabling shared libraries support. If you
10094 *** really care for shared libraries, you may want to modify your PATH
10095 *** so that a non-GNU linker is found, and then restart.
10104 # see comment about AmigaOS4 .so support
10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 archive_expsym_cmds=''
10109 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118 allow_undefined_flag=unsupported
10119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120 # support --undefined. This deserves some investigation. FIXME
10121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 allow_undefined_flag=unsupported
10132 always_export_symbols=no
10133 enable_shared_with_static_runtimes=yes
10134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138 # If the export-symbols file already is a .def file (1st line
10139 # is EXPORTS), use it as is; otherwise, prepend...
10140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10141 cp $export_symbols $output_objdir/$soname.def;
10143 echo EXPORTS > $output_objdir/$soname.def;
10144 cat $export_symbols >> $output_objdir/$soname.def;
10146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 hardcode_shlibpath_var=no
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec='${wl}-E'
10157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10158 # Instead, shared libraries are loaded at an image base (0x10000000 by
10159 # default) and relocated if they conflict, which is a slow very memory
10160 # consuming and fragmenting process. To avoid this, we pick a random,
10161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10164 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10167 gnu* | linux* | tpf* | k*bsd*-gnu)
10169 if test "$host_os" = linux-dietlibc; then
10170 case $cc_basename in
10171 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10174 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10175 && test "$tmp_diet" = no
10178 tmp_sharedflag='-shared'
10179 case $cc_basename,$host_cpu in
10180 pgcc*) # Portland Group C compiler
10181 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182 tmp_addflag=' $pic_flag'
10184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10185 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10186 tmp_addflag=' $pic_flag -Mnomain' ;;
10187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10188 tmp_addflag=' -i_dynamic' ;;
10189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10190 tmp_addflag=' -i_dynamic -nofor_main' ;;
10191 ifc* | ifort*) # Intel Fortran compiler
10192 tmp_addflag=' -nofor_main' ;;
10193 lf95*) # Lahey Fortran 8.1
10194 whole_archive_flag_spec=
10195 tmp_sharedflag='--shared' ;;
10196 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10197 tmp_sharedflag='-qmkshrobj'
10200 case `$CC -V 2>&1 | sed 5q` in
10201 *Sun\ C*) # Sun C 5.9
10202 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10203 compiler_needs_object=yes
10204 tmp_sharedflag='-G' ;;
10205 *Sun\ F*) # Sun Fortran 8.3
10206 tmp_sharedflag='-G' ;;
10208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210 if test "x$supports_anon_versioning" = xyes; then
10211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10213 echo "local: *; };" >> $output_objdir/$libname.ver~
10214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10217 case $cc_basename in
10219 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10220 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10221 hardcode_libdir_flag_spec=
10222 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10223 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10224 if test "x$supports_anon_versioning" = xyes; then
10225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227 echo "local: *; };" >> $output_objdir/$libname.ver~
10228 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems. Therefore, libtool
10254 *** is disabling shared libraries support. We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer. Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269 case `$LD -v 2>&1` in
10270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10275 *** reliably create shared libraries on SCO systems. Therefore, libtool
10276 *** is disabling shared libraries support. We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10284 # For security reasons, it is highly recommended that you always
10285 # use absolute paths for naming shared libraries, and exclude the
10286 # DT_RUNPATH tag from executables and libraries. But doing so
10287 # requires that you compile everything twice, which is a pain.
10288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10316 if test "$ld_shlibs" = no; then
10318 hardcode_libdir_flag_spec=
10319 export_dynamic_flag_spec=
10320 whole_archive_flag_spec=
10323 # PORTME fill in a description of your system's linker (not GNU ld)
10326 allow_undefined_flag=unsupported
10327 always_export_symbols=yes
10328 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10329 # Note: this linker hardcodes the directories in LIBPATH if there
10330 # are no directories specified by -L.
10331 hardcode_minus_L=yes
10332 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10333 # Neither direct hardcoding nor static linking is supported with a
10335 hardcode_direct=unsupported
10340 if test "$host_cpu" = ia64; then
10341 # On IA64, the linker does run time linking by default, so we don't
10342 # have to do anything special.
10343 aix_use_runtimelinking=no
10344 exp_sym_flag='-Bexport'
10347 # If we're using GNU nm, then we don't want the "-C" option.
10348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10349 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10350 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10352 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10354 aix_use_runtimelinking=no
10356 # Test if we are trying to use run time linking or normal
10357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10358 # need to do runtime linking.
10359 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10360 for ld_flag in $LDFLAGS; do
10361 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10362 aix_use_runtimelinking=yes
10369 exp_sym_flag='-bexport'
10370 no_entry_flag='-bnoentry'
10373 # When large executables or shared objects are built, AIX ld can
10374 # have problems creating the table of contents. If linking a library
10375 # or program results in "error TOC overflow" add -mminimal-toc to
10376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380 hardcode_direct=yes
10381 hardcode_direct_absolute=yes
10382 hardcode_libdir_separator=':'
10383 link_all_deplibs=yes
10384 file_list_spec='${wl}-f,'
10386 if test "$GCC" = yes; then
10387 case $host_os in aix4.[012]|aix4.[012].*)
10388 # We only want to do this on AIX 4.2 and lower, the check
10389 # below for broken collect2 doesn't work under 4.3+
10390 collect2name=`${CC} -print-prog-name=collect2`
10391 if test -f "$collect2name" &&
10392 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10394 # We have reworked collect2
10397 # We have old collect2
10398 hardcode_direct=unsupported
10399 # It fails to find uninstalled libraries when the uninstalled
10400 # path is not listed in the libpath. Setting hardcode_minus_L
10401 # to unsupported forces relinking
10402 hardcode_minus_L=yes
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_libdir_separator=
10408 shared_flag='-shared'
10409 if test "$aix_use_runtimelinking" = yes; then
10410 shared_flag="$shared_flag "'${wl}-G'
10414 if test "$host_cpu" = ia64; then
10415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416 # chokes on -Wl,-G. The following line is correct:
10419 if test "$aix_use_runtimelinking" = yes; then
10420 shared_flag='${wl}-G'
10422 shared_flag='${wl}-bM:SRE'
10427 export_dynamic_flag_spec='${wl}-bexpall'
10428 # It seems that -bexpall does not export symbols beginning with
10429 # underscore (_), so it is better to generate a list of symbols to export.
10430 always_export_symbols=yes
10431 if test "$aix_use_runtimelinking" = yes; then
10432 # Warning - without using the other runtime loading flags (-brtl),
10433 # -berok will link without error, but may produce a broken library.
10434 allow_undefined_flag='-berok'
10435 # Determine the default libpath from the value encoded in an
10436 # empty executable.
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10471 lt_aix_libpath_sed='
10472 /Import File Strings/,/^$/ {
10478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 # Check for a 64-bit object if we didn't find anything.
10480 if test -z "$aix_libpath"; then
10481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491 conftest$ac_exeext conftest.$ac_ext
10492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10497 if test "$host_cpu" = ia64; then
10498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499 allow_undefined_flag="-z nodefs"
10500 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10502 # Determine the default libpath from the value encoded in an
10503 # empty executable.
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_link") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest$ac_exeext &&
10536 $as_test_x conftest$ac_exeext; then
10538 lt_aix_libpath_sed='
10539 /Import File Strings/,/^$/ {
10545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 # Check for a 64-bit object if we didn't find anything.
10547 if test -z "$aix_libpath"; then
10548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10562 # Warning - without using the other run time loading flags,
10563 # -berok will link without error, but may produce a broken library.
10564 no_undefined_flag=' ${wl}-bernotok'
10565 allow_undefined_flag=' ${wl}-berok'
10566 # Exported symbols can be pulled into shared objects from archives
10567 whole_archive_flag_spec='$convenience'
10568 archive_cmds_need_lc=yes
10569 # This is similar to how AIX traditionally builds its shared libraries.
10570 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10578 # see comment about AmigaOS4 .so support
10579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580 archive_expsym_cmds=''
10583 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_minus_L=yes
10591 export_dynamic_flag_spec=-rdynamic
10594 cygwin* | mingw* | pw32* | cegcc*)
10595 # When not using gcc, we currently assume that we are using
10596 # Microsoft Visual C++.
10597 # hardcode_libdir_flag_spec is actually meaningless, as there is
10598 # no search path for DLLs.
10599 hardcode_libdir_flag_spec=' '
10600 allow_undefined_flag=unsupported
10601 # Tell ltmain to make .lib files, not .a files.
10603 # Tell ltmain to make .dll files, not .so files.
10605 # FIXME: Setting linknames here is a bad hack.
10606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10607 # The linker will automatically build a .lib file if we build a DLL.
10608 old_archive_from_new_cmds='true'
10609 # FIXME: Should let the user specify the lib program.
10610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10611 fix_srcfile_path='`cygpath -w "$srcfile"`'
10612 enable_shared_with_static_runtimes=yes
10615 darwin* | rhapsody*)
10618 archive_cmds_need_lc=no
10620 hardcode_automatic=yes
10621 hardcode_shlibpath_var=unsupported
10622 whole_archive_flag_spec=''
10623 link_all_deplibs=yes
10624 allow_undefined_flag="$_lt_dar_allow_undefined"
10625 case $cc_basename in
10626 ifort*) _lt_dar_can_shared=yes ;;
10627 *) _lt_dar_can_shared=$GCC ;;
10629 if test "$_lt_dar_can_shared" = "yes"; then
10630 output_verbose_link_cmd=echo
10631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10633 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10634 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 hardcode_shlibpath_var=no
10652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10653 # support. Future versions do this automatically, but an explicit c++rt0.o
10654 # does not break anything, and helps significantly (at the cost of a little
10657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10658 hardcode_libdir_flag_spec='-R$libdir'
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_minus_L=yes
10668 hardcode_shlibpath_var=no
10671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10672 freebsd* | dragonfly*)
10673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10674 hardcode_libdir_flag_spec='-R$libdir'
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10680 if test "$GCC" = yes; then
10681 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10683 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10686 hardcode_libdir_separator=:
10687 hardcode_direct=yes
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10692 export_dynamic_flag_spec='${wl}-E'
10696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10701 if test "$with_gnu_ld" = no; then
10702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10703 hardcode_libdir_flag_spec_ld='+b $libdir'
10704 hardcode_libdir_separator=:
10705 hardcode_direct=yes
10706 hardcode_direct_absolute=yes
10707 export_dynamic_flag_spec='${wl}-E'
10708 # hardcode_minus_L: Not really in the search PATH,
10709 # but as the default location of the library.
10710 hardcode_minus_L=yes
10715 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10740 if test "$with_gnu_ld" = no; then
10741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742 hardcode_libdir_separator=:
10747 hardcode_shlibpath_var=no
10750 hardcode_direct=yes
10751 hardcode_direct_absolute=yes
10752 export_dynamic_flag_spec='${wl}-E'
10754 # hardcode_minus_L: Not really in the search PATH,
10755 # but as the default location of the library.
10756 hardcode_minus_L=yes
10762 irix5* | irix6* | nonstopux*)
10763 if test "$GCC" = yes; then
10764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10765 # Try to use the -exported_symbol ld option, if it does not
10766 # work, assume that -exports_file does not work either and
10767 # implicitly export all symbols.
10768 save_LDFLAGS="$LDFLAGS"
10769 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10770 cat >conftest.$ac_ext <<_ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest$ac_exeext &&
10790 $as_test_x conftest$ac_exeext; then
10791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LDFLAGS="$save_LDFLAGS"
10804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10807 archive_cmds_need_lc='no'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator=:
10811 link_all_deplibs=yes
10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10818 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10820 hardcode_libdir_flag_spec='-R$libdir'
10821 hardcode_direct=yes
10822 hardcode_shlibpath_var=no
10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827 hardcode_direct=yes
10828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 hardcode_libdir_separator=:
10830 hardcode_shlibpath_var=no
10837 if test -f /usr/libexec/ld.so; then
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10840 hardcode_direct_absolute=yes
10841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845 export_dynamic_flag_spec='${wl}-E'
10848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10850 hardcode_libdir_flag_spec='-R$libdir'
10853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_minus_L=yes
10866 allow_undefined_flag=unsupported
10867 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10868 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10872 if test "$GCC" = yes; then
10873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10874 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10876 allow_undefined_flag=' -expect_unresolved \*'
10877 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881 hardcode_libdir_separator=:
10884 osf4* | osf5*) # as osf3* with the addition of -msym flag
10885 if test "$GCC" = yes; then
10886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10890 allow_undefined_flag=' -expect_unresolved \*'
10891 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10892 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10893 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10895 # Both c and cxx compiler support -rpath directly
10896 hardcode_libdir_flag_spec='-rpath $libdir'
10898 archive_cmds_need_lc='no'
10899 hardcode_libdir_separator=:
10903 no_undefined_flag=' -z defs'
10904 if test "$GCC" = yes; then
10906 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10908 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910 case `$CC -V 2>&1` in
10913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10919 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_shlibpath_var=no
10928 solaris2.[0-5] | solaris2.[0-5].*) ;;
10930 # The compiler driver will combine and reorder linker options,
10931 # but understands `-z linker_flag'. GCC discards it without `$wl',
10932 # but is careful enough not to reorder.
10933 # Supported since Solaris 2.6 (maybe 2.5.1?)
10934 if test "$GCC" = yes; then
10935 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10941 link_all_deplibs=yes
10945 if test "x$host_vendor" = xsequent; then
10946 # Use $CC to link under sequent, because it throws in some extra .o
10947 # files that make .init and .fini sections work.
10948 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_direct=yes
10954 hardcode_minus_L=yes
10955 hardcode_shlibpath_var=no
10959 case $host_vendor in
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_direct=yes # is this really true???
10965 ## LD is ld it makes a PLAMLIB
10966 ## CC just makes a GrossModule.
10967 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10968 reload_cmds='$CC -r -o $output$reload_objs'
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976 runpath_var='LD_RUN_PATH'
10977 hardcode_shlibpath_var=no
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_shlibpath_var=no
10983 export_dynamic_flag_spec='-Bexport'
10987 if test -d /usr/nec; then
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_shlibpath_var=no
10990 runpath_var=LD_RUN_PATH
10991 hardcode_runpath_var=yes
10996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997 no_undefined_flag='${wl}-z,text'
10998 archive_cmds_need_lc=no
10999 hardcode_shlibpath_var=no
11000 runpath_var='LD_RUN_PATH'
11002 if test "$GCC" = yes; then
11003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 sysv5* | sco3.2v5* | sco5v6*)
11012 # Note: We can NOT use -z defs as we might desire, because we do not
11013 # link with -lc, and that would cause any symbols used from libc to
11014 # always be unresolved, which means just about no library would
11015 # ever link correctly. If we're not using GNU ld we use -z text
11016 # though, which does catch some bad symbols but isn't as heavy-handed
11018 no_undefined_flag='${wl}-z,text'
11019 allow_undefined_flag='${wl}-z,nodefs'
11020 archive_cmds_need_lc=no
11021 hardcode_shlibpath_var=no
11022 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11023 hardcode_libdir_separator=':'
11024 link_all_deplibs=yes
11025 export_dynamic_flag_spec='${wl}-Bexport'
11026 runpath_var='LD_RUN_PATH'
11028 if test "$GCC" = yes; then
11029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_shlibpath_var=no
11048 if test x$host_vendor = xsni; then
11050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11051 export_dynamic_flag_spec='${wl}-Blargedynsym'
11057 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11058 echo "${ECHO_T}$ld_shlibs" >&6; }
11059 test "$ld_shlibs" = no && can_build_shared=no
11061 with_gnu_ld=$with_gnu_ld
11078 # Do we need to explicitly link libc?
11080 case "x$archive_cmds_need_lc" in
11082 # Assume -lc should be added
11083 archive_cmds_need_lc=yes
11085 if test "$enable_shared" = yes && test "$GCC" = yes; then
11086 case $archive_cmds in
11088 # FIXME: we may have to deal with multi-command sequences.
11091 # Test whether the compiler implicitly links with -lc since on some
11092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11093 # to ld, don't add -lc before -lgcc.
11094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } 2>conftest.err; then
11106 libobjs=conftest.$ac_objext
11108 wl=$lt_prog_compiler_wl
11109 pic_flag=$lt_prog_compiler_pic
11115 lt_save_allow_undefined_flag=$allow_undefined_flag
11116 allow_undefined_flag=
11117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }
11123 archive_cmds_need_lc=no
11125 archive_cmds_need_lc=yes
11127 allow_undefined_flag=$lt_save_allow_undefined_flag
11129 cat conftest.err 1>&5
11132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11133 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11296 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11299 if test "$GCC" = yes; then
11301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11302 *) lt_awk_arg="/^libraries:/" ;;
11304 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11305 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11306 # if the path contains ";" then we assume it to be the separator
11307 # otherwise default to the standard path separator (i.e. ":") - it is
11308 # assumed that no part of a normal pathname contains ";" but that should
11309 # okay in the real world where ";" in dirpaths is itself problematic.
11310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11314 # Ok, now we have the path, separated by spaces, we can step through it
11315 # and add multilib dir if necessary.
11316 lt_tmp_lt_search_path_spec=
11317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11318 for lt_sys_path in $lt_search_path_spec; do
11319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11322 test -d "$lt_sys_path" && \
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11327 BEGIN {RS=" "; FS="/|\n";} {
11330 for (lt_i = NF; lt_i > 0; lt_i--) {
11331 if ($lt_i != "" && $lt_i != ".") {
11332 if ($lt_i == "..") {
11335 if (lt_count == 0) {
11336 lt_foo="/" $lt_i lt_foo;
11343 if (lt_foo != "") { lt_freq[lt_foo]++; }
11344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11346 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 library_names_spec=
11351 libname_spec='lib$name'
11355 postuninstall_cmds=
11359 shlibpath_overrides_runpath=unknown
11361 dynamic_linker="$host_os ld.so"
11362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374 shlibpath_var=LIBPATH
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec='${libname}${release}${shared_ext}$major'
11384 hardcode_into_libs=yes
11385 if test "$host_cpu" = ia64; then
11386 # AIX 5 supports IA64
11387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388 shlibpath_var=LD_LIBRARY_PATH
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line `#! .'. This would cause the generated library to
11393 # depend on `.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11396 aix4 | aix4.[01] | aix4.[01].*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402 can_build_shared=no
11406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407 # soname into executable. Probably we can add versioning support to
11408 # collect2, so additional links can be useful in future.
11409 if test "$aix_use_runtimelinking" = yes; then
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec='${libname}${release}.a $libname.a'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LIBPATH
11427 # Since July 2007 AmigaOS4 officially supports .so libraries.
11428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 library_names_spec='$libname.ixlibrary $libname.a'
11433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11434 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11440 library_names_spec='${libname}${shared_ext}'
11441 dynamic_linker="$host_os ld.so"
11442 shlibpath_var=LIBRARY_PATH
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11454 # the default ld.so.conf also contains /usr/contrib/lib and
11455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11456 # libtool to hard-code these into programs
11459 cygwin* | mingw* | pw32* | cegcc*)
11460 version_type=windows
11465 case $GCC,$host_os in
11466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11467 library_names_spec='$libname.dll.a'
11468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11469 postinstall_cmds='base_file=`basename \${file}`~
11470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11471 dldir=$destdir/`dirname \$dlpath`~
11472 test -d \$dldir || mkdir -p \$dldir~
11473 $install_prog $dir/$dlname \$dldir/$dlname~
11474 chmod a+x \$dldir/$dlname~
11475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479 dlpath=$dir/\$dldll~
11481 shlibpath_overrides_runpath=yes
11485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490 # MinGW DLLs use traditional 'lib' prefix
11491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11493 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11494 # It is most probably a Windows format PATH printed by
11495 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11496 # path with ; separators, and with drive letters. We can handle the
11497 # drive letters (cygwin fileutils understands them), so leave them,
11498 # especially as we might pass files found there to a mingw objdump,
11499 # which wouldn't understand a cygwinified path. Ahh.
11500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11506 # pw32 DLLs use 'pw' prefix rather than 'lib'
11507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516 dynamic_linker='Win32 ld.exe'
11517 # FIXME: first we should search . and the directory the executable is in
11521 darwin* | rhapsody*)
11522 dynamic_linker="$host_os dyld"
11523 version_type=darwin
11526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11527 soname_spec='${libname}${release}${major}$shared_ext'
11528 shlibpath_overrides_runpath=yes
11529 shlibpath_var=DYLD_LIBRARY_PATH
11530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11549 freebsd* | dragonfly*)
11550 # DragonFly does not have aout. When/if they implement a new
11551 # versioning mechanism, adjust this.
11552 if test -x /usr/bin/objformat; then
11553 objformat=`/usr/bin/objformat`
11556 freebsd[123]*) objformat=aout ;;
11557 *) objformat=elf ;;
11560 version_type=freebsd-$objformat
11561 case $version_type in
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11586 *) # from 4.6 on, and DragonFly
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 hardcode_into_libs=yes
11603 hpux9* | hpux10* | hpux11*)
11604 # Give a soname corresponding to the major version so that dld.sl refuses to
11605 # link against other versions.
11612 hardcode_into_libs=yes
11613 dynamic_linker="$host_os dld.so"
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 if test "X$HPUX_IA64_MODE" = X32; then
11619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627 hardcode_into_libs=yes
11628 dynamic_linker="$host_os dld.sl"
11629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 dynamic_linker="$host_os dld.sl"
11639 shlibpath_var=SHLIB_PATH
11640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11646 postinstall_cmds='chmod 555 $lib'
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658 hardcode_into_libs=yes
11661 irix5* | irix6* | nonstopux*)
11663 nonstopux*) version_type=nonstopux ;;
11665 if test "$lt_cv_prog_gnu_ld" = yes; then
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11676 irix5* | nonstopux*)
11677 libsuff= shlibsuff=
11680 case $LD in # libtool.m4 will add one of these switches to LD
11681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11682 libsuff= shlibsuff= libmagic=32-bit;;
11683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11684 libsuff=32 shlibsuff=N32 libmagic=N32;;
11685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11687 *) libsuff= shlibsuff= libmagic=never-match;;
11691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11692 shlibpath_overrides_runpath=no
11693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11695 hardcode_into_libs=yes
11698 # No shared lib support for Linux oldld, aout, or coff.
11699 linux*oldld* | linux*aout* | linux*coff*)
11703 # This must be Linux ELF.
11704 linux* | k*bsd*-gnu)
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=no
11713 # Some binutils ld are patched to set DT_RUNPATH
11714 save_LDFLAGS=$LDFLAGS
11715 save_libdir=$libdir
11716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_link") 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } && {
11747 test -z "$ac_c_werror_flag" ||
11748 test ! -s conftest.err
11749 } && test -s conftest$ac_exeext &&
11750 $as_test_x conftest$ac_exeext; then
11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11752 shlibpath_overrides_runpath=yes
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS=$save_LDFLAGS
11765 libdir=$save_libdir
11767 # This implies no fast_install, which is unacceptable.
11768 # Some rework will be needed to allow for fast_install
11769 # before this can be enabled.
11770 hardcode_into_libs=yes
11772 # Append ld.so.conf contents to the search path
11773 if test -f /etc/ld.so.conf; then
11774 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11778 # We used to test for /lib/ld.so.1 and disable shared libraries on
11779 # powerpc, because MkLinux only supported shared libraries with the
11780 # GNU dynamic linker. Since this was broken with cross compilers,
11781 # most powerpc-linux boxes support dynamic linking these days and
11782 # people can always --disable-shared, the test was removed, and we
11783 # assume the GNU/Linux dynamic linker is in use.
11784 dynamic_linker='GNU/Linux ld.so'
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794 dynamic_linker='NetBSD (a.out) ld.so'
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 dynamic_linker='NetBSD ld.elf_so'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 shlibpath_overrides_runpath=yes
11802 hardcode_into_libs=yes
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=yes
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=no
11820 hardcode_into_libs=yes
11821 dynamic_linker='ldqnx.so'
11826 sys_lib_dlsearch_path_spec="/usr/lib"
11828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11831 *) need_version=no ;;
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11838 openbsd2.[89] | openbsd2.[89].*)
11839 shlibpath_overrides_runpath=no
11842 shlibpath_overrides_runpath=yes
11846 shlibpath_overrides_runpath=yes
11851 libname_spec='$name'
11854 library_names_spec='$libname${shared_ext} $libname.a'
11855 dynamic_linker='OS/2 ld.exe'
11856 shlibpath_var=LIBPATH
11859 osf3* | osf4* | osf5*)
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 # ldd complains unless libraries are executable
11884 postinstall_cmds='chmod +x $lib'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 if test "$with_gnu_ld" = yes; then
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902 soname_spec='${libname}${release}${shared_ext}$major'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 case $host_vendor in
11906 shlibpath_overrides_runpath=no
11908 runpath_var=LD_RUN_PATH
11916 shlibpath_overrides_runpath=no
11917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11923 if test -d /usr/nec ;then
11925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11926 soname_spec='$libname${shared_ext}.$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11932 version_type=freebsd-elf
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 if test "$with_gnu_ld" = yes; then
11941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11950 sys_lib_dlsearch_path_spec='/usr/lib'
11954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=no
11961 hardcode_into_libs=yes
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11975 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11976 echo "${ECHO_T}$dynamic_linker" >&6; }
11977 test "$dynamic_linker" = no && can_build_shared=no
11979 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11980 if test "$GCC" = yes; then
11981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11984 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11985 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11987 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11988 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12077 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12080 if test -n "$hardcode_libdir_flag_spec" ||
12081 test -n "$runpath_var" ||
12082 test "X$hardcode_automatic" = "Xyes" ; then
12084 # We can hardcode non-existent directories.
12085 if test "$hardcode_direct" != no &&
12086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087 # have to relink, otherwise we might link with an installed library
12088 # when we should be linking with a yet-to-be-installed one
12089 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12090 test "$hardcode_minus_L" != no; then
12091 # Linking always hardcodes the temporary library directory.
12092 hardcode_action=relink
12094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095 hardcode_action=immediate
12098 # We cannot hardcode anything, or else we can only hardcode existing
12100 hardcode_action=unsupported
12102 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12103 echo "${ECHO_T}$hardcode_action" >&6; }
12105 if test "$hardcode_action" = relink ||
12106 test "$inherit_rpath" = yes; then
12107 # Fast installation is not supported
12108 enable_fast_install=no
12109 elif test "$shlibpath_overrides_runpath" = yes ||
12110 test "$enable_shared" = no; then
12111 # Fast installation is not necessary
12112 enable_fast_install=needless
12120 if test "x$enable_dlopen" != xyes; then
12121 enable_dlopen=unknown
12122 enable_dlopen_self=unknown
12123 enable_dlopen_self_static=unknown
12130 lt_cv_dlopen="load_add_on"
12132 lt_cv_dlopen_self=yes
12135 mingw* | pw32* | cegcc*)
12136 lt_cv_dlopen="LoadLibrary"
12141 lt_cv_dlopen="dlopen"
12146 # if libdl is installed we need to link against it
12147 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_check_lib_save_LIBS=$LIBS
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext &&
12193 $as_test_x conftest$ac_exeext; then
12194 ac_cv_lib_dl_dlopen=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_dl_dlopen=no
12202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12203 conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12208 if test $ac_cv_lib_dl_dlopen = yes; then
12209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12212 lt_cv_dlopen="dyld"
12214 lt_cv_dlopen_self=yes
12221 { echo "$as_me:$LINENO: checking for shl_load" >&5
12222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12223 if test "${ac_cv_func_shl_load+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12234 #define shl_load innocuous_shl_load
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char shl_load (); below.
12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12239 <limits.h> exists even on freestanding compilers. */
12242 # include <limits.h>
12244 # include <assert.h>
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined __stub_shl_load || defined __stub___shl_load
12266 return shl_load ();
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext &&
12288 $as_test_x conftest$ac_exeext; then
12289 ac_cv_func_shl_load=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_func_shl_load=no
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12301 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12302 if test $ac_cv_func_shl_load = yes; then
12303 lt_cv_dlopen="shl_load"
12305 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12306 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_check_lib_save_LIBS=$LIBS
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any GCC internal prototype to avoid an error.
12320 Use char because int might match the return type of a GCC
12321 builtin and then its argument prototype would still apply. */
12329 return shl_load ();
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_link") 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest$ac_exeext &&
12351 $as_test_x conftest$ac_exeext; then
12352 ac_cv_lib_dld_shl_load=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_dld_shl_load=no
12360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12361 conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12364 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12365 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12366 if test $ac_cv_lib_dld_shl_load = yes; then
12367 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12369 { echo "$as_me:$LINENO: checking for dlopen" >&5
12370 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12371 if test "${ac_cv_func_dlopen+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12382 #define dlopen innocuous_dlopen
12384 /* System header to define __stub macros and hopefully few prototypes,
12385 which can conflict with char dlopen (); below.
12386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12387 <limits.h> exists even on freestanding compilers. */
12390 # include <limits.h>
12392 # include <assert.h>
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined __stub_dlopen || defined __stub___dlopen
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 ac_cv_func_dlopen=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_func_dlopen=no
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12450 if test $ac_cv_func_dlopen = yes; then
12451 lt_cv_dlopen="dlopen"
12453 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_check_lib_save_LIBS=$LIBS
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext &&
12499 $as_test_x conftest$ac_exeext; then
12500 ac_cv_lib_dl_dlopen=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 ac_cv_lib_dl_dlopen=no
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12512 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12513 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12514 if test $ac_cv_lib_dl_dlopen = yes; then
12515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12517 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12518 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12519 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lsvld $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_link") 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest$ac_exeext &&
12563 $as_test_x conftest$ac_exeext; then
12564 ac_cv_lib_svld_dlopen=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_lib_svld_dlopen=no
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12577 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12578 if test $ac_cv_lib_svld_dlopen = yes; then
12579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12605 return dld_link ();
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext &&
12627 $as_test_x conftest$ac_exeext; then
12628 ac_cv_lib_dld_dld_link=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12633 ac_cv_lib_dld_dld_link=no
12636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12637 conftest$ac_exeext conftest.$ac_ext
12638 LIBS=$ac_check_lib_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12641 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12642 if test $ac_cv_lib_dld_dld_link = yes; then
12643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12664 if test "x$lt_cv_dlopen" != xno; then
12670 case $lt_cv_dlopen in
12672 save_CPPFLAGS="$CPPFLAGS"
12673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12675 save_LDFLAGS="$LDFLAGS"
12676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12679 LIBS="$lt_cv_dlopen_libs $LIBS"
12681 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12682 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12683 if test "${lt_cv_dlopen_self+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 if test "$cross_compiling" = yes; then :
12687 lt_cv_dlopen_self=cross
12689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690 lt_status=$lt_dlunknown
12691 cat > conftest.$ac_ext <<_LT_EOF
12692 #line 12692 "configure"
12693 #include "confdefs.h"
12702 # define LT_DLGLOBAL RTLD_GLOBAL
12705 # define LT_DLGLOBAL DL_GLOBAL
12707 # define LT_DLGLOBAL 0
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712 find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12718 # define LT_DLLAZY_OR_NOW DL_LAZY
12721 # define LT_DLLAZY_OR_NOW RTLD_NOW
12724 # define LT_DLLAZY_OR_NOW DL_NOW
12726 # define LT_DLLAZY_OR_NOW 0
12733 void fnord() { int i=42;}
12736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12737 int status = $lt_dlunknown;
12741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12743 /* dlclose (self); */
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12756 (./conftest; exit; ) >&5 2>/dev/null
12758 case x$lt_status in
12759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12761 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12764 # compilation failed
12765 lt_cv_dlopen_self=no
12772 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12775 if test "x$lt_cv_dlopen_self" = xyes; then
12776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12777 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12779 if test "${lt_cv_dlopen_self_static+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 if test "$cross_compiling" = yes; then :
12783 lt_cv_dlopen_self_static=cross
12785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12786 lt_status=$lt_dlunknown
12787 cat > conftest.$ac_ext <<_LT_EOF
12788 #line 12788 "configure"
12789 #include "confdefs.h"
12798 # define LT_DLGLOBAL RTLD_GLOBAL
12801 # define LT_DLGLOBAL DL_GLOBAL
12803 # define LT_DLGLOBAL 0
12807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12808 find out it does not work in some platform. */
12809 #ifndef LT_DLLAZY_OR_NOW
12811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12814 # define LT_DLLAZY_OR_NOW DL_LAZY
12817 # define LT_DLLAZY_OR_NOW RTLD_NOW
12820 # define LT_DLLAZY_OR_NOW DL_NOW
12822 # define LT_DLLAZY_OR_NOW 0
12829 void fnord() { int i=42;}
12832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12833 int status = $lt_dlunknown;
12837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12839 /* dlclose (self); */
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12852 (./conftest; exit; ) >&5 2>/dev/null
12854 case x$lt_status in
12855 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12856 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12857 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12860 # compilation failed
12861 lt_cv_dlopen_self_static=no
12868 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12869 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12872 CPPFLAGS="$save_CPPFLAGS"
12873 LDFLAGS="$save_LDFLAGS"
12878 case $lt_cv_dlopen_self in
12879 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12880 *) enable_dlopen_self=unknown ;;
12883 case $lt_cv_dlopen_self_static in
12884 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12885 *) enable_dlopen_self_static=unknown ;;
12907 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12908 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12910 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12911 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12915 # FIXME - insert some real tests, host_os isn't really good enough
12918 if test -n "$STRIP" ; then
12919 striplib="$STRIP -x"
12920 old_striplib="$STRIP -S"
12921 { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12924 { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12929 { echo "$as_me:$LINENO: result: no" >&5
12930 echo "${ECHO_T}no" >&6; }
12946 # Report which library types will actually be built
12947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12950 echo "${ECHO_T}$can_build_shared" >&6; }
12952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12954 test "$can_build_shared" = "no" && enable_shared=no
12956 # On AIX, shared libraries and static libraries use the same namespace, and
12957 # are all built from PIC.
12960 test "$enable_shared" = yes && enable_static=no
12961 if test -n "$RANLIB"; then
12962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12963 postinstall_cmds='$RANLIB $lib'
12968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12969 test "$enable_shared" = yes && enable_static=no
12973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12974 echo "${ECHO_T}$enable_shared" >&6; }
12976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12978 # Make sure either enable_shared or enable_static is yes.
12979 test "$enable_shared" = yes || enable_static=yes
12980 { echo "$as_me:$LINENO: result: $enable_static" >&5
12981 echo "${ECHO_T}$enable_static" >&6; }
12988 ac_cpp='$CPP $CPPFLAGS'
12989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 ac_cpp='$CXXCPP $CPPFLAGS'
12998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13002 archive_cmds_need_lc_CXX=no
13003 allow_undefined_flag_CXX=
13004 always_export_symbols_CXX=no
13005 archive_expsym_cmds_CXX=
13006 compiler_needs_object_CXX=no
13007 export_dynamic_flag_spec_CXX=
13008 hardcode_direct_CXX=no
13009 hardcode_direct_absolute_CXX=no
13010 hardcode_libdir_flag_spec_CXX=
13011 hardcode_libdir_flag_spec_ld_CXX=
13012 hardcode_libdir_separator_CXX=
13013 hardcode_minus_L_CXX=no
13014 hardcode_shlibpath_var_CXX=unsupported
13015 hardcode_automatic_CXX=no
13016 inherit_rpath_CXX=no
13018 module_expsym_cmds_CXX=
13019 link_all_deplibs_CXX=unknown
13020 old_archive_cmds_CXX=$old_archive_cmds
13021 no_undefined_flag_CXX=
13022 whole_archive_flag_spec_CXX=
13023 enable_shared_with_static_runtimes_CXX=no
13025 # Source file extension for C++ test sources.
13028 # Object file extension for compiled C++ test sources.
13032 # No sense in running all these tests if we already determined that
13033 # the CXX compiler isn't working. Some variables (like enable_shared)
13034 # are currently assumed to apply to all compilers on this platform,
13035 # and will be corrupted by setting them based on a non-working compiler.
13036 if test "$_lt_caught_CXX_error" != yes; then
13037 # Code to be used in simple compile tests
13038 lt_simple_compile_test_code="int some_variable = 0;"
13040 # Code to be used in simple link tests
13041 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13043 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13050 # If no C compiler was specified, use CC.
13053 # If no C compiler flags were specified, use CFLAGS.
13054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13056 # Allow CC to be a program name with arguments.
13060 # save warnings/boilerplate of simple test code
13061 ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_compiler_boilerplate=`cat conftest.err`
13067 ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_linker_boilerplate=`cat conftest.err`
13074 # Allow CC to be a program name with arguments.
13079 lt_save_with_gnu_ld=$with_gnu_ld
13080 lt_save_path_LD=$lt_cv_path_LD
13081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13082 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13084 $as_unset lt_cv_prog_gnu_ld
13086 if test -n "${lt_cv_path_LDCXX+set}"; then
13087 lt_cv_path_LD=$lt_cv_path_LDCXX
13089 $as_unset lt_cv_path_LD
13091 test -z "${LDCXX+set}" || LD=$LDCXX
13095 for cc_temp in $compiler""; do
13097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13103 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13106 if test -n "$compiler"; then
13107 # We don't want -fno-exception when compiling C++ code, so set the
13108 # no_builtin_flag separately
13109 if test "$GXX" = yes; then
13110 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13112 lt_prog_compiler_no_builtin_flag_CXX=
13115 if test "$GXX" = yes; then
13116 # Set up default GNU C++ configuration
13120 # Check whether --with-gnu-ld was given.
13121 if test "${with_gnu_ld+set}" = set; then
13122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13128 if test "$GCC" = yes; then
13129 # Check if gcc -print-prog-name=ld gives a path.
13130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13134 # gcc leaves a trailing carriage return which upsets mingw
13135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13140 # Accept absolute paths.
13142 re_direlt='/[^/][^/]*/\.\./'
13143 # Canonicalize the pathname of ld
13144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13148 test -z "$LD" && LD="$ac_prog"
13151 # If it fails, then pretend we aren't using GCC.
13155 # If it is relative, then search for the first ld in PATH.
13156 with_gnu_ld=unknown
13159 elif test "$with_gnu_ld" = yes; then
13160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13166 if test "${lt_cv_path_LD+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 if test -z "$LD"; then
13170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13171 for ac_dir in $PATH; do
13173 test -z "$ac_dir" && ac_dir=.
13174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13175 lt_cv_path_LD="$ac_dir/$ac_prog"
13176 # Check to see if the program is GNU ld. I'd rather use --version,
13177 # but apparently some variants of GNU ld only accept -v.
13178 # Break only if it was the GNU/non-GNU ld that we prefer.
13179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13180 *GNU* | *'with BFD'*)
13181 test "$with_gnu_ld" != no && break
13184 test "$with_gnu_ld" != yes && break
13191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13195 LD="$lt_cv_path_LD"
13196 if test -n "$LD"; then
13197 { echo "$as_me:$LINENO: result: $LD" >&5
13198 echo "${ECHO_T}$LD" >&6; }
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13205 { (exit 1); exit 1; }; }
13206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13212 case `$LD -v 2>&1 </dev/null` in
13213 *GNU* | *'with BFD'*)
13214 lt_cv_prog_gnu_ld=yes
13217 lt_cv_prog_gnu_ld=no
13221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13223 with_gnu_ld=$lt_cv_prog_gnu_ld
13231 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13232 # archiving commands below assume that GNU ld is being used.
13233 if test "$with_gnu_ld" = yes; then
13234 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13235 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13240 # If archive_cmds runs LD, not CC, wlarc should be empty
13241 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13242 # investigate it a little bit more. (MM)
13245 # ancient GNU ld didn't support --whole-archive et. al.
13246 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13247 $GREP 'no-whole-archive' > /dev/null; then
13248 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13250 whole_archive_flag_spec_CXX=
13256 # A generic and very simple default shared library creation
13257 # command for GNU C++ for the case where it uses the native
13258 # linker, instead of GNU ld. If possible, this setting should
13259 # overridden to take advantage of the native linker features on
13260 # the platform it is being used on.
13261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13275 # PORTME: fill in a description of your system's C++ link characteristics
13276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13281 # FIXME: insert proper C++ library support
13285 if test "$host_cpu" = ia64; then
13286 # On IA64, the linker does run time linking by default, so we don't
13287 # have to do anything special.
13288 aix_use_runtimelinking=no
13289 exp_sym_flag='-Bexport'
13292 aix_use_runtimelinking=no
13294 # Test if we are trying to use run time linking or normal
13295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13296 # need to do runtime linking.
13297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13298 for ld_flag in $LDFLAGS; do
13301 aix_use_runtimelinking=yes
13309 exp_sym_flag='-bexport'
13310 no_entry_flag='-bnoentry'
13313 # When large executables or shared objects are built, AIX ld can
13314 # have problems creating the table of contents. If linking a library
13315 # or program results in "error TOC overflow" add -mminimal-toc to
13316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13319 archive_cmds_CXX=''
13320 hardcode_direct_CXX=yes
13321 hardcode_direct_absolute_CXX=yes
13322 hardcode_libdir_separator_CXX=':'
13323 link_all_deplibs_CXX=yes
13324 file_list_spec_CXX='${wl}-f,'
13326 if test "$GXX" = yes; then
13327 case $host_os in aix4.[012]|aix4.[012].*)
13328 # We only want to do this on AIX 4.2 and lower, the check
13329 # below for broken collect2 doesn't work under 4.3+
13330 collect2name=`${CC} -print-prog-name=collect2`
13331 if test -f "$collect2name" &&
13332 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13334 # We have reworked collect2
13337 # We have old collect2
13338 hardcode_direct_CXX=unsupported
13339 # It fails to find uninstalled libraries when the uninstalled
13340 # path is not listed in the libpath. Setting hardcode_minus_L
13341 # to unsupported forces relinking
13342 hardcode_minus_L_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='-L$libdir'
13344 hardcode_libdir_separator_CXX=
13347 shared_flag='-shared'
13348 if test "$aix_use_runtimelinking" = yes; then
13349 shared_flag="$shared_flag "'${wl}-G'
13353 if test "$host_cpu" = ia64; then
13354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13355 # chokes on -Wl,-G. The following line is correct:
13358 if test "$aix_use_runtimelinking" = yes; then
13359 shared_flag='${wl}-G'
13361 shared_flag='${wl}-bM:SRE'
13366 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13367 # It seems that -bexpall does not export symbols beginning with
13368 # underscore (_), so it is better to generate a list of symbols to
13370 always_export_symbols_CXX=yes
13371 if test "$aix_use_runtimelinking" = yes; then
13372 # Warning - without using the other runtime loading flags (-brtl),
13373 # -berok will link without error, but may produce a broken library.
13374 allow_undefined_flag_CXX='-berok'
13375 # Determine the default libpath from the value encoded in an empty
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_cxx_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest$ac_exeext &&
13409 $as_test_x conftest$ac_exeext; then
13411 lt_aix_libpath_sed='
13412 /Import File Strings/,/^$/ {
13418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$aix_libpath"; then
13421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13434 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13436 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13438 if test "$host_cpu" = ia64; then
13439 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13440 allow_undefined_flag_CXX="-z nodefs"
13441 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13443 # Determine the default libpath from the value encoded in an
13444 # empty executable.
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (ac_try="$ac_link"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_cxx_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest$ac_exeext &&
13477 $as_test_x conftest$ac_exeext; then
13479 lt_aix_libpath_sed='
13480 /Import File Strings/,/^$/ {
13486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 # Check for a 64-bit object if we didn't find anything.
13488 if test -z "$aix_libpath"; then
13489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13499 conftest$ac_exeext conftest.$ac_ext
13500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13502 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13503 # Warning - without using the other run time loading flags,
13504 # -berok will link without error, but may produce a broken library.
13505 no_undefined_flag_CXX=' ${wl}-bernotok'
13506 allow_undefined_flag_CXX=' ${wl}-berok'
13507 # Exported symbols can be pulled into shared objects from archives
13508 whole_archive_flag_spec_CXX='$convenience'
13509 archive_cmds_need_lc_CXX=yes
13510 # This is similar to how AIX traditionally builds its shared
13512 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13519 allow_undefined_flag_CXX=unsupported
13520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13521 # support --undefined. This deserves some investigation. FIXME
13522 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 case $cc_basename in
13531 # FIXME: insert proper C++ library support
13537 cygwin* | mingw* | pw32* | cegcc*)
13538 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13539 # as there is no search path for DLLs.
13540 hardcode_libdir_flag_spec_CXX='-L$libdir'
13541 allow_undefined_flag_CXX=unsupported
13542 always_export_symbols_CXX=no
13543 enable_shared_with_static_runtimes_CXX=yes
13545 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13547 # If the export-symbols file already is a .def file (1st line
13548 # is EXPORTS), use it as is; otherwise, prepend...
13549 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13550 cp $export_symbols $output_objdir/$soname.def;
13552 echo EXPORTS > $output_objdir/$soname.def;
13553 cat $export_symbols >> $output_objdir/$soname.def;
13555 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13560 darwin* | rhapsody*)
13563 archive_cmds_need_lc_CXX=no
13564 hardcode_direct_CXX=no
13565 hardcode_automatic_CXX=yes
13566 hardcode_shlibpath_var_CXX=unsupported
13567 whole_archive_flag_spec_CXX=''
13568 link_all_deplibs_CXX=yes
13569 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13570 case $cc_basename in
13571 ifort*) _lt_dar_can_shared=yes ;;
13572 *) _lt_dar_can_shared=$GCC ;;
13574 if test "$_lt_dar_can_shared" = "yes"; then
13575 output_verbose_link_cmd=echo
13576 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13577 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13578 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13579 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13580 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13581 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13582 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13592 case $cc_basename in
13594 # FIXME: insert proper C++ library support
13598 # Green Hills C++ Compiler
13599 # FIXME: insert proper C++ library support
13603 # FIXME: insert proper C++ library support
13610 # C++ shared libraries reported to be fairly broken before
13616 archive_cmds_need_lc_CXX=no
13619 freebsd* | dragonfly*)
13620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13630 hardcode_libdir_separator_CXX=:
13631 export_dynamic_flag_spec_CXX='${wl}-E'
13632 hardcode_direct_CXX=yes
13633 hardcode_minus_L_CXX=yes # Not in the search PATH,
13634 # but as the default
13635 # location of the library.
13637 case $cc_basename in
13639 # FIXME: insert proper C++ library support
13643 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13644 # Commands to make compiler produce verbose output that lists
13645 # what "hidden" libraries, object files and flags are used when
13646 # linking a shared library.
13648 # There doesn't appear to be a way to prevent this compiler from
13649 # explicitly linking system object files so we need to strip them
13650 # from the output so that they don't get included in the library
13652 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13655 if test "$GXX" = yes; then
13656 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13658 # FIXME: insert proper C++ library support
13666 if test $with_gnu_ld = no; then
13667 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13668 hardcode_libdir_separator_CXX=:
13674 export_dynamic_flag_spec_CXX='${wl}-E'
13680 hardcode_direct_CXX=no
13681 hardcode_shlibpath_var_CXX=no
13684 hardcode_direct_CXX=yes
13685 hardcode_direct_absolute_CXX=yes
13686 hardcode_minus_L_CXX=yes # Not in the search PATH,
13687 # but as the default
13688 # location of the library.
13692 case $cc_basename in
13694 # FIXME: insert proper C++ library support
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13713 # There doesn't appear to be a way to prevent this compiler from
13714 # explicitly linking system object files so we need to strip them
13715 # from the output so that they don't get included in the library
13717 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13720 if test "$GXX" = yes; then
13721 if test $with_gnu_ld = no; then
13724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13735 # FIXME: insert proper C++ library support
13743 hardcode_direct_CXX=no
13744 hardcode_shlibpath_var_CXX=no
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='${wl}-E'
13747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13748 # Instead, shared libraries are loaded at an image base (0x10000000 by
13749 # default) and relocated if they conflict, which is a slow very memory
13750 # consuming and fragmenting process. To avoid this, we pick a random,
13751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13753 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13754 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13757 case $cc_basename in
13760 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13762 # Archives containing C++ object files must be created using
13763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13764 # necessary to make sure instantiated templates are included
13766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13769 if test "$GXX" = yes; then
13770 if test "$with_gnu_ld" = no; then
13771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13776 link_all_deplibs_CXX=yes
13779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13780 hardcode_libdir_separator_CXX=:
13781 inherit_rpath_CXX=yes
13784 linux* | k*bsd*-gnu)
13785 case $cc_basename in
13787 # Kuck and Associates, Inc. (KAI) C++ Compiler
13789 # KCC will only create a shared library if the output file
13790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13791 # to its proper name (with version) after linking.
13792 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13793 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13794 # Commands to make compiler produce verbose output that lists
13795 # what "hidden" libraries, object files and flags are used when
13796 # linking a shared library.
13798 # There doesn't appear to be a way to prevent this compiler from
13799 # explicitly linking system object files so we need to strip them
13800 # from the output so that they don't get included in the library
13802 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807 # Archives containing C++ object files must be created using
13808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13814 # version 8.0 and above of icpc choke on multiply defined symbols
13815 # if we add $predep_objects and $postdep_objects, however 7.1 and
13816 # earlier do not add the objects themselves.
13817 case `$CC -V 2>&1` in
13819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13822 *) # Version 8.0 or newer
13825 ia64*) tmp_idyn=' -i_dynamic';;
13827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13831 archive_cmds_need_lc_CXX=no
13832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13837 # Portland Group C++ compiler
13839 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13840 prelink_cmds_CXX='tpldir=Template.dir~
13842 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13843 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13844 old_archive_cmds_CXX='tpldir=Template.dir~
13846 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13847 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13849 archive_cmds_CXX='tpldir=Template.dir~
13851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13853 archive_expsym_cmds_CXX='tpldir=Template.dir~
13855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13856 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13858 *) # Version 6 will use weak symbols
13859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13864 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13866 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13871 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13873 runpath_var=LD_RUN_PATH
13874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13875 hardcode_libdir_separator_CXX=:
13877 # Commands to make compiler produce verbose output that lists
13878 # what "hidden" libraries, object files and flags are used when
13879 # linking a shared library.
13881 # There doesn't appear to be a way to prevent this compiler from
13882 # explicitly linking system object files so we need to strip them
13883 # from the output so that they don't get included in the library
13885 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13888 # IBM XL 8.0 on PPC, with GNU ld
13889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13891 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 if test "x$supports_anon_versioning" = xyes; then
13893 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13895 echo "local: *; };" >> $output_objdir/$libname.ver~
13896 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13900 case `$CC -V 2>&1 | sed 5q` in
13903 no_undefined_flag_CXX=' -zdefs'
13904 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13906 hardcode_libdir_flag_spec_CXX='-R$libdir'
13907 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13908 compiler_needs_object_CXX=yes
13910 # Not sure whether something based on
13911 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13913 output_verbose_link_cmd='echo'
13915 # Archives containing C++ object files must be created using
13916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13917 # necessary to make sure instantiated templates are included
13919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13927 # FIXME: insert proper C++ library support
13932 # FIXME: insert proper C++ library support
13937 case $cc_basename in
13939 # FIXME: insert proper C++ library support
13943 # FIXME: insert proper C++ library support
13950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13951 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13953 hardcode_libdir_flag_spec_CXX='-R$libdir'
13954 hardcode_direct_CXX=yes
13955 hardcode_shlibpath_var_CXX=no
13957 # Workaround some broken pre-1.5 toolchains
13958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13966 # C++ shared libraries are fairly broken
13971 if test -f /usr/libexec/ld.so; then
13972 hardcode_direct_CXX=yes
13973 hardcode_shlibpath_var_CXX=no
13974 hardcode_direct_absolute_CXX=yes
13975 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13978 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13979 export_dynamic_flag_spec_CXX='${wl}-E'
13980 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13982 output_verbose_link_cmd=echo
13988 osf3* | osf4* | osf5*)
13989 case $cc_basename in
13991 # Kuck and Associates, Inc. (KAI) C++ Compiler
13993 # KCC will only create a shared library if the output file
13994 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13995 # to its proper name (with version) after linking.
13996 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999 hardcode_libdir_separator_CXX=:
14001 # Archives containing C++ object files must be created using
14002 # the KAI C++ compiler.
14004 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14005 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14009 # Rational C++ 2.4.1
14010 # FIXME: insert proper C++ library support
14016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14017 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14021 allow_undefined_flag_CXX=' -expect_unresolved \*'
14022 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14023 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14024 echo "-hidden">> $lib.exp~
14025 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14031 hardcode_libdir_separator_CXX=:
14033 # Commands to make compiler produce verbose output that lists
14034 # what "hidden" libraries, object files and flags are used when
14035 # linking a shared library.
14037 # There doesn't appear to be a way to prevent this compiler from
14038 # explicitly linking system object files so we need to strip them
14039 # from the output so that they don't get included in the library
14041 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14045 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14048 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14051 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056 hardcode_libdir_separator_CXX=:
14058 # Commands to make compiler produce verbose output that lists
14059 # what "hidden" libraries, object files and flags are used when
14060 # linking a shared library.
14061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14064 # FIXME: insert proper C++ library support
14072 # FIXME: insert proper C++ library support
14077 case $cc_basename in
14080 # FIXME: insert proper C++ library support
14085 # FIXME: insert proper C++ library support
14089 # FIXME: insert proper C++ library support
14096 case $cc_basename in
14098 # Sun C++ 4.2, 5.x and Centerline C++
14099 archive_cmds_need_lc_CXX=yes
14100 no_undefined_flag_CXX=' -zdefs'
14101 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14102 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14103 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14105 hardcode_libdir_flag_spec_CXX='-R$libdir'
14106 hardcode_shlibpath_var_CXX=no
14108 solaris2.[0-5] | solaris2.[0-5].*) ;;
14110 # The compiler driver will combine and reorder linker options,
14111 # but understands `-z linker_flag'.
14112 # Supported since Solaris 2.6 (maybe 2.5.1?)
14113 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14116 link_all_deplibs_CXX=yes
14118 output_verbose_link_cmd='echo'
14120 # Archives containing C++ object files must be created using
14121 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14122 # necessary to make sure instantiated templates are included
14124 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14127 # Green Hills C++ Compiler
14128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130 # The C++ compiler must be used to create the archive.
14131 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14134 # GNU C++ compiler with Solaris linker
14135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14137 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14138 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14139 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14140 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14142 # Commands to make compiler produce verbose output that lists
14143 # what "hidden" libraries, object files and flags are used when
14144 # linking a shared library.
14145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14147 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14149 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14150 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14151 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14156 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14159 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14161 solaris2.[0-5] | solaris2.[0-5].*) ;;
14163 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14172 no_undefined_flag_CXX='${wl}-z,text'
14173 archive_cmds_need_lc_CXX=no
14174 hardcode_shlibpath_var_CXX=no
14175 runpath_var='LD_RUN_PATH'
14177 case $cc_basename in
14179 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 sysv5* | sco3.2v5* | sco5v6*)
14190 # Note: We can NOT use -z defs as we might desire, because we do not
14191 # link with -lc, and that would cause any symbols used from libc to
14192 # always be unresolved, which means just about no library would
14193 # ever link correctly. If we're not using GNU ld we use -z text
14194 # though, which does catch some bad symbols but isn't as heavy-handed
14196 no_undefined_flag_CXX='${wl}-z,text'
14197 allow_undefined_flag_CXX='${wl}-z,nodefs'
14198 archive_cmds_need_lc_CXX=no
14199 hardcode_shlibpath_var_CXX=no
14200 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14201 hardcode_libdir_separator_CXX=':'
14202 link_all_deplibs_CXX=yes
14203 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14204 runpath_var='LD_RUN_PATH'
14206 case $cc_basename in
14208 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 case $cc_basename in
14221 # NonStop-UX NCC 3.20
14222 # FIXME: insert proper C++ library support
14226 # FIXME: insert proper C++ library support
14233 # FIXME: insert proper C++ library support
14238 # FIXME: insert proper C++ library support
14243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14245 test "$ld_shlibs_CXX" = no && can_build_shared=no
14251 ## There is no encapsulation within the following macros, do not change
14252 ## the running order or otherwise move them around unless you know exactly
14253 ## what you are doing...
14254 # Dependencies to place before and after the object being linked:
14255 predep_objects_CXX=
14256 postdep_objects_CXX=
14259 compiler_lib_search_path_CXX=
14261 cat > conftest.$ac_ext <<_LT_EOF
14265 Foo (void) { a = 0; }
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; then
14276 # Parse the compiler output and extract the necessary
14277 # objects, libraries and library flags.
14279 # Sentinel used to keep track of whether or not we are before
14280 # the conftest object file.
14281 pre_test_object_deps_done=no
14283 for p in `eval "$output_verbose_link_cmd"`; do
14287 # Some compilers place space between "-{L,R}" and the path.
14288 # Remove the space.
14289 if test $p = "-L" ||
14290 test $p = "-R"; then
14297 if test "$pre_test_object_deps_done" = no; then
14300 # Internal compiler library paths should come after those
14301 # provided the user. The postdeps already come after the
14302 # user supplied libs so there is no need to process them.
14303 if test -z "$compiler_lib_search_path_CXX"; then
14304 compiler_lib_search_path_CXX="${prev}${p}"
14306 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14309 # The "-l" case would never come before the object being
14310 # linked, so don't bother handling this case.
14313 if test -z "$postdeps_CXX"; then
14314 postdeps_CXX="${prev}${p}"
14316 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14322 # This assumes that the test object file only shows up
14323 # once in the compiler output.
14324 if test "$p" = "conftest.$objext"; then
14325 pre_test_object_deps_done=yes
14329 if test "$pre_test_object_deps_done" = no; then
14330 if test -z "$predep_objects_CXX"; then
14331 predep_objects_CXX="$p"
14333 predep_objects_CXX="$predep_objects_CXX $p"
14336 if test -z "$postdep_objects_CXX"; then
14337 postdep_objects_CXX="$p"
14339 postdep_objects_CXX="$postdep_objects_CXX $p"
14344 *) ;; # Ignore the rest.
14352 echo "libtool.m4: error: problem compiling CXX test program"
14355 $RM -f confest.$objext
14357 # PORTME: override above test on systems where it is broken
14360 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14361 # hack all around it, let's just trust "g++" to DTRT.
14362 predep_objects_CXX=
14363 postdep_objects_CXX=
14368 case `$CC -V 2>&1 | sed 5q` in
14372 # The more standards-conforming stlport4 library is
14373 # incompatible with the Cstd library. Avoid specifying
14374 # it if it's in CXXFLAGS. Ignore libCrun as
14375 # -library=stlport4 depends on it.
14376 case " $CXX $CXXFLAGS " in
14377 *" -library=stlport4 "*)
14378 solaris_use_stlport4=yes
14382 if test "$solaris_use_stlport4" != yes; then
14383 postdeps_CXX='-library=Cstd -library=Crun'
14390 case $cc_basename in
14392 # The more standards-conforming stlport4 library is
14393 # incompatible with the Cstd library. Avoid specifying
14394 # it if it's in CXXFLAGS. Ignore libCrun as
14395 # -library=stlport4 depends on it.
14396 case " $CXX $CXXFLAGS " in
14397 *" -library=stlport4 "*)
14398 solaris_use_stlport4=yes
14402 # Adding this requires a known-good setup of shared libraries for
14403 # Sun compiler versions before 5.6, else PIC objects from an old
14404 # archive will be linked into the output, leading to subtle bugs.
14405 if test "$solaris_use_stlport4" != yes; then
14406 postdeps_CXX='-library=Cstd -library=Crun'
14414 case " $postdeps_CXX " in
14415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14417 compiler_lib_search_dirs_CXX=
14418 if test -n "${compiler_lib_search_path_CXX}"; then
14419 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14452 lt_prog_compiler_wl_CXX=
14453 lt_prog_compiler_pic_CXX=
14454 lt_prog_compiler_static_CXX=
14456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14459 # C++ specific cases for pic, static, wl, etc.
14460 if test "$GXX" = yes; then
14461 lt_prog_compiler_wl_CXX='-Wl,'
14462 lt_prog_compiler_static_CXX='-static'
14466 # All AIX code is PIC.
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static_CXX='-Bstatic'
14476 # see comment about AmigaOS4 .so support
14477 lt_prog_compiler_pic_CXX='-fPIC'
14480 # FIXME: we need at least 68020 code to build shared libraries, but
14481 # adding the `-m68020' flag to GCC prevents building anything better,
14483 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489 # PIC is the default for these OSes.
14491 mingw* | cygwin* | os2* | pw32* | cegcc*)
14492 # This hack is so that the source file can tell whether it is being
14493 # built for inclusion in a dll (and should export symbols for example).
14494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14495 # (--disable-auto-import) libraries
14496 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14498 darwin* | rhapsody*)
14499 # PIC is the default on this platform
14500 # Common symbols not allowed in MH_DYLIB files
14501 lt_prog_compiler_pic_CXX='-fno-common'
14504 # DJGPP does not support shared libraries at all
14505 lt_prog_compiler_pic_CXX=
14508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14509 # Instead, we relocate shared libraries at runtime.
14512 if test -d /usr/nec; then
14513 lt_prog_compiler_pic_CXX=-Kconform_pic
14517 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14518 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14519 # sets the default TLS model and affects inlining.
14524 lt_prog_compiler_pic_CXX='-fPIC'
14529 # QNX uses GNU C++, but need to define -shared option too, otherwise
14530 # it will coredump.
14531 lt_prog_compiler_pic_CXX='-fPIC -shared'
14534 lt_prog_compiler_pic_CXX='-fPIC'
14540 # All AIX code is PIC.
14541 if test "$host_cpu" = ia64; then
14542 # AIX 5 now supports IA64 processor
14543 lt_prog_compiler_static_CXX='-Bstatic'
14545 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14549 case $cc_basename in
14551 # Green Hills C++ Compiler
14552 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14557 case $cc_basename in
14559 lt_prog_compiler_pic_CXX='-KPIC'
14562 # Green Hills C++ Compiler
14563 lt_prog_compiler_pic_CXX='-pic'
14569 freebsd* | dragonfly*)
14570 # FreeBSD uses GNU C++
14572 hpux9* | hpux10* | hpux11*)
14573 case $cc_basename in
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14577 if test "$host_cpu" != ia64; then
14578 lt_prog_compiler_pic_CXX='+Z'
14582 lt_prog_compiler_wl_CXX='-Wl,'
14583 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14589 lt_prog_compiler_pic_CXX='+Z'
14598 # This is c89, which is MS Visual C++ (no shared libs)
14599 # Anyone wants to do a port?
14601 irix5* | irix6* | nonstopux*)
14602 case $cc_basename in
14604 lt_prog_compiler_wl_CXX='-Wl,'
14605 lt_prog_compiler_static_CXX='-non_shared'
14606 # CC pic flag -KPIC is the default.
14612 linux* | k*bsd*-gnu)
14613 case $cc_basename in
14616 lt_prog_compiler_wl_CXX='--backend -Wl,'
14617 lt_prog_compiler_pic_CXX='-fPIC'
14620 # old Intel C++ for x86_64 which still supported -KPIC.
14621 lt_prog_compiler_wl_CXX='-Wl,'
14622 lt_prog_compiler_pic_CXX='-KPIC'
14623 lt_prog_compiler_static_CXX='-static'
14626 # Intel C++, used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-fPIC'
14630 lt_prog_compiler_static_CXX='-static'
14633 # Portland Group C++ compiler
14634 lt_prog_compiler_wl_CXX='-Wl,'
14635 lt_prog_compiler_pic_CXX='-fpic'
14636 lt_prog_compiler_static_CXX='-Bstatic'
14640 # Make sure the PIC flag is empty. It appears that all Alpha
14641 # Linux and Compaq Tru64 Unix objects are PIC.
14642 lt_prog_compiler_pic_CXX=
14643 lt_prog_compiler_static_CXX='-non_shared'
14646 # IBM XL 8.0 on PPC
14647 lt_prog_compiler_wl_CXX='-Wl,'
14648 lt_prog_compiler_pic_CXX='-qpic'
14649 lt_prog_compiler_static_CXX='-qstaticlink'
14652 case `$CC -V 2>&1 | sed 5q` in
14655 lt_prog_compiler_pic_CXX='-KPIC'
14656 lt_prog_compiler_static_CXX='-Bstatic'
14657 lt_prog_compiler_wl_CXX='-Qoption ld '
14668 case $cc_basename in
14670 lt_prog_compiler_pic_CXX='-W c,exportall'
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic_CXX='-fPIC -shared'
14683 osf3* | osf4* | osf5*)
14684 case $cc_basename in
14686 lt_prog_compiler_wl_CXX='--backend -Wl,'
14689 # Rational C++ 2.4.1
14690 lt_prog_compiler_pic_CXX='-pic'
14693 # Digital/Compaq C++
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 # Make sure the PIC flag is empty. It appears that all Alpha
14696 # Linux and Compaq Tru64 Unix objects are PIC.
14697 lt_prog_compiler_pic_CXX=
14698 lt_prog_compiler_static_CXX='-non_shared'
14707 case $cc_basename in
14709 # Sun C++ 4.2, 5.x and Centerline C++
14710 lt_prog_compiler_pic_CXX='-KPIC'
14711 lt_prog_compiler_static_CXX='-Bstatic'
14712 lt_prog_compiler_wl_CXX='-Qoption ld '
14715 # Green Hills C++ Compiler
14716 lt_prog_compiler_pic_CXX='-PIC'
14723 case $cc_basename in
14726 lt_prog_compiler_pic_CXX='-pic'
14727 lt_prog_compiler_static_CXX='-Bstatic'
14731 lt_prog_compiler_pic_CXX='-pic'
14737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14738 case $cc_basename in
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_pic_CXX='-KPIC'
14742 lt_prog_compiler_static_CXX='-Bstatic'
14747 case $cc_basename in
14749 # NonStop-UX NCC 3.20
14750 lt_prog_compiler_pic_CXX='-KPIC'
14759 lt_prog_compiler_can_build_shared_CXX=no
14765 # For platforms which do not support PIC, -DPIC is meaningless:
14767 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14774 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14779 # Check to make sure the PIC flag actually works.
14781 if test -n "$lt_prog_compiler_pic_CXX"; then
14782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_prog_compiler_pic_works_CXX=no
14788 ac_outfile=conftest.$ac_objext
14789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14791 # Insert the option either (1) after the last *FLAGS variable, or
14792 # (2) before a word containing "conftest.", or (3) at the end.
14793 # Note that $ac_compile itself does not contain backslashes and begins
14794 # with a dollar sign (not a hyphen), so the echo should work correctly.
14795 # The option is referenced via a variable to avoid confusing sed.
14796 lt_compile=`echo "$ac_compile" | $SED \
14797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799 -e 's:$: $lt_compiler_flag:'`
14800 (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801 (eval "$lt_compile" 2>conftest.err)
14803 cat conftest.err >&5
14804 echo "$as_me:14804: \$? = $ac_status" >&5
14805 if (exit $ac_status) && test -s "$ac_outfile"; then
14806 # The compiler can only warn and ignore the option if not recognized
14807 # So say no if there are warnings other than the usual output.
14808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811 lt_cv_prog_compiler_pic_works_CXX=yes
14817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14818 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14820 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14821 case $lt_prog_compiler_pic_CXX in
14823 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14826 lt_prog_compiler_pic_CXX=
14827 lt_prog_compiler_can_build_shared_CXX=no
14835 # Check to make sure the static flag actually works.
14837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 lt_cv_prog_compiler_static_works_CXX=no
14844 save_LDFLAGS="$LDFLAGS"
14845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14846 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14848 # The linker can only warn and ignore the option if not recognized
14849 # So say no if there are warnings
14850 if test -s conftest.err; then
14851 # Append any errors to the config.log.
14852 cat conftest.err 1>&5
14853 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14855 if diff conftest.exp conftest.er2 >/dev/null; then
14856 lt_cv_prog_compiler_static_works_CXX=yes
14859 lt_cv_prog_compiler_static_works_CXX=yes
14863 LDFLAGS="$save_LDFLAGS"
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14869 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14872 lt_prog_compiler_static_CXX=
14878 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 lt_cv_prog_compiler_c_o_CXX=no
14884 $RM -r conftest 2>/dev/null
14888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="-o out/conftest2.$ac_objext"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>out/conftest.err)
14902 cat out/conftest.err >&5
14903 echo "$as_me:14903: \$? = $ac_status" >&5
14904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings
14908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14911 lt_cv_prog_compiler_c_o_CXX=yes
14916 # SGI C++ compiler will create directory out/ii_files/ for
14917 # template instantiation
14918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14919 $RM out/* && rmdir out
14925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 lt_cv_prog_compiler_c_o_CXX=no
14936 $RM -r conftest 2>/dev/null
14940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="-o out/conftest2.$ac_objext"
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 lt_compile=`echo "$ac_compile" | $SED \
14948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950 -e 's:$: $lt_compiler_flag:'`
14951 (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
14952 (eval "$lt_compile" 2>out/conftest.err)
14954 cat out/conftest.err >&5
14955 echo "$as_me:14955: \$? = $ac_status" >&5
14956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings
14960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14963 lt_cv_prog_compiler_c_o_CXX=yes
14968 # SGI C++ compiler will create directory out/ii_files/ for
14969 # template instantiation
14970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14971 $RM out/* && rmdir out
14977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14983 hard_links="nottested"
14984 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14985 # do not overwrite the value of need_locks provided by the user
14986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14987 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992 ln conftest.a conftest.b 2>&5 || hard_links=no
14993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994 { echo "$as_me:$LINENO: result: $hard_links" >&5
14995 echo "${ECHO_T}$hard_links" >&6; }
14996 if test "$hard_links" = no; then
14997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14998 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15013 # If we're using GNU nm, then we don't want the "-C" option.
15014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15016 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15018 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15022 export_symbols_cmds_CXX="$ltdll_cmds"
15024 cygwin* | mingw* | cegcc*)
15025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15031 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15033 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15034 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15037 with_gnu_ld_CXX=$with_gnu_ld
15045 # Do we need to explicitly link libc?
15047 case "x$archive_cmds_need_lc_CXX" in
15049 # Assume -lc should be added
15050 archive_cmds_need_lc_CXX=yes
15052 if test "$enable_shared" = yes && test "$GCC" = yes; then
15053 case $archive_cmds_CXX in
15055 # FIXME: we may have to deal with multi-command sequences.
15058 # Test whether the compiler implicitly links with -lc since on some
15059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060 # to ld, don't add -lc before -lgcc.
15061 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } 2>conftest.err; then
15073 libobjs=conftest.$ac_objext
15075 wl=$lt_prog_compiler_wl_CXX
15076 pic_flag=$lt_prog_compiler_pic_CXX
15082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15083 allow_undefined_flag_CXX=
15084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15085 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }
15090 archive_cmds_need_lc_CXX=no
15092 archive_cmds_need_lc_CXX=yes
15094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15096 cat conftest.err 1>&5
15099 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15173 library_names_spec=
15174 libname_spec='lib$name'
15178 postuninstall_cmds=
15182 shlibpath_overrides_runpath=unknown
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186 need_lib_prefix=unknown
15187 hardcode_into_libs=no
15189 # when you set need_version to no, make sure it does not cause -set_version
15190 # flags to be left without arguments
15191 need_version=unknown
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197 shlibpath_var=LIBPATH
15199 # AIX 3 has no versioning support, so we append a major version to the name.
15200 soname_spec='${libname}${release}${shared_ext}$major'
15207 hardcode_into_libs=yes
15208 if test "$host_cpu" = ia64; then
15209 # AIX 5 supports IA64
15210 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15213 # With GCC up to 2.95.x, collect2 would create an import file
15214 # for dependence libraries. The import file would start with
15215 # the line `#! .'. This would cause the generated library to
15216 # depend on `.', always an invalid library. This was fixed in
15217 # development snapshots of GCC prior to 3.0.
15219 aix4 | aix4.[01] | aix4.[01].*)
15220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15225 can_build_shared=no
15229 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230 # soname into executable. Probably we can add versioning support to
15231 # collect2, so additional links can be useful in future.
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234 # instead of lib<name>.a to let people know that these are not
15235 # typical AIX shared libraries.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 # We preserve .a as extension for shared libraries through AIX4.2
15239 # and later when we are not doing run time linking.
15240 library_names_spec='${libname}${release}.a $libname.a'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15243 shlibpath_var=LIBPATH
15250 # Since July 2007 AmigaOS4 officially supports .so libraries.
15251 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 library_names_spec='$libname.ixlibrary $libname.a'
15256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15263 library_names_spec='${libname}${shared_ext}'
15264 dynamic_linker="$host_os ld.so"
15265 shlibpath_var=LIBRARY_PATH
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15277 # the default ld.so.conf also contains /usr/contrib/lib and
15278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15279 # libtool to hard-code these into programs
15282 cygwin* | mingw* | pw32* | cegcc*)
15283 version_type=windows
15288 case $GCC,$host_os in
15289 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15290 library_names_spec='$libname.dll.a'
15291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15292 postinstall_cmds='base_file=`basename \${file}`~
15293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15294 dldir=$destdir/`dirname \$dlpath`~
15295 test -d \$dldir || mkdir -p \$dldir~
15296 $install_prog $dir/$dlname \$dldir/$dlname~
15297 chmod a+x \$dldir/$dlname~
15298 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15299 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15302 dlpath=$dir/\$dldll~
15304 shlibpath_overrides_runpath=yes
15308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15313 # MinGW DLLs use traditional 'lib' prefix
15314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15316 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15317 # It is most probably a Windows format PATH printed by
15318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15319 # path with ; separators, and with drive letters. We can handle the
15320 # drive letters (cygwin fileutils understands them), so leave them,
15321 # especially as we might pass files found there to a mingw objdump,
15322 # which wouldn't understand a cygwinified path. Ahh.
15323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15329 # pw32 DLLs use 'pw' prefix rather than 'lib'
15330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15339 dynamic_linker='Win32 ld.exe'
15340 # FIXME: first we should search . and the directory the executable is in
15344 darwin* | rhapsody*)
15345 dynamic_linker="$host_os dyld"
15346 version_type=darwin
15349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15350 soname_spec='${libname}${release}${major}$shared_ext'
15351 shlibpath_overrides_runpath=yes
15352 shlibpath_var=DYLD_LIBRARY_PATH
15353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15371 freebsd* | dragonfly*)
15372 # DragonFly does not have aout. When/if they implement a new
15373 # versioning mechanism, adjust this.
15374 if test -x /usr/bin/objformat; then
15375 objformat=`/usr/bin/objformat`
15378 freebsd[123]*) objformat=aout ;;
15379 *) objformat=elf ;;
15382 version_type=freebsd-$objformat
15383 case $version_type in
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15399 freebsd3.[01]* | freebsdelf3.[01]*)
15400 shlibpath_overrides_runpath=yes
15401 hardcode_into_libs=yes
15403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15408 *) # from 4.6 on, and DragonFly
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 hardcode_into_libs=yes
15425 hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15468 postinstall_cmds='chmod 555 $lib'
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15483 irix5* | irix6* | nonstopux*)
15485 nonstopux*) version_type=nonstopux ;;
15487 if test "$lt_cv_prog_gnu_ld" = yes; then
15495 soname_spec='${libname}${release}${shared_ext}$major'
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 irix5* | nonstopux*)
15499 libsuff= shlibsuff=
15502 case $LD in # libtool.m4 will add one of these switches to LD
15503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15504 libsuff= shlibsuff= libmagic=32-bit;;
15505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15506 libsuff=32 shlibsuff=N32 libmagic=N32;;
15507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15509 *) libsuff= shlibsuff= libmagic=never-match;;
15513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15514 shlibpath_overrides_runpath=no
15515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15517 hardcode_into_libs=yes
15520 # No shared lib support for Linux oldld, aout, or coff.
15521 linux*oldld* | linux*aout* | linux*coff*)
15525 # This must be Linux ELF.
15526 linux* | k*bsd*-gnu)
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 # Some binutils ld are patched to set DT_RUNPATH
15536 save_LDFLAGS=$LDFLAGS
15537 save_libdir=$libdir
15538 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15539 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_link") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } && {
15569 test -z "$ac_cxx_werror_flag" ||
15570 test ! -s conftest.err
15571 } && test -s conftest$ac_exeext &&
15572 $as_test_x conftest$ac_exeext; then
15573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15574 shlibpath_overrides_runpath=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LDFLAGS=$save_LDFLAGS
15587 libdir=$save_libdir
15589 # This implies no fast_install, which is unacceptable.
15590 # Some rework will be needed to allow for fast_install
15591 # before this can be enabled.
15592 hardcode_into_libs=yes
15594 # Append ld.so.conf contents to the search path
15595 if test -f /etc/ld.so.conf; then
15596 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15600 # We used to test for /lib/ld.so.1 and disable shared libraries on
15601 # powerpc, because MkLinux only supported shared libraries with the
15602 # GNU dynamic linker. Since this was broken with cross compilers,
15603 # most powerpc-linux boxes support dynamic linking these days and
15604 # people can always --disable-shared, the test was removed, and we
15605 # assume the GNU/Linux dynamic linker is in use.
15606 dynamic_linker='GNU/Linux ld.so'
15613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15616 dynamic_linker='NetBSD (a.out) ld.so'
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 dynamic_linker='NetBSD ld.elf_so'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=yes
15624 hardcode_into_libs=yes
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=no
15642 hardcode_into_libs=yes
15643 dynamic_linker='ldqnx.so'
15648 sys_lib_dlsearch_path_spec="/usr/lib"
15650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15652 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15653 *) need_version=no ;;
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15657 shlibpath_var=LD_LIBRARY_PATH
15658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15660 openbsd2.[89] | openbsd2.[89].*)
15661 shlibpath_overrides_runpath=no
15664 shlibpath_overrides_runpath=yes
15668 shlibpath_overrides_runpath=yes
15673 libname_spec='$name'
15676 library_names_spec='$libname${shared_ext} $libname.a'
15677 dynamic_linker='OS/2 ld.exe'
15678 shlibpath_var=LIBPATH
15681 osf3* | osf4* | osf5*)
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15705 # ldd complains unless libraries are executable
15706 postinstall_cmds='chmod +x $lib'
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 if test "$with_gnu_ld" = yes; then
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 case $host_vendor in
15728 shlibpath_overrides_runpath=no
15730 runpath_var=LD_RUN_PATH
15738 shlibpath_overrides_runpath=no
15739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15745 if test -d /usr/nec ;then
15747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15748 soname_spec='$libname${shared_ext}.$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15754 version_type=freebsd-elf
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=yes
15761 hardcode_into_libs=yes
15762 if test "$with_gnu_ld" = yes; then
15763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 sys_lib_dlsearch_path_spec='/usr/lib'
15776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=no
15783 hardcode_into_libs=yes
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15797 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15798 echo "${ECHO_T}$dynamic_linker" >&6; }
15799 test "$dynamic_linker" = no && can_build_shared=no
15801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15802 if test "$GCC" = yes; then
15803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15850 hardcode_action_CXX=
15851 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15852 test -n "$runpath_var_CXX" ||
15853 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15855 # We can hardcode non-existent directories.
15856 if test "$hardcode_direct_CXX" != no &&
15857 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15858 # have to relink, otherwise we might link with an installed library
15859 # when we should be linking with a yet-to-be-installed one
15860 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15861 test "$hardcode_minus_L_CXX" != no; then
15862 # Linking always hardcodes the temporary library directory.
15863 hardcode_action_CXX=relink
15865 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15866 hardcode_action_CXX=immediate
15869 # We cannot hardcode anything, or else we can only hardcode existing
15871 hardcode_action_CXX=unsupported
15873 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15874 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15876 if test "$hardcode_action_CXX" = relink ||
15877 test "$inherit_rpath_CXX" = yes; then
15878 # Fast installation is not supported
15879 enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881 test "$enable_shared" = no; then
15882 # Fast installation is not necessary
15883 enable_fast_install=needless
15892 fi # test -n "$compiler"
15898 with_gnu_ld=$lt_save_with_gnu_ld
15899 lt_cv_path_LDCXX=$lt_cv_path_LD
15900 lt_cv_path_LD=$lt_save_path_LD
15901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15903 fi # test "$_lt_caught_CXX_error" != yes
15906 ac_cpp='$CPP $CPPFLAGS'
15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15923 ac_config_commands="$ac_config_commands libtool"
15928 # Only expand once:
15933 if test x$use_libtool != xno; then
15934 DEFAULT_OBJECT_TYPE=".lo"
15935 DEFAULT_ARCHIVE_TYPE=".la"
15936 DEFAULT_SHARED_OBJECT_TYPE=".la"
15937 LIBTOOL="\$(LIBTOOL)"
15938 LIBTOOL_INSTALL_TARGET="libtool-install"
15939 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15940 LIBTOOL_CLEAN_TARGET="libtool-clean"
15941 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15943 DEFAULT_OBJECT_TYPE=".o"
15944 DEFAULT_ARCHIVE_TYPE=".a"
15945 DEFAULT_SHARED_OBJECT_TYPE=".so"
15946 LIBTOOL="# \$(LIBTOOL)"
15947 LIBTOOL_INSTALL_TARGET=""
15948 LIBTOOL_UNINSTALL_TARGET=""
15949 LIBTOOL_CLEAN_TARGET=""
15950 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15962 # Check whether --enable-includes was given.
15963 if test "${enable_includes+set}" = set; then
15964 enableval=$enable_includes;
15965 if test x$enableval = xyes; then
15966 install_includes=yes
15974 if test x$use_libtool != xno -a x$install_includes = xyes; then
15975 INCLUDE_INSTALL_TARGET="install-includes"
15976 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15978 INCLUDE_INSTALL_TARGET=""
15979 INCLUDE_UNINSTALL_TARGET=""
15985 { echo "$as_me:$LINENO: checking host system type" >&5
15986 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15987 if test "${ac_cv_host+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 if test "x$host_alias" = x; then
15991 ac_cv_host=$ac_cv_build
15993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15994 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15996 { (exit 1); exit 1; }; }
16000 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16001 echo "${ECHO_T}$ac_cv_host" >&6; }
16002 case $ac_cv_host in
16004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16005 echo "$as_me: error: invalid value of canonical host" >&2;}
16006 { (exit 1); exit 1; }; };;
16009 ac_save_IFS=$IFS; IFS='-'
16015 # Remember, the first character of IFS is used to create $*,
16016 # except with old shells:
16019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16023 *cygwin* ) CYGWIN=yes;;
16027 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16033 HAVE_SUN_OS_FALSE='#'
16035 HAVE_SUN_OS_TRUE='#'
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SUN_OS 1
16047 HAVE_SUN_OS_FALSE='#'
16049 HAVE_SUN_OS_TRUE='#'
16054 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16060 HAVE_OSF1_OS_FALSE='#'
16062 HAVE_OSF1_OS_TRUE='#'
16063 HAVE_OSF1_OS_FALSE=
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_OSF1_OS 1
16074 HAVE_OSF1_OS_FALSE='#'
16076 HAVE_OSF1_OS_TRUE='#'
16077 HAVE_OSF1_OS_FALSE=
16081 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16087 HAVE_AIX_OS_FALSE='#'
16089 HAVE_AIX_OS_TRUE='#'
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_AIX_OS 1
16101 HAVE_AIX_OS_FALSE='#'
16103 HAVE_AIX_OS_TRUE='#'
16108 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16114 HAVE_HPUX_OS_FALSE='#'
16116 HAVE_HPUX_OS_TRUE='#'
16117 HAVE_HPUX_OS_FALSE=
16119 cat >>confdefs.h <<\_ACEOF
16120 #define HAVE_HPUX_OS 1
16128 HAVE_HPUX_OS_FALSE='#'
16130 HAVE_HPUX_OS_TRUE='#'
16131 HAVE_HPUX_OS_FALSE=
16135 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16140 HAVE_LINUX_OS_TRUE=
16141 HAVE_LINUX_OS_FALSE='#'
16143 HAVE_LINUX_OS_TRUE='#'
16144 HAVE_LINUX_OS_FALSE=
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_LINUX_OS 1
16154 HAVE_LINUX_OS_TRUE=
16155 HAVE_LINUX_OS_FALSE='#'
16157 HAVE_LINUX_OS_TRUE='#'
16158 HAVE_LINUX_OS_FALSE=
16162 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16167 HAVE_FREEBSD_OS_TRUE=
16168 HAVE_FREEBSD_OS_FALSE='#'
16170 HAVE_FREEBSD_OS_TRUE='#'
16171 HAVE_FREEBSD_OS_FALSE=
16173 cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_FREEBSD_OS 1
16181 HAVE_FREEBSD_OS_TRUE=
16182 HAVE_FREEBSD_OS_FALSE='#'
16184 HAVE_FREEBSD_OS_TRUE='#'
16185 HAVE_FREEBSD_OS_FALSE=
16189 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16194 HAVE_NETBSD_OS_TRUE=
16195 HAVE_NETBSD_OS_FALSE='#'
16197 HAVE_NETBSD_OS_TRUE='#'
16198 HAVE_NETBSD_OS_FALSE=
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_NETBSD_OS 1
16208 HAVE_NETBSD_OS_TRUE=
16209 HAVE_NETBSD_OS_FALSE='#'
16211 HAVE_NETBSD_OS_TRUE='#'
16212 HAVE_NETBSD_OS_FALSE=
16216 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16221 HAVE_OPENBSD_OS_TRUE=
16222 HAVE_OPENBSD_OS_FALSE='#'
16224 HAVE_OPENBSD_OS_TRUE='#'
16225 HAVE_OPENBSD_OS_FALSE=
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_OPENBSD_OS 1
16235 HAVE_OPENBSD_OS_TRUE=
16236 HAVE_OPENBSD_OS_FALSE='#'
16238 HAVE_OPENBSD_OS_TRUE='#'
16239 HAVE_OPENBSD_OS_FALSE=
16243 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16249 HAVE_BSDI_OS_FALSE='#'
16251 HAVE_BSDI_OS_TRUE='#'
16252 HAVE_BSDI_OS_FALSE=
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_BSDI_OS 1
16263 HAVE_BSDI_OS_FALSE='#'
16265 HAVE_BSDI_OS_TRUE='#'
16266 HAVE_BSDI_OS_FALSE=
16270 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16276 HAVE_SGI_OS_FALSE='#'
16278 HAVE_SGI_OS_TRUE='#'
16281 cat >>confdefs.h <<\_ACEOF
16282 #define HAVE_SGI_OS 1
16290 HAVE_SGI_OS_FALSE='#'
16292 HAVE_SGI_OS_TRUE='#'
16297 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16303 HAVE_IRIX_OS_FALSE='#'
16305 HAVE_IRIX_OS_TRUE='#'
16306 HAVE_IRIX_OS_FALSE=
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_IRIX_OS 1
16317 HAVE_IRIX_OS_FALSE='#'
16319 HAVE_IRIX_OS_TRUE='#'
16320 HAVE_IRIX_OS_FALSE=
16324 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16329 HAVE_DARWIN_OS_TRUE=
16330 HAVE_DARWIN_OS_FALSE='#'
16332 HAVE_DARWIN_OS_TRUE='#'
16333 HAVE_DARWIN_OS_FALSE=
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_DARWIN_OS 1
16343 HAVE_DARWIN_OS_TRUE=
16344 HAVE_DARWIN_OS_FALSE='#'
16346 HAVE_DARWIN_OS_TRUE='#'
16347 HAVE_DARWIN_OS_FALSE=
16352 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16353 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16354 if test "x$DISTNAME" != "x"
16356 echo "distname set to $DISTNAME"
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16384 elif test -f /etc/SuSE-release
16387 elif test -d /etc/SuSEconfig
16390 elif test -f /etc/mandrake-release
16393 elif test -f /etc/whitebox-release
16396 elif test -f /etc/redhat-release
16399 elif test -f /etc/gentoo-release
16402 elif test -f /etc/debian_version
16405 elif test -f /etc/slackware-version
16408 elif test x$host_vendor = xapple
16411 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16414 elif test -f /etc/engarde-version
16417 elif test "$CYGWIN" = yes
16420 cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_CYGWIN 1
16427 { echo "$as_me:$LINENO: result: done" >&5
16428 echo "${ECHO_T}done" >&6; }
16431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.make <<\_ACEOF
16440 @echo '@@@%%%=$(MAKE)=@@@%%%'
16442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16444 *@@@%%%=?*=@@@%%%*)
16445 eval ac_cv_prog_make_${ac_make}_set=yes;;
16447 eval ac_cv_prog_make_${ac_make}_set=no;;
16449 rm -f conftest.make
16451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16452 { echo "$as_me:$LINENO: result: yes" >&5
16453 echo "${ECHO_T}yes" >&6; }
16456 { echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6; }
16458 SET_MAKE="MAKE=${MAKE-make}"
16464 if test -n "$ac_aux_dir"; then
16465 case "$ac_aux_dir" in
16466 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16467 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16470 if test -z "$MKINSTALLDIRS"; then
16471 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16476 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16478 # Check whether --enable-nls was given.
16479 if test "${enable_nls+set}" = set; then
16480 enableval=$enable_nls; USE_NLS=$enableval
16485 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16486 echo "${ECHO_T}$USE_NLS" >&6; }
16493 # Prepare PATH_SEPARATOR.
16494 # The user is always right.
16495 if test "${PATH_SEPARATOR+set}" != set; then
16496 echo "#! /bin/sh" >conf$$.sh
16497 echo "exit 0" >>conf$$.sh
16499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16507 # Find out how to test for executable files. Don't use a zero-byte file,
16508 # as systems may use methods other than mode bits to determine executability.
16509 cat >conf$$.file <<_ASEOF
16513 chmod +x conf$$.file
16514 if test -x conf$$.file >/dev/null 2>&1; then
16515 ac_executable_p="test -x"
16517 ac_executable_p="test -f"
16521 # Extract the first word of "msgfmt", so it can be a program name with args.
16522 set dummy msgfmt; ac_word=$2
16523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16525 if test "${ac_cv_path_MSGFMT+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16533 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16534 for ac_dir in $PATH; do
16536 test -z "$ac_dir" && ac_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16539 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16540 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16541 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16542 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16549 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16553 MSGFMT="$ac_cv_path_MSGFMT"
16554 if test "$MSGFMT" != ":"; then
16555 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16556 echo "${ECHO_T}$MSGFMT" >&6; }
16558 { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16562 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16563 set dummy gmsgfmt; ac_word=$2
16564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16566 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16578 test -z "$as_dir" && as_dir=.
16579 for ac_exec_ext in '' $ac_executable_extensions; do
16580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16581 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16593 GMSGFMT=$ac_cv_path_GMSGFMT
16594 if test -n "$GMSGFMT"; then
16595 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16596 echo "${ECHO_T}$GMSGFMT" >&6; }
16598 { echo "$as_me:$LINENO: result: no" >&5
16599 echo "${ECHO_T}no" >&6; }
16605 # Prepare PATH_SEPARATOR.
16606 # The user is always right.
16607 if test "${PATH_SEPARATOR+set}" != set; then
16608 echo "#! /bin/sh" >conf$$.sh
16609 echo "exit 0" >>conf$$.sh
16611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16619 # Find out how to test for executable files. Don't use a zero-byte file,
16620 # as systems may use methods other than mode bits to determine executability.
16621 cat >conf$$.file <<_ASEOF
16625 chmod +x conf$$.file
16626 if test -x conf$$.file >/dev/null 2>&1; then
16627 ac_executable_p="test -x"
16629 ac_executable_p="test -f"
16633 # Extract the first word of "xgettext", so it can be a program name with args.
16634 set dummy xgettext; ac_word=$2
16635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16637 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 case "$XGETTEXT" in
16642 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16646 for ac_dir in $PATH; do
16648 test -z "$ac_dir" && ac_dir=.
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16651 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16652 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16653 (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
16654 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16661 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16665 XGETTEXT="$ac_cv_path_XGETTEXT"
16666 if test "$XGETTEXT" != ":"; then
16667 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16668 echo "${ECHO_T}$XGETTEXT" >&6; }
16670 { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16677 # Prepare PATH_SEPARATOR.
16678 # The user is always right.
16679 if test "${PATH_SEPARATOR+set}" != set; then
16680 echo "#! /bin/sh" >conf$$.sh
16681 echo "exit 0" >>conf$$.sh
16683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16691 # Find out how to test for executable files. Don't use a zero-byte file,
16692 # as systems may use methods other than mode bits to determine executability.
16693 cat >conf$$.file <<_ASEOF
16697 chmod +x conf$$.file
16698 if test -x conf$$.file >/dev/null 2>&1; then
16699 ac_executable_p="test -x"
16701 ac_executable_p="test -f"
16705 # Extract the first word of "msgmerge", so it can be a program name with args.
16706 set dummy msgmerge; ac_word=$2
16707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16709 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 case "$MSGMERGE" in
16714 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16717 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16718 for ac_dir in $PATH; do
16720 test -z "$ac_dir" && ac_dir=.
16721 for ac_exec_ext in '' $ac_executable_extensions; do
16722 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16723 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16724 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16725 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16732 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16736 MSGMERGE="$ac_cv_path_MSGMERGE"
16737 if test "$MSGMERGE" != ":"; then
16738 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16739 echo "${ECHO_T}$MSGMERGE" >&6; }
16741 { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16746 if test "$GMSGFMT" != ":"; then
16747 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16748 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16751 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16752 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16753 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16758 if test "$XGETTEXT" != ":"; then
16759 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16760 (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
16763 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16770 ac_config_commands="$ac_config_commands default-1"
16774 if test "X$prefix" = "XNONE"; then
16775 acl_final_prefix="$ac_default_prefix"
16777 acl_final_prefix="$prefix"
16779 if test "X$exec_prefix" = "XNONE"; then
16780 acl_final_exec_prefix='${prefix}'
16782 acl_final_exec_prefix="$exec_prefix"
16784 acl_save_prefix="$prefix"
16785 prefix="$acl_final_prefix"
16786 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16787 prefix="$acl_save_prefix"
16790 # Check whether --with-gnu-ld was given.
16791 if test "${with_gnu_ld+set}" = set; then
16792 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16797 # Prepare PATH_SEPARATOR.
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16800 echo "#! /bin/sh" >conf$$.sh
16801 echo "exit 0" >>conf$$.sh
16803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16811 if test "$GCC" = yes; then
16812 # Check if gcc -print-prog-name=ld gives a path.
16813 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16814 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16817 # gcc leaves a trailing carriage return which upsets mingw
16818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16823 # Accept absolute paths.
16824 [\\/]* | [A-Za-z]:[\\/]*)
16825 re_direlt='/[^/][^/]*/\.\./'
16826 # Canonicalize the path of ld
16827 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16828 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16829 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16831 test -z "$LD" && LD="$ac_prog"
16834 # If it fails, then pretend we aren't using GCC.
16838 # If it is relative, then search for the first ld in PATH.
16839 with_gnu_ld=unknown
16842 elif test "$with_gnu_ld" = yes; then
16843 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16844 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16846 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16847 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16849 if test "${acl_cv_path_LD+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 if test -z "$LD"; then
16853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16854 for ac_dir in $PATH; do
16855 test -z "$ac_dir" && ac_dir=.
16856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16857 acl_cv_path_LD="$ac_dir/$ac_prog"
16858 # Check to see if the program is GNU ld. I'd rather use --version,
16859 # but apparently some GNU ld's only accept -v.
16860 # Break only if it was the GNU/non-GNU ld that we prefer.
16861 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16862 *GNU* | *'with BFD'*)
16863 test "$with_gnu_ld" != no && break ;;
16865 test "$with_gnu_ld" != yes && break ;;
16871 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16875 LD="$acl_cv_path_LD"
16876 if test -n "$LD"; then
16877 { echo "$as_me:$LINENO: result: $LD" >&5
16878 echo "${ECHO_T}$LD" >&6; }
16880 { echo "$as_me:$LINENO: result: no" >&5
16881 echo "${ECHO_T}no" >&6; }
16883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16885 { (exit 1); exit 1; }; }
16886 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16888 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16892 case `$LD -v 2>&1 </dev/null` in
16893 *GNU* | *'with BFD'*)
16894 acl_cv_prog_gnu_ld=yes ;;
16896 acl_cv_prog_gnu_ld=no ;;
16899 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16900 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16901 with_gnu_ld=$acl_cv_prog_gnu_ld
16906 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16907 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16908 if test "${acl_cv_rpath+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16913 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16915 rm -f ./conftest.sh
16919 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16920 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16922 libext="$acl_cv_libext"
16923 shlibext="$acl_cv_shlibext"
16924 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16925 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16926 hardcode_direct="$acl_cv_hardcode_direct"
16927 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16928 # Check whether --enable-rpath was given.
16929 if test "${enable_rpath+set}" = set; then
16930 enableval=$enable_rpath; :
16944 acl_save_prefix="$prefix"
16945 prefix="$acl_final_prefix"
16946 acl_save_exec_prefix="$exec_prefix"
16947 exec_prefix="$acl_final_exec_prefix"
16949 eval additional_includedir=\"$includedir\"
16950 eval additional_libdir=\"$libdir\"
16952 exec_prefix="$acl_save_exec_prefix"
16953 prefix="$acl_save_prefix"
16956 # Check whether --with-libiconv-prefix was given.
16957 if test "${with_libiconv_prefix+set}" = set; then
16958 withval=$with_libiconv_prefix;
16959 if test "X$withval" = "Xno"; then
16962 if test "X$withval" = "X"; then
16964 acl_save_prefix="$prefix"
16965 prefix="$acl_final_prefix"
16966 acl_save_exec_prefix="$exec_prefix"
16967 exec_prefix="$acl_final_exec_prefix"
16969 eval additional_includedir=\"$includedir\"
16970 eval additional_libdir=\"$libdir\"
16972 exec_prefix="$acl_save_exec_prefix"
16973 prefix="$acl_save_prefix"
16976 additional_includedir="$withval/include"
16977 additional_libdir="$withval/lib"
16988 names_already_handled=
16989 names_next_round='iconv '
16990 while test -n "$names_next_round"; do
16991 names_this_round="$names_next_round"
16993 for name in $names_this_round; do
16995 for n in $names_already_handled; do
16996 if test "$n" = "$name"; then
16997 already_handled=yes
17001 if test -z "$already_handled"; then
17002 names_already_handled="$names_already_handled $name"
17003 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17004 eval value=\"\$HAVE_LIB$uppername\"
17005 if test -n "$value"; then
17006 if test "$value" = yes; then
17007 eval value=\"\$LIB$uppername\"
17008 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17009 eval value=\"\$LTLIB$uppername\"
17010 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17019 if test $use_additional = yes; then
17020 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17021 found_dir="$additional_libdir"
17022 found_so="$additional_libdir/lib$name.$shlibext"
17023 if test -f "$additional_libdir/lib$name.la"; then
17024 found_la="$additional_libdir/lib$name.la"
17027 if test -f "$additional_libdir/lib$name.$libext"; then
17028 found_dir="$additional_libdir"
17029 found_a="$additional_libdir/lib$name.$libext"
17030 if test -f "$additional_libdir/lib$name.la"; then
17031 found_la="$additional_libdir/lib$name.la"
17036 if test "X$found_dir" = "X"; then
17037 for x in $LDFLAGS $LTLIBICONV; do
17039 acl_save_prefix="$prefix"
17040 prefix="$acl_final_prefix"
17041 acl_save_exec_prefix="$exec_prefix"
17042 exec_prefix="$acl_final_exec_prefix"
17044 exec_prefix="$acl_save_exec_prefix"
17045 prefix="$acl_save_prefix"
17049 dir=`echo "X$x" | sed -e 's/^X-L//'`
17050 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17052 found_so="$dir/lib$name.$shlibext"
17053 if test -f "$dir/lib$name.la"; then
17054 found_la="$dir/lib$name.la"
17057 if test -f "$dir/lib$name.$libext"; then
17059 found_a="$dir/lib$name.$libext"
17060 if test -f "$dir/lib$name.la"; then
17061 found_la="$dir/lib$name.la"
17067 if test "X$found_dir" != "X"; then
17072 if test "X$found_dir" != "X"; then
17073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17074 if test "X$found_so" != "X"; then
17075 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17079 for x in $ltrpathdirs; do
17080 if test "X$x" = "X$found_dir"; then
17085 if test -z "$haveit"; then
17086 ltrpathdirs="$ltrpathdirs $found_dir"
17088 if test "$hardcode_direct" = yes; then
17089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17091 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17094 for x in $rpathdirs; do
17095 if test "X$x" = "X$found_dir"; then
17100 if test -z "$haveit"; then
17101 rpathdirs="$rpathdirs $found_dir"
17105 for x in $LDFLAGS $LIBICONV; do
17107 acl_save_prefix="$prefix"
17108 prefix="$acl_final_prefix"
17109 acl_save_exec_prefix="$exec_prefix"
17110 exec_prefix="$acl_final_exec_prefix"
17112 exec_prefix="$acl_save_exec_prefix"
17113 prefix="$acl_save_prefix"
17115 if test "X$x" = "X-L$found_dir"; then
17120 if test -z "$haveit"; then
17121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17123 if test "$hardcode_minus_L" != no; then
17124 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17126 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17132 if test "X$found_a" != "X"; then
17133 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17138 additional_includedir=
17139 case "$found_dir" in
17141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17142 additional_includedir="$basedir/include"
17145 if test "X$additional_includedir" != "X"; then
17146 if test "X$additional_includedir" != "X/usr/include"; then
17148 if test "X$additional_includedir" = "X/usr/local/include"; then
17149 if test -n "$GCC"; then
17151 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17155 if test -z "$haveit"; then
17156 for x in $CPPFLAGS $INCICONV; do
17158 acl_save_prefix="$prefix"
17159 prefix="$acl_final_prefix"
17160 acl_save_exec_prefix="$exec_prefix"
17161 exec_prefix="$acl_final_exec_prefix"
17163 exec_prefix="$acl_save_exec_prefix"
17164 prefix="$acl_save_prefix"
17166 if test "X$x" = "X-I$additional_includedir"; then
17171 if test -z "$haveit"; then
17172 if test -d "$additional_includedir"; then
17173 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17179 if test -n "$found_la"; then
17180 save_libdir="$libdir"
17181 case "$found_la" in
17182 */* | *\\*) . "$found_la" ;;
17183 *) . "./$found_la" ;;
17185 libdir="$save_libdir"
17186 for dep in $dependency_libs; do
17189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17190 if test "X$additional_libdir" != "X/usr/lib"; then
17192 if test "X$additional_libdir" = "X/usr/local/lib"; then
17193 if test -n "$GCC"; then
17195 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17199 if test -z "$haveit"; then
17201 for x in $LDFLAGS $LIBICONV; do
17203 acl_save_prefix="$prefix"
17204 prefix="$acl_final_prefix"
17205 acl_save_exec_prefix="$exec_prefix"
17206 exec_prefix="$acl_final_exec_prefix"
17208 exec_prefix="$acl_save_exec_prefix"
17209 prefix="$acl_save_prefix"
17211 if test "X$x" = "X-L$additional_libdir"; then
17216 if test -z "$haveit"; then
17217 if test -d "$additional_libdir"; then
17218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17222 for x in $LDFLAGS $LTLIBICONV; do
17224 acl_save_prefix="$prefix"
17225 prefix="$acl_final_prefix"
17226 acl_save_exec_prefix="$exec_prefix"
17227 exec_prefix="$acl_final_exec_prefix"
17229 exec_prefix="$acl_save_exec_prefix"
17230 prefix="$acl_save_prefix"
17232 if test "X$x" = "X-L$additional_libdir"; then
17237 if test -z "$haveit"; then
17238 if test -d "$additional_libdir"; then
17239 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17247 if test "$enable_rpath" != no; then
17249 for x in $rpathdirs; do
17250 if test "X$x" = "X$dir"; then
17255 if test -z "$haveit"; then
17256 rpathdirs="$rpathdirs $dir"
17259 for x in $ltrpathdirs; do
17260 if test "X$x" = "X$dir"; then
17265 if test -z "$haveit"; then
17266 ltrpathdirs="$ltrpathdirs $dir"
17271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17277 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17284 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17285 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17291 if test "X$rpathdirs" != "X"; then
17292 if test -n "$hardcode_libdir_separator"; then
17294 for found_dir in $rpathdirs; do
17295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17297 acl_save_libdir="$libdir"
17299 eval flag=\"$hardcode_libdir_flag_spec\"
17300 libdir="$acl_save_libdir"
17301 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17303 for found_dir in $rpathdirs; do
17304 acl_save_libdir="$libdir"
17305 libdir="$found_dir"
17306 eval flag=\"$hardcode_libdir_flag_spec\"
17307 libdir="$acl_save_libdir"
17308 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17312 if test "X$ltrpathdirs" != "X"; then
17313 for found_dir in $ltrpathdirs; do
17314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17335 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17336 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 gt_save_CPPFLAGS="$CPPFLAGS"
17341 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342 gt_save_LIBS="$LIBS"
17343 LIBS="$LIBS -framework CoreFoundation"
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 #include <CFPreferences.h>
17354 CFPreferencesCopyAppValue(NULL, NULL)
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 gt_cv_func_CFPreferencesCopyAppValue=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 gt_cv_func_CFPreferencesCopyAppValue=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17387 CPPFLAGS="$gt_save_CPPFLAGS"
17388 LIBS="$gt_save_LIBS"
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17392 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17399 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17400 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17401 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 gt_save_CPPFLAGS="$CPPFLAGS"
17405 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17406 gt_save_LIBS="$LIBS"
17407 LIBS="$LIBS -framework CoreFoundation"
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 #include <CFLocale.h>
17418 CFLocaleCopyCurrent();
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext &&
17440 $as_test_x conftest$ac_exeext; then
17441 gt_cv_func_CFLocaleCopyCurrent=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 gt_cv_func_CFLocaleCopyCurrent=no
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext conftest.$ac_ext
17451 CPPFLAGS="$gt_save_CPPFLAGS"
17452 LIBS="$gt_save_LIBS"
17454 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17455 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17456 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458 cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_CFLOCALECOPYCURRENT 1
17464 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17465 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17471 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17472 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17473 # Check whether --enable-nls was given.
17474 if test "${enable_nls+set}" = set; then
17475 enableval=$enable_nls; USE_NLS=$enableval
17480 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17481 echo "${ECHO_T}$USE_NLS" >&6; }
17490 if test "$USE_NLS" = "yes"; then
17491 gt_use_preinstalled_gnugettext=no
17498 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17499 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17500 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <libintl.h>
17510 extern int _nl_msg_cat_cntr;
17511 extern int *_nl_domain_bindings;
17515 bindtextdomain ("", "");
17516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest$ac_exeext &&
17538 $as_test_x conftest$ac_exeext; then
17539 gt_cv_func_gnugettext1_libc=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 gt_cv_func_gnugettext1_libc=no
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17550 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17551 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17553 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17559 am_save_CPPFLAGS="$CPPFLAGS"
17561 for element in $INCICONV; do
17563 for x in $CPPFLAGS; do
17565 acl_save_prefix="$prefix"
17566 prefix="$acl_final_prefix"
17567 acl_save_exec_prefix="$exec_prefix"
17568 exec_prefix="$acl_final_exec_prefix"
17570 exec_prefix="$acl_save_exec_prefix"
17571 prefix="$acl_save_prefix"
17573 if test "X$x" = "X$element"; then
17578 if test -z "$haveit"; then
17579 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17584 { echo "$as_me:$LINENO: checking for iconv" >&5
17585 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17586 if test "${am_cv_func_iconv+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 am_cv_func_iconv="no, consider installing GNU libiconv"
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17603 iconv_t cd = iconv_open("","");
17604 iconv(cd,NULL,NULL,NULL,NULL);
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext &&
17627 $as_test_x conftest$ac_exeext; then
17628 am_cv_func_iconv=yes
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17638 if test "$am_cv_func_iconv" != yes; then
17639 am_save_LIBS="$LIBS"
17640 LIBS="$LIBS $LIBICONV"
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <stdlib.h>
17652 iconv_t cd = iconv_open("","");
17653 iconv(cd,NULL,NULL,NULL,NULL);
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 am_cv_lib_iconv=yes
17678 am_cv_func_iconv=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687 conftest$ac_exeext conftest.$ac_ext
17688 LIBS="$am_save_LIBS"
17692 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17693 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17694 if test "$am_cv_func_iconv" = yes; then
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_ICONV 1
17701 if test "$am_cv_lib_iconv" = yes; then
17702 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17703 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17704 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17705 echo "${ECHO_T}$LIBICONV" >&6; }
17707 CPPFLAGS="$am_save_CPPFLAGS"
17719 acl_save_prefix="$prefix"
17720 prefix="$acl_final_prefix"
17721 acl_save_exec_prefix="$exec_prefix"
17722 exec_prefix="$acl_final_exec_prefix"
17724 eval additional_includedir=\"$includedir\"
17725 eval additional_libdir=\"$libdir\"
17727 exec_prefix="$acl_save_exec_prefix"
17728 prefix="$acl_save_prefix"
17731 # Check whether --with-libintl-prefix was given.
17732 if test "${with_libintl_prefix+set}" = set; then
17733 withval=$with_libintl_prefix;
17734 if test "X$withval" = "Xno"; then
17737 if test "X$withval" = "X"; then
17739 acl_save_prefix="$prefix"
17740 prefix="$acl_final_prefix"
17741 acl_save_exec_prefix="$exec_prefix"
17742 exec_prefix="$acl_final_exec_prefix"
17744 eval additional_includedir=\"$includedir\"
17745 eval additional_libdir=\"$libdir\"
17747 exec_prefix="$acl_save_exec_prefix"
17748 prefix="$acl_save_prefix"
17751 additional_includedir="$withval/include"
17752 additional_libdir="$withval/lib"
17763 names_already_handled=
17764 names_next_round='intl '
17765 while test -n "$names_next_round"; do
17766 names_this_round="$names_next_round"
17768 for name in $names_this_round; do
17770 for n in $names_already_handled; do
17771 if test "$n" = "$name"; then
17772 already_handled=yes
17776 if test -z "$already_handled"; then
17777 names_already_handled="$names_already_handled $name"
17778 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17779 eval value=\"\$HAVE_LIB$uppername\"
17780 if test -n "$value"; then
17781 if test "$value" = yes; then
17782 eval value=\"\$LIB$uppername\"
17783 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17784 eval value=\"\$LTLIB$uppername\"
17785 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17794 if test $use_additional = yes; then
17795 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17796 found_dir="$additional_libdir"
17797 found_so="$additional_libdir/lib$name.$shlibext"
17798 if test -f "$additional_libdir/lib$name.la"; then
17799 found_la="$additional_libdir/lib$name.la"
17802 if test -f "$additional_libdir/lib$name.$libext"; then
17803 found_dir="$additional_libdir"
17804 found_a="$additional_libdir/lib$name.$libext"
17805 if test -f "$additional_libdir/lib$name.la"; then
17806 found_la="$additional_libdir/lib$name.la"
17811 if test "X$found_dir" = "X"; then
17812 for x in $LDFLAGS $LTLIBINTL; do
17814 acl_save_prefix="$prefix"
17815 prefix="$acl_final_prefix"
17816 acl_save_exec_prefix="$exec_prefix"
17817 exec_prefix="$acl_final_exec_prefix"
17819 exec_prefix="$acl_save_exec_prefix"
17820 prefix="$acl_save_prefix"
17824 dir=`echo "X$x" | sed -e 's/^X-L//'`
17825 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17827 found_so="$dir/lib$name.$shlibext"
17828 if test -f "$dir/lib$name.la"; then
17829 found_la="$dir/lib$name.la"
17832 if test -f "$dir/lib$name.$libext"; then
17834 found_a="$dir/lib$name.$libext"
17835 if test -f "$dir/lib$name.la"; then
17836 found_la="$dir/lib$name.la"
17842 if test "X$found_dir" != "X"; then
17847 if test "X$found_dir" != "X"; then
17848 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17849 if test "X$found_so" != "X"; then
17850 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17851 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17854 for x in $ltrpathdirs; do
17855 if test "X$x" = "X$found_dir"; then
17860 if test -z "$haveit"; then
17861 ltrpathdirs="$ltrpathdirs $found_dir"
17863 if test "$hardcode_direct" = yes; then
17864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17867 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17869 for x in $rpathdirs; do
17870 if test "X$x" = "X$found_dir"; then
17875 if test -z "$haveit"; then
17876 rpathdirs="$rpathdirs $found_dir"
17880 for x in $LDFLAGS $LIBINTL; do
17882 acl_save_prefix="$prefix"
17883 prefix="$acl_final_prefix"
17884 acl_save_exec_prefix="$exec_prefix"
17885 exec_prefix="$acl_final_exec_prefix"
17887 exec_prefix="$acl_save_exec_prefix"
17888 prefix="$acl_save_prefix"
17890 if test "X$x" = "X-L$found_dir"; then
17895 if test -z "$haveit"; then
17896 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17898 if test "$hardcode_minus_L" != no; then
17899 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17901 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17907 if test "X$found_a" != "X"; then
17908 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17910 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17913 additional_includedir=
17914 case "$found_dir" in
17916 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17917 additional_includedir="$basedir/include"
17920 if test "X$additional_includedir" != "X"; then
17921 if test "X$additional_includedir" != "X/usr/include"; then
17923 if test "X$additional_includedir" = "X/usr/local/include"; then
17924 if test -n "$GCC"; then
17926 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17930 if test -z "$haveit"; then
17931 for x in $CPPFLAGS $INCINTL; do
17933 acl_save_prefix="$prefix"
17934 prefix="$acl_final_prefix"
17935 acl_save_exec_prefix="$exec_prefix"
17936 exec_prefix="$acl_final_exec_prefix"
17938 exec_prefix="$acl_save_exec_prefix"
17939 prefix="$acl_save_prefix"
17941 if test "X$x" = "X-I$additional_includedir"; then
17946 if test -z "$haveit"; then
17947 if test -d "$additional_includedir"; then
17948 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17954 if test -n "$found_la"; then
17955 save_libdir="$libdir"
17956 case "$found_la" in
17957 */* | *\\*) . "$found_la" ;;
17958 *) . "./$found_la" ;;
17960 libdir="$save_libdir"
17961 for dep in $dependency_libs; do
17964 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17965 if test "X$additional_libdir" != "X/usr/lib"; then
17967 if test "X$additional_libdir" = "X/usr/local/lib"; then
17968 if test -n "$GCC"; then
17970 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17974 if test -z "$haveit"; then
17976 for x in $LDFLAGS $LIBINTL; do
17978 acl_save_prefix="$prefix"
17979 prefix="$acl_final_prefix"
17980 acl_save_exec_prefix="$exec_prefix"
17981 exec_prefix="$acl_final_exec_prefix"
17983 exec_prefix="$acl_save_exec_prefix"
17984 prefix="$acl_save_prefix"
17986 if test "X$x" = "X-L$additional_libdir"; then
17991 if test -z "$haveit"; then
17992 if test -d "$additional_libdir"; then
17993 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17997 for x in $LDFLAGS $LTLIBINTL; do
17999 acl_save_prefix="$prefix"
18000 prefix="$acl_final_prefix"
18001 acl_save_exec_prefix="$exec_prefix"
18002 exec_prefix="$acl_final_exec_prefix"
18004 exec_prefix="$acl_save_exec_prefix"
18005 prefix="$acl_save_prefix"
18007 if test "X$x" = "X-L$additional_libdir"; then
18012 if test -z "$haveit"; then
18013 if test -d "$additional_libdir"; then
18014 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18021 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18022 if test "$enable_rpath" != no; then
18024 for x in $rpathdirs; do
18025 if test "X$x" = "X$dir"; then
18030 if test -z "$haveit"; then
18031 rpathdirs="$rpathdirs $dir"
18034 for x in $ltrpathdirs; do
18035 if test "X$x" = "X$dir"; then
18040 if test -z "$haveit"; then
18041 ltrpathdirs="$ltrpathdirs $dir"
18046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18049 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18052 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18060 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18066 if test "X$rpathdirs" != "X"; then
18067 if test -n "$hardcode_libdir_separator"; then
18069 for found_dir in $rpathdirs; do
18070 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18072 acl_save_libdir="$libdir"
18074 eval flag=\"$hardcode_libdir_flag_spec\"
18075 libdir="$acl_save_libdir"
18076 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18078 for found_dir in $rpathdirs; do
18079 acl_save_libdir="$libdir"
18080 libdir="$found_dir"
18081 eval flag=\"$hardcode_libdir_flag_spec\"
18082 libdir="$acl_save_libdir"
18083 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18087 if test "X$ltrpathdirs" != "X"; then
18088 for found_dir in $ltrpathdirs; do
18089 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18093 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18094 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18095 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 gt_save_CPPFLAGS="$CPPFLAGS"
18099 CPPFLAGS="$CPPFLAGS $INCINTL"
18100 gt_save_LIBS="$LIBS"
18101 LIBS="$LIBS $LIBINTL"
18102 cat >conftest.$ac_ext <<_ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 #include <libintl.h>
18109 extern int _nl_msg_cat_cntr;
18114 const char *_nl_expand_alias (const char *);
18118 bindtextdomain ("", "");
18119 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_link") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest$ac_exeext &&
18141 $as_test_x conftest$ac_exeext; then
18142 gt_cv_func_gnugettext1_libintl=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 gt_cv_func_gnugettext1_libintl=no
18150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18151 conftest$ac_exeext conftest.$ac_ext
18152 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18153 LIBS="$LIBS $LIBICONV"
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 #include <libintl.h>
18161 extern int _nl_msg_cat_cntr;
18166 const char *_nl_expand_alias (const char *);
18170 bindtextdomain ("", "");
18171 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext &&
18193 $as_test_x conftest$ac_exeext; then
18194 LIBINTL="$LIBINTL $LIBICONV"
18195 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18196 gt_cv_func_gnugettext1_libintl=yes
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206 conftest$ac_exeext conftest.$ac_ext
18208 CPPFLAGS="$gt_save_CPPFLAGS"
18209 LIBS="$gt_save_LIBS"
18211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18215 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18216 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18217 && test "$PACKAGE" != gettext-runtime \
18218 && test "$PACKAGE" != gettext-tools; }; then
18219 gt_use_preinstalled_gnugettext=yes
18228 if test -n "$INTL_MACOSX_LIBS"; then
18229 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18232 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18236 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18237 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18239 cat >>confdefs.h <<\_ACEOF
18240 #define ENABLE_NLS 1
18248 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18249 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18250 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18251 echo "${ECHO_T}$USE_NLS" >&6; }
18252 if test "$USE_NLS" = "yes"; then
18253 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18254 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18255 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18256 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18257 gt_source="external libintl"
18262 gt_source="included intl directory"
18264 { echo "$as_me:$LINENO: result: $gt_source" >&5
18265 echo "${ECHO_T}$gt_source" >&6; }
18268 if test "$USE_NLS" = "yes"; then
18270 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18271 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18272 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18273 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18274 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18275 echo "${ECHO_T}$LIBINTL" >&6; }
18277 for element in $INCINTL; do
18279 for x in $CPPFLAGS; do
18281 acl_save_prefix="$prefix"
18282 prefix="$acl_final_prefix"
18283 acl_save_exec_prefix="$exec_prefix"
18284 exec_prefix="$acl_final_exec_prefix"
18286 exec_prefix="$acl_save_exec_prefix"
18287 prefix="$acl_save_prefix"
18289 if test "X$x" = "X$element"; then
18294 if test -z "$haveit"; then
18295 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_GETTEXT 1
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_DCGETTEXT 1
18318 INTLLIBS="$LIBINTL"
18326 os_name=`uname -s 2>/dev/null`
18327 if test x${prefix} = xNONE ; then
18328 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18329 sysconfdir=/etc/bacula
18332 if test `eval echo ${libdir}` = NONE/lib ; then
18335 os_processor=`uname -p 2>/dev/null`
18336 case ${os_processor} in
18351 if test `eval echo ${includedir}` = NONE/include ; then
18352 includedir=/usr/include
18355 if test `eval echo ${datarootdir}` = NONE/share ; then
18356 datarootdir=/usr/share
18361 if test x${exec_prefix} = xNONE ; then
18362 exec_prefix=${prefix}
18365 sysconfdir=`eval echo ${sysconfdir}`
18366 datarootdir=`eval echo ${datarootdir}`
18367 docdir=`eval echo ${docdir}`
18368 htmldir=`eval echo ${htmldir}`
18369 libdir=`eval echo ${libdir}`
18370 includedir=`eval echo ${includedir}`
18371 localedir=`eval echo ${datarootdir}/locale`
18372 cat >>confdefs.h <<_ACEOF
18373 #define SYSCONFDIR "$sysconfdir"
18376 cat >>confdefs.h <<_ACEOF
18377 #define LOCALEDIR "$localedir"
18381 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18382 sbindir=${exec_prefix}/sbin
18384 sbindir=`eval echo ${sbindir}`
18386 if test x$mandir = x'${prefix}/man' ; then
18387 mandir=/usr/share/man
18390 if test x$htmldir = x${docdir} ; then
18391 htmldir=`eval echo ${docdir}bacula/html`
18394 if test x$docdir = x'/usr/share/doc/' ; then
18395 docdir=`eval echo ${docdir}bacula`
18399 for ac_prog in msgfmt
18401 # Extract the first word of "$ac_prog", so it can be a program name with args.
18402 set dummy $ac_prog; ac_word=$2
18403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18405 if test "${ac_cv_path_MSGFMT+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18417 test -z "$as_dir" && as_dir=.
18418 for ac_exec_ext in '' $ac_executable_extensions; do
18419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18431 MSGFMT=$ac_cv_path_MSGFMT
18432 if test -n "$MSGFMT"; then
18433 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18434 echo "${ECHO_T}$MSGFMT" >&6; }
18436 { echo "$as_me:$LINENO: result: no" >&5
18437 echo "${ECHO_T}no" >&6; }
18441 test -n "$MSGFMT" && break
18443 test -n "$MSGFMT" || MSGFMT="no"
18445 if test "$MSGFMT" = "no"
18447 echo 'msgfmt program not found, disabling NLS !'
18449 USE_INCLUDED_LIBINTL=no
18452 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18453 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18454 if test "${ac_cv_gnu_library_2+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18464 #include <features.h>
18465 #ifdef __GNU_LIBRARY__
18466 #if (__GLIBC__ >= 2)
18472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18473 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18474 ac_cv_gnu_library_2=yes
18476 ac_cv_gnu_library_2=no
18483 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18484 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18486 GLIBC2="$ac_cv_gnu_library_2"
18489 if test -n "$ac_tool_prefix"; then
18490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18494 if test "${ac_cv_prog_RANLIB+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 if test -n "$RANLIB"; then
18498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18501 for as_dir in $PATH
18504 test -z "$as_dir" && as_dir=.
18505 for ac_exec_ext in '' $ac_executable_extensions; do
18506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18517 RANLIB=$ac_cv_prog_RANLIB
18518 if test -n "$RANLIB"; then
18519 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18520 echo "${ECHO_T}$RANLIB" >&6; }
18522 { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18528 if test -z "$ac_cv_prog_RANLIB"; then
18529 ac_ct_RANLIB=$RANLIB
18530 # Extract the first word of "ranlib", so it can be a program name with args.
18531 set dummy ranlib; ac_word=$2
18532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18537 if test -n "$ac_ct_RANLIB"; then
18538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18544 test -z "$as_dir" && as_dir=.
18545 for ac_exec_ext in '' $ac_executable_extensions; do
18546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18547 ac_cv_prog_ac_ct_RANLIB="ranlib"
18548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18558 if test -n "$ac_ct_RANLIB"; then
18559 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18562 { echo "$as_me:$LINENO: result: no" >&5
18563 echo "${ECHO_T}no" >&6; }
18566 if test "x$ac_ct_RANLIB" = x; then
18569 case $cross_compiling:$ac_tool_warned in
18571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18572 whose name does not start with the host triplet. If you think this
18573 configuration is useful to you, please write to autoconf@gnu.org." >&5
18574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18575 whose name does not start with the host triplet. If you think this
18576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18577 ac_tool_warned=yes ;;
18579 RANLIB=$ac_ct_RANLIB
18582 RANLIB="$ac_cv_prog_RANLIB"
18586 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18587 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18588 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-lcposix $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18610 return strerror ();
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest$ac_exeext &&
18632 $as_test_x conftest$ac_exeext; then
18633 ac_cv_lib_cposix_strerror=yes
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 ac_cv_lib_cposix_strerror=no
18641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18642 conftest$ac_exeext conftest.$ac_ext
18643 LIBS=$ac_check_lib_save_LIBS
18645 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18646 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18647 if test $ac_cv_lib_cposix_strerror = yes; then
18648 LIBS="$LIBS -lcposix"
18653 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18655 if test "${ac_cv_c_const+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18668 /* FIXME: Include the comments suggested by Paul. */
18669 #ifndef __cplusplus
18670 /* Ultrix mips cc rejects this. */
18671 typedef int charset[2];
18673 /* SunOS 4.1.1 cc rejects this. */
18674 char const *const *pcpcc;
18676 /* NEC SVR4.0.2 mips cc rejects this. */
18677 struct point {int x, y;};
18678 static struct point const zero = {0,0};
18679 /* AIX XL C 1.02.0.0 rejects this.
18680 It does not let you subtract one const X* pointer from another in
18681 an arm of an if-expression whose if-part is not a constant
18683 const char *g = "string";
18684 pcpcc = &g + (g ? g-g : 0);
18685 /* HPUX 7.0 cc rejects these. */
18687 ppc = (char**) pcpcc;
18688 pcpcc = (char const *const *) ppc;
18689 { /* SCO 3.2v4 cc rejects this. */
18691 char const *s = 0 ? (char *) 0 : (char const *) 0;
18696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18697 int x[] = {25, 17};
18698 const int *foo = &x[0];
18701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18702 typedef const int *iptr;
18706 { /* AIX XL C 1.02.0.0 rejects this saying
18707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18708 struct s { int j; const int *ap[3]; };
18709 struct s *b; b->j = 5;
18711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18712 const int foo = 10;
18713 if (!foo) return 0;
18715 return !cs[0] && !zero.x;
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_compile") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest.$ac_objext; then
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18750 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18751 if test $ac_cv_c_const = no; then
18753 cat >>confdefs.h <<\_ACEOF
18760 { echo "$as_me:$LINENO: checking for signed" >&5
18761 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18762 if test "${bh_cv_c_signed+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18780 rm -f conftest.$ac_objext
18781 if { (ac_try="$ac_compile"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_compile") 2>conftest.er1
18789 grep -v '^ *+' conftest.er1 >conftest.err
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } && {
18794 test -z "$ac_c_werror_flag" ||
18795 test ! -s conftest.err
18796 } && test -s conftest.$ac_objext; then
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18808 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18809 if test $bh_cv_c_signed = no; then
18811 cat >>confdefs.h <<\_ACEOF
18817 { echo "$as_me:$LINENO: checking for inline" >&5
18818 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18819 if test "${ac_cv_c_inline+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 for ac_kw in inline __inline__ __inline; do
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 #ifndef __cplusplus
18832 static $ac_kw foo_t static_foo () {return 0; }
18833 $ac_kw foo_t foo () {return 0; }
18837 rm -f conftest.$ac_objext
18838 if { (ac_try="$ac_compile"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_compile") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest.$ac_objext; then
18854 ac_cv_c_inline=$ac_kw
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863 test "$ac_cv_c_inline" != no && break
18867 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18868 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18871 case $ac_cv_c_inline in
18874 case $ac_cv_c_inline in
18876 *) ac_val=$ac_cv_c_inline;;
18878 cat >>confdefs.h <<_ACEOF
18879 #ifndef __cplusplus
18880 #define inline $ac_val
18886 { echo "$as_me:$LINENO: checking for off_t" >&5
18887 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18888 if test "${ac_cv_type_off_t+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18898 typedef off_t ac__type_new_;
18902 if ((ac__type_new_ *) 0)
18904 if (sizeof (ac__type_new_))
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_compile") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest.$ac_objext; then
18927 ac_cv_type_off_t=yes
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_cv_type_off_t=no
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18938 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18939 if test $ac_cv_type_off_t = yes; then
18943 cat >>confdefs.h <<_ACEOF
18944 #define off_t long int
18949 { echo "$as_me:$LINENO: checking for size_t" >&5
18950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18951 if test "${ac_cv_type_size_t+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 $ac_includes_default
18961 typedef size_t ac__type_new_;
18965 if ((ac__type_new_ *) 0)
18967 if (sizeof (ac__type_new_))
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18990 ac_cv_type_size_t=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_type_size_t=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19001 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19002 if test $ac_cv_type_size_t = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define size_t unsigned int
19013 { echo "$as_me:$LINENO: checking for long long" >&5
19014 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19015 if test "${ac_cv_type_long_long+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 cat >conftest.$ac_ext <<_ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 long long ll = 1LL; int i = 63;
19028 long long llmax = (long long) -1;
19029 return ll << i | ll >> i | llmax / ll | llmax % ll;
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest$ac_exeext &&
19051 $as_test_x conftest$ac_exeext; then
19052 ac_cv_type_long_long=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_type_long_long=no
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061 conftest$ac_exeext conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19064 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19065 if test $ac_cv_type_long_long = yes; then
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_LONG_LONG 1
19074 { echo "$as_me:$LINENO: checking for long double" >&5
19075 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19076 if test "${gt_cv_c_long_double+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 if test "$GCC" = yes; then
19080 gt_cv_c_long_double=yes
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19089 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19090 long double foo = 0.0;
19091 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19092 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19102 rm -f conftest.$ac_objext
19103 if { (ac_try="$ac_compile"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_compile") 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } && {
19116 test -z "$ac_c_werror_flag" ||
19117 test ! -s conftest.err
19118 } && test -s conftest.$ac_objext; then
19119 gt_cv_c_long_double=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 gt_cv_c_long_double=no
19127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19131 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19132 if test $gt_cv_c_long_double = yes; then
19134 cat >>confdefs.h <<\_ACEOF
19135 #define HAVE_LONG_DOUBLE 1
19141 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19142 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19143 if test "${gt_cv_c_wchar_t+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 #include <stddef.h>
19153 wchar_t foo = (wchar_t)'\0';
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest.$ac_objext; then
19179 gt_cv_c_wchar_t=yes
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19190 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19191 if test $gt_cv_c_wchar_t = yes; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_WCHAR_T 1
19200 { echo "$as_me:$LINENO: checking for wint_t" >&5
19201 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19202 if test "${gt_cv_c_wint_t+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19212 wint_t foo = (wchar_t)'\0';
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_compile") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest.$ac_objext; then
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19249 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19250 if test $gt_cv_c_wint_t = yes; then
19252 cat >>confdefs.h <<\_ACEOF
19253 #define HAVE_WINT_T 1
19259 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19260 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19261 if test "${gl_cv_header_inttypes_h+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 cat >conftest.$ac_ext <<_ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h. */
19270 #include <sys/types.h>
19271 #include <inttypes.h>
19275 uintmax_t i = (uintmax_t) -1;
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_compile") 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest.$ac_objext; then
19297 gl_cv_header_inttypes_h=yes
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 gl_cv_header_inttypes_h=no
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19308 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19309 if test $gl_cv_header_inttypes_h = yes; then
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19318 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19319 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19320 if test "${gl_cv_header_stdint_h+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <sys/types.h>
19330 #include <stdint.h>
19334 uintmax_t i = (uintmax_t) -1;
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest.$ac_objext; then
19356 gl_cv_header_stdint_h=yes
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 gl_cv_header_stdint_h=no
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19367 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19368 if test $gl_cv_header_stdint_h = yes; then
19370 cat >>confdefs.h <<_ACEOF
19371 #define HAVE_STDINT_H_WITH_UINTMAX 1
19379 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19380 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19381 if test "${gt_cv_c_intmax_t+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 #include <stddef.h>
19392 #include <stdlib.h>
19393 #if HAVE_STDINT_H_WITH_UINTMAX
19394 #include <stdint.h>
19396 #if HAVE_INTTYPES_H_WITH_UINTMAX
19397 #include <inttypes.h>
19408 rm -f conftest.$ac_objext
19409 if { (ac_try="$ac_compile"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_compile") 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } && {
19422 test -z "$ac_c_werror_flag" ||
19423 test ! -s conftest.err
19424 } && test -s conftest.$ac_objext; then
19425 gt_cv_c_intmax_t=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 gt_cv_c_intmax_t=no
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19436 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19437 if test $gt_cv_c_intmax_t = yes; then
19439 cat >>confdefs.h <<\_ACEOF
19440 #define HAVE_INTMAX_T 1
19447 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19448 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19449 if test "${gt_cv_func_printf_posix+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 if test "$cross_compiling" = yes; then
19455 cat >conftest.$ac_ext <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19468 $EGREP "notposix" >/dev/null 2>&1; then
19469 gt_cv_func_printf_posix="guessing no"
19471 gt_cv_func_printf_posix="guessing yes"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19485 #include <string.h>
19486 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19487 dollar expansion (possibly an autoconf bug). */
19488 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19489 static char buf[100];
19492 sprintf (buf, format, 33, 55);
19493 return (strcmp (buf, "55 33") != 0);
19496 rm -f conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_link") 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 gt_cv_func_printf_posix=yes
19518 echo "$as_me: program exited with status $ac_status" >&5
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ( exit $ac_status )
19523 gt_cv_func_printf_posix=no
19525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19532 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19533 case $gt_cv_func_printf_posix in
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_POSIX_PRINTF 1
19543 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19544 # for constant arguments. Useless!
19545 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19546 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19547 if test "${ac_cv_working_alloca_h+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 #include <alloca.h>
19560 char *p = (char *) alloca (2 * sizeof (int));
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_working_alloca_h=yes
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_working_alloca_h=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19595 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19596 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19597 if test $ac_cv_working_alloca_h = yes; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_ALLOCA_H 1
19605 { echo "$as_me:$LINENO: checking for alloca" >&5
19606 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19607 if test "${ac_cv_func_alloca_works+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19617 # define alloca __builtin_alloca
19620 # include <malloc.h>
19621 # define alloca _alloca
19623 # ifdef HAVE_ALLOCA_H
19624 # include <alloca.h>
19629 # ifndef alloca /* predefined by HP cc +Olibcalls */
19640 char *p = (char *) alloca (1);
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_link") 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest$ac_exeext &&
19663 $as_test_x conftest$ac_exeext; then
19664 ac_cv_func_alloca_works=yes
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_func_alloca_works=no
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673 conftest$ac_exeext conftest.$ac_ext
19675 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19676 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19678 if test $ac_cv_func_alloca_works = yes; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_ALLOCA 1
19685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19686 # that cause trouble. Some versions do not even contain alloca or
19687 # contain a buggy version. If you still want to use their alloca,
19688 # use ar to extract alloca.o from them instead of compiling alloca.c.
19690 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19692 cat >>confdefs.h <<\_ACEOF
19697 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19698 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19699 if test "${ac_cv_os_cray+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #if defined CRAY && ! defined CRAY2
19715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19716 $EGREP "webecray" >/dev/null 2>&1; then
19724 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19725 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19726 if test $ac_cv_os_cray = yes; then
19727 for ac_func in _getb67 GETB67 getb67; do
19728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19742 #define $ac_func innocuous_$ac_func
19744 /* System header to define __stub macros and hopefully few prototypes,
19745 which can conflict with char $ac_func (); below.
19746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19747 <limits.h> exists even on freestanding compilers. */
19750 # include <limits.h>
19752 # include <assert.h>
19757 /* Override any GCC internal prototype to avoid an error.
19758 Use char because int might match the return type of a GCC
19759 builtin and then its argument prototype would still apply. */
19764 /* The GNU C library defines this for functions which it implements
19765 to always fail with ENOSYS. Some functions are actually named
19766 something starting with __ and the normal name is an alias. */
19767 #if defined __stub_$ac_func || defined __stub___$ac_func
19774 return $ac_func ();
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } && {
19793 test -z "$ac_c_werror_flag" ||
19794 test ! -s conftest.err
19795 } && test -s conftest$ac_exeext &&
19796 $as_test_x conftest$ac_exeext; then
19797 eval "$as_ac_var=yes"
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 eval "$as_ac_var=no"
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806 conftest$ac_exeext conftest.$ac_ext
19808 ac_res=`eval echo '${'$as_ac_var'}'`
19809 { echo "$as_me:$LINENO: result: $ac_res" >&5
19810 echo "${ECHO_T}$ac_res" >&6; }
19811 if test `eval echo '${'$as_ac_var'}'` = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define CRAY_STACKSEG_END $ac_func
19823 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19824 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19825 if test "${ac_cv_c_stack_direction+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 if test "$cross_compiling" = yes; then
19829 ac_cv_c_stack_direction=0
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 $ac_includes_default
19839 find_stack_direction ()
19841 static char *addr = 0;
19846 return find_stack_direction ();
19849 return (&dummy > addr) ? 1 : -1;
19855 return find_stack_direction () < 0;
19858 rm -f conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_cv_c_stack_direction=1
19880 echo "$as_me: program exited with status $ac_status" >&5
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ( exit $ac_status )
19885 ac_cv_c_stack_direction=-1
19887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19892 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19893 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19895 cat >>confdefs.h <<_ACEOF
19896 #define STACK_DIRECTION $ac_cv_c_stack_direction
19904 for ac_header in stdlib.h unistd.h
19906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 ac_res=`eval echo '${'$as_ac_Header'}'`
19914 { echo "$as_me:$LINENO: result: $ac_res" >&5
19915 echo "${ECHO_T}$ac_res" >&6; }
19917 # Is the header compilable?
19918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 $ac_includes_default
19927 #include <$ac_header>
19929 rm -f conftest.$ac_objext
19930 if { (ac_try="$ac_compile"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_compile") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest.$ac_objext; then
19946 ac_header_compiler=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_header_compiler=no
19954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19956 echo "${ECHO_T}$ac_header_compiler" >&6; }
19958 # Is the header present?
19959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <$ac_header>
19969 if { (ac_try="$ac_cpp conftest.$ac_ext"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } >/dev/null && {
19982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19985 ac_header_preproc=yes
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_header_preproc=no
19993 rm -f conftest.err conftest.$ac_ext
19994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19995 echo "${ECHO_T}$ac_header_preproc" >&6; }
19997 # So? What about this header?
19998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20004 ac_header_preproc=yes
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 eval "$as_ac_Header=\$ac_header_preproc"
20029 ac_res=`eval echo '${'$as_ac_Header'}'`
20030 { echo "$as_me:$LINENO: result: $ac_res" >&5
20031 echo "${ECHO_T}$ac_res" >&6; }
20034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20035 cat >>confdefs.h <<_ACEOF
20036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20044 for ac_func in getpagesize
20046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define $ac_func innocuous_$ac_func
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char $ac_func (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20068 # include <limits.h>
20070 # include <assert.h>
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20092 return $ac_func ();
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext &&
20114 $as_test_x conftest$ac_exeext; then
20115 eval "$as_ac_var=yes"
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 eval "$as_ac_var=no"
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124 conftest$ac_exeext conftest.$ac_ext
20126 ac_res=`eval echo '${'$as_ac_var'}'`
20127 { echo "$as_me:$LINENO: result: $ac_res" >&5
20128 echo "${ECHO_T}$ac_res" >&6; }
20129 if test `eval echo '${'$as_ac_var'}'` = yes; then
20130 cat >>confdefs.h <<_ACEOF
20131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20137 { echo "$as_me:$LINENO: checking for working mmap" >&5
20138 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20139 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 if test "$cross_compiling" = yes; then
20143 ac_cv_func_mmap_fixed_mapped=no
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 /* malloc might have been renamed as rpl_malloc. */
20155 /* Thanks to Mike Haertel and Jim Avera for this test.
20156 Here is a matrix of mmap possibilities:
20157 mmap private not fixed
20158 mmap private fixed at somewhere currently unmapped
20159 mmap private fixed at somewhere already mapped
20160 mmap shared not fixed
20161 mmap shared fixed at somewhere currently unmapped
20162 mmap shared fixed at somewhere already mapped
20163 For private mappings, we should verify that changes cannot be read()
20164 back from the file, nor mmap's back from the file at a different
20165 address. (There have been systems where private was not correctly
20166 implemented like the infamous i386 svr4.0, and systems where the
20167 VM page cache was not coherent with the file system buffer cache
20168 like early versions of FreeBSD and possibly contemporary NetBSD.)
20169 For shared mappings, we should conversely verify that changes get
20170 propagated back to all the places they're supposed to be.
20172 Grep wants private fixed already mapped.
20173 The main things grep needs to know about mmap are:
20174 * does it exist and is it safe to write into the mmap'd area
20175 * how to use it (BSD variants) */
20178 #include <sys/mman.h>
20180 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20184 /* This mess was copied from the GNU getpagesize.h. */
20185 #ifndef HAVE_GETPAGESIZE
20186 /* Assume that all systems that can run configure have sys/param.h. */
20187 # ifndef HAVE_SYS_PARAM_H
20188 # define HAVE_SYS_PARAM_H 1
20191 # ifdef _SC_PAGESIZE
20192 # define getpagesize() sysconf(_SC_PAGESIZE)
20193 # else /* no _SC_PAGESIZE */
20194 # ifdef HAVE_SYS_PARAM_H
20195 # include <sys/param.h>
20196 # ifdef EXEC_PAGESIZE
20197 # define getpagesize() EXEC_PAGESIZE
20198 # else /* no EXEC_PAGESIZE */
20200 # define getpagesize() NBPG * CLSIZE
20203 # endif /* no CLSIZE */
20204 # else /* no NBPG */
20206 # define getpagesize() NBPC
20207 # else /* no NBPC */
20209 # define getpagesize() PAGESIZE
20210 # endif /* PAGESIZE */
20211 # endif /* no NBPC */
20212 # endif /* no NBPG */
20213 # endif /* no EXEC_PAGESIZE */
20214 # else /* no HAVE_SYS_PARAM_H */
20215 # define getpagesize() 8192 /* punt totally */
20216 # endif /* no HAVE_SYS_PARAM_H */
20217 # endif /* no _SC_PAGESIZE */
20219 #endif /* no HAVE_GETPAGESIZE */
20224 char *data, *data2, *data3;
20228 pagesize = getpagesize ();
20230 /* First, make a file with some known garbage in it. */
20231 data = (char *) malloc (pagesize);
20234 for (i = 0; i < pagesize; ++i)
20235 *(data + i) = rand ();
20237 fd = creat ("conftest.mmap", 0600);
20240 if (write (fd, data, pagesize) != pagesize)
20244 /* Next, try to mmap the file at a fixed address which already has
20245 something else allocated at it. If we can, also make sure that
20246 we see the same garbage. */
20247 fd = open ("conftest.mmap", O_RDWR);
20250 data2 = (char *) malloc (2 * pagesize);
20253 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20254 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20255 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20257 for (i = 0; i < pagesize; ++i)
20258 if (*(data + i) != *(data2 + i))
20261 /* Finally, make sure that changes to the mapped area do not
20262 percolate back to the file as seen by read(). (This is a bug on
20263 some variants of i386 svr4.0.) */
20264 for (i = 0; i < pagesize; ++i)
20265 *(data2 + i) = *(data2 + i) + 1;
20266 data3 = (char *) malloc (pagesize);
20269 if (read (fd, data3, pagesize) != pagesize)
20271 for (i = 0; i < pagesize; ++i)
20272 if (*(data + i) != *(data3 + i))
20278 rm -f conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_link") 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_func_mmap_fixed_mapped=yes
20300 echo "$as_me: program exited with status $ac_status" >&5
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 ( exit $ac_status )
20305 ac_cv_func_mmap_fixed_mapped=no
20307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20313 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20314 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_MMAP 1
20321 rm -f conftest.mmap
20324 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20325 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20326 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20336 #include <features.h>
20337 #ifdef __GNU_LIBRARY__
20338 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20345 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20346 ac_cv_gnu_library_2_1=yes
20348 ac_cv_gnu_library_2_1=no
20355 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20356 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20358 GLIBC21="$ac_cv_gnu_library_2_1"
20363 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20364 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20365 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 if test "$cross_compiling" = yes; then
20371 # Guess based on the CPU.
20372 case "$host_cpu" in
20373 alpha* | i3456786 | m68k | s390*)
20374 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20376 gt_cv_int_divbyzero_sigfpe="guessing no";;
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 #include <stdlib.h>
20388 #include <signal.h>
20392 sigfpe_handler (int sig)
20394 sigfpe_handler (sig) int sig;
20397 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20398 exit (sig != SIGFPE);
20408 signal (SIGFPE, sigfpe_handler);
20409 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20410 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20411 signal (SIGTRAP, sigfpe_handler);
20413 /* Linux/SPARC yields signal SIGILL. */
20414 #if defined (__sparc__) && defined (__linux__)
20415 signal (SIGILL, sigfpe_handler);
20424 rm -f conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20435 { (case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_try") 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 gt_cv_int_divbyzero_sigfpe=yes
20446 echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ( exit $ac_status )
20451 gt_cv_int_divbyzero_sigfpe=no
20453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20460 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20461 case "$gt_cv_int_divbyzero_sigfpe" in
20466 cat >>confdefs.h <<_ACEOF
20467 #define INTDIV0_RAISES_SIGFPE $value
20472 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20473 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20474 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 unsigned long long ull = 1ULL; int i = 63;
20487 unsigned long long ullmax = (unsigned long long) -1;
20488 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (ac_try="$ac_link"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_link") 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } && {
20507 test -z "$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20509 } && test -s conftest$ac_exeext &&
20510 $as_test_x conftest$ac_exeext; then
20511 ac_cv_type_unsigned_long_long=yes
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_cv_type_unsigned_long_long=no
20519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20520 conftest$ac_exeext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20523 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20524 if test $ac_cv_type_unsigned_long_long = yes; then
20526 cat >>confdefs.h <<\_ACEOF
20527 #define HAVE_UNSIGNED_LONG_LONG 1
20535 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20537 test $ac_cv_type_unsigned_long_long = yes \
20538 && ac_type='unsigned long long' \
20539 || ac_type='unsigned long'
20541 cat >>confdefs.h <<_ACEOF
20542 #define uintmax_t $ac_type
20547 cat >>confdefs.h <<\_ACEOF
20548 #define HAVE_UINTMAX_T 1
20554 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20555 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20556 if test "${gt_cv_header_inttypes_h+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 cat >conftest.$ac_ext <<_ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 #include <sys/types.h>
20567 #include <inttypes.h>
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
20593 gt_cv_header_inttypes_h=yes
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 gt_cv_header_inttypes_h=no
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20605 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20606 if test $gt_cv_header_inttypes_h = yes; then
20608 cat >>confdefs.h <<_ACEOF
20609 #define HAVE_INTTYPES_H 1
20616 if test $gt_cv_header_inttypes_h = yes; then
20617 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20618 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20619 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <inttypes.h>
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_compile") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest.$ac_objext; then
20659 gt_cv_inttypes_pri_broken=no
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 gt_cv_inttypes_pri_broken=yes
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20670 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20671 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20673 if test "$gt_cv_inttypes_pri_broken" = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define PRI_MACROS_BROKEN 1
20683 for ac_header in stdint.h
20685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 ac_res=`eval echo '${'$as_ac_Header'}'`
20693 { echo "$as_me:$LINENO: result: $ac_res" >&5
20694 echo "${ECHO_T}$ac_res" >&6; }
20696 # Is the header compilable?
20697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 $ac_includes_default
20706 #include <$ac_header>
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20717 grep -v '^ *+' conftest.er1 >conftest.err
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.$ac_objext; then
20725 ac_header_compiler=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_header_compiler=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20735 echo "${ECHO_T}$ac_header_compiler" >&6; }
20737 # Is the header present?
20738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <$ac_header>
20748 if { (ac_try="$ac_cpp conftest.$ac_ext"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null && {
20761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20764 ac_header_preproc=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_header_preproc=no
20772 rm -f conftest.err conftest.$ac_ext
20773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20774 echo "${ECHO_T}$ac_header_preproc" >&6; }
20776 # So? What about this header?
20777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20783 ac_header_preproc=yes
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 eval "$as_ac_Header=\$ac_header_preproc"
20808 ac_res=`eval echo '${'$as_ac_Header'}'`
20809 { echo "$as_me:$LINENO: result: $ac_res" >&5
20810 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20822 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20823 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 #include <limits.h>
20834 #include <stdint.h>
20841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20842 $EGREP "Found it" >/dev/null 2>&1; then
20847 if test -z "$result"; then
20848 if test "$cross_compiling" = yes; then
20849 # Depending upon the size, compute the lo and hi bounds.
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 #include <stddef.h>
20860 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } && {
20881 test -z "$ac_c_werror_flag" ||
20882 test ! -s conftest.err
20883 } && test -s conftest.$ac_objext; then
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <stddef.h>
20896 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_compile") 2>conftest.er1
20912 grep -v '^ *+' conftest.er1 >conftest.err
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest.$ac_objext; then
20920 ac_hi=$ac_mid; break
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_lo=`expr $ac_mid + 1`
20926 if test $ac_lo -le $ac_mid; then
20930 ac_mid=`expr 2 '*' $ac_mid + 1`
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #include <stddef.h>
20949 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_compile") 2>conftest.er1
20965 grep -v '^ *+' conftest.er1 >conftest.err
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest.$ac_objext; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 #include <stddef.h>
20985 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21001 grep -v '^ *+' conftest.er1 >conftest.err
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
21009 ac_lo=$ac_mid; break
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_hi=`expr '(' $ac_mid ')' - 1`
21015 if test $ac_mid -le $ac_hi; then
21019 ac_mid=`expr 2 '*' $ac_mid`
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21035 # Binary search between lo and hi bounds.
21036 while test "x$ac_lo" != "x$ac_hi"; do
21037 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <stddef.h>
21048 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_compile") 2>conftest.er1
21064 grep -v '^ *+' conftest.er1 >conftest.err
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && {
21069 test -z "$ac_c_werror_flag" ||
21070 test ! -s conftest.err
21071 } && test -s conftest.$ac_objext; then
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ac_lo=`expr '(' $ac_mid ')' + 1`
21080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 ?*) res_hi=$ac_lo;;
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include <stddef.h>
21094 static long int longval () { return ~(size_t)0 / 10; }
21095 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21097 #include <stdlib.h>
21102 FILE *f = fopen ("conftest.val", "w");
21105 if ((~(size_t)0 / 10) < 0)
21107 long int i = longval ();
21108 if (i != (~(size_t)0 / 10))
21110 fprintf (f, "%ld\n", i);
21114 unsigned long int i = ulongval ();
21115 if (i != (~(size_t)0 / 10))
21117 fprintf (f, "%lu\n", i);
21119 return ferror (f) || fclose (f) != 0;
21125 rm -f conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_link") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21136 { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; }; then
21145 res_hi=`cat conftest.val`
21147 echo "$as_me: program exited with status $ac_status" >&5
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ( exit $ac_status )
21154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21158 if test "$cross_compiling" = yes; then
21159 # Depending upon the size, compute the lo and hi bounds.
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <stddef.h>
21170 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1 >conftest.err
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.$ac_objext; then
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <stddef.h>
21206 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest.$ac_objext; then
21230 ac_hi=$ac_mid; break
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ac_lo=`expr $ac_mid + 1`
21236 if test $ac_lo -le $ac_mid; then
21240 ac_mid=`expr 2 '*' $ac_mid + 1`
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <stddef.h>
21259 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <stddef.h>
21295 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_compile") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest.$ac_objext; then
21319 ac_lo=$ac_mid; break
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_hi=`expr '(' $ac_mid ')' - 1`
21325 if test $ac_mid -le $ac_hi; then
21329 ac_mid=`expr 2 '*' $ac_mid`
21332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21345 # Binary search between lo and hi bounds.
21346 while test "x$ac_lo" != "x$ac_hi"; do
21347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21348 cat >conftest.$ac_ext <<_ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <stddef.h>
21358 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_lo=`expr '(' $ac_mid ')' + 1`
21390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 ?*) res_lo=$ac_lo;;
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 #include <stddef.h>
21404 static long int longval () { return ~(size_t)0 % 10; }
21405 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21407 #include <stdlib.h>
21412 FILE *f = fopen ("conftest.val", "w");
21415 if ((~(size_t)0 % 10) < 0)
21417 long int i = longval ();
21418 if (i != (~(size_t)0 % 10))
21420 fprintf (f, "%ld\n", i);
21424 unsigned long int i = ulongval ();
21425 if (i != (~(size_t)0 % 10))
21427 fprintf (f, "%lu\n", i);
21429 return ferror (f) || fclose (f) != 0;
21435 rm -f conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_link") 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21446 { (case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_try") 2>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 res_lo=`cat conftest.val`
21457 echo "$as_me: program exited with status $ac_status" >&5
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ( exit $ac_status )
21464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21468 if test "$cross_compiling" = yes; then
21469 # Depending upon the size, compute the lo and hi bounds.
21470 cat >conftest.$ac_ext <<_ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 #include <stddef.h>
21480 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_compile") 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } && {
21501 test -z "$ac_c_werror_flag" ||
21502 test ! -s conftest.err
21503 } && test -s conftest.$ac_objext; then
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <stddef.h>
21516 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21540 ac_hi=$ac_mid; break
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_lo=`expr $ac_mid + 1`
21546 if test $ac_lo -le $ac_mid; then
21550 ac_mid=`expr 2 '*' $ac_mid + 1`
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <stddef.h>
21569 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21585 grep -v '^ *+' conftest.er1 >conftest.err
21587 cat conftest.err >&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 #include <stddef.h>
21605 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_lo=$ac_mid; break
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_hi=`expr '(' $ac_mid ')' - 1`
21635 if test $ac_mid -le $ac_hi; then
21639 ac_mid=`expr 2 '*' $ac_mid`
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 # Binary search between lo and hi bounds.
21656 while test "x$ac_lo" != "x$ac_hi"; do
21657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 #include <stddef.h>
21668 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } && {
21689 test -z "$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 } && test -s conftest.$ac_objext; then
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_lo=`expr '(' $ac_mid ')' + 1`
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703 ?*) fits_in_uint=$ac_lo;;
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 #include <stddef.h>
21714 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21715 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21717 #include <stdlib.h>
21722 FILE *f = fopen ("conftest.val", "w");
21725 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21727 long int i = longval ();
21728 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21730 fprintf (f, "%ld\n", i);
21734 unsigned long int i = ulongval ();
21735 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21737 fprintf (f, "%lu\n", i);
21739 return ferror (f) || fclose (f) != 0;
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_link") 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756 { (case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_try") 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 fits_in_uint=`cat conftest.val`
21767 echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ( exit $ac_status )
21774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21778 if test "$fits_in_uint" = 1; then
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <stddef.h>
21787 extern unsigned long foo;
21797 rm -f conftest.$ac_objext
21798 if { (ac_try="$ac_compile"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_compile") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest.$ac_objext; then
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 if test -z "$result"; then
21825 if test "$fits_in_uint" = 1; then
21826 result="$res_hi$res_lo"U
21828 result="$res_hi$res_lo"UL
21831 result='~(size_t)0'
21834 { echo "$as_me:$LINENO: result: $result" >&5
21835 echo "${ECHO_T}$result" >&6; }
21836 if test "$result" != yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define SIZE_MAX $result
21848 for ac_header in stdint.h
21850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 ac_res=`eval echo '${'$as_ac_Header'}'`
21858 { echo "$as_me:$LINENO: result: $ac_res" >&5
21859 echo "${ECHO_T}$ac_res" >&6; }
21861 # Is the header compilable?
21862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 $ac_includes_default
21871 #include <$ac_header>
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest.$ac_objext; then
21890 ac_header_compiler=yes
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ac_header_compiler=no
21898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21900 echo "${ECHO_T}$ac_header_compiler" >&6; }
21902 # Is the header present?
21903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 #include <$ac_header>
21913 if { (ac_try="$ac_cpp conftest.$ac_ext"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } >/dev/null && {
21926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21929 ac_header_preproc=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_header_preproc=no
21937 rm -f conftest.err conftest.$ac_ext
21938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21939 echo "${ECHO_T}$ac_header_preproc" >&6; }
21941 # So? What about this header?
21942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21948 ac_header_preproc=yes
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 eval "$as_ac_Header=\$ac_header_preproc"
21973 ac_res=`eval echo '${'$as_ac_Header'}'`
21974 { echo "$as_me:$LINENO: result: $ac_res" >&5
21975 echo "${ECHO_T}$ac_res" >&6; }
21978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21979 cat >>confdefs.h <<_ACEOF
21980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21994 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21995 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21996 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 cat >conftest.$ac_ext <<_ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22006 typedef ptrdiff_t ac__type_new_;
22010 if ((ac__type_new_ *) 0)
22012 if (sizeof (ac__type_new_))
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
22027 grep -v '^ *+' conftest.er1 >conftest.err
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } && {
22032 test -z "$ac_c_werror_flag" ||
22033 test ! -s conftest.err
22034 } && test -s conftest.$ac_objext; then
22035 ac_cv_type_ptrdiff_t=yes
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_cv_type_ptrdiff_t=no
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22046 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22047 if test $ac_cv_type_ptrdiff_t = yes; then
22051 cat >>confdefs.h <<\_ACEOF
22052 #define ptrdiff_t long
22068 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22069 stdlib.h string.h unistd.h sys/param.h
22071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 ac_res=`eval echo '${'$as_ac_Header'}'`
22079 { echo "$as_me:$LINENO: result: $ac_res" >&5
22080 echo "${ECHO_T}$ac_res" >&6; }
22082 # Is the header compilable?
22083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 $ac_includes_default
22092 #include <$ac_header>
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_compile") 2>conftest.er1
22103 grep -v '^ *+' conftest.er1 >conftest.err
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } && {
22108 test -z "$ac_c_werror_flag" ||
22109 test ! -s conftest.err
22110 } && test -s conftest.$ac_objext; then
22111 ac_header_compiler=yes
22113 echo "$as_me: failed program was:" >&5
22114 sed 's/^/| /' conftest.$ac_ext >&5
22116 ac_header_compiler=no
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22121 echo "${ECHO_T}$ac_header_compiler" >&6; }
22123 # Is the header present?
22124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 #include <$ac_header>
22134 if { (ac_try="$ac_cpp conftest.$ac_ext"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1 >conftest.err
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } >/dev/null && {
22147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22150 ac_header_preproc=yes
22152 echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ac_header_preproc=no
22158 rm -f conftest.err conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22160 echo "${ECHO_T}$ac_header_preproc" >&6; }
22162 # So? What about this header?
22163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22169 ac_header_preproc=yes
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 eval "$as_ac_Header=\$ac_header_preproc"
22194 ac_res=`eval echo '${'$as_ac_Header'}'`
22195 { echo "$as_me:$LINENO: result: $ac_res" >&5
22196 echo "${ECHO_T}$ac_res" >&6; }
22199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22200 cat >>confdefs.h <<_ACEOF
22201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22231 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22232 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22233 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250 #define $ac_func innocuous_$ac_func
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22258 # include <limits.h>
22260 # include <assert.h>
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 return $ac_func ();
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_link") 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest$ac_exeext &&
22304 $as_test_x conftest$ac_exeext; then
22305 eval "$as_ac_var=yes"
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 eval "$as_ac_var=no"
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22316 ac_res=`eval echo '${'$as_ac_var'}'`
22317 { echo "$as_me:$LINENO: result: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22319 if test `eval echo '${'$as_ac_var'}'` = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22330 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22331 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22346 char *p = (char *) _snprintf;
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_compile") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest.$ac_objext; then
22370 ac_cv_have_decl__snprintf=yes
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_cv_have_decl__snprintf=no
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22381 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22382 if test $ac_cv_have_decl__snprintf = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL__SNPRINTF $gt_value
22394 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22395 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22396 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22411 char *p = (char *) _snwprintf;
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_cv_have_decl__snwprintf=yes
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_cv_have_decl__snwprintf=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22446 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22447 if test $ac_cv_have_decl__snwprintf = yes; then
22453 cat >>confdefs.h <<_ACEOF
22454 #define HAVE_DECL__SNWPRINTF $gt_value
22460 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22461 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22462 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22465 cat >conftest.$ac_ext <<_ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h. */
22476 #ifndef feof_unlocked
22477 char *p = (char *) feof_unlocked;
22484 rm -f conftest.$ac_objext
22485 if { (ac_try="$ac_compile"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491 (eval "$ac_compile") 2>conftest.er1
22493 grep -v '^ *+' conftest.er1 >conftest.err
22495 cat conftest.err >&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && {
22498 test -z "$ac_c_werror_flag" ||
22499 test ! -s conftest.err
22500 } && test -s conftest.$ac_objext; then
22501 ac_cv_have_decl_feof_unlocked=yes
22503 echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22506 ac_cv_have_decl_feof_unlocked=no
22509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22512 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22513 if test $ac_cv_have_decl_feof_unlocked = yes; then
22519 cat >>confdefs.h <<_ACEOF
22520 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22525 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22526 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22527 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22528 echo $ECHO_N "(cached) $ECHO_C" >&6
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22541 #ifndef fgets_unlocked
22542 char *p = (char *) fgets_unlocked;
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_compile") 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } && {
22563 test -z "$ac_c_werror_flag" ||
22564 test ! -s conftest.err
22565 } && test -s conftest.$ac_objext; then
22566 ac_cv_have_decl_fgets_unlocked=yes
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ac_cv_have_decl_fgets_unlocked=no
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22577 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22578 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22584 cat >>confdefs.h <<_ACEOF
22585 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22590 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22591 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22592 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22606 #ifndef getc_unlocked
22607 char *p = (char *) getc_unlocked;
22614 rm -f conftest.$ac_objext
22615 if { (ac_try="$ac_compile"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_compile") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest.$ac_objext; then
22631 ac_cv_have_decl_getc_unlocked=yes
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ac_cv_have_decl_getc_unlocked=no
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22642 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22643 if test $ac_cv_have_decl_getc_unlocked = yes; then
22649 cat >>confdefs.h <<_ACEOF
22650 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22655 case $gt_cv_func_printf_posix in
22656 *yes) HAVE_POSIX_PRINTF=1 ;;
22657 *) HAVE_POSIX_PRINTF=0 ;;
22660 if test "$ac_cv_func_asprintf" = yes; then
22666 if test "$ac_cv_func_snprintf" = yes; then
22672 if test "$ac_cv_func_wprintf" = yes; then
22684 am_save_CPPFLAGS="$CPPFLAGS"
22686 for element in $INCICONV; do
22688 for x in $CPPFLAGS; do
22690 acl_save_prefix="$prefix"
22691 prefix="$acl_final_prefix"
22692 acl_save_exec_prefix="$exec_prefix"
22693 exec_prefix="$acl_final_exec_prefix"
22695 exec_prefix="$acl_save_exec_prefix"
22696 prefix="$acl_save_prefix"
22698 if test "X$x" = "X$element"; then
22703 if test -z "$haveit"; then
22704 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22709 { echo "$as_me:$LINENO: checking for iconv" >&5
22710 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22711 if test "${am_cv_func_iconv+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 am_cv_func_iconv="no, consider installing GNU libiconv"
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 #include <stdlib.h>
22728 iconv_t cd = iconv_open("","");
22729 iconv(cd,NULL,NULL,NULL,NULL);
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_link") 2>conftest.er1
22744 grep -v '^ *+' conftest.er1 >conftest.err
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest$ac_exeext &&
22752 $as_test_x conftest$ac_exeext; then
22753 am_cv_func_iconv=yes
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762 conftest$ac_exeext conftest.$ac_ext
22763 if test "$am_cv_func_iconv" != yes; then
22764 am_save_LIBS="$LIBS"
22765 LIBS="$LIBS $LIBICONV"
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <stdlib.h>
22777 iconv_t cd = iconv_open("","");
22778 iconv(cd,NULL,NULL,NULL,NULL);
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_link") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest$ac_exeext &&
22801 $as_test_x conftest$ac_exeext; then
22802 am_cv_lib_iconv=yes
22803 am_cv_func_iconv=yes
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22812 conftest$ac_exeext conftest.$ac_ext
22813 LIBS="$am_save_LIBS"
22817 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22818 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22819 if test "$am_cv_func_iconv" = yes; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_ICONV 1
22826 if test "$am_cv_lib_iconv" = yes; then
22827 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22828 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22829 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22830 echo "${ECHO_T}$LIBICONV" >&6; }
22832 CPPFLAGS="$am_save_CPPFLAGS"
22839 if test "$am_cv_func_iconv" = yes; then
22840 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22841 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22842 if test "${am_cv_proto_iconv+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22853 #include <stdlib.h>
22859 #if defined(__STDC__) || defined(__cplusplus)
22860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 am_cv_proto_iconv_arg1=""
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 am_cv_proto_iconv_arg1="const"
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 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);"
22902 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22903 { echo "$as_me:$LINENO: result: ${ac_t:-
22904 }$am_cv_proto_iconv" >&5
22905 echo "${ECHO_T}${ac_t:-
22906 }$am_cv_proto_iconv" >&6; }
22908 cat >>confdefs.h <<_ACEOF
22909 #define ICONV_CONST $am_cv_proto_iconv_arg1
22915 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22916 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22917 if test "${am_cv_langinfo_codeset+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 #include <langinfo.h>
22930 char* cs = nl_langinfo(CODESET);
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_link") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest$ac_exeext &&
22952 $as_test_x conftest$ac_exeext; then
22953 am_cv_langinfo_codeset=yes
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 am_cv_langinfo_codeset=no
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962 conftest$ac_exeext conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22966 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22967 if test $am_cv_langinfo_codeset = yes; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_LANGINFO_CODESET 1
22975 if test $ac_cv_header_locale_h = yes; then
22977 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22978 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22979 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <locale.h>
22997 rm -f conftest.$ac_objext conftest$ac_exeext
22998 if { (ac_try="$ac_link"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_link") 2>conftest.er1
23006 grep -v '^ *+' conftest.er1 >conftest.err
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest$ac_exeext &&
23014 $as_test_x conftest$ac_exeext; then
23015 gt_cv_val_LC_MESSAGES=yes
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 gt_cv_val_LC_MESSAGES=no
23023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23024 conftest$ac_exeext conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23027 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23028 if test $gt_cv_val_LC_MESSAGES = yes; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_LC_MESSAGES 1
23038 if test -n "$INTL_MACOSX_LIBS"; then
23039 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23042 for ac_prog in bison
23044 # Extract the first word of "$ac_prog", so it can be a program name with args.
23045 set dummy $ac_prog; ac_word=$2
23046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23048 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 if test -n "$INTLBISON"; then
23052 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23055 for as_dir in $PATH
23058 test -z "$as_dir" && as_dir=.
23059 for ac_exec_ext in '' $ac_executable_extensions; do
23060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23061 ac_cv_prog_INTLBISON="$ac_prog"
23062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23071 INTLBISON=$ac_cv_prog_INTLBISON
23072 if test -n "$INTLBISON"; then
23073 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23074 echo "${ECHO_T}$INTLBISON" >&6; }
23076 { echo "$as_me:$LINENO: result: no" >&5
23077 echo "${ECHO_T}no" >&6; }
23081 test -n "$INTLBISON" && break
23084 if test -z "$INTLBISON"; then
23087 { echo "$as_me:$LINENO: checking version of bison" >&5
23088 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23089 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23090 case $ac_prog_version in
23091 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23092 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23093 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23094 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23096 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23097 echo "${ECHO_T}$ac_prog_version" >&6; }
23099 if test $ac_verc_fail = yes; then
23118 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23119 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23120 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 gt_save_CPPFLAGS="$CPPFLAGS"
23124 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23125 gt_save_LIBS="$LIBS"
23126 LIBS="$LIBS -framework CoreFoundation"
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 #include <CFPreferences.h>
23137 CFPreferencesCopyAppValue(NULL, NULL)
23142 rm -f conftest.$ac_objext conftest$ac_exeext
23143 if { (ac_try="$ac_link"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_link") 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } && {
23156 test -z "$ac_c_werror_flag" ||
23157 test ! -s conftest.err
23158 } && test -s conftest$ac_exeext &&
23159 $as_test_x conftest$ac_exeext; then
23160 gt_cv_func_CFPreferencesCopyAppValue=yes
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 gt_cv_func_CFPreferencesCopyAppValue=no
23168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23169 conftest$ac_exeext conftest.$ac_ext
23170 CPPFLAGS="$gt_save_CPPFLAGS"
23171 LIBS="$gt_save_LIBS"
23173 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23174 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23182 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23183 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23184 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 gt_save_CPPFLAGS="$CPPFLAGS"
23188 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23189 gt_save_LIBS="$LIBS"
23190 LIBS="$LIBS -framework CoreFoundation"
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 #include <CFLocale.h>
23201 CFLocaleCopyCurrent();
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_link") 2>conftest.er1
23215 grep -v '^ *+' conftest.er1 >conftest.err
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest$ac_exeext &&
23223 $as_test_x conftest$ac_exeext; then
23224 gt_cv_func_CFLocaleCopyCurrent=yes
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 gt_cv_func_CFLocaleCopyCurrent=no
23232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23233 conftest$ac_exeext conftest.$ac_ext
23234 CPPFLAGS="$gt_save_CPPFLAGS"
23235 LIBS="$gt_save_LIBS"
23237 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23238 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23239 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_CFLOCALECOPYCURRENT 1
23247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23248 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23254 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23255 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23256 # Check whether --enable-nls was given.
23257 if test "${enable_nls+set}" = set; then
23258 enableval=$enable_nls; USE_NLS=$enableval
23263 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23264 echo "${ECHO_T}$USE_NLS" >&6; }
23269 BUILD_INCLUDED_LIBINTL=no
23270 USE_INCLUDED_LIBINTL=no
23276 if test "$USE_NLS" = "yes"; then
23277 gt_use_preinstalled_gnugettext=no
23279 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23280 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23282 # Check whether --with-included-gettext was given.
23283 if test "${with_included_gettext+set}" = set; then
23284 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23286 nls_cv_force_use_gnu_gettext=no
23289 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23290 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23292 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23293 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23300 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23301 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23302 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 cat >conftest.$ac_ext <<_ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 #include <libintl.h>
23312 extern int _nl_msg_cat_cntr;
23313 extern int *_nl_domain_bindings;
23317 bindtextdomain ("", "");
23318 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23323 rm -f conftest.$ac_objext conftest$ac_exeext
23324 if { (ac_try="$ac_link"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_link") 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest$ac_exeext &&
23340 $as_test_x conftest$ac_exeext; then
23341 gt_cv_func_gnugettext1_libc=yes
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 gt_cv_func_gnugettext1_libc=no
23349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23350 conftest$ac_exeext conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23353 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23355 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23361 acl_save_prefix="$prefix"
23362 prefix="$acl_final_prefix"
23363 acl_save_exec_prefix="$exec_prefix"
23364 exec_prefix="$acl_final_exec_prefix"
23366 eval additional_includedir=\"$includedir\"
23367 eval additional_libdir=\"$libdir\"
23369 exec_prefix="$acl_save_exec_prefix"
23370 prefix="$acl_save_prefix"
23373 # Check whether --with-libintl-prefix was given.
23374 if test "${with_libintl_prefix+set}" = set; then
23375 withval=$with_libintl_prefix;
23376 if test "X$withval" = "Xno"; then
23379 if test "X$withval" = "X"; then
23381 acl_save_prefix="$prefix"
23382 prefix="$acl_final_prefix"
23383 acl_save_exec_prefix="$exec_prefix"
23384 exec_prefix="$acl_final_exec_prefix"
23386 eval additional_includedir=\"$includedir\"
23387 eval additional_libdir=\"$libdir\"
23389 exec_prefix="$acl_save_exec_prefix"
23390 prefix="$acl_save_prefix"
23393 additional_includedir="$withval/include"
23394 additional_libdir="$withval/lib"
23405 names_already_handled=
23406 names_next_round='intl '
23407 while test -n "$names_next_round"; do
23408 names_this_round="$names_next_round"
23410 for name in $names_this_round; do
23412 for n in $names_already_handled; do
23413 if test "$n" = "$name"; then
23414 already_handled=yes
23418 if test -z "$already_handled"; then
23419 names_already_handled="$names_already_handled $name"
23420 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23421 eval value=\"\$HAVE_LIB$uppername\"
23422 if test -n "$value"; then
23423 if test "$value" = yes; then
23424 eval value=\"\$LIB$uppername\"
23425 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23426 eval value=\"\$LTLIB$uppername\"
23427 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23436 if test $use_additional = yes; then
23437 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23438 found_dir="$additional_libdir"
23439 found_so="$additional_libdir/lib$name.$shlibext"
23440 if test -f "$additional_libdir/lib$name.la"; then
23441 found_la="$additional_libdir/lib$name.la"
23444 if test -f "$additional_libdir/lib$name.$libext"; then
23445 found_dir="$additional_libdir"
23446 found_a="$additional_libdir/lib$name.$libext"
23447 if test -f "$additional_libdir/lib$name.la"; then
23448 found_la="$additional_libdir/lib$name.la"
23453 if test "X$found_dir" = "X"; then
23454 for x in $LDFLAGS $LTLIBINTL; do
23456 acl_save_prefix="$prefix"
23457 prefix="$acl_final_prefix"
23458 acl_save_exec_prefix="$exec_prefix"
23459 exec_prefix="$acl_final_exec_prefix"
23461 exec_prefix="$acl_save_exec_prefix"
23462 prefix="$acl_save_prefix"
23466 dir=`echo "X$x" | sed -e 's/^X-L//'`
23467 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23469 found_so="$dir/lib$name.$shlibext"
23470 if test -f "$dir/lib$name.la"; then
23471 found_la="$dir/lib$name.la"
23474 if test -f "$dir/lib$name.$libext"; then
23476 found_a="$dir/lib$name.$libext"
23477 if test -f "$dir/lib$name.la"; then
23478 found_la="$dir/lib$name.la"
23484 if test "X$found_dir" != "X"; then
23489 if test "X$found_dir" != "X"; then
23490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23491 if test "X$found_so" != "X"; then
23492 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23496 for x in $ltrpathdirs; do
23497 if test "X$x" = "X$found_dir"; then
23502 if test -z "$haveit"; then
23503 ltrpathdirs="$ltrpathdirs $found_dir"
23505 if test "$hardcode_direct" = yes; then
23506 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23508 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23509 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23511 for x in $rpathdirs; do
23512 if test "X$x" = "X$found_dir"; then
23517 if test -z "$haveit"; then
23518 rpathdirs="$rpathdirs $found_dir"
23522 for x in $LDFLAGS $LIBINTL; do
23524 acl_save_prefix="$prefix"
23525 prefix="$acl_final_prefix"
23526 acl_save_exec_prefix="$exec_prefix"
23527 exec_prefix="$acl_final_exec_prefix"
23529 exec_prefix="$acl_save_exec_prefix"
23530 prefix="$acl_save_prefix"
23532 if test "X$x" = "X-L$found_dir"; then
23537 if test -z "$haveit"; then
23538 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23540 if test "$hardcode_minus_L" != no; then
23541 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23543 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23549 if test "X$found_a" != "X"; then
23550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23552 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23555 additional_includedir=
23556 case "$found_dir" in
23558 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23559 additional_includedir="$basedir/include"
23562 if test "X$additional_includedir" != "X"; then
23563 if test "X$additional_includedir" != "X/usr/include"; then
23565 if test "X$additional_includedir" = "X/usr/local/include"; then
23566 if test -n "$GCC"; then
23568 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23572 if test -z "$haveit"; then
23573 for x in $CPPFLAGS $INCINTL; do
23575 acl_save_prefix="$prefix"
23576 prefix="$acl_final_prefix"
23577 acl_save_exec_prefix="$exec_prefix"
23578 exec_prefix="$acl_final_exec_prefix"
23580 exec_prefix="$acl_save_exec_prefix"
23581 prefix="$acl_save_prefix"
23583 if test "X$x" = "X-I$additional_includedir"; then
23588 if test -z "$haveit"; then
23589 if test -d "$additional_includedir"; then
23590 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23596 if test -n "$found_la"; then
23597 save_libdir="$libdir"
23598 case "$found_la" in
23599 */* | *\\*) . "$found_la" ;;
23600 *) . "./$found_la" ;;
23602 libdir="$save_libdir"
23603 for dep in $dependency_libs; do
23606 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23607 if test "X$additional_libdir" != "X/usr/lib"; then
23609 if test "X$additional_libdir" = "X/usr/local/lib"; then
23610 if test -n "$GCC"; then
23612 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23616 if test -z "$haveit"; then
23618 for x in $LDFLAGS $LIBINTL; do
23620 acl_save_prefix="$prefix"
23621 prefix="$acl_final_prefix"
23622 acl_save_exec_prefix="$exec_prefix"
23623 exec_prefix="$acl_final_exec_prefix"
23625 exec_prefix="$acl_save_exec_prefix"
23626 prefix="$acl_save_prefix"
23628 if test "X$x" = "X-L$additional_libdir"; then
23633 if test -z "$haveit"; then
23634 if test -d "$additional_libdir"; then
23635 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23639 for x in $LDFLAGS $LTLIBINTL; do
23641 acl_save_prefix="$prefix"
23642 prefix="$acl_final_prefix"
23643 acl_save_exec_prefix="$exec_prefix"
23644 exec_prefix="$acl_final_exec_prefix"
23646 exec_prefix="$acl_save_exec_prefix"
23647 prefix="$acl_save_prefix"
23649 if test "X$x" = "X-L$additional_libdir"; then
23654 if test -z "$haveit"; then
23655 if test -d "$additional_libdir"; then
23656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23663 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23664 if test "$enable_rpath" != no; then
23666 for x in $rpathdirs; do
23667 if test "X$x" = "X$dir"; then
23672 if test -z "$haveit"; then
23673 rpathdirs="$rpathdirs $dir"
23676 for x in $ltrpathdirs; do
23677 if test "X$x" = "X$dir"; then
23682 if test -z "$haveit"; then
23683 ltrpathdirs="$ltrpathdirs $dir"
23688 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23694 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23695 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23701 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23708 if test "X$rpathdirs" != "X"; then
23709 if test -n "$hardcode_libdir_separator"; then
23711 for found_dir in $rpathdirs; do
23712 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23714 acl_save_libdir="$libdir"
23716 eval flag=\"$hardcode_libdir_flag_spec\"
23717 libdir="$acl_save_libdir"
23718 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23720 for found_dir in $rpathdirs; do
23721 acl_save_libdir="$libdir"
23722 libdir="$found_dir"
23723 eval flag=\"$hardcode_libdir_flag_spec\"
23724 libdir="$acl_save_libdir"
23725 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23729 if test "X$ltrpathdirs" != "X"; then
23730 for found_dir in $ltrpathdirs; do
23731 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23735 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23736 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23737 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 gt_save_CPPFLAGS="$CPPFLAGS"
23741 CPPFLAGS="$CPPFLAGS $INCINTL"
23742 gt_save_LIBS="$LIBS"
23743 LIBS="$LIBS $LIBINTL"
23744 cat >conftest.$ac_ext <<_ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <libintl.h>
23751 extern int _nl_msg_cat_cntr;
23756 const char *_nl_expand_alias (const char *);
23760 bindtextdomain ("", "");
23761 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23766 rm -f conftest.$ac_objext conftest$ac_exeext
23767 if { (ac_try="$ac_link"
23768 case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_link") 2>conftest.er1
23775 grep -v '^ *+' conftest.er1 >conftest.err
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } && {
23780 test -z "$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23782 } && test -s conftest$ac_exeext &&
23783 $as_test_x conftest$ac_exeext; then
23784 gt_cv_func_gnugettext1_libintl=yes
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 gt_cv_func_gnugettext1_libintl=no
23792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23793 conftest$ac_exeext conftest.$ac_ext
23794 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23795 LIBS="$LIBS $LIBICONV"
23796 cat >conftest.$ac_ext <<_ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 #include <libintl.h>
23803 extern int _nl_msg_cat_cntr;
23808 const char *_nl_expand_alias (const char *);
23812 bindtextdomain ("", "");
23813 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825 (eval "$ac_link") 2>conftest.er1
23827 grep -v '^ *+' conftest.er1 >conftest.err
23829 cat conftest.err >&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } && {
23832 test -z "$ac_c_werror_flag" ||
23833 test ! -s conftest.err
23834 } && test -s conftest$ac_exeext &&
23835 $as_test_x conftest$ac_exeext; then
23836 LIBINTL="$LIBINTL $LIBICONV"
23837 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23838 gt_cv_func_gnugettext1_libintl=yes
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23848 conftest$ac_exeext conftest.$ac_ext
23850 CPPFLAGS="$gt_save_CPPFLAGS"
23851 LIBS="$gt_save_LIBS"
23853 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23854 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23857 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23858 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23859 && test "$PACKAGE" != gettext-runtime \
23860 && test "$PACKAGE" != gettext-tools; }; then
23861 gt_use_preinstalled_gnugettext=yes
23869 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23870 nls_cv_use_gnu_gettext=yes
23874 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23875 BUILD_INCLUDED_LIBINTL=yes
23876 USE_INCLUDED_LIBINTL=yes
23877 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23878 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23879 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23883 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23884 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23889 if test -n "$INTL_MACOSX_LIBS"; then
23890 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23891 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23892 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23893 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23897 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23898 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23900 cat >>confdefs.h <<\_ACEOF
23901 #define ENABLE_NLS 1
23909 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23910 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23911 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23912 echo "${ECHO_T}$USE_NLS" >&6; }
23913 if test "$USE_NLS" = "yes"; then
23914 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23915 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23916 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23917 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23918 gt_source="external libintl"
23923 gt_source="included intl directory"
23925 { echo "$as_me:$LINENO: result: $gt_source" >&5
23926 echo "${ECHO_T}$gt_source" >&6; }
23929 if test "$USE_NLS" = "yes"; then
23931 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23932 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23933 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23934 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23935 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23936 echo "${ECHO_T}$LIBINTL" >&6; }
23938 for element in $INCINTL; do
23940 for x in $CPPFLAGS; do
23942 acl_save_prefix="$prefix"
23943 prefix="$acl_final_prefix"
23944 acl_save_exec_prefix="$exec_prefix"
23945 exec_prefix="$acl_final_exec_prefix"
23947 exec_prefix="$acl_save_exec_prefix"
23948 prefix="$acl_save_prefix"
23950 if test "X$x" = "X$element"; then
23955 if test -z "$haveit"; then
23956 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_GETTEXT 1
23968 cat >>confdefs.h <<\_ACEOF
23969 #define HAVE_DCGETTEXT 1
23978 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23979 BUILD_INCLUDED_LIBINTL=yes
23986 nls_cv_header_intl=
23987 nls_cv_header_libgt=
23999 if test "$USE_INCLUDED_LIBINTL" = yes; then
24000 INTLOBJS="\$(GETTOBJS)"
24004 INTL_LIBTOOL_SUFFIX_PREFIX=
24008 INTLLIBS="$LIBINTL"
24020 support_postgresql=no
24022 support_smartalloc=yes
24023 support_readline=yes
24027 support_wx_console=no
24028 support_tray_monitor=no
24033 support_static_tools=no
24034 support_static_fd=no
24035 support_static_sd=no
24036 support_static_dir=no
24037 support_static_cons=no
24039 build_client_only=no
24048 # Check whether --enable-gnome was given.
24049 if test "${enable_gnome+set}" = set; then
24050 enableval=$enable_gnome;
24051 if test x$enableval = xyes; then
24060 if test x$support_gnome = xyes; then
24061 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24062 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24063 { (exit 1); exit 1; }; }
24064 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24065 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24066 { (exit 1); exit 1; }; }
24068 # AC_SUBST(GNOME_DIR)
24070 # Check whether --enable-bat was given.
24071 if test "${enable_bat+set}" = set; then
24072 enableval=$enable_bat;
24073 if test x$enableval = xyes; then
24075 cat >>confdefs.h <<\_ACEOF
24087 if test x$support_bat = xyes; then
24088 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24090 if test $pkg = 0; then
24091 BAT_DIR=src/qt-console
24093 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24094 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24095 { (exit 1); exit 1; }; }
24105 if test x$support_bat = xyes; then
24106 { echo "$as_me:$LINENO: checking for qwt support" >&5
24107 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24109 # Check whether --with-qwt was given.
24110 if test "${with_qwt+set}" = set; then
24112 case "$with_qwt" in
24117 if test -f ${with_qwt}/include/qwt.h; then
24118 QWT_INC="${with_qwt}/include"
24119 QWT_LDFLAGS="-L${with_qwt}/lib"
24130 if test $no_qwt = no; then
24131 if test x$QWT_INC = x; then
24132 for root in /usr /usr/local; do
24133 for ver in qwt qwt5 qwt-qt4; do
24134 if test -f ${root}/include/${ver}/qwt.h; then
24135 QWT_INC="${root}/include/${ver}"
24136 if test -d ${root}/lib64/; then
24137 QWT_LDFLAGS="-L${root}/lib64"
24138 elif test -d ${root}/lib/64/; then
24139 QWT_LDFLAGS="-L${root}/64"
24141 QWT_LDFLAGS="-L${root}/lib"
24152 if test x$QWT_INC = x; then
24153 { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24157 cat >>confdefs.h <<\_ACEOF
24161 { echo "$as_me:$LINENO: result: yes" >&5
24162 echo "${ECHO_T}yes" >&6; }
24172 # Check whether --enable-bwx-console was given.
24173 if test "${enable_bwx_console+set}" = set; then
24174 enableval=$enable_bwx_console;
24175 if test x$enableval = xyes; then
24176 support_wx_console=yes
24184 if test x$support_wx_console = xyes; then
24185 abc=`$WXCONFIG $WXFLAGS --cppflags`
24187 if test $pkg = 0; then
24188 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24189 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24190 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24194 WX_DIR="src/wx-console"
24197 echo "wx-config program not found. bwx-console disabled."
24199 support_wx_console=no
24204 # Check whether --enable-tray-monitor was given.
24205 if test "${enable_tray_monitor+set}" = set; then
24206 enableval=$enable_tray_monitor;
24207 if test x$enableval = xyes; then
24208 support_tray_monitor=yes
24216 if test x$support_tray_monitor = xyes; then
24217 abc=`$PKGCONFIG --exists gtk+-2.0`
24219 if test $pkg = 0; then
24220 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24221 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24224 TRAY_MONITOR_DIR=src/tray-monitor
24225 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24227 if test $pkg = 0; then
24229 cat >>confdefs.h <<\_ACEOF
24230 #define HAVE_GTK_2_4 1
24238 # Check whether --enable-smartalloc was given.
24239 if test "${enable_smartalloc+set}" = set; then
24240 enableval=$enable_smartalloc;
24241 if test x$enableval = xno; then
24242 support_smartalloc=no
24249 if test x$support_smartalloc = xyes; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define SMARTALLOC 1
24257 # Check whether --enable-lockmgr was given.
24258 if test "${enable_lockmgr+set}" = set; then
24259 enableval=$enable_lockmgr;
24260 if test x$enableval = xyes; then
24261 support_lockmgr=yes
24268 if test x$support_lockmgr = xyes; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define _USE_LOCKMGR 1
24277 # Check whether --enable-static-tools was given.
24278 if test "${enable_static_tools+set}" = set; then
24279 enableval=$enable_static_tools;
24280 if test x$enableval = xyes; then
24281 if test x$use_libtool = xyes; then
24282 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24283 please rerun configure with --disable-libtool" >&5
24284 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24285 please rerun configure with --disable-libtool" >&2;}
24286 { (exit 1); exit 1; }; }
24288 support_static_tools=yes
24296 if test x$support_static_tools = xyes; then
24297 TTOOL_LDFLAGS="-static"
24301 # Check whether --enable-static-fd was given.
24302 if test "${enable_static_fd+set}" = set; then
24303 enableval=$enable_static_fd;
24304 if test x$enableval = xyes; then
24305 if test x$use_libtool = xyes; then
24306 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24307 please rerun configure with --disable-libtool" >&5
24308 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24309 please rerun configure with --disable-libtool" >&2;}
24310 { (exit 1); exit 1; }; }
24312 support_static_fd=yes
24320 if test x$support_static_fd = xyes; then
24321 STATIC_FD="static-bacula-fd"
24325 # Check whether --enable-static-sd was given.
24326 if test "${enable_static_sd+set}" = set; then
24327 enableval=$enable_static_sd;
24328 if test x$enableval = xyes; then
24329 if test x$use_libtool = xyes; then
24330 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24331 please rerun configure with --disable-libtool" >&5
24332 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24333 please rerun configure with --disable-libtool" >&2;}
24334 { (exit 1); exit 1; }; }
24336 support_static_sd=yes
24344 if test x$support_static_sd = xyes; then
24345 STATIC_SD="static-bacula-sd"
24349 # Check whether --enable-static-dir was given.
24350 if test "${enable_static_dir+set}" = set; then
24351 enableval=$enable_static_dir;
24352 if test x$enableval = xyes; then
24353 if test x$use_libtool = xyes; then
24354 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24355 please rerun configure with --disable-libtool" >&5
24356 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24357 please rerun configure with --disable-libtool" >&2;}
24358 { (exit 1); exit 1; }; }
24360 support_static_dir=yes
24368 if test x$support_static_dir = xyes; then
24369 STATIC_DIR="static-bacula-dir"
24373 # Check whether --enable-static-cons was given.
24374 if test "${enable_static_cons+set}" = set; then
24375 enableval=$enable_static_cons;
24376 if test x$enableval = xyes; then
24377 if test x$use_libtool = xyes; then
24378 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24379 please rerun configure with --disable-libtool" >&5
24380 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24381 please rerun configure with --disable-libtool" >&2;}
24382 { (exit 1); exit 1; }; }
24384 support_static_cons=yes
24394 if test x$support_static_cons = xyes; then
24395 STATIC_CONS="static-bconsole"
24396 STATIC_GNOME_CONS="static-bgnome-console"
24397 STATIC_WX_CONS="static-bwx-console"
24403 # Check whether --enable-client-only was given.
24404 if test "${enable_client_only+set}" = set; then
24405 enableval=$enable_client_only;
24406 if test x$enableval = xyes; then
24407 build_client_only=yes
24415 if test x$build_client_only = xno; then
24422 # Check whether --enable-build-dird was given.
24423 if test "${enable_build_dird+set}" = set; then
24424 enableval=$enable_build_dird;
24425 if test x$enableval = xno; then
24432 if test x$build_dird = xyes; then
24433 DIRD_DIR="src/dird"
24434 DIR_TOOLS="DIRTOOLS"
24437 DIR_TOOLS="NODIRTOOLS"
24442 # Check whether --enable-build-stored was given.
24443 if test "${enable_build_stored+set}" = set; then
24444 enableval=$enable_build_stored;
24445 if test x$enableval = xno; then
24452 if test x$build_stored = xyes; then
24453 STORED_DIR="src/stored"
24459 # Check whether --enable-conio was given.
24460 if test "${enable_conio+set}" = set; then
24461 enableval=$enable_conio;
24462 if test x$enableval = xno; then
24472 # Check whether --enable-ipv6 was given.
24473 if test "${enable_ipv6+set}" = set; then
24474 enableval=$enable_ipv6;
24475 if test x$enableval = xno; then
24483 if test x$support_ipv6 = xyes; then
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 #include <sys/types.h>
24491 #include <sys/socket.h>
24492 #include <netinet/in.h>
24496 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_link") 2>conftest.er1
24510 grep -v '^ *+' conftest.er1 >conftest.err
24512 cat conftest.err >&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } && {
24515 test -z "$ac_c_werror_flag" ||
24516 test ! -s conftest.err
24517 } && test -s conftest$ac_exeext &&
24518 $as_test_x conftest$ac_exeext; then
24521 echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24528 conftest$ac_exeext conftest.$ac_ext
24531 if test x$support_ipv6 = xyes; then
24533 cat >>confdefs.h <<\_ACEOF
24534 #define HAVE_IPV6 1
24540 if test x$support_conio = xyes; then
24541 if test "${ac_cv_header_termcap_h+set}" = set; then
24542 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24543 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24544 if test "${ac_cv_header_termcap_h+set}" = set; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24547 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24548 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24550 # Is the header compilable?
24551 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24552 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24553 cat >conftest.$ac_ext <<_ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h. */
24559 $ac_includes_default
24560 #include <termcap.h>
24562 rm -f conftest.$ac_objext
24563 if { (ac_try="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_header_compiler=yes
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_header_compiler=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24589 echo "${ECHO_T}$ac_header_compiler" >&6; }
24591 # Is the header present?
24592 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24593 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24594 cat >conftest.$ac_ext <<_ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h. */
24600 #include <termcap.h>
24602 if { (ac_try="$ac_cpp conftest.$ac_ext"
24603 case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24610 grep -v '^ *+' conftest.er1 >conftest.err
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } >/dev/null && {
24615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24616 test ! -s conftest.err
24618 ac_header_preproc=yes
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_header_preproc=no
24626 rm -f conftest.err conftest.$ac_ext
24627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24628 echo "${ECHO_T}$ac_header_preproc" >&6; }
24630 # So? What about this header?
24631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24633 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24634 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24635 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24636 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24637 ac_header_preproc=yes
24640 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24641 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24642 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24643 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24644 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24645 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24646 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24647 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24648 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24649 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24650 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24651 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24655 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24656 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24657 if test "${ac_cv_header_termcap_h+set}" = set; then
24658 echo $ECHO_N "(cached) $ECHO_C" >&6
24660 ac_cv_header_termcap_h=$ac_header_preproc
24662 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24663 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24666 if test $ac_cv_header_termcap_h = yes; then
24667 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24668 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 ac_check_lib_save_LIBS=$LIBS
24673 LIBS="-ltermcap $LIBS"
24674 cat >conftest.$ac_ext <<_ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h. */
24681 /* Override any GCC internal prototype to avoid an error.
24682 Use char because int might match the return type of a GCC
24683 builtin and then its argument prototype would still apply. */
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703 (eval "$ac_link") 2>conftest.er1
24705 grep -v '^ *+' conftest.er1 >conftest.err
24707 cat conftest.err >&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } && {
24710 test -z "$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24712 } && test -s conftest$ac_exeext &&
24713 $as_test_x conftest$ac_exeext; then
24714 ac_cv_lib_termcap_tgetent=yes
24716 echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24719 ac_cv_lib_termcap_tgetent=no
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723 conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24727 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24728 if test $ac_cv_lib_termcap_tgetent = yes; then
24729 CONS_LIBS="-ltermcap"
24733 support_readline=no
24735 cat >>confdefs.h <<\_ACEOF
24736 #define HAVE_CONIO 1
24741 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24742 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24743 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 ac_check_lib_save_LIBS=$LIBS
24747 LIBS="-lncurses $LIBS"
24748 cat >conftest.$ac_ext <<_ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24755 /* Override any GCC internal prototype to avoid an error.
24756 Use char because int might match the return type of a GCC
24757 builtin and then its argument prototype would still apply. */
24770 rm -f conftest.$ac_objext conftest$ac_exeext
24771 if { (ac_try="$ac_link"
24772 case "(($ac_try" in
24773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774 *) ac_try_echo=$ac_try;;
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777 (eval "$ac_link") 2>conftest.er1
24779 grep -v '^ *+' conftest.er1 >conftest.err
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } && {
24784 test -z "$ac_c_werror_flag" ||
24785 test ! -s conftest.err
24786 } && test -s conftest$ac_exeext &&
24787 $as_test_x conftest$ac_exeext; then
24788 ac_cv_lib_ncurses_tgetent=yes
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ac_cv_lib_ncurses_tgetent=no
24796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24797 conftest$ac_exeext conftest.$ac_ext
24798 LIBS=$ac_check_lib_save_LIBS
24800 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24801 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24802 if test $ac_cv_lib_ncurses_tgetent = yes; then
24803 CONS_LIBS="-lncurses"
24807 support_readline=no
24809 cat >>confdefs.h <<\_ACEOF
24810 #define HAVE_CONIO 1
24823 for ac_header in curses.h
24825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24832 ac_res=`eval echo '${'$as_ac_Header'}'`
24833 { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24836 # Is the header compilable?
24837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 $ac_includes_default
24846 #include <$ac_header>
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_header_compiler=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_header_compiler=no
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24875 echo "${ECHO_T}$ac_header_compiler" >&6; }
24877 # Is the header present?
24878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24880 cat >conftest.$ac_ext <<_ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h. */
24886 #include <$ac_header>
24888 if { (ac_try="$ac_cpp conftest.$ac_ext"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1 >conftest.err
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } >/dev/null && {
24901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24904 ac_header_preproc=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_header_preproc=no
24912 rm -f conftest.err conftest.$ac_ext
24913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24914 echo "${ECHO_T}$ac_header_preproc" >&6; }
24916 # So? What about this header?
24917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24923 ac_header_preproc=yes
24926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24946 eval "$as_ac_Header=\$ac_header_preproc"
24948 ac_res=`eval echo '${'$as_ac_Header'}'`
24949 { echo "$as_me:$LINENO: result: $ac_res" >&5
24950 echo "${ECHO_T}$ac_res" >&6; }
24953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24954 cat >>confdefs.h <<_ACEOF
24955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24962 { echo "$as_me:$LINENO: checking for term.h" >&5
24963 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24964 if test "${ac_cv_header_term_h+set}" = set; then
24965 echo $ECHO_N "(cached) $ECHO_C" >&6
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24974 #include <curses.h>
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987 (eval "$ac_compile") 2>conftest.er1
24989 grep -v '^ *+' conftest.er1 >conftest.err
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } && {
24994 test -z "$ac_c_werror_flag" ||
24995 test ! -s conftest.err
24996 } && test -s conftest.$ac_objext; then
24997 ac_cv_header_term_h=yes
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ac_cv_header_term_h=no
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25007 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25008 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25009 if test $ac_cv_header_term_h = yes; then
25010 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25011 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25012 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25015 ac_check_lib_save_LIBS=$LIBS
25016 LIBS="-lcurses $LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25024 /* Override any GCC internal prototype to avoid an error.
25025 Use char because int might match the return type of a GCC
25026 builtin and then its argument prototype would still apply. */
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_link") 2>conftest.er1
25048 grep -v '^ *+' conftest.er1 >conftest.err
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } && {
25053 test -z "$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 } && test -s conftest$ac_exeext &&
25056 $as_test_x conftest$ac_exeext; then
25057 ac_cv_lib_curses_tgetent=yes
25059 echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 ac_cv_lib_curses_tgetent=no
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066 conftest$ac_exeext conftest.$ac_ext
25067 LIBS=$ac_check_lib_save_LIBS
25069 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25070 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25071 if test $ac_cv_lib_curses_tgetent = yes; then
25072 CONS_LIBS="-lcurses"
25076 support_readline=no
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_CONIO 1
25087 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25098 # Check whether --enable-readline was given.
25099 if test "${enable_readline+set}" = set; then
25100 enableval=$enable_readline;
25101 if test x$enableval = xno; then
25102 support_readline=no
25111 if test x$support_readline = xyes; then
25113 # Check whether --with-readline was given.
25114 if test "${with_readline+set}" = set; then
25115 withval=$with_readline;
25116 case "$with_readline" in
25121 if test -f ${with_readline}/readline.h; then
25122 CONS_INC="-I${with_readline}"
25123 CONS_LDFLAGS="-L$with_readline"
25124 elif test -f ${with_readline}/include/readline/readline.h; then
25125 CONS_INC="-I${with_readline}/include/readline"
25126 CONS_LDFLAGS="-L${with_readline}/lib"
25127 with_readline="${with_readline}/include/readline"
25129 with_readline="/usr/include/readline"
25132 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25135 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25137 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 ac_res=`eval echo '${'$as_ac_Header'}'`
25140 { echo "$as_me:$LINENO: result: $ac_res" >&5
25141 echo "${ECHO_T}$ac_res" >&6; }
25143 # Is the header compilable?
25144 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25145 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 $ac_includes_default
25153 #include <${with_readline}/readline.h>
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162 (eval "$ac_compile") 2>conftest.er1
25164 grep -v '^ *+' conftest.er1 >conftest.err
25166 cat conftest.err >&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } && {
25169 test -z "$ac_c_werror_flag" ||
25170 test ! -s conftest.err
25171 } && test -s conftest.$ac_objext; then
25172 ac_header_compiler=yes
25174 echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25177 ac_header_compiler=no
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6; }
25184 # Is the header present?
25185 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25186 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25187 cat >conftest.$ac_ext <<_ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193 #include <${with_readline}/readline.h>
25195 if { (ac_try="$ac_cpp conftest.$ac_ext"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } >/dev/null && {
25208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25211 ac_header_preproc=yes
25213 echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25216 ac_header_preproc=no
25219 rm -f conftest.err conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25221 echo "${ECHO_T}$ac_header_preproc" >&6; }
25223 # So? What about this header?
25224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25226 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25228 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25230 ac_header_preproc=yes
25233 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25235 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25237 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25239 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25241 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25243 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25248 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25249 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25253 eval "$as_ac_Header=\$ac_header_preproc"
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256 { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
25260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define HAVE_READLINE 1
25267 CONS_LIBS="-lreadline -lhistory -ltermcap"
25273 echo "readline.h not found. readline turned off ..."
25285 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25287 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25288 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25292 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25294 # Is the header compilable?
25295 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25296 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25297 cat >conftest.$ac_ext <<_ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 $ac_includes_default
25304 #include </usr/include/readline/readline.h>
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_compile") 2>conftest.er1
25315 grep -v '^ *+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest.$ac_objext; then
25323 ac_header_compiler=yes
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ac_header_compiler=no
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25337 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h. */
25344 #include </usr/include/readline/readline.h>
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25354 grep -v '^ *+' conftest.er1 >conftest.err
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } >/dev/null && {
25359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360 test ! -s conftest.err
25362 ac_header_preproc=yes
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_header_preproc=no
25370 rm -f conftest.err conftest.$ac_ext
25371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6; }
25374 # So? What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25377 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25381 ac_header_preproc=yes
25384 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25390 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25392 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25399 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25400 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25401 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25406 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25407 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25410 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25413 cat >>confdefs.h <<\_ACEOF
25414 #define HAVE_READLINE 1
25418 CONS_INC="-I/usr/include/readline"
25419 CONS_LIBS="-lreadline -ltermcap"
25423 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25426 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 ac_res=`eval echo '${'$as_ac_Header'}'`
25431 { echo "$as_me:$LINENO: result: $ac_res" >&5
25432 echo "${ECHO_T}$ac_res" >&6; }
25434 # Is the header compilable?
25435 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25436 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25437 cat >conftest.$ac_ext <<_ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h. */
25443 $ac_includes_default
25444 #include <${TOP_DIR}/depkgs/readline/readline.h>
25446 rm -f conftest.$ac_objext
25447 if { (ac_try="$ac_compile"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453 (eval "$ac_compile") 2>conftest.er1
25455 grep -v '^ *+' conftest.er1 >conftest.err
25457 cat conftest.err >&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && {
25460 test -z "$ac_c_werror_flag" ||
25461 test ! -s conftest.err
25462 } && test -s conftest.$ac_objext; then
25463 ac_header_compiler=yes
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ac_header_compiler=no
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6; }
25475 # Is the header present?
25476 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25477 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 #include <${TOP_DIR}/depkgs/readline/readline.h>
25486 if { (ac_try="$ac_cpp conftest.$ac_ext"
25487 case "(($ac_try" in
25488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489 *) ac_try_echo=$ac_try;;
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25494 grep -v '^ *+' conftest.er1 >conftest.err
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } >/dev/null && {
25499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25500 test ! -s conftest.err
25502 ac_header_preproc=yes
25504 echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25507 ac_header_preproc=no
25510 rm -f conftest.err conftest.$ac_ext
25511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6; }
25514 # So? What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25517 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25521 ac_header_preproc=yes
25524 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25539 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25540 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 eval "$as_ac_Header=\$ac_header_preproc"
25546 ac_res=`eval echo '${'$as_ac_Header'}'`
25547 { echo "$as_me:$LINENO: result: $ac_res" >&5
25548 echo "${ECHO_T}$ac_res" >&6; }
25551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25554 cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_READLINE 1
25559 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25560 CONS_LIBS="-lreadline -lhistory -ltermcap"
25561 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25562 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25567 echo "readline.h not found. readline turned off ..."
25594 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25595 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25596 if test "${ac_cv_header_stat_broken+set}" = set; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25599 cat >conftest.$ac_ext <<_ACEOF
25602 cat confdefs.h >>conftest.$ac_ext
25603 cat >>conftest.$ac_ext <<_ACEOF
25604 /* end confdefs.h. */
25605 #include <sys/types.h>
25606 #include <sys/stat.h>
25608 #if defined S_ISBLK && defined S_IFDIR
25609 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25612 #if defined S_ISBLK && defined S_IFCHR
25613 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25616 #if defined S_ISLNK && defined S_IFREG
25617 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25620 #if defined S_ISSOCK && defined S_IFREG
25621 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_compile") 2>conftest.er1
25634 grep -v '^ *+' conftest.er1 >conftest.err
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest.$ac_objext; then
25642 ac_cv_header_stat_broken=no
25644 echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25647 ac_cv_header_stat_broken=yes
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25653 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25654 if test $ac_cv_header_stat_broken = yes; then
25656 cat >>confdefs.h <<\_ACEOF
25657 #define STAT_MACROS_BROKEN 1
25667 ac_header_dirent=no
25668 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25669 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25670 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25671 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673 echo $ECHO_N "(cached) $ECHO_C" >&6
25675 cat >conftest.$ac_ext <<_ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h. */
25681 #include <sys/types.h>
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700 (eval "$ac_compile") 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } && {
25707 test -z "$ac_c_werror_flag" ||
25708 test ! -s conftest.err
25709 } && test -s conftest.$ac_objext; then
25710 eval "$as_ac_Header=yes"
25712 echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 eval "$as_ac_Header=no"
25718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720 ac_res=`eval echo '${'$as_ac_Header'}'`
25721 { echo "$as_me:$LINENO: result: $ac_res" >&5
25722 echo "${ECHO_T}$ac_res" >&6; }
25723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25724 cat >>confdefs.h <<_ACEOF
25725 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25728 ac_header_dirent=$ac_hdr; break
25732 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25733 if test $ac_header_dirent = dirent.h; then
25734 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25736 if test "${ac_cv_search_opendir+set}" = set; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25739 ac_func_search_save_LIBS=$LIBS
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25747 /* Override any GCC internal prototype to avoid an error.
25748 Use char because int might match the return type of a GCC
25749 builtin and then its argument prototype would still apply. */
25762 for ac_lib in '' dir; do
25763 if test -z "$ac_lib"; then
25764 ac_res="none required"
25767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25769 rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (ac_try="$ac_link"
25771 case "(($ac_try" in
25772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773 *) ac_try_echo=$ac_try;;
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776 (eval "$ac_link") 2>conftest.er1
25778 grep -v '^ *+' conftest.er1 >conftest.err
25780 cat conftest.err >&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } && {
25783 test -z "$ac_c_werror_flag" ||
25784 test ! -s conftest.err
25785 } && test -s conftest$ac_exeext &&
25786 $as_test_x conftest$ac_exeext; then
25787 ac_cv_search_opendir=$ac_res
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797 if test "${ac_cv_search_opendir+set}" = set; then
25801 if test "${ac_cv_search_opendir+set}" = set; then
25804 ac_cv_search_opendir=no
25806 rm conftest.$ac_ext
25807 LIBS=$ac_func_search_save_LIBS
25809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25811 ac_res=$ac_cv_search_opendir
25812 if test "$ac_res" != no; then
25813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25818 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25819 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25820 if test "${ac_cv_search_opendir+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 ac_func_search_save_LIBS=$LIBS
25824 cat >conftest.$ac_ext <<_ACEOF
25827 cat confdefs.h >>conftest.$ac_ext
25828 cat >>conftest.$ac_ext <<_ACEOF
25829 /* end confdefs.h. */
25831 /* Override any GCC internal prototype to avoid an error.
25832 Use char because int might match the return type of a GCC
25833 builtin and then its argument prototype would still apply. */
25846 for ac_lib in '' x; do
25847 if test -z "$ac_lib"; then
25848 ac_res="none required"
25851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25853 rm -f conftest.$ac_objext conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_link") 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && {
25867 test -z "$ac_c_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest$ac_exeext &&
25870 $as_test_x conftest$ac_exeext; then
25871 ac_cv_search_opendir=$ac_res
25873 echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25881 if test "${ac_cv_search_opendir+set}" = set; then
25885 if test "${ac_cv_search_opendir+set}" = set; then
25888 ac_cv_search_opendir=no
25890 rm conftest.$ac_ext
25891 LIBS=$ac_func_search_save_LIBS
25893 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25894 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25895 ac_res=$ac_cv_search_opendir
25896 if test "$ac_res" != no; then
25897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25910 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25916 echo $ECHO_N "(cached) $ECHO_C" >&6
25918 cat >conftest.$ac_ext <<_ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h. */
25924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25926 #define $ac_func innocuous_$ac_func
25928 /* System header to define __stub macros and hopefully few prototypes,
25929 which can conflict with char $ac_func (); below.
25930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25931 <limits.h> exists even on freestanding compilers. */
25934 # include <limits.h>
25936 # include <assert.h>
25941 /* Override any GCC internal prototype to avoid an error.
25942 Use char because int might match the return type of a GCC
25943 builtin and then its argument prototype would still apply. */
25948 /* The GNU C library defines this for functions which it implements
25949 to always fail with ENOSYS. Some functions are actually named
25950 something starting with __ and the normal name is an alias. */
25951 #if defined __stub_$ac_func || defined __stub___$ac_func
25958 return $ac_func ();
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (ac_try="$ac_link"
25965 case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_link") 2>conftest.er1
25972 grep -v '^ *+' conftest.er1 >conftest.err
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest$ac_exeext &&
25980 $as_test_x conftest$ac_exeext; then
25981 eval "$as_ac_var=yes"
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 eval "$as_ac_var=no"
25989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25990 conftest$ac_exeext conftest.$ac_ext
25992 ac_res=`eval echo '${'$as_ac_var'}'`
25993 { echo "$as_me:$LINENO: result: $ac_res" >&5
25994 echo "${ECHO_T}$ac_res" >&6; }
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996 cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26005 for ac_func in nanosleep nl_langinfo
26007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 cat >conftest.$ac_ext <<_ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26021 #define $ac_func innocuous_$ac_func
26023 /* System header to define __stub macros and hopefully few prototypes,
26024 which can conflict with char $ac_func (); below.
26025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26026 <limits.h> exists even on freestanding compilers. */
26029 # include <limits.h>
26031 # include <assert.h>
26036 /* Override any GCC internal prototype to avoid an error.
26037 Use char because int might match the return type of a GCC
26038 builtin and then its argument prototype would still apply. */
26043 /* The GNU C library defines this for functions which it implements
26044 to always fail with ENOSYS. Some functions are actually named
26045 something starting with __ and the normal name is an alias. */
26046 #if defined __stub_$ac_func || defined __stub___$ac_func
26053 return $ac_func ();
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065 (eval "$ac_link") 2>conftest.er1
26067 grep -v '^ *+' conftest.er1 >conftest.err
26069 cat conftest.err >&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } && {
26072 test -z "$ac_c_werror_flag" ||
26073 test ! -s conftest.err
26074 } && test -s conftest$ac_exeext &&
26075 $as_test_x conftest$ac_exeext; then
26076 eval "$as_ac_var=yes"
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26081 eval "$as_ac_var=no"
26084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26085 conftest$ac_exeext conftest.$ac_ext
26087 ac_res=`eval echo '${'$as_ac_var'}'`
26088 { echo "$as_me:$LINENO: result: $ac_res" >&5
26089 echo "${ECHO_T}$ac_res" >&6; }
26090 if test `eval echo '${'$as_ac_var'}'` = yes; then
26091 cat >>confdefs.h <<_ACEOF
26092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26099 for ac_header in varargs.h
26101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 ac_res=`eval echo '${'$as_ac_Header'}'`
26109 { echo "$as_me:$LINENO: result: $ac_res" >&5
26110 echo "${ECHO_T}$ac_res" >&6; }
26112 # Is the header compilable?
26113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 $ac_includes_default
26122 #include <$ac_header>
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_compile") 2>conftest.er1
26133 grep -v '^ *+' conftest.er1 >conftest.err
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } && {
26138 test -z "$ac_c_werror_flag" ||
26139 test ! -s conftest.err
26140 } && test -s conftest.$ac_objext; then
26141 ac_header_compiler=yes
26143 echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26146 ac_header_compiler=no
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26151 echo "${ECHO_T}$ac_header_compiler" >&6; }
26153 # Is the header present?
26154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26156 cat >conftest.$ac_ext <<_ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 #include <$ac_header>
26164 if { (ac_try="$ac_cpp conftest.$ac_ext"
26165 case "(($ac_try" in
26166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167 *) ac_try_echo=$ac_try;;
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26172 grep -v '^ *+' conftest.er1 >conftest.err
26174 cat conftest.err >&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } >/dev/null && {
26177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26178 test ! -s conftest.err
26180 ac_header_preproc=yes
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26185 ac_header_preproc=no
26188 rm -f conftest.err conftest.$ac_ext
26189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26190 echo "${ECHO_T}$ac_header_preproc" >&6; }
26192 # So? What about this header?
26193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26199 ac_header_preproc=yes
26202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 eval "$as_ac_Header=\$ac_header_preproc"
26224 ac_res=`eval echo '${'$as_ac_Header'}'`
26225 { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26230 cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26240 { echo "$as_me:$LINENO: checking for Python support" >&5
26241 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26243 # Check whether --with-python was given.
26244 if test "${with_python+set}" = set; then
26245 withval=$with_python;
26248 if test "$withval" != "no"; then
26249 if test "$withval" = "yes"; then
26250 if test -e /usr/bin/python-config ; then
26251 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26252 PYTHON_LIBS=`/usr/bin/python-config --libs`
26254 for python_root in /usr /usr/local /usr/sfw; do
26255 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26256 if test -f $python_root/include/${ver}/Python.h; then
26257 PYTHON_INCDIR=-I$python_root/include/${ver}
26258 if test -d $python_root/lib64/${ver}/config; then
26259 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26261 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26268 if test x$PYTHON_INCDIR = x; then
26269 if test -f $prefix/include/Python.h; then
26270 PYTHON_INCDIR=-I$prefix/include
26271 if test -d $prefix/lib64/config; then
26272 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26274 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26277 { echo "$as_me:$LINENO: result: no" >&5
26278 echo "${ECHO_T}no" >&6; }
26279 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26280 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26281 { (exit 1); exit 1; }; }
26286 if test -e $withval/bin/python-config ; then
26287 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26288 PYTHON_LIBS=`$withval/bin/python-config --libs`
26289 elif test -f $withval/Python.h; then
26290 PYTHON_INCDIR=-I$withval
26291 PYTHON_LIBS="-L$withval/config -lpython"
26292 elif test -f $withval/include/Python.h; then
26293 PYTHON_INCDIR=-I$withval/include
26294 if test -d $withval/lib64/config; then
26295 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26297 PYTHON_LIBS="-L$withval/lib/config -lpython"
26299 elif test -f $withval/include/python/Python.h; then
26300 PYTHON_INCDIR=-I$withval/include/python
26301 if test -d $withval/lib64/python/config; then
26302 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26304 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26307 { echo "$as_me:$LINENO: result: no" >&5
26308 echo "${ECHO_T}no" >&6; }
26309 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26310 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26311 { (exit 1); exit 1; }; }
26315 cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_PYTHON 1
26319 { echo "$as_me:$LINENO: result: yes" >&5
26320 echo "${ECHO_T}yes" >&6; }
26322 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26323 echo "$as_me: checking for more Python libs" >&6;}
26324 saved_LIBS="$LIBS"; LIBS=
26325 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26326 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26327 if test "${ac_cv_search_shm_open+set}" = set; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 ac_func_search_save_LIBS=$LIBS
26331 cat >conftest.$ac_ext <<_ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h. */
26338 /* Override any GCC internal prototype to avoid an error.
26339 Use char because int might match the return type of a GCC
26340 builtin and then its argument prototype would still apply. */
26348 return shm_open ();
26353 for ac_lib in '' rt; do
26354 if test -z "$ac_lib"; then
26355 ac_res="none required"
26358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26360 rm -f conftest.$ac_objext conftest$ac_exeext
26361 if { (ac_try="$ac_link"
26362 case "(($ac_try" in
26363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364 *) ac_try_echo=$ac_try;;
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367 (eval "$ac_link") 2>conftest.er1
26369 grep -v '^ *+' conftest.er1 >conftest.err
26371 cat conftest.err >&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } && {
26374 test -z "$ac_c_werror_flag" ||
26375 test ! -s conftest.err
26376 } && test -s conftest$ac_exeext &&
26377 $as_test_x conftest$ac_exeext; then
26378 ac_cv_search_shm_open=$ac_res
26380 echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26388 if test "${ac_cv_search_shm_open+set}" = set; then
26392 if test "${ac_cv_search_shm_open+set}" = set; then
26395 ac_cv_search_shm_open=no
26397 rm conftest.$ac_ext
26398 LIBS=$ac_func_search_save_LIBS
26400 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26401 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26402 ac_res=$ac_cv_search_shm_open
26403 if test "$ac_res" != no; then
26404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26409 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26410 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26411 if test "${ac_cv_lib_util_openpty+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 ac_check_lib_save_LIBS=$LIBS
26415 LIBS="-lutil $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h. */
26423 /* Override any GCC internal prototype to avoid an error.
26424 Use char because int might match the return type of a GCC
26425 builtin and then its argument prototype would still apply. */
26438 rm -f conftest.$ac_objext conftest$ac_exeext
26439 if { (ac_try="$ac_link"
26440 case "(($ac_try" in
26441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442 *) ac_try_echo=$ac_try;;
26444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26445 (eval "$ac_link") 2>conftest.er1
26447 grep -v '^ *+' conftest.er1 >conftest.err
26449 cat conftest.err >&5
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); } && {
26452 test -z "$ac_c_werror_flag" ||
26453 test ! -s conftest.err
26454 } && test -s conftest$ac_exeext &&
26455 $as_test_x conftest$ac_exeext; then
26456 ac_cv_lib_util_openpty=yes
26458 echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26461 ac_cv_lib_util_openpty=no
26464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26465 conftest$ac_exeext conftest.$ac_ext
26466 LIBS=$ac_check_lib_save_LIBS
26468 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26470 if test $ac_cv_lib_util_openpty = yes; then
26471 cat >>confdefs.h <<_ACEOF
26472 #define HAVE_LIBUTIL 1
26475 LIBS="-lutil $LIBS"
26479 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26482 { echo "$as_me:$LINENO: result: no" >&5
26483 echo "${ECHO_T}no" >&6; }
26488 { echo "$as_me:$LINENO: result: no" >&5
26489 echo "${ECHO_T}no" >&6; }
26497 { echo "$as_me:$LINENO: checking for socket" >&5
26498 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26499 if test "${ac_cv_func_socket+set}" = set; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26510 #define socket innocuous_socket
26512 /* System header to define __stub macros and hopefully few prototypes,
26513 which can conflict with char socket (); below.
26514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515 <limits.h> exists even on freestanding compilers. */
26518 # include <limits.h>
26520 # include <assert.h>
26525 /* Override any GCC internal prototype to avoid an error.
26526 Use char because int might match the return type of a GCC
26527 builtin and then its argument prototype would still apply. */
26532 /* The GNU C library defines this for functions which it implements
26533 to always fail with ENOSYS. Some functions are actually named
26534 something starting with __ and the normal name is an alias. */
26535 #if defined __stub_socket || defined __stub___socket
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (ac_try="$ac_link"
26549 case "(($ac_try" in
26550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26551 *) ac_try_echo=$ac_try;;
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554 (eval "$ac_link") 2>conftest.er1
26556 grep -v '^ *+' conftest.er1 >conftest.err
26558 cat conftest.err >&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } && {
26561 test -z "$ac_c_werror_flag" ||
26562 test ! -s conftest.err
26563 } && test -s conftest$ac_exeext &&
26564 $as_test_x conftest$ac_exeext; then
26565 ac_cv_func_socket=yes
26567 echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26570 ac_cv_func_socket=no
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574 conftest$ac_exeext conftest.$ac_ext
26576 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26577 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26578 if test $ac_cv_func_socket = yes; then
26579 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26580 echo "${ECHO_T}using libc's socket" >&6; }
26583 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26584 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26588 ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-lxnet $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26597 /* Override any GCC internal prototype to avoid an error.
26598 Use char because int might match the return type of a GCC
26599 builtin and then its argument prototype would still apply. */
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616 *) ac_try_echo=$ac_try;;
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619 (eval "$ac_link") 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } && {
26626 test -z "$ac_c_werror_flag" ||
26627 test ! -s conftest.err
26628 } && test -s conftest$ac_exeext &&
26629 $as_test_x conftest$ac_exeext; then
26630 ac_cv_lib_xnet_socket=yes
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 ac_cv_lib_xnet_socket=no
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639 conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26644 if test $ac_cv_lib_xnet_socket = yes; then
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBXNET 1
26649 LIBS="-lxnet $LIBS"
26654 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26655 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26656 if test "${ac_cv_lib_socket_socket+set}" = set; then
26657 echo $ECHO_N "(cached) $ECHO_C" >&6
26659 ac_check_lib_save_LIBS=$LIBS
26660 LIBS="-lsocket $LIBS"
26661 cat >conftest.$ac_ext <<_ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26668 /* Override any GCC internal prototype to avoid an error.
26669 Use char because int might match the return type of a GCC
26670 builtin and then its argument prototype would still apply. */
26683 rm -f conftest.$ac_objext conftest$ac_exeext
26684 if { (ac_try="$ac_link"
26685 case "(($ac_try" in
26686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687 *) ac_try_echo=$ac_try;;
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690 (eval "$ac_link") 2>conftest.er1
26692 grep -v '^ *+' conftest.er1 >conftest.err
26694 cat conftest.err >&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); } && {
26697 test -z "$ac_c_werror_flag" ||
26698 test ! -s conftest.err
26699 } && test -s conftest$ac_exeext &&
26700 $as_test_x conftest$ac_exeext; then
26701 ac_cv_lib_socket_socket=yes
26703 echo "$as_me: failed program was:" >&5
26704 sed 's/^/| /' conftest.$ac_ext >&5
26706 ac_cv_lib_socket_socket=no
26709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26710 conftest$ac_exeext conftest.$ac_ext
26711 LIBS=$ac_check_lib_save_LIBS
26713 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26715 if test $ac_cv_lib_socket_socket = yes; then
26716 cat >>confdefs.h <<_ACEOF
26717 #define HAVE_LIBSOCKET 1
26720 LIBS="-lsocket $LIBS"
26725 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26727 if test "${ac_cv_lib_inet_socket+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 ac_check_lib_save_LIBS=$LIBS
26731 LIBS="-linet $LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h. */
26739 /* Override any GCC internal prototype to avoid an error.
26740 Use char because int might match the return type of a GCC
26741 builtin and then its argument prototype would still apply. */
26754 rm -f conftest.$ac_objext conftest$ac_exeext
26755 if { (ac_try="$ac_link"
26756 case "(($ac_try" in
26757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758 *) ac_try_echo=$ac_try;;
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761 (eval "$ac_link") 2>conftest.er1
26763 grep -v '^ *+' conftest.er1 >conftest.err
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } && {
26768 test -z "$ac_c_werror_flag" ||
26769 test ! -s conftest.err
26770 } && test -s conftest$ac_exeext &&
26771 $as_test_x conftest$ac_exeext; then
26772 ac_cv_lib_inet_socket=yes
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26777 ac_cv_lib_inet_socket=no
26780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26781 conftest$ac_exeext conftest.$ac_ext
26782 LIBS=$ac_check_lib_save_LIBS
26784 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26785 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26786 if test $ac_cv_lib_inet_socket = yes; then
26787 cat >>confdefs.h <<_ACEOF
26788 #define HAVE_LIBINET 1
26791 LIBS="-linet $LIBS"
26801 # Check whether --with-tcp-wrappers was given.
26802 if test "${with_tcp_wrappers+set}" = set; then
26803 withval=$with_tcp_wrappers;
26804 if test "x$withval" != "xno" ; then
26806 LIBS="$saved_LIBS -lwrap"
26807 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26808 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26809 if test "${ac_cv_search_nanosleep+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 ac_func_search_save_LIBS=$LIBS
26813 cat >conftest.$ac_ext <<_ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26820 /* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26830 return nanosleep ();
26835 for ac_lib in '' rt; do
26836 if test -z "$ac_lib"; then
26837 ac_res="none required"
26840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (ac_try="$ac_link"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849 (eval "$ac_link") 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } && {
26856 test -z "$ac_c_werror_flag" ||
26857 test ! -s conftest.err
26858 } && test -s conftest$ac_exeext &&
26859 $as_test_x conftest$ac_exeext; then
26860 ac_cv_search_nanosleep=$ac_res
26862 echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26870 if test "${ac_cv_search_nanosleep+set}" = set; then
26874 if test "${ac_cv_search_nanosleep+set}" = set; then
26877 ac_cv_search_nanosleep=no
26879 rm conftest.$ac_ext
26880 LIBS=$ac_func_search_save_LIBS
26882 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26883 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26884 ac_res=$ac_cv_search_nanosleep
26885 if test "$ac_res" != no; then
26886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26890 { echo "$as_me:$LINENO: checking for libwrap" >&5
26891 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26892 cat >conftest.$ac_ext <<_ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26899 #include <sys/types.h>
26901 int deny_severity = 0;
26902 int allow_severity = 0;
26903 struct request_info *req;
26915 rm -f conftest.$ac_objext conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_link") 2>conftest.er1
26924 grep -v '^ *+' conftest.er1 >conftest.err
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } && {
26929 test -z "$ac_c_werror_flag" ||
26930 test ! -s conftest.err
26931 } && test -s conftest$ac_exeext &&
26932 $as_test_x conftest$ac_exeext; then
26934 { echo "$as_me:$LINENO: result: yes" >&5
26935 echo "${ECHO_T}yes" >&6; }
26937 cat >>confdefs.h <<\_ACEOF
26938 #define HAVE_LIBWRAP 1
26946 echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26950 LIBS="$saved_LIBS -lwrap -lnsl"
26951 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26952 cat >conftest.$ac_ext <<_ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h. */
26959 #include <sys/types.h>
26961 int deny_severity = 0;
26962 int allow_severity = 0;
26963 struct request_info *req;
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982 (eval "$ac_link") 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } && {
26989 test -z "$ac_c_werror_flag" ||
26990 test ! -s conftest.err
26991 } && test -s conftest$ac_exeext &&
26992 $as_test_x conftest$ac_exeext; then
26994 { echo "$as_me:$LINENO: result: yes" >&5
26995 echo "${ECHO_T}yes" >&6; }
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBWRAP 1
27006 echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27010 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27011 echo "$as_me: error: *** libwrap missing" >&2;}
27012 { (exit 1); exit 1; }; }
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018 conftest$ac_exeext conftest.$ac_ext
27023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27024 conftest$ac_exeext conftest.$ac_ext
27031 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27032 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27034 # Check whether --with-openssl was given.
27035 if test "${with_openssl+set}" = set; then
27036 withval=$with_openssl;
27037 with_openssl_directory=${withval}
27043 if test "x$with_openssl_directory" != "xno"; then
27044 OPENSSL_LIBS="-lssl -lcrypto"
27047 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27049 # Make sure the $with_openssl_directory also makes sense
27051 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27052 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27053 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27057 saved_LIBS="${LIBS}"
27058 saved_CFLAGS="${CFLAGS}"
27059 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27060 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27062 cat >conftest.$ac_ext <<_ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h. */
27069 #include <openssl/ssl.h>
27075 CRYPTO_set_id_callback(NULL);
27081 rm -f conftest.$ac_objext conftest$ac_exeext
27082 if { (ac_try="$ac_link"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_link") 2>conftest.er1
27090 grep -v '^ *+' conftest.er1 >conftest.err
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest$ac_exeext &&
27098 $as_test_x conftest$ac_exeext; then
27101 support_crypto="yes"
27104 echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27114 conftest$ac_exeext conftest.$ac_ext
27116 cat >conftest.$ac_ext <<_ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h. */
27123 #include <openssl/evp.h>
27135 rm -f conftest.$ac_objext conftest$ac_exeext
27136 if { (ac_try="$ac_link"
27137 case "(($ac_try" in
27138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139 *) ac_try_echo=$ac_try;;
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142 (eval "$ac_link") 2>conftest.er1
27144 grep -v '^ *+' conftest.er1 >conftest.err
27146 cat conftest.err >&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } && {
27149 test -z "$ac_c_werror_flag" ||
27150 test ! -s conftest.err
27151 } && test -s conftest$ac_exeext &&
27152 $as_test_x conftest$ac_exeext; then
27154 ac_cv_openssl_sha2="yes"
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27161 ac_cv_openssl_sha2="no"
27166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27167 conftest$ac_exeext conftest.$ac_ext
27169 cat >conftest.$ac_ext <<_ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h. */
27176 #include <openssl/evp.h>
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_link") 2>conftest.er1
27197 grep -v '^ *+' conftest.er1 >conftest.err
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } && {
27202 test -z "$ac_c_werror_flag" ||
27203 test ! -s conftest.err
27204 } && test -s conftest$ac_exeext &&
27205 $as_test_x conftest$ac_exeext; then
27207 ac_cv_openssl_export="no"
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_openssl_export="yes"
27219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27220 conftest$ac_exeext conftest.$ac_ext
27222 LIBS="${saved_LIBS}"
27223 CFLAGS="${saved_CFLAGS}"
27225 if test "$support_tls" = "yes"; then
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_OPENSSL 1
27232 cat >>confdefs.h <<\_ACEOF
27237 cat >>confdefs.h <<\_ACEOF
27238 #define HAVE_CRYPTO 1
27243 if test "$ac_cv_openssl_sha2" = "yes"; then
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_SHA2 1
27251 if test "$ac_cv_openssl_export" = "yes"; then
27253 cat >>confdefs.h <<\_ACEOF
27254 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27260 support_crypto="no"
27265 if test "$support_tls" = "no"; then
27270 { echo "$as_me:$LINENO: result: $support_tls" >&5
27271 echo "${ECHO_T}$support_tls" >&6; }
27275 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27276 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27277 if test "${ac_cv_search_dlopen+set}" = set; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 ac_func_search_save_LIBS=$LIBS
27281 cat >conftest.$ac_ext <<_ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h. */
27288 /* Override any GCC internal prototype to avoid an error.
27289 Use char because int might match the return type of a GCC
27290 builtin and then its argument prototype would still apply. */
27303 for ac_lib in '' dl; do
27304 if test -z "$ac_lib"; then
27305 ac_res="none required"
27308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27310 rm -f conftest.$ac_objext conftest$ac_exeext
27311 if { (ac_try="$ac_link"
27312 case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_link") 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } && {
27324 test -z "$ac_c_werror_flag" ||
27325 test ! -s conftest.err
27326 } && test -s conftest$ac_exeext &&
27327 $as_test_x conftest$ac_exeext; then
27328 ac_cv_search_dlopen=$ac_res
27330 echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27338 if test "${ac_cv_search_dlopen+set}" = set; then
27342 if test "${ac_cv_search_dlopen+set}" = set; then
27345 ac_cv_search_dlopen=no
27347 rm conftest.$ac_ext
27348 LIBS=$ac_func_search_save_LIBS
27350 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27351 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27352 ac_res=$ac_cv_search_dlopen
27353 if test "$ac_res" != no; then
27354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27359 working_dir=`eval echo ${prefix}/var/bacula/working`
27361 # Check whether --with-working-dir was given.
27362 if test "${with_working_dir+set}" = set; then
27363 withval=$with_working_dir;
27364 if test "x$withval" != "xno" ; then
27365 working_dir=$withval
27376 # Check whether --with-archivedir was given.
27377 if test "${with_archivedir+set}" = set; then
27378 withval=$with_archivedir;
27379 if test "x$withval" != "xno" ; then
27380 archivedir=$withval
27389 basename=`hostname`
27391 # Check whether --with-basename was given.
27392 if test "${with_basename+set}" = set; then
27393 withval=$with_basename;
27394 if test "x$withval" != "xno" ; then
27404 hostname=`uname -n | cut -d '.' -f 1`
27405 if test x${hostname} = x ; then
27406 hostname="localhost"
27409 # Check whether --with-hostname was given.
27410 if test "${with_hostname+set}" = set; then
27411 withval=$with_hostname;
27412 if test "x$withval" != "xno" ; then
27423 scriptdir=`eval echo ${sysconfdir}`
27425 # Check whether --with-scriptdir was given.
27426 if test "${with_scriptdir+set}" = set; then
27427 withval=$with_scriptdir;
27428 if test "x$withval" != "xno" ; then
27441 # Check whether --with-bsrdir was given.
27442 if test "${with_bsrdir+set}" = set; then
27443 withval=$with_bsrdir;
27444 if test "x$withval" != "xno" ; then
27456 # Check whether --with-logdir was given.
27457 if test "${with_logdir+set}" = set; then
27458 withval=$with_logdir;
27459 if test "x$withval" != "xno" ; then
27470 # ------------------------------------------
27471 # Where to place plugindir (plugin files)
27472 # ------------------------------------------
27473 plugindir=`eval echo ${libdir}`
27475 # Check whether --with-plugindir was given.
27476 if test "${with_plugindir+set}" = set; then
27477 withval=$with_plugindir;
27478 if test "x$withval" != "xno" ; then
27488 dump_email=root@localhost
27490 # Check whether --with-dump-email was given.
27491 if test "${with_dump_email+set}" = set; then
27492 withval=$with_dump_email;
27493 if test "x$withval" != "xno" ; then
27494 dump_email=$withval
27503 job_email=root@localhost
27505 # Check whether --with-job-email was given.
27506 if test "${with_job_email+set}" = set; then
27507 withval=$with_job_email;
27508 if test "x$withval" != "xno" ; then
27518 smtp_host=localhost
27520 # Check whether --with-smtp_host was given.
27521 if test "${with_smtp_host+set}" = set; then
27522 withval=$with_smtp_host;
27523 if test "x$withval" != "xno" ; then
27535 # Check whether --with-pid-dir was given.
27536 if test "${with_pid_dir+set}" = set; then
27537 withval=$with_pid_dir;
27538 if test "x$withval" != "xno" ; then
27546 cat >>confdefs.h <<_ACEOF
27547 #define _PATH_BACULA_PIDDIR "$piddir"
27552 subsysdir=/var/run/subsys
27553 if test -d /var/run/subsys; then
27554 subsysdir=/var/run/subsys
27555 elif test -d /var/lock/subsys; then
27556 subsysdir=/var/lock/subsys
27558 subsysdir=/var/run/subsys
27561 # Check whether --with-subsys-dir was given.
27562 if test "${with_subsys_dir+set}" = set; then
27563 withval=$with_subsys_dir;
27564 if test "x$withval" != "xno" ; then
27576 # Check whether --with-baseport was given.
27577 if test "${with_baseport+set}" = set; then
27578 withval=$with_baseport;
27579 if test "x$withval" != "xno" ; then
27588 dir_port=`expr $baseport`
27589 fd_port=`expr $baseport + 1`
27590 sd_port=`expr $fd_port + 1`
27598 # Check whether --with-dir-password was given.
27599 if test "${with_dir_password+set}" = set; then
27600 withval=$with_dir_password;
27601 if test "x$withval" != "xno" ; then
27602 dir_password=$withval
27609 if test "x$dir_password" = "x" ; then
27610 if test "x$OPENSSL" = "xnone" ; then
27611 key=`autoconf/randpass 33`
27613 key=`openssl rand -base64 33`
27620 # Check whether --with-fd-password was given.
27621 if test "${with_fd_password+set}" = set; then
27622 withval=$with_fd_password;
27623 if test "x$withval" != "xno" ; then
27624 fd_password=$withval
27631 if test "x$fd_password" = "x" ; then
27632 if test "x$OPENSSL" = "xnone" ; then
27633 key=`autoconf/randpass 37`
27635 key=`openssl rand -base64 33`
27642 # Check whether --with-sd-password was given.
27643 if test "${with_sd_password+set}" = set; then
27644 withval=$with_sd_password;
27645 if test "x$withval" != "xno" ; then
27646 sd_password=$withval
27653 if test "x$sd_password" = "x" ; then
27654 if test "x$OPENSSL" = "xnone" ; then
27655 key=`autoconf/randpass 41`
27657 key=`openssl rand -base64 33`
27664 # Check whether --with-mon-dir-password was given.
27665 if test "${with_mon_dir_password+set}" = set; then
27666 withval=$with_mon_dir_password;
27667 if test "x$withval" != "xno" ; then
27668 mon_dir_password=$withval
27675 if test "x$mon_dir_password" = "x" ; then
27676 if test "x$OPENSSL" = "xnone" ; then
27677 key=`autoconf/randpass 33`
27679 key=`openssl rand -base64 33`
27681 mon_dir_password=$key
27686 # Check whether --with-mon-fd-password was given.
27687 if test "${with_mon_fd_password+set}" = set; then
27688 withval=$with_mon_fd_password;
27689 if test "x$withval" != "xno" ; then
27690 mon_fd_password=$withval
27697 if test "x$mon_fd_password" = "x" ; then
27698 if test "x$OPENSSL" = "xnone" ; then
27699 key=`autoconf/randpass 37`
27701 key=`openssl rand -base64 33`
27703 mon_fd_password=$key
27708 # Check whether --with-mon-sd-password was given.
27709 if test "${with_mon_sd_password+set}" = set; then
27710 withval=$with_mon_sd_password;
27711 if test "x$withval" != "xno" ; then
27712 mon_sd_password=$withval
27719 if test "x$mon_sd_password" = "x" ; then
27720 if test "x$OPENSSL" = "xnone" ; then
27721 key=`autoconf/randpass 41`
27723 key=`openssl rand -base64 33`
27725 mon_sd_password=$key
27737 # Check whether --with-db_name was given.
27738 if test "${with_db_name+set}" = set; then
27739 withval=$with_db_name;
27740 if test "x$withval" != "x" ; then
27751 # Check whether --with-db_user was given.
27752 if test "${with_db_user+set}" = set; then
27753 withval=$with_db_user;
27754 if test "x$withval" != "x" ; then
27765 # Check whether --with-db_password was given.
27766 if test "${with_db_password+set}" = set; then
27767 withval=$with_db_password;
27768 if test "x$withval" != "x" ; then
27769 db_password=$withval
27779 # Check whether --with-db_port was given.
27780 if test "${with_db_port+set}" = set; then
27781 withval=$with_db_port;
27782 if test "x$withval" != "x" ; then
27792 # Handle users and groups for each daemon
27796 # Check whether --with-dir_user was given.
27797 if test "${with_dir_user+set}" = set; then
27798 withval=$with_dir_user;
27799 if test "x$withval" != "x" ; then
27809 # Check whether --with-dir_group was given.
27810 if test "${with_dir_group+set}" = set; then
27811 withval=$with_dir_group;
27812 if test "x$withval" != "x" ; then
27822 # Check whether --with-sd_user was given.
27823 if test "${with_sd_user+set}" = set; then
27824 withval=$with_sd_user;
27825 if test "x$withval" != "x" ; then
27835 # Check whether --with-sd_group was given.
27836 if test "${with_sd_group+set}" = set; then
27837 withval=$with_sd_group;
27838 if test "x$withval" != "x" ; then
27848 # Check whether --with-fd_user was given.
27849 if test "${with_fd_user+set}" = set; then
27850 withval=$with_fd_user;
27851 if test "x$withval" != "x" ; then
27861 # Check whether --with-fd_group was given.
27862 if test "${with_fd_group+set}" = set; then
27863 withval=$with_fd_group;
27864 if test "x$withval" != "x" ; then
27881 # Check whether --with-sbin-perm was given.
27882 if test "${with_sbin_perm+set}" = set; then
27883 withval=$with_sbin_perm;
27884 if test "x$withval" != "x" ; then
27897 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27898 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27900 # Check whether --with-postgresql was given.
27901 if test "${with_postgresql+set}" = set; then
27902 withval=$with_postgresql;
27903 if test "$withval" != "no"; then
27904 if test "$db_found" = "yes"; then
27905 { echo "$as_me:$LINENO: result: error" >&5
27906 echo "${ECHO_T}error" >&6; }
27907 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27908 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27909 { (exit 1); exit 1; }; };
27911 if test "$withval" = "yes"; then
27912 PG_CONFIG=`which pg_config`
27913 if test -n "$PG_CONFIG";then
27914 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27915 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27916 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27917 elif test -f /usr/local/include/libpq-fe.h; then
27918 POSTGRESQL_INCDIR=/usr/local/include
27919 if test -d /usr/local/lib64; then
27920 POSTGRESQL_LIBDIR=/usr/local/lib64
27922 POSTGRESQL_LIBDIR=/usr/local/lib
27924 POSTGRESQL_BINDIR=/usr/local/bin
27925 elif test -f /usr/include/libpq-fe.h; then
27926 POSTGRESQL_INCDIR=/usr/include
27927 if test -d /usr/lib64; then
27928 POSTGRESQL_LIBDIR=/usr/lib64
27930 POSTGRESQL_LIBDIR=/usr/lib
27932 POSTGRESQL_BINDIR=/usr/bin
27933 elif test -f /usr/include/pgsql/libpq-fe.h; then
27934 POSTGRESQL_INCDIR=/usr/include/pgsql
27935 if test -d /usr/lib64/pgsql; then
27936 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27938 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27940 POSTGRESQL_BINDIR=/usr/bin
27941 elif test -f /usr/include/postgresql/libpq-fe.h; then
27942 POSTGRESQL_INCDIR=/usr/include/postgresql
27943 if test -d /usr/lib64/postgresql; then
27944 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27946 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27948 POSTGRESQL_BINDIR=/usr/bin
27950 { echo "$as_me:$LINENO: result: no" >&5
27951 echo "${ECHO_T}no" >&6; }
27952 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27953 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27954 { (exit 1); exit 1; }; }
27956 elif test -f $withval/include/libpq-fe.h; then
27957 POSTGRESQL_INCDIR=$withval/include
27958 POSTGRESQL_LIBDIR=$withval/lib
27959 POSTGRESQL_BINDIR=$withval/bin
27960 elif test -f $withval/include/postgresql/libpq-fe.h; then
27961 POSTGRESQL_INCDIR=$withval/include/postgresql
27962 if test -d $withval/lib64; then
27963 POSTGRESQL_LIBDIR=$withval/lib64
27965 POSTGRESQL_LIBDIR=$withval/lib
27967 POSTGRESQL_BINDIR=$withval/bin
27969 { echo "$as_me:$LINENO: result: no" >&5
27970 echo "${ECHO_T}no" >&6; }
27971 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27972 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27973 { (exit 1); exit 1; }; }
27975 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27976 { echo "$as_me:$LINENO: checking for crypt" >&5
27977 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27978 if test "${ac_cv_func_crypt+set}" = set; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27981 cat >conftest.$ac_ext <<_ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h. */
27987 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27989 #define crypt innocuous_crypt
27991 /* System header to define __stub macros and hopefully few prototypes,
27992 which can conflict with char crypt (); below.
27993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27994 <limits.h> exists even on freestanding compilers. */
27997 # include <limits.h>
27999 # include <assert.h>
28004 /* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28011 /* The GNU C library defines this for functions which it implements
28012 to always fail with ENOSYS. Some functions are actually named
28013 something starting with __ and the normal name is an alias. */
28014 #if defined __stub_crypt || defined __stub___crypt
28026 rm -f conftest.$ac_objext conftest$ac_exeext
28027 if { (ac_try="$ac_link"
28028 case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_link") 2>conftest.er1
28035 grep -v '^ *+' conftest.er1 >conftest.err
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } && {
28040 test -z "$ac_c_werror_flag" ||
28041 test ! -s conftest.err
28042 } && test -s conftest$ac_exeext &&
28043 $as_test_x conftest$ac_exeext; then
28044 ac_cv_func_crypt=yes
28046 echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28049 ac_cv_func_crypt=no
28052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28053 conftest$ac_exeext conftest.$ac_ext
28055 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28056 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28057 if test $ac_cv_func_crypt = yes; then
28060 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28061 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28062 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 ac_check_lib_save_LIBS=$LIBS
28066 LIBS="-lcrypt $LIBS"
28067 cat >conftest.$ac_ext <<_ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h. */
28074 /* Override any GCC internal prototype to avoid an error.
28075 Use char because int might match the return type of a GCC
28076 builtin and then its argument prototype would still apply. */
28089 rm -f conftest.$ac_objext conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093 *) ac_try_echo=$ac_try;;
28095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096 (eval "$ac_link") 2>conftest.er1
28098 grep -v '^ *+' conftest.er1 >conftest.err
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } && {
28103 test -z "$ac_c_werror_flag" ||
28104 test ! -s conftest.err
28105 } && test -s conftest$ac_exeext &&
28106 $as_test_x conftest$ac_exeext; then
28107 ac_cv_lib_crypt_crypt=yes
28109 echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28112 ac_cv_lib_crypt_crypt=no
28115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28116 conftest$ac_exeext conftest.$ac_ext
28117 LIBS=$ac_check_lib_save_LIBS
28119 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28120 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28121 if test $ac_cv_lib_crypt_crypt = yes; then
28122 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28127 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28128 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28129 SQL_BINDIR=$POSTGRESQL_BINDIR
28130 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28132 cat >>confdefs.h <<\_ACEOF
28133 #define HAVE_POSTGRESQL 1
28136 { echo "$as_me:$LINENO: result: yes" >&5
28137 echo "${ECHO_T}yes" >&6; }
28139 support_postgresql=yes
28143 { echo "$as_me:$LINENO: result: no" >&5
28144 echo "${ECHO_T}no" >&6; }
28149 { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28162 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28163 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28165 # Check whether --with-mysql was given.
28166 if test "${with_mysql+set}" = set; then
28167 withval=$with_mysql;
28168 if test "$withval" != "no"; then
28169 if test "$withval" = "yes"; then
28170 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28171 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28172 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28173 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28174 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28176 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28178 MYSQL_BINDIR=/usr/local/mysql/bin
28179 elif test -f /usr/include/mysql/mysql.h; then
28180 MYSQL_INCDIR=/usr/include/mysql
28181 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28182 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28183 MYSQL_LIBDIR=/usr/lib64/mysql
28184 elif test -f /usr/lib64/libmysqlclient_r.a \
28185 -o -f /usr/lib64/libmysqlclient_r.so; then
28186 MYSQL_LIBDIR=/usr/lib64
28187 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28188 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28189 MYSQL_LIBDIR=/usr/lib/mysql
28191 MYSQL_LIBDIR=/usr/lib
28193 MYSQL_BINDIR=/usr/bin
28194 elif test -f /usr/include/mysql.h; then
28195 MYSQL_INCDIR=/usr/include
28196 if test -f /usr/lib64/libmysqlclient_r.a \
28197 -o -f /usr/lib64/libmysqlclient_r.so; then
28198 MYSQL_LIBDIR=/usr/lib64
28200 MYSQL_LIBDIR=/usr/lib
28202 MYSQL_BINDIR=/usr/bin
28203 elif test -f /usr/local/include/mysql/mysql.h; then
28204 MYSQL_INCDIR=/usr/local/include/mysql
28205 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28206 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28207 MYSQL_LIBDIR=/usr/local/lib64/mysql
28209 MYSQL_LIBDIR=/usr/local/lib/mysql
28211 MYSQL_BINDIR=/usr/local/bin
28212 elif test -f /usr/local/include/mysql.h; then
28213 MYSQL_INCDIR=/usr/local/include
28214 if test -f /usr/local/lib64/libmysqlclient_r.a \
28215 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28216 MYSQL_LIBDIR=/usr/local/lib64
28218 MYSQL_LIBDIR=/usr/local/lib
28220 MYSQL_BINDIR=/usr/local/bin
28222 { echo "$as_me:$LINENO: result: no" >&5
28223 echo "${ECHO_T}no" >&6; }
28224 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28225 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28226 { (exit 1); exit 1; }; }
28229 if test -f $withval/include/mysql/mysql.h; then
28230 MYSQL_INCDIR=$withval/include/mysql
28231 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28232 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28233 MYSQL_LIBDIR=$withval/lib64/mysql
28234 elif test -f $withval/lib64/libmysqlclient_r.a \
28235 -o -f $withval/lib64/libmysqlclient_r.so; then
28236 MYSQL_LIBDIR=$withval/lib64
28237 elif test -f $withval/lib/libmysqlclient_r.a \
28238 -o -f $withval/lib/libmysqlclient_r.so; then
28239 MYSQL_LIBDIR=$withval/lib
28241 MYSQL_LIBDIR=$withval/lib/mysql
28243 MYSQL_BINDIR=$withval/bin
28244 elif test -f $withval/include/mysql.h; then
28245 MYSQL_INCDIR=$withval/include
28246 if test -f $withval/lib64/libmysqlclient_r.a \
28247 -o -f $withval/lib64/libmysqlclient_r.so; then
28248 MYSQL_LIBDIR=$withval/lib64
28250 MYSQL_LIBDIR=$withval/lib
28252 MYSQL_BINDIR=$withval/bin
28254 { echo "$as_me:$LINENO: result: no" >&5
28255 echo "${ECHO_T}no" >&6; }
28256 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28257 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28258 { (exit 1); exit 1; }; }
28261 SQL_INCLUDE=-I$MYSQL_INCDIR
28262 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28263 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28264 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_THREAD_SAFE_MYSQL 1
28270 SQL_BINDIR=$MYSQL_BINDIR
28271 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_MYSQL 1
28277 { echo "$as_me:$LINENO: result: yes" >&5
28278 echo "${ECHO_T}yes" >&6; }
28285 { echo "$as_me:$LINENO: result: no" >&5
28286 echo "${ECHO_T}no" >&6; }
28294 # Check whether --with-embedded-mysql was given.
28295 if test "${with_embedded_mysql+set}" = set; then
28296 withval=$with_embedded_mysql;
28297 if test "$withval" != "no"; then
28298 if test "$withval" = "yes"; then
28299 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28300 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28301 if test -d /usr/local/mysql/lib64/mysql; then
28302 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28304 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28306 MYSQL_BINDIR=/usr/local/mysql/bin
28307 elif test -f /usr/include/mysql/mysql.h; then
28308 MYSQL_INCDIR=/usr/include/mysql
28309 if test -d /usr/lib64/mysql; then
28310 MYSQL_LIBDIR=/usr/lib64/mysql
28312 MYSQL_LIBDIR=/usr/lib/mysql
28314 MYSQL_BINDIR=/usr/bin
28315 elif test -f /usr/include/mysql.h; then
28316 MYSQL_INCDIR=/usr/include
28317 if test -d /usr/lib64; then
28318 MYSQL_LIBDIR=/usr/lib64
28320 MYSQL_LIBDIR=/usr/lib
28322 MYSQL_BINDIR=/usr/bin
28323 elif test -f /usr/local/include/mysql/mysql.h; then
28324 MYSQL_INCDIR=/usr/local/include/mysql
28325 if test -d /usr/local/lib64/mysql; then
28326 MYSQL_LIBDIR=/usr/local/lib64/mysql
28328 MYSQL_LIBDIR=/usr/local/lib/mysql
28330 MYSQL_BINDIR=/usr/local/bin
28331 elif test -f /usr/local/include/mysql.h; then
28332 MYSQL_INCDIR=/usr/local/include
28333 if test -d /usr/local/lib64; then
28334 MYSQL_LIBDIR=/usr/local/lib64
28336 MYSQL_LIBDIR=/usr/local/lib
28338 MYSQL_BINDIR=/usr/local/bin
28340 { echo "$as_me:$LINENO: result: no" >&5
28341 echo "${ECHO_T}no" >&6; }
28342 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28343 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28344 { (exit 1); exit 1; }; }
28347 if test -f $withval/include/mysql/mysql.h; then
28348 MYSQL_INCDIR=$withval/include/mysql
28349 if test -d $withval/lib64/mysql; then
28350 MYSQL_LIBDIR=$withval/lib64/mysql
28352 MYSQL_LIBDIR=$withval/lib/mysql
28354 MYSQL_BINDIR=$withval/bin
28355 elif test -f $withval/include/mysql.h; then
28356 MYSQL_INCDIR=$withval/include
28357 if test -d $withval/lib64; then
28358 MYSQL_LIBDIR=$withval/lib64
28360 MYSQL_LIBDIR=$withval/lib
28362 MYSQL_BINDIR=$withval/bin
28364 { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28366 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28367 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28368 { (exit 1); exit 1; }; }
28371 SQL_INCLUDE=-I$MYSQL_INCDIR
28372 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28373 SQL_BINDIR=$MYSQL_BINDIR
28374 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28376 cat >>confdefs.h <<\_ACEOF
28377 #define HAVE_MYSQL 1
28380 cat >>confdefs.h <<\_ACEOF
28381 #define HAVE_EMBEDDED_MYSQL 1
28384 { echo "$as_me:$LINENO: result: yes" >&5
28385 echo "${ECHO_T}yes" >&6; }
28392 { echo "$as_me:$LINENO: result: no" >&5
28393 echo "${ECHO_T}no" >&6; }
28409 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28410 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28412 # Check whether --with-sqlite3 was given.
28413 if test "${with_sqlite3+set}" = set; then
28414 withval=$with_sqlite3;
28415 if test "$withval" != "no"; then
28416 if test "$withval" = "yes"; then
28417 if test -f /usr/local/include/sqlite3.h; then
28418 SQLITE_INCDIR=/usr/local/include
28419 if test -d /usr/local/lib64; then
28420 SQLITE_LIBDIR=/usr/local/lib64
28422 SQLITE_LIBDIR=/usr/local/lib
28424 SQLITE_BINDIR=/usr/local/bin
28425 elif test -f /usr/include/sqlite3.h; then
28426 SQLITE_INCDIR=/usr/include
28427 if test -d /usr/lib64; then
28428 SQLITE_LIBDIR=/usr/lib64
28430 SQLITE_LIBDIR=/usr/lib
28432 SQLITE_BINDIR=/usr/bin
28433 elif test -f $prefix/include/sqlite3.h; then
28434 SQLITE_INCDIR=$prefix/include
28435 if test -d $prefix/lib64; then
28436 SQLITE_LIBDIR=$prefix/lib64
28438 SQLITE_LIBDIR=$prefix/lib
28440 SQLITE_BINDIR=$prefix/bin
28442 { echo "$as_me:$LINENO: result: no" >&5
28443 echo "${ECHO_T}no" >&6; }
28444 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28445 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28446 { (exit 1); exit 1; }; }
28449 if test -f $withval/sqlite3.h; then
28450 SQLITE_INCDIR=$withval
28451 SQLITE_LIBDIR=$withval
28452 SQLITE_BINDIR=$withval
28453 elif test -f $withval/include/sqlite3.h; then
28454 SQLITE_INCDIR=$withval/include
28455 if test -d $withval/lib64; then
28456 SQLITE_LIBDIR=$withval/lib64
28458 SQLITE_LIBDIR=$withval/lib
28460 SQLITE_BINDIR=$withval/bin
28462 { echo "$as_me:$LINENO: result: no" >&5
28463 echo "${ECHO_T}no" >&6; }
28464 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28465 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28466 { (exit 1); exit 1; }; }
28469 SQL_INCLUDE=-I$SQLITE_INCDIR
28470 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28471 SQL_BINDIR=$SQLITE_BINDIR
28472 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28474 cat >>confdefs.h <<\_ACEOF
28475 #define HAVE_SQLITE3 1
28478 { echo "$as_me:$LINENO: result: yes" >&5
28479 echo "${ECHO_T}yes" >&6; }
28481 support_sqlite3=yes
28486 { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28492 { echo "$as_me:$LINENO: result: no" >&5
28493 echo "${ECHO_T}no" >&6; }
28505 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28506 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28508 # Check whether --with-sqlite was given.
28509 if test "${with_sqlite+set}" = set; then
28510 withval=$with_sqlite;
28511 if test "$withval" != "no"; then
28512 if test "$withval" = "yes"; then
28513 if test -f /usr/local/include/sqlite.h; then
28514 SQLITE_INCDIR=/usr/local/include
28515 if test -d /usr/local/lib64; then
28516 SQLITE_LIBDIR=/usr/local/lib64
28518 SQLITE_LIBDIR=/usr/local/lib
28520 SQLITE_BINDIR=/usr/local/bin
28521 elif test -f /usr/include/sqlite.h; then
28522 SQLITE_INCDIR=/usr/include
28523 if test -d /usr/lib64; then
28524 SQLITE_LIBDIR=/usr/lib64
28526 SQLITE_LIBDIR=/usr/lib
28528 SQLITE_BINDIR=/usr/bin
28529 elif test -f $prefix/include/sqlite.h; then
28530 SQLITE_INCDIR=$prefix/include
28531 if test -d $prefix/lib64; then
28532 SQLITE_LIBDIR=$prefix/lib64
28534 SQLITE_LIBDIR=$prefix/lib
28536 SQLITE_BINDIR=$prefix/bin
28538 { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28540 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28541 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28542 { (exit 1); exit 1; }; }
28545 if test -f $withval/sqlite.h; then
28546 SQLITE_INCDIR=$withval
28547 SQLITE_LIBDIR=$withval
28548 SQLITE_BINDIR=$withval
28549 elif test -f $withval/include/sqlite.h; then
28550 SQLITE_INCDIR=$withval/include
28551 if test -d $withval/lib64; then
28552 SQLITE_LIBDIR=$withval/lib64
28554 SQLITE_LIBDIR=$withval/lib
28556 SQLITE_BINDIR=$withval/bin
28558 { echo "$as_me:$LINENO: result: no" >&5
28559 echo "${ECHO_T}no" >&6; }
28560 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28561 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28562 { (exit 1); exit 1; }; }
28565 SQL_INCLUDE=-I$SQLITE_INCDIR
28566 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28567 SQL_BINDIR=$SQLITE_BINDIR
28568 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28570 cat >>confdefs.h <<\_ACEOF
28571 #define HAVE_SQLITE 1
28574 { echo "$as_me:$LINENO: result: yes" >&5
28575 echo "${ECHO_T}yes" >&6; }
28582 { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28588 { echo "$as_me:$LINENO: result: no" >&5
28589 echo "${ECHO_T}no" >&6; }
28601 { echo "$as_me:$LINENO: checking for DBI support" >&5
28602 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28604 # Check whether --with-dbi was given.
28605 if test "${with_dbi+set}" = set; then
28607 if test "$withval" != "no"; then
28608 if test "$withval" = "yes"; then
28609 if test -f /usr/local/include/dbi/dbi.h; then
28610 DBI_INCDIR=/usr/local/dbi/include
28611 if test -d /usr/local/lib64; then
28612 DBI_LIBDIR=/usr/local/lib64
28614 DBI_LIBDIR=/usr/local/lib
28616 DBI_BINDIR=/usr/local/bin
28617 elif test -f /usr/include/dbi/dbi.h; then
28618 DBI_INCDIR=/usr/include
28619 if test -d /usr/lib64; then
28620 DBI_LIBDIR=/usr/lib64
28622 DBI_LIBDIR=/usr/lib
28624 DBI_BINDIR=/usr/bin
28625 elif test -f $prefix/include/dbi/dbi.h; then
28626 DBI_INCDIR=$prefix/include
28627 if test -d $prefix/lib64; then
28628 DBI_LIBDIR=$prefix/lib64
28630 DBI_LIBDIR=$prefix/lib
28632 DBI_BINDIR=$prefix/bin
28634 { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28636 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28637 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28638 { (exit 1); exit 1; }; }
28640 if test -d /usr/local/lib/dbd; then
28641 DRIVERDIR=/usr/local/lib/dbd
28642 if test -d /usr/local/lib64/dbd; then
28643 DRIVERDIR=/usr/local/lib64/dbd
28645 DRIVERDIR=/usr/local/lib/dbd
28647 elif test -d /usr/lib/dbd; then
28648 DRIVERDIR=/usr/lib/dbd
28649 if test -d /usr/lib64/dbd; then
28650 DRIVERDIR=/usr/lib64/dbd
28652 DRIVERDIR=/usr/lib/dbd
28654 elif test -d $prefix/lib/dbd; then
28655 if test -d $prefix/lib64/dbd; then
28656 DRIVERDIR=$prefix/lib64/dbd
28658 DRIVERDIR=$prefix/lib/dbd
28660 elif test -d /usr/local/lib64/dbd; then
28661 DRIVERDIR=/usr/local/lib64/dbd
28662 elif test -d /usr/lib64/dbd; then
28663 DRIVERDIR=/usr/lib64/dbd
28664 elif test -d $prefix/lib64/dbd; then
28665 DRIVERDIR=$prefix/lib64/dbd
28667 { echo "$as_me:$LINENO: result: no" >&5
28668 echo "${ECHO_T}no" >&6; }
28669 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28670 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28671 { (exit 1); exit 1; }; }
28674 if test -f $withval/dbi.h; then
28675 DBI_INCDIR=$withval
28676 DBI_LIBDIR=$withval
28677 DBI_BINDIR=$withval
28678 elif test -f $withval/include/dbi/dbi.h; then
28679 DBI_INCDIR=$withval/include
28680 if test -d $withval/lib64; then
28681 DBI_LIBDIR=$withval/lib64
28683 DBI_LIBDIR=$withval/lib
28685 DBI_BINDIR=$withval/bin
28687 { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28689 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28690 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28691 { (exit 1); exit 1; }; }
28693 if test -d $withval/dbd; then
28694 DRIVERDIR=$withval/dbd
28695 elif test -d $withval/lib/; then
28696 if test -d $withval/lib64/dbd; then
28697 DRIVERDIR=$withval/lib64/dbd
28699 DRIVERDIR=$withval/lib/dbd
28701 elif test -d $withval/lib64/dbd; then
28702 DRIVERDIR=$withval/lib64/dbd
28704 { echo "$as_me:$LINENO: result: no" >&5
28705 echo "${ECHO_T}no" >&6; }
28706 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28707 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28708 { (exit 1); exit 1; }; }
28711 SQL_INCLUDE=-I$DBI_INCDIR
28712 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28713 SQL_BINDIR=$DBI_BINDIR
28714 SQL_LIB=$DBI_LIBDIR/libdbi.a
28715 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28718 cat >>confdefs.h <<\_ACEOF
28722 { echo "$as_me:$LINENO: result: yes" >&5
28723 echo "${ECHO_T}yes" >&6; }
28731 { echo "$as_me:$LINENO: result: no" >&5
28732 echo "${ECHO_T}no" >&6; }
28737 { echo "$as_me:$LINENO: result: no" >&5
28738 echo "${ECHO_T}no" >&6; }
28753 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28754 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28756 # Check whether --with-dbi-driver was given.
28757 if test "${with_dbi_driver+set}" = set; then
28758 withval=$with_dbi_driver;
28759 if test "$withval" != "no"; then
28763 if test -f /usr/local/mysql/bin/mysql; then
28764 SQL_BINDIR=/usr/local/mysql/bin
28765 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28766 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28767 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28769 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28771 elif test -f /usr/bin/mysql; then
28772 SQL_BINDIR=/usr/bin
28773 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28774 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28775 SQL_LIBDIR=/usr/lib64/mysql
28776 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28777 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28778 SQL_LIBDIR=/usr/lib/mysql
28780 SQL_LIBDIR=/usr/lib
28782 elif test -f /usr/local/bin/mysql; then
28783 SQL_BINDIR=/usr/local/bin
28784 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28785 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28786 SQL_LIBDIR=/usr/local/lib64/mysql
28787 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28788 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28789 SQL_LIBDIR=/usr/local/lib/mysql
28791 SQL_LIBDIR=/usr/local/lib
28793 elif test -f $withval/bin/mysql; then
28794 SQL_BINDIR=$withval/bin
28795 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28796 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28797 SQL_LIBDIR=$withval/lib64/mysql
28798 elif test -f $withval/lib64/libmysqlclient_r.a \
28799 -o -f $withval/lib64/libmysqlclient_r.so; then
28800 SQL_LIBDIR=$withval/lib64
28801 elif test -f $withval/lib/libmysqlclient_r.a \
28802 -o -f $withval/lib/libmysqlclient_r.so; then
28803 SQL_LIBDIR=$withval/lib/
28805 SQL_LIBDIR=$withval/lib/mysql
28808 { echo "$as_me:$LINENO: result: no" >&5
28809 echo "${ECHO_T}no" >&6; }
28810 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28811 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28812 { (exit 1); exit 1; }; }
28814 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28815 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28817 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28821 db_prog="postgresql"
28822 PG_CONFIG=`which pg_config`
28823 if test -n "$PG_CONFIG"; then
28824 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28825 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28826 elif test -f /usr/local/bin/psql; then
28827 SQL_BINDIR=/usr/local/bin
28828 if test -d /usr/local/lib64; then
28829 SQL_LIBDIR=/usr/local/lib64
28831 SQL_LIBDIR=/usr/local/lib
28833 elif test -f /usr/bin/psql; then
28834 SQL_BINDIR=/usr/local/bin
28835 if test -d /usr/lib64/postgresql; then
28836 SQL_LIBDIR=/usr/lib64/postgresql
28837 elif test -d /usr/lib/postgresql; then
28838 SQL_LIBDIR=/usr/lib/postgresql
28839 elif test -d /usr/lib64; then
28840 SQL_LIBDIR=/usr/lib64
28842 SQL_LIBDIR=/usr/lib
28844 elif test -f $withval/bin/psql; then
28845 SQL_BINDIR=$withval/bin
28846 if test -d $withval/lib64; then
28847 SQL_LIBDIR=$withval/lib64
28849 SQL_LIBDIR=$withval/lib
28852 { echo "$as_me:$LINENO: result: no" >&5
28853 echo "${ECHO_T}no" >&6; }
28854 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28855 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28856 { (exit 1); exit 1; }; }
28858 if test -f $SQL_LIBDIR/libpq.so; then
28859 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28861 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28866 if test -f /usr/local/bin/sqlite; then
28867 SQL_BINDIR=/usr/local/bin
28868 if test -d /usr/local/lib64; then
28869 SQL_LIBDIR=/usr/local/lib64
28871 SQL_LIBDIR=/usr/local/lib
28873 elif test -f /usr/bin/sqlite; then
28874 SQL_BINDIR=/usr/bin
28875 if test -d /usr/lib64; then
28876 SQL_LIBDIR=/usr/lib64
28878 SQL_LIBDIR=/usr/lib
28880 elif test -f $withval/bin/sqlite; then
28881 SQL_BINDIR=$withval/bin
28882 if test -d $withval/lib64; then
28883 SQL_LIBDIR=$withval/lib64
28885 SQL_LIBDIR=$withval/lib
28888 { echo "$as_me:$LINENO: result: no" >&5
28889 echo "${ECHO_T}no" >&6; }
28890 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28891 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28892 { (exit 1); exit 1; }; }
28894 if test -f $SQL_LIBDIR/libsqlite.so; then
28895 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28897 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28902 if test -f /usr/local/bin/sqlite3; then
28903 SQL_BINDIR=/usr/local/bin
28904 if test -d /usr/local/lib64; then
28905 SQL_LIBDIR=/usr/local/lib64
28907 SQL_LIBDIR=/usr/local/lib
28909 elif test -f /usr/bin/sqlite3; then
28910 SQL_BINDIR=/usr/bin
28911 if test -d /usr/lib64; then
28912 SQL_LIBDIR=/usr/lib64
28914 SQL_LIBDIR=/usr/lib
28916 elif test -f $withval/bin/sqlite3; then
28917 SQL_BINDIR=$withval/bin
28918 if test -d $withval/lib64; then
28919 SQL_LIBDIR=$withval/lib64
28921 SQL_LIBDIR=$withval/lib
28924 { echo "$as_me:$LINENO: result: no" >&5
28925 echo "${ECHO_T}no" >&6; }
28926 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28927 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28928 { (exit 1); exit 1; }; }
28930 if test -f $SQL_LIBDIR/libsqlite3.so; then
28931 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28933 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28937 { echo "$as_me:$LINENO: result: no" >&5
28938 echo "${ECHO_T}no" >&6; }
28939 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28940 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28941 { (exit 1); exit 1; }; }
28945 { echo "$as_me:$LINENO: result: yes" >&5
28946 echo "${ECHO_T}yes" >&6; }
28949 { echo "$as_me:$LINENO: result: no" >&5
28950 echo "${ECHO_T}no" >&6; }
28955 { echo "$as_me:$LINENO: result: no" >&5
28956 echo "${ECHO_T}no" >&6; }
28969 support_batch_insert=no
28970 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28972 if test $pkg = 0; then
28973 support_batch_insert=yes
28974 # Check whether --enable-batch-insert was given.
28975 if test "${enable_batch_insert+set}" = set; then
28976 enableval=$enable_batch_insert;
28977 if test x$enableval = xno; then
28978 support_batch_insert=no
28980 support_batch_insert=yes
28988 if test x$DB_TYPE = xpostgresql; then
28989 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28991 if test $pkg != 0; then
28992 support_batch_insert=no
28996 if test x$DB_TYPE = xdbi; then
29000 if test $DB_PROG = postgresql; then
29001 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
29005 if test $DB_PROG = mysql; then
29006 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29010 if test $DB_PROG = sqlite3; then
29011 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29015 if test $pkg = 0; then
29016 # Check whether --enable-batch-insert was given.
29017 if test "${enable_batch_insert+set}" = set; then
29018 enableval=$enable_batch_insert;
29019 if test x$enableval = xno; then
29020 support_batch_insert=no
29022 support_batch_insert=yes
29035 if test $support_batch_insert = yes ; then
29037 cat >>confdefs.h <<\_ACEOF
29038 #define HAVE_BATCH_FILE_INSERT 1
29043 cat >>confdefs.h <<\_ACEOF
29044 #define PROTOTYPES 1
29048 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29049 if test -z "$CCOPTS"; then
29050 CCOPTS='-g -O2 -Wall'
29057 largefile_support="no"
29059 # Check whether --enable-largefile was given.
29060 if test "${enable_largefile+set}" = set; then
29061 enableval=$enable_largefile;
29064 if test "$enable_largefile" != no; then
29065 if test -n "$ac_tool_prefix"; then
29066 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29067 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29070 if test "${ac_cv_prog_GETCONF+set}" = set; then
29071 echo $ECHO_N "(cached) $ECHO_C" >&6
29073 if test -n "$GETCONF"; then
29074 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29077 for as_dir in $PATH
29080 test -z "$as_dir" && as_dir=.
29081 for ac_exec_ext in '' $ac_executable_extensions; do
29082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29083 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29093 GETCONF=$ac_cv_prog_GETCONF
29094 if test -n "$GETCONF"; then
29095 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29096 echo "${ECHO_T}$GETCONF" >&6; }
29098 { echo "$as_me:$LINENO: result: no" >&5
29099 echo "${ECHO_T}no" >&6; }
29104 if test -z "$ac_cv_prog_GETCONF"; then
29105 ac_ct_GETCONF=$GETCONF
29106 # Extract the first word of "getconf", so it can be a program name with args.
29107 set dummy getconf; ac_word=$2
29108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29110 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 if test -n "$ac_ct_GETCONF"; then
29114 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29117 for as_dir in $PATH
29120 test -z "$as_dir" && as_dir=.
29121 for ac_exec_ext in '' $ac_executable_extensions; do
29122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29123 ac_cv_prog_ac_ct_GETCONF="getconf"
29124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29133 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29134 if test -n "$ac_ct_GETCONF"; then
29135 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29136 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29138 { echo "$as_me:$LINENO: result: no" >&5
29139 echo "${ECHO_T}no" >&6; }
29142 if test "x$ac_ct_GETCONF" = x; then
29145 case $cross_compiling:$ac_tool_warned in
29147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29148 whose name does not start with the host triplet. If you think this
29149 configuration is useful to you, please write to autoconf@gnu.org." >&5
29150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29151 whose name does not start with the host triplet. If you think this
29152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29153 ac_tool_warned=yes ;;
29155 GETCONF=$ac_ct_GETCONF
29158 GETCONF="$ac_cv_prog_GETCONF"
29161 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29162 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29163 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29167 ac_cv_sys_largefile_CFLAGS=no
29169 # IRIX 6.2 and later require cc -n32.
29170 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29171 if test "$GCC" != yes; then
29172 ac_cv_sys_largefile_CFLAGS=-n32
29175 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29176 cat >conftest.$ac_ext <<_ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29191 rm -f conftest.$ac_objext conftest$ac_exeext
29192 if { (ac_try="$ac_link"
29193 case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198 (eval "$ac_link") 2>conftest.er1
29200 grep -v '^ *+' conftest.er1 >conftest.err
29202 cat conftest.err >&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); } && {
29205 test -z "$ac_c_werror_flag" ||
29206 test ! -s conftest.err
29207 } && test -s conftest$ac_exeext &&
29208 $as_test_x conftest$ac_exeext; then
29211 echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29214 ac_cv_sys_largefile_CFLAGS=no
29217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29218 conftest$ac_exeext conftest.$ac_ext
29223 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29224 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29225 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29226 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29227 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29231 ac_cv_sys_largefile_LDFLAGS=no
29235 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29236 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29237 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29238 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29239 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29243 ac_cv_sys_largefile_LIBS=no
29247 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29248 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29250 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29253 -D_FILE_OFFSET_BITS=*) ;;
29254 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29255 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29260 case "$CPPFLAGS" in
29261 '') CPPFLAGS="$ac_flag" ;;
29262 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29270 '') CFLAGS="$ac_flag" ;;
29271 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29276 case "$ac_cv_sys_largefile_LDFLAGS" in
29280 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29281 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29284 case "$ac_cv_sys_largefile_LIBS" in
29288 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29289 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29292 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29293 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29294 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29295 echo $ECHO_N "(cached) $ECHO_C" >&6
29297 ac_cv_sys_file_offset_bits=no
29298 ac_cv_sys_file_offset_bits=64
29299 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29301 -D_FILE_OFFSET_BITS)
29302 ac_cv_sys_file_offset_bits=1 ;;
29303 -D_FILE_OFFSET_BITS=*)
29304 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29309 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29310 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29311 if test "$ac_cv_sys_file_offset_bits" != no; then
29313 cat >>confdefs.h <<_ACEOF
29314 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29318 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29319 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29320 if test "${ac_cv_sys_largefile_source+set}" = set; then
29321 echo $ECHO_N "(cached) $ECHO_C" >&6
29323 ac_cv_sys_largefile_source=no
29324 ac_cv_sys_largefile_source=1
29325 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29327 -D_LARGEFILE_SOURCE)
29328 ac_cv_sys_largefile_source=1 ;;
29329 -D_LARGEFILE_SOURCE=*)
29330 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29335 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29336 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29337 if test "$ac_cv_sys_largefile_source" != no; then
29339 cat >>confdefs.h <<_ACEOF
29340 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29344 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29345 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29346 if test "${ac_cv_sys_large_files+set}" = set; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29349 ac_cv_sys_large_files=no
29350 ac_cv_sys_large_files=1
29351 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29354 ac_cv_sys_large_files=1 ;;
29356 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29361 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29362 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29363 if test "$ac_cv_sys_large_files" != no; then
29365 cat >>confdefs.h <<_ACEOF
29366 #define _LARGE_FILES $ac_cv_sys_large_files
29373 { echo "$as_me:$LINENO: checking for X" >&5
29374 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29377 # Check whether --with-x was given.
29378 if test "${with_x+set}" = set; then
29382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29383 if test "x$with_x" = xno; then
29384 # The user explicitly disabled X.
29387 case $x_includes,$x_libraries in #(
29388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29389 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29390 { (exit 1); exit 1; }; };; #(
29391 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29392 echo $ECHO_N "(cached) $ECHO_C" >&6
29394 # One or both of the vars are not set, and there is no cached value.
29395 ac_x_includes=no ac_x_libraries=no
29396 rm -f -r conftest.dir
29397 if mkdir conftest.dir; then
29399 cat >Imakefile <<'_ACEOF'
29401 @echo incroot='${INCROOT}'
29403 @echo usrlibdir='${USRLIBDIR}'
29405 @echo libdir='${LIBDIR}'
29407 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29409 for ac_var in incroot usrlibdir libdir; do
29410 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29413 for ac_extension in a so sl; do
29414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29415 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29416 ac_im_usrlibdir=$ac_im_libdir; break
29419 # Screen out bogus values from the imake configuration. They are
29420 # bogus both because they are the default anyway, and because
29421 # using them would break gcc on systems where it needs fixed includes.
29422 case $ac_im_incroot in
29423 /usr/include) ac_x_includes= ;;
29424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29426 case $ac_im_usrlibdir in
29427 /usr/lib | /lib) ;;
29428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29432 rm -f -r conftest.dir
29435 # Standard set of common directories for X headers.
29436 # Check X11 before X11Rn because it is often a symlink to the current release.
29448 /usr/local/X11/include
29449 /usr/local/X11R6/include
29450 /usr/local/X11R5/include
29451 /usr/local/X11R4/include
29453 /usr/local/include/X11
29454 /usr/local/include/X11R6
29455 /usr/local/include/X11R5
29456 /usr/local/include/X11R4
29460 /usr/XFree86/include/X11
29464 /usr/unsupported/include
29465 /usr/athena/include
29466 /usr/local/x11r5/include
29467 /usr/lpp/Xamples/include
29469 /usr/openwin/include
29470 /usr/openwin/share/include'
29472 if test "$ac_x_includes" = no; then
29473 # Guess where to find include files, by looking for Xlib.h.
29474 # First, try using that file with no special directory specified.
29475 cat >conftest.$ac_ext <<_ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29481 #include <X11/Xlib.h>
29483 if { (ac_try="$ac_cpp conftest.$ac_ext"
29484 case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29491 grep -v '^ *+' conftest.er1 >conftest.err
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } >/dev/null && {
29496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29497 test ! -s conftest.err
29499 # We can compile using X headers with no special include directory.
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 for ac_dir in $ac_x_header_dirs; do
29506 if test -r "$ac_dir/X11/Xlib.h"; then
29507 ac_x_includes=$ac_dir
29513 rm -f conftest.err conftest.$ac_ext
29514 fi # $ac_x_includes = no
29516 if test "$ac_x_libraries" = no; then
29517 # Check for the libraries.
29518 # See if we find them without any special options.
29519 # Don't add to $LIBS permanently.
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <X11/Xlib.h>
29537 rm -f conftest.$ac_objext conftest$ac_exeext
29538 if { (ac_try="$ac_link"
29539 case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_link") 2>conftest.er1
29546 grep -v '^ *+' conftest.er1 >conftest.err
29548 cat conftest.err >&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } && {
29551 test -z "$ac_c_werror_flag" ||
29552 test ! -s conftest.err
29553 } && test -s conftest$ac_exeext &&
29554 $as_test_x conftest$ac_exeext; then
29556 # We can link X programs with no special library path.
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29563 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29565 # Don't even attempt the hair of trying to link an X program!
29566 for ac_extension in a so sl; do
29567 if test -r "$ac_dir/libX11.$ac_extension"; then
29568 ac_x_libraries=$ac_dir
29575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29576 conftest$ac_exeext conftest.$ac_ext
29577 fi # $ac_x_libraries = no
29579 case $ac_x_includes,$ac_x_libraries in #(
29580 no,* | *,no | *\'*)
29581 # Didn't find X, or a directory has "'" in its name.
29582 ac_cv_have_x="have_x=no";; #(
29584 # Record where we found X for the cache.
29585 ac_cv_have_x="have_x=yes\
29586 ac_x_includes='$ac_x_includes'\
29587 ac_x_libraries='$ac_x_libraries'"
29593 eval "$ac_cv_have_x"
29596 if test "$have_x" != yes; then
29597 { echo "$as_me:$LINENO: result: $have_x" >&5
29598 echo "${ECHO_T}$have_x" >&6; }
29601 # If each of the values was on the command line, it overrides each guess.
29602 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29604 # Update the cache value to reflect the command line values.
29605 ac_cv_have_x="have_x=yes\
29606 ac_x_includes='$x_includes'\
29607 ac_x_libraries='$x_libraries'"
29608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29609 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29612 if test "$no_x" = yes; then
29613 # Not all programs may use this symbol, but it does not hurt to define it.
29615 cat >>confdefs.h <<\_ACEOF
29616 #define X_DISPLAY_MISSING 1
29619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29621 if test -n "$x_includes"; then
29622 X_CFLAGS="$X_CFLAGS -I$x_includes"
29625 # It would also be nice to do this for all -L options, not just this one.
29626 if test -n "$x_libraries"; then
29627 X_LIBS="$X_LIBS -L$x_libraries"
29628 # For Solaris; some versions of Sun CC require a space after -R and
29629 # others require no space. Words are not sufficient . . . .
29630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29631 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29633 ac_xsave_c_werror_flag=$ac_c_werror_flag
29634 ac_c_werror_flag=yes
29635 cat >conftest.$ac_ext <<_ACEOF
29638 cat confdefs.h >>conftest.$ac_ext
29639 cat >>conftest.$ac_ext <<_ACEOF
29640 /* end confdefs.h. */
29650 rm -f conftest.$ac_objext conftest$ac_exeext
29651 if { (ac_try="$ac_link"
29652 case "(($ac_try" in
29653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654 *) ac_try_echo=$ac_try;;
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657 (eval "$ac_link") 2>conftest.er1
29659 grep -v '^ *+' conftest.er1 >conftest.err
29661 cat conftest.err >&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } && {
29664 test -z "$ac_c_werror_flag" ||
29665 test ! -s conftest.err
29666 } && test -s conftest$ac_exeext &&
29667 $as_test_x conftest$ac_exeext; then
29668 { echo "$as_me:$LINENO: result: no" >&5
29669 echo "${ECHO_T}no" >&6; }
29670 X_LIBS="$X_LIBS -R$x_libraries"
29672 echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29675 LIBS="$ac_xsave_LIBS -R $x_libraries"
29676 cat >conftest.$ac_ext <<_ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29691 rm -f conftest.$ac_objext conftest$ac_exeext
29692 if { (ac_try="$ac_link"
29693 case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_link") 2>conftest.er1
29700 grep -v '^ *+' conftest.er1 >conftest.err
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } && {
29705 test -z "$ac_c_werror_flag" ||
29706 test ! -s conftest.err
29707 } && test -s conftest$ac_exeext &&
29708 $as_test_x conftest$ac_exeext; then
29709 { echo "$as_me:$LINENO: result: yes" >&5
29710 echo "${ECHO_T}yes" >&6; }
29711 X_LIBS="$X_LIBS -R $x_libraries"
29713 echo "$as_me: failed program was:" >&5
29714 sed 's/^/| /' conftest.$ac_ext >&5
29716 { echo "$as_me:$LINENO: result: neither works" >&5
29717 echo "${ECHO_T}neither works" >&6; }
29720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29721 conftest$ac_exeext conftest.$ac_ext
29724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29725 conftest$ac_exeext conftest.$ac_ext
29726 ac_c_werror_flag=$ac_xsave_c_werror_flag
29727 LIBS=$ac_xsave_LIBS
29730 # Check for system-dependent libraries X programs must link with.
29731 # Do this before checking for the system-independent R6 libraries
29732 # (-lICE), since we may need -lsocket or whatever for X linking.
29734 if test "$ISC" = yes; then
29735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29737 # Martyn Johnson says this is needed for Ultrix, if the X
29738 # libraries were built with DECnet support. And Karl Berry says
29739 # the Alpha needs dnet_stub (dnet does not exist).
29740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29741 cat >conftest.$ac_ext <<_ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29748 /* Override any GCC internal prototype to avoid an error.
29749 Use char because int might match the return type of a GCC
29750 builtin and then its argument prototype would still apply. */
29754 char XOpenDisplay ();
29758 return XOpenDisplay ();
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (ac_try="$ac_link"
29765 case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_link") 2>conftest.er1
29772 grep -v '^ *+' conftest.er1 >conftest.err
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } && {
29777 test -z "$ac_c_werror_flag" ||
29778 test ! -s conftest.err
29779 } && test -s conftest$ac_exeext &&
29780 $as_test_x conftest$ac_exeext; then
29783 echo "$as_me: failed program was:" >&5
29784 sed 's/^/| /' conftest.$ac_ext >&5
29786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29787 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29788 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 ac_check_lib_save_LIBS=$LIBS
29792 LIBS="-ldnet $LIBS"
29793 cat >conftest.$ac_ext <<_ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h. */
29800 /* Override any GCC internal prototype to avoid an error.
29801 Use char because int might match the return type of a GCC
29802 builtin and then its argument prototype would still apply. */
29810 return dnet_ntoa ();
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_link") 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } && {
29829 test -z "$ac_c_werror_flag" ||
29830 test ! -s conftest.err
29831 } && test -s conftest$ac_exeext &&
29832 $as_test_x conftest$ac_exeext; then
29833 ac_cv_lib_dnet_dnet_ntoa=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_cv_lib_dnet_dnet_ntoa=no
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842 conftest$ac_exeext conftest.$ac_ext
29843 LIBS=$ac_check_lib_save_LIBS
29845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29846 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29847 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29853 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29854 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 ac_check_lib_save_LIBS=$LIBS
29858 LIBS="-ldnet_stub $LIBS"
29859 cat >conftest.$ac_ext <<_ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29866 /* Override any GCC internal prototype to avoid an error.
29867 Use char because int might match the return type of a GCC
29868 builtin and then its argument prototype would still apply. */
29876 return dnet_ntoa ();
29881 rm -f conftest.$ac_objext conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888 (eval "$ac_link") 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } && {
29895 test -z "$ac_c_werror_flag" ||
29896 test ! -s conftest.err
29897 } && test -s conftest$ac_exeext &&
29898 $as_test_x conftest$ac_exeext; then
29899 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_cv_lib_dnet_stub_dnet_ntoa=no
29907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29908 conftest$ac_exeext conftest.$ac_ext
29909 LIBS=$ac_check_lib_save_LIBS
29911 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29912 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29913 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29921 conftest$ac_exeext conftest.$ac_ext
29922 LIBS="$ac_xsave_LIBS"
29924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29925 # to get the SysV transport functions.
29926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29928 # The nsl library prevents programs from opening the X display
29929 # on Irix 5.2, according to T.E. Dickey.
29930 # The functions gethostbyname, getservbyname, and inet_addr are
29931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29933 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29934 if test "${ac_cv_func_gethostbyname+set}" = set; then
29935 echo $ECHO_N "(cached) $ECHO_C" >&6
29937 cat >conftest.$ac_ext <<_ACEOF
29940 cat confdefs.h >>conftest.$ac_ext
29941 cat >>conftest.$ac_ext <<_ACEOF
29942 /* end confdefs.h. */
29943 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29945 #define gethostbyname innocuous_gethostbyname
29947 /* System header to define __stub macros and hopefully few prototypes,
29948 which can conflict with char gethostbyname (); below.
29949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29950 <limits.h> exists even on freestanding compilers. */
29953 # include <limits.h>
29955 # include <assert.h>
29958 #undef gethostbyname
29960 /* Override any GCC internal prototype to avoid an error.
29961 Use char because int might match the return type of a GCC
29962 builtin and then its argument prototype would still apply. */
29966 char gethostbyname ();
29967 /* The GNU C library defines this for functions which it implements
29968 to always fail with ENOSYS. Some functions are actually named
29969 something starting with __ and the normal name is an alias. */
29970 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29977 return gethostbyname ();
29982 rm -f conftest.$ac_objext conftest$ac_exeext
29983 if { (ac_try="$ac_link"
29984 case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_link") 2>conftest.er1
29991 grep -v '^ *+' conftest.er1 >conftest.err
29993 cat conftest.err >&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); } && {
29996 test -z "$ac_c_werror_flag" ||
29997 test ! -s conftest.err
29998 } && test -s conftest$ac_exeext &&
29999 $as_test_x conftest$ac_exeext; then
30000 ac_cv_func_gethostbyname=yes
30002 echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30005 ac_cv_func_gethostbyname=no
30008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30009 conftest$ac_exeext conftest.$ac_ext
30011 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30012 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30014 if test $ac_cv_func_gethostbyname = no; then
30015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30016 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30017 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30020 ac_check_lib_save_LIBS=$LIBS
30022 cat >conftest.$ac_ext <<_ACEOF
30025 cat confdefs.h >>conftest.$ac_ext
30026 cat >>conftest.$ac_ext <<_ACEOF
30027 /* end confdefs.h. */
30029 /* Override any GCC internal prototype to avoid an error.
30030 Use char because int might match the return type of a GCC
30031 builtin and then its argument prototype would still apply. */
30035 char gethostbyname ();
30039 return gethostbyname ();
30044 rm -f conftest.$ac_objext conftest$ac_exeext
30045 if { (ac_try="$ac_link"
30046 case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_link") 2>conftest.er1
30053 grep -v '^ *+' conftest.er1 >conftest.err
30055 cat conftest.err >&5
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } && {
30058 test -z "$ac_c_werror_flag" ||
30059 test ! -s conftest.err
30060 } && test -s conftest$ac_exeext &&
30061 $as_test_x conftest$ac_exeext; then
30062 ac_cv_lib_nsl_gethostbyname=yes
30064 echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 ac_cv_lib_nsl_gethostbyname=no
30070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30071 conftest$ac_exeext conftest.$ac_ext
30072 LIBS=$ac_check_lib_save_LIBS
30074 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30075 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30076 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30080 if test $ac_cv_lib_nsl_gethostbyname = no; then
30081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30082 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30083 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30086 ac_check_lib_save_LIBS=$LIBS
30088 cat >conftest.$ac_ext <<_ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h. */
30095 /* Override any GCC internal prototype to avoid an error.
30096 Use char because int might match the return type of a GCC
30097 builtin and then its argument prototype would still apply. */
30101 char gethostbyname ();
30105 return gethostbyname ();
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (ac_try="$ac_link"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_link") 2>conftest.er1
30119 grep -v '^ *+' conftest.er1 >conftest.err
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } && {
30124 test -z "$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 } && test -s conftest$ac_exeext &&
30127 $as_test_x conftest$ac_exeext; then
30128 ac_cv_lib_bsd_gethostbyname=yes
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133 ac_cv_lib_bsd_gethostbyname=no
30136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30137 conftest$ac_exeext conftest.$ac_ext
30138 LIBS=$ac_check_lib_save_LIBS
30140 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30141 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30142 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30149 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30150 # socket/setsockopt and other routines are undefined under SCO ODT
30151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30152 # on later versions), says Simon Leinen: it contains gethostby*
30153 # variants that don't use the name server (or something). -lsocket
30154 # must be given before -lnsl if both are needed. We assume that
30155 # if connect needs -lnsl, so does gethostbyname.
30156 { echo "$as_me:$LINENO: checking for connect" >&5
30157 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30158 if test "${ac_cv_func_connect+set}" = set; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30161 cat >conftest.$ac_ext <<_ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h. */
30167 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30169 #define connect innocuous_connect
30171 /* System header to define __stub macros and hopefully few prototypes,
30172 which can conflict with char connect (); below.
30173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30174 <limits.h> exists even on freestanding compilers. */
30177 # include <limits.h>
30179 # include <assert.h>
30184 /* Override any GCC internal prototype to avoid an error.
30185 Use char because int might match the return type of a GCC
30186 builtin and then its argument prototype would still apply. */
30191 /* The GNU C library defines this for functions which it implements
30192 to always fail with ENOSYS. Some functions are actually named
30193 something starting with __ and the normal name is an alias. */
30194 #if defined __stub_connect || defined __stub___connect
30206 rm -f conftest.$ac_objext conftest$ac_exeext
30207 if { (ac_try="$ac_link"
30208 case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_link") 2>conftest.er1
30215 grep -v '^ *+' conftest.er1 >conftest.err
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } && {
30220 test -z "$ac_c_werror_flag" ||
30221 test ! -s conftest.err
30222 } && test -s conftest$ac_exeext &&
30223 $as_test_x conftest$ac_exeext; then
30224 ac_cv_func_connect=yes
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ac_cv_func_connect=no
30232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30233 conftest$ac_exeext conftest.$ac_ext
30235 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30236 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30238 if test $ac_cv_func_connect = no; then
30239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30240 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30241 if test "${ac_cv_lib_socket_connect+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30244 ac_check_lib_save_LIBS=$LIBS
30245 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30246 cat >conftest.$ac_ext <<_ACEOF
30249 cat confdefs.h >>conftest.$ac_ext
30250 cat >>conftest.$ac_ext <<_ACEOF
30251 /* end confdefs.h. */
30253 /* Override any GCC internal prototype to avoid an error.
30254 Use char because int might match the return type of a GCC
30255 builtin and then its argument prototype would still apply. */
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_link") 2>conftest.er1
30277 grep -v '^ *+' conftest.er1 >conftest.err
30279 cat conftest.err >&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && {
30282 test -z "$ac_c_werror_flag" ||
30283 test ! -s conftest.err
30284 } && test -s conftest$ac_exeext &&
30285 $as_test_x conftest$ac_exeext; then
30286 ac_cv_lib_socket_connect=yes
30288 echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30291 ac_cv_lib_socket_connect=no
30294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30295 conftest$ac_exeext conftest.$ac_ext
30296 LIBS=$ac_check_lib_save_LIBS
30298 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30299 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30300 if test $ac_cv_lib_socket_connect = yes; then
30301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30306 # Guillermo Gomez says -lposix is necessary on A/UX.
30307 { echo "$as_me:$LINENO: checking for remove" >&5
30308 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30309 if test "${ac_cv_func_remove+set}" = set; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30318 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30320 #define remove innocuous_remove
30322 /* System header to define __stub macros and hopefully few prototypes,
30323 which can conflict with char remove (); below.
30324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30325 <limits.h> exists even on freestanding compilers. */
30328 # include <limits.h>
30330 # include <assert.h>
30335 /* Override any GCC internal prototype to avoid an error.
30336 Use char because int might match the return type of a GCC
30337 builtin and then its argument prototype would still apply. */
30342 /* The GNU C library defines this for functions which it implements
30343 to always fail with ENOSYS. Some functions are actually named
30344 something starting with __ and the normal name is an alias. */
30345 #if defined __stub_remove || defined __stub___remove
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (ac_try="$ac_link"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_link") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest$ac_exeext &&
30374 $as_test_x conftest$ac_exeext; then
30375 ac_cv_func_remove=yes
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_func_remove=no
30383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30384 conftest$ac_exeext conftest.$ac_ext
30386 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30387 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30389 if test $ac_cv_func_remove = no; then
30390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30391 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30392 if test "${ac_cv_lib_posix_remove+set}" = set; then
30393 echo $ECHO_N "(cached) $ECHO_C" >&6
30395 ac_check_lib_save_LIBS=$LIBS
30396 LIBS="-lposix $LIBS"
30397 cat >conftest.$ac_ext <<_ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h. */
30404 /* Override any GCC internal prototype to avoid an error.
30405 Use char because int might match the return type of a GCC
30406 builtin and then its argument prototype would still apply. */
30419 rm -f conftest.$ac_objext conftest$ac_exeext
30420 if { (ac_try="$ac_link"
30421 case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_link") 2>conftest.er1
30428 grep -v '^ *+' conftest.er1 >conftest.err
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } && {
30433 test -z "$ac_c_werror_flag" ||
30434 test ! -s conftest.err
30435 } && test -s conftest$ac_exeext &&
30436 $as_test_x conftest$ac_exeext; then
30437 ac_cv_lib_posix_remove=yes
30439 echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30442 ac_cv_lib_posix_remove=no
30445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30446 conftest$ac_exeext conftest.$ac_ext
30447 LIBS=$ac_check_lib_save_LIBS
30449 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30450 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30451 if test $ac_cv_lib_posix_remove = yes; then
30452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30458 { echo "$as_me:$LINENO: checking for shmat" >&5
30459 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30460 if test "${ac_cv_func_shmat+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 cat >conftest.$ac_ext <<_ACEOF
30466 cat confdefs.h >>conftest.$ac_ext
30467 cat >>conftest.$ac_ext <<_ACEOF
30468 /* end confdefs.h. */
30469 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30471 #define shmat innocuous_shmat
30473 /* System header to define __stub macros and hopefully few prototypes,
30474 which can conflict with char shmat (); below.
30475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30476 <limits.h> exists even on freestanding compilers. */
30479 # include <limits.h>
30481 # include <assert.h>
30486 /* Override any GCC internal prototype to avoid an error.
30487 Use char because int might match the return type of a GCC
30488 builtin and then its argument prototype would still apply. */
30493 /* The GNU C library defines this for functions which it implements
30494 to always fail with ENOSYS. Some functions are actually named
30495 something starting with __ and the normal name is an alias. */
30496 #if defined __stub_shmat || defined __stub___shmat
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_link") 2>conftest.er1
30517 grep -v '^ *+' conftest.er1 >conftest.err
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } && {
30522 test -z "$ac_c_werror_flag" ||
30523 test ! -s conftest.err
30524 } && test -s conftest$ac_exeext &&
30525 $as_test_x conftest$ac_exeext; then
30526 ac_cv_func_shmat=yes
30528 echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30531 ac_cv_func_shmat=no
30534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30535 conftest$ac_exeext conftest.$ac_ext
30537 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30538 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30540 if test $ac_cv_func_shmat = no; then
30541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30542 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30543 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30546 ac_check_lib_save_LIBS=$LIBS
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30570 rm -f conftest.$ac_objext conftest$ac_exeext
30571 if { (ac_try="$ac_link"
30572 case "(($ac_try" in
30573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_link") 2>conftest.er1
30579 grep -v '^ *+' conftest.er1 >conftest.err
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest$ac_exeext &&
30587 $as_test_x conftest$ac_exeext; then
30588 ac_cv_lib_ipc_shmat=yes
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 ac_cv_lib_ipc_shmat=no
30596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30597 conftest$ac_exeext conftest.$ac_ext
30598 LIBS=$ac_check_lib_save_LIBS
30600 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30601 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30602 if test $ac_cv_lib_ipc_shmat = yes; then
30603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30609 # Check for libraries that X11R6 Xt/Xaw programs need.
30610 ac_save_LDFLAGS=$LDFLAGS
30611 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30612 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30613 # check for ICE first), but we must link in the order -lSM -lICE or
30614 # we get undefined symbols. So assume we have SM if we have ICE.
30615 # These have to be linked with before -lX11, unlike the other
30616 # libraries we check for below, so use a different variable.
30617 # John Interrante, Karl Berry
30618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30619 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30620 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30621 echo $ECHO_N "(cached) $ECHO_C" >&6
30623 ac_check_lib_save_LIBS=$LIBS
30624 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30625 cat >conftest.$ac_ext <<_ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h. */
30632 /* Override any GCC internal prototype to avoid an error.
30633 Use char because int might match the return type of a GCC
30634 builtin and then its argument prototype would still apply. */
30638 char IceConnectionNumber ();
30642 return IceConnectionNumber ();
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (ac_try="$ac_link"
30649 case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_link") 2>conftest.er1
30656 grep -v '^ *+' conftest.er1 >conftest.err
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } && {
30661 test -z "$ac_c_werror_flag" ||
30662 test ! -s conftest.err
30663 } && test -s conftest$ac_exeext &&
30664 $as_test_x conftest$ac_exeext; then
30665 ac_cv_lib_ICE_IceConnectionNumber=yes
30667 echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30670 ac_cv_lib_ICE_IceConnectionNumber=no
30673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30674 conftest$ac_exeext conftest.$ac_ext
30675 LIBS=$ac_check_lib_save_LIBS
30677 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30678 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30679 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30683 LDFLAGS=$ac_save_LDFLAGS
30749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30756 ac_res=`eval echo '${'$as_ac_Header'}'`
30757 { echo "$as_me:$LINENO: result: $ac_res" >&5
30758 echo "${ECHO_T}$ac_res" >&6; }
30760 # Is the header compilable?
30761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30763 cat >conftest.$ac_ext <<_ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h. */
30769 $ac_includes_default
30770 #include <$ac_header>
30772 rm -f conftest.$ac_objext
30773 if { (ac_try="$ac_compile"
30774 case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_compile") 2>conftest.er1
30781 grep -v '^ *+' conftest.er1 >conftest.err
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } && {
30786 test -z "$ac_c_werror_flag" ||
30787 test ! -s conftest.err
30788 } && test -s conftest.$ac_objext; then
30789 ac_header_compiler=yes
30791 echo "$as_me: failed program was:" >&5
30792 sed 's/^/| /' conftest.$ac_ext >&5
30794 ac_header_compiler=no
30797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30799 echo "${ECHO_T}$ac_header_compiler" >&6; }
30801 # Is the header present?
30802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30804 cat >conftest.$ac_ext <<_ACEOF
30807 cat confdefs.h >>conftest.$ac_ext
30808 cat >>conftest.$ac_ext <<_ACEOF
30809 /* end confdefs.h. */
30810 #include <$ac_header>
30812 if { (ac_try="$ac_cpp conftest.$ac_ext"
30813 case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30820 grep -v '^ *+' conftest.er1 >conftest.err
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } >/dev/null && {
30825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30826 test ! -s conftest.err
30828 ac_header_preproc=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_header_preproc=no
30836 rm -f conftest.err conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30838 echo "${ECHO_T}$ac_header_preproc" >&6; }
30840 # So? What about this header?
30841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30847 ac_header_preproc=yes
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
30870 eval "$as_ac_Header=\$ac_header_preproc"
30872 ac_res=`eval echo '${'$as_ac_Header'}'`
30873 { echo "$as_me:$LINENO: result: $ac_res" >&5
30874 echo "${ECHO_T}$ac_res" >&6; }
30877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30878 cat >>confdefs.h <<_ACEOF
30879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30886 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30888 if test "${ac_cv_header_stdc+set}" = set; then
30889 echo $ECHO_N "(cached) $ECHO_C" >&6
30891 cat >conftest.$ac_ext <<_ACEOF
30894 cat confdefs.h >>conftest.$ac_ext
30895 cat >>conftest.$ac_ext <<_ACEOF
30896 /* end confdefs.h. */
30897 #include <stdlib.h>
30898 #include <stdarg.h>
30899 #include <string.h>
30910 rm -f conftest.$ac_objext
30911 if { (ac_try="$ac_compile"
30912 case "(($ac_try" in
30913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914 *) ac_try_echo=$ac_try;;
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917 (eval "$ac_compile") 2>conftest.er1
30919 grep -v '^ *+' conftest.er1 >conftest.err
30921 cat conftest.err >&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); } && {
30924 test -z "$ac_c_werror_flag" ||
30925 test ! -s conftest.err
30926 } && test -s conftest.$ac_objext; then
30927 ac_cv_header_stdc=yes
30929 echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30932 ac_cv_header_stdc=no
30935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30937 if test $ac_cv_header_stdc = yes; then
30938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30939 cat >conftest.$ac_ext <<_ACEOF
30942 cat confdefs.h >>conftest.$ac_ext
30943 cat >>conftest.$ac_ext <<_ACEOF
30944 /* end confdefs.h. */
30945 #include <string.h>
30948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30949 $EGREP "memchr" >/dev/null 2>&1; then
30952 ac_cv_header_stdc=no
30958 if test $ac_cv_header_stdc = yes; then
30959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30960 cat >conftest.$ac_ext <<_ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h. */
30966 #include <stdlib.h>
30969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30970 $EGREP "free" >/dev/null 2>&1; then
30973 ac_cv_header_stdc=no
30979 if test $ac_cv_header_stdc = yes; then
30980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30981 if test "$cross_compiling" = yes; then
30984 cat >conftest.$ac_ext <<_ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30991 #include <stdlib.h>
30992 #if ((' ' & 0x0FF) == 0x020)
30993 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30994 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30996 # define ISLOWER(c) \
30997 (('a' <= (c) && (c) <= 'i') \
30998 || ('j' <= (c) && (c) <= 'r') \
30999 || ('s' <= (c) && (c) <= 'z'))
31000 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31008 for (i = 0; i < 256; i++)
31009 if (XOR (islower (i), ISLOWER (i))
31010 || toupper (i) != TOUPPER (i))
31015 rm -f conftest$ac_exeext
31016 if { (ac_try="$ac_link"
31017 case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_link") 2>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31026 { (case "(($ac_try" in
31027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31028 *) ac_try_echo=$ac_try;;
31030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31031 (eval "$ac_try") 2>&5
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); }; }; then
31037 echo "$as_me: program exited with status $ac_status" >&5
31038 echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31041 ( exit $ac_status )
31042 ac_cv_header_stdc=no
31044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31050 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31051 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31052 if test $ac_cv_header_stdc = yes; then
31054 cat >>confdefs.h <<\_ACEOF
31055 #define STDC_HEADERS 1
31060 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31061 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31062 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31063 echo $ECHO_N "(cached) $ECHO_C" >&6
31065 cat >conftest.$ac_ext <<_ACEOF
31068 cat confdefs.h >>conftest.$ac_ext
31069 cat >>conftest.$ac_ext <<_ACEOF
31070 /* end confdefs.h. */
31071 #include <sys/types.h>
31075 return makedev(0, 0);
31080 rm -f conftest.$ac_objext conftest$ac_exeext
31081 if { (ac_try="$ac_link"
31082 case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_link") 2>conftest.er1
31089 grep -v '^ *+' conftest.er1 >conftest.err
31091 cat conftest.err >&5
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); } && {
31094 test -z "$ac_c_werror_flag" ||
31095 test ! -s conftest.err
31096 } && test -s conftest$ac_exeext &&
31097 $as_test_x conftest$ac_exeext; then
31098 ac_cv_header_sys_types_h_makedev=yes
31100 echo "$as_me: failed program was:" >&5
31101 sed 's/^/| /' conftest.$ac_ext >&5
31103 ac_cv_header_sys_types_h_makedev=no
31106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31107 conftest$ac_exeext conftest.$ac_ext
31110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31111 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31113 if test $ac_cv_header_sys_types_h_makedev = no; then
31114 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31115 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31116 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31117 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31118 echo $ECHO_N "(cached) $ECHO_C" >&6
31120 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31121 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31123 # Is the header compilable?
31124 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31125 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31126 cat >conftest.$ac_ext <<_ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h. */
31132 $ac_includes_default
31133 #include <sys/mkdev.h>
31135 rm -f conftest.$ac_objext
31136 if { (ac_try="$ac_compile"
31137 case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_compile") 2>conftest.er1
31144 grep -v '^ *+' conftest.er1 >conftest.err
31146 cat conftest.err >&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } && {
31149 test -z "$ac_c_werror_flag" ||
31150 test ! -s conftest.err
31151 } && test -s conftest.$ac_objext; then
31152 ac_header_compiler=yes
31154 echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31157 ac_header_compiler=no
31160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31162 echo "${ECHO_T}$ac_header_compiler" >&6; }
31164 # Is the header present?
31165 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31166 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31167 cat >conftest.$ac_ext <<_ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h. */
31173 #include <sys/mkdev.h>
31175 if { (ac_try="$ac_cpp conftest.$ac_ext"
31176 case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31183 grep -v '^ *+' conftest.er1 >conftest.err
31185 cat conftest.err >&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); } >/dev/null && {
31188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31189 test ! -s conftest.err
31191 ac_header_preproc=yes
31193 echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31196 ac_header_preproc=no
31199 rm -f conftest.err conftest.$ac_ext
31200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31201 echo "${ECHO_T}$ac_header_preproc" >&6; }
31203 # So? What about this header?
31204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31206 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31207 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31208 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31209 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31210 ac_header_preproc=yes
31213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31214 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31215 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31216 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31217 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31218 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31219 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31220 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31221 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31222 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31223 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31224 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31228 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31229 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31230 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31235 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31236 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31239 if test $ac_cv_header_sys_mkdev_h = yes; then
31241 cat >>confdefs.h <<\_ACEOF
31242 #define MAJOR_IN_MKDEV 1
31249 if test $ac_cv_header_sys_mkdev_h = no; then
31250 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31251 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31252 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31257 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31259 # Is the header compilable?
31260 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31261 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31262 cat >conftest.$ac_ext <<_ACEOF
31265 cat confdefs.h >>conftest.$ac_ext
31266 cat >>conftest.$ac_ext <<_ACEOF
31267 /* end confdefs.h. */
31268 $ac_includes_default
31269 #include <sys/sysmacros.h>
31271 rm -f conftest.$ac_objext
31272 if { (ac_try="$ac_compile"
31273 case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_compile") 2>conftest.er1
31280 grep -v '^ *+' conftest.er1 >conftest.err
31282 cat conftest.err >&5
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); } && {
31285 test -z "$ac_c_werror_flag" ||
31286 test ! -s conftest.err
31287 } && test -s conftest.$ac_objext; then
31288 ac_header_compiler=yes
31290 echo "$as_me: failed program was:" >&5
31291 sed 's/^/| /' conftest.$ac_ext >&5
31293 ac_header_compiler=no
31296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31298 echo "${ECHO_T}$ac_header_compiler" >&6; }
31300 # Is the header present?
31301 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31302 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31303 cat >conftest.$ac_ext <<_ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h. */
31309 #include <sys/sysmacros.h>
31311 if { (ac_try="$ac_cpp conftest.$ac_ext"
31312 case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31319 grep -v '^ *+' conftest.er1 >conftest.err
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } >/dev/null && {
31324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31325 test ! -s conftest.err
31327 ac_header_preproc=yes
31329 echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31332 ac_header_preproc=no
31335 rm -f conftest.err conftest.$ac_ext
31336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31337 echo "${ECHO_T}$ac_header_preproc" >&6; }
31339 # So? What about this header?
31340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31343 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31346 ac_header_preproc=yes
31349 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31350 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31351 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31352 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31353 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31354 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31355 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31356 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31358 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31359 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31360 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31364 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31365 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31366 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
31369 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31371 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31372 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31375 if test $ac_cv_header_sys_sysmacros_h = yes; then
31377 cat >>confdefs.h <<\_ACEOF
31378 #define MAJOR_IN_SYSMACROS 1
31392 ac_header_dirent=no
31393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31394 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31395 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31396 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31398 echo $ECHO_N "(cached) $ECHO_C" >&6
31400 cat >conftest.$ac_ext <<_ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31406 #include <sys/types.h>
31418 rm -f conftest.$ac_objext
31419 if { (ac_try="$ac_compile"
31420 case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_compile") 2>conftest.er1
31427 grep -v '^ *+' conftest.er1 >conftest.err
31429 cat conftest.err >&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } && {
31432 test -z "$ac_c_werror_flag" ||
31433 test ! -s conftest.err
31434 } && test -s conftest.$ac_objext; then
31435 eval "$as_ac_Header=yes"
31437 echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31440 eval "$as_ac_Header=no"
31443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31445 ac_res=`eval echo '${'$as_ac_Header'}'`
31446 { echo "$as_me:$LINENO: result: $ac_res" >&5
31447 echo "${ECHO_T}$ac_res" >&6; }
31448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31449 cat >>confdefs.h <<_ACEOF
31450 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31453 ac_header_dirent=$ac_hdr; break
31457 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31458 if test $ac_header_dirent = dirent.h; then
31459 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31461 if test "${ac_cv_search_opendir+set}" = set; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31464 ac_func_search_save_LIBS=$LIBS
31465 cat >conftest.$ac_ext <<_ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h. */
31472 /* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
31487 for ac_lib in '' dir; do
31488 if test -z "$ac_lib"; then
31489 ac_res="none required"
31492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31494 rm -f conftest.$ac_objext conftest$ac_exeext
31495 if { (ac_try="$ac_link"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_link") 2>conftest.er1
31503 grep -v '^ *+' conftest.er1 >conftest.err
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } && {
31508 test -z "$ac_c_werror_flag" ||
31509 test ! -s conftest.err
31510 } && test -s conftest$ac_exeext &&
31511 $as_test_x conftest$ac_exeext; then
31512 ac_cv_search_opendir=$ac_res
31514 echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31522 if test "${ac_cv_search_opendir+set}" = set; then
31526 if test "${ac_cv_search_opendir+set}" = set; then
31529 ac_cv_search_opendir=no
31531 rm conftest.$ac_ext
31532 LIBS=$ac_func_search_save_LIBS
31534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31536 ac_res=$ac_cv_search_opendir
31537 if test "$ac_res" != no; then
31538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31543 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31545 if test "${ac_cv_search_opendir+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31548 ac_func_search_save_LIBS=$LIBS
31549 cat >conftest.$ac_ext <<_ACEOF
31552 cat confdefs.h >>conftest.$ac_ext
31553 cat >>conftest.$ac_ext <<_ACEOF
31554 /* end confdefs.h. */
31556 /* Override any GCC internal prototype to avoid an error.
31557 Use char because int might match the return type of a GCC
31558 builtin and then its argument prototype would still apply. */
31571 for ac_lib in '' x; do
31572 if test -z "$ac_lib"; then
31573 ac_res="none required"
31576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31578 rm -f conftest.$ac_objext conftest$ac_exeext
31579 if { (ac_try="$ac_link"
31580 case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_link") 2>conftest.er1
31587 grep -v '^ *+' conftest.er1 >conftest.err
31589 cat conftest.err >&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } && {
31592 test -z "$ac_c_werror_flag" ||
31593 test ! -s conftest.err
31594 } && test -s conftest$ac_exeext &&
31595 $as_test_x conftest$ac_exeext; then
31596 ac_cv_search_opendir=$ac_res
31598 echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31606 if test "${ac_cv_search_opendir+set}" = set; then
31610 if test "${ac_cv_search_opendir+set}" = set; then
31613 ac_cv_search_opendir=no
31615 rm conftest.$ac_ext
31616 LIBS=$ac_func_search_save_LIBS
31618 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31619 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31620 ac_res=$ac_cv_search_opendir
31621 if test "$ac_res" != no; then
31622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31628 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31629 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31630 if test "${ac_cv_header_stat_broken+set}" = set; then
31631 echo $ECHO_N "(cached) $ECHO_C" >&6
31633 cat >conftest.$ac_ext <<_ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31639 #include <sys/types.h>
31640 #include <sys/stat.h>
31642 #if defined S_ISBLK && defined S_IFDIR
31643 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31646 #if defined S_ISBLK && defined S_IFCHR
31647 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31650 #if defined S_ISLNK && defined S_IFREG
31651 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31654 #if defined S_ISSOCK && defined S_IFREG
31655 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31659 rm -f conftest.$ac_objext
31660 if { (ac_try="$ac_compile"
31661 case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
31668 grep -v '^ *+' conftest.er1 >conftest.err
31670 cat conftest.err >&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } && {
31673 test -z "$ac_c_werror_flag" ||
31674 test ! -s conftest.err
31675 } && test -s conftest.$ac_objext; then
31676 ac_cv_header_stat_broken=no
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.$ac_ext >&5
31681 ac_cv_header_stat_broken=yes
31684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31686 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31687 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31688 if test $ac_cv_header_stat_broken = yes; then
31690 cat >>confdefs.h <<\_ACEOF
31691 #define STAT_MACROS_BROKEN 1
31696 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31701 cat >conftest.$ac_ext <<_ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h. */
31707 #include <sys/types.h>
31708 #include <sys/wait.h>
31709 #ifndef WEXITSTATUS
31710 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31726 rm -f conftest.$ac_objext
31727 if { (ac_try="$ac_compile"
31728 case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_compile") 2>conftest.er1
31735 grep -v '^ *+' conftest.er1 >conftest.err
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } && {
31740 test -z "$ac_c_werror_flag" ||
31741 test ! -s conftest.err
31742 } && test -s conftest.$ac_objext; then
31743 ac_cv_header_sys_wait_h=yes
31745 echo "$as_me: failed program was:" >&5
31746 sed 's/^/| /' conftest.$ac_ext >&5
31748 ac_cv_header_sys_wait_h=no
31751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31754 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31755 if test $ac_cv_header_sys_wait_h = yes; then
31757 cat >>confdefs.h <<\_ACEOF
31758 #define HAVE_SYS_WAIT_H 1
31763 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31764 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31765 if test "${ac_cv_header_time+set}" = set; then
31766 echo $ECHO_N "(cached) $ECHO_C" >&6
31768 cat >conftest.$ac_ext <<_ACEOF
31771 cat confdefs.h >>conftest.$ac_ext
31772 cat >>conftest.$ac_ext <<_ACEOF
31773 /* end confdefs.h. */
31774 #include <sys/types.h>
31775 #include <sys/time.h>
31781 if ((struct tm *) 0)
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_header_time=yes
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31809 ac_cv_header_time=no
31812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31814 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31815 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31816 if test $ac_cv_header_time = yes; then
31818 cat >>confdefs.h <<\_ACEOF
31819 #define TIME_WITH_SYS_TIME 1
31824 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31825 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31826 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31829 cat >conftest.$ac_ext <<_ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h. */
31835 $ac_includes_default
31839 static struct stat ac_aggr;
31840 if (ac_aggr.st_blksize)
31846 rm -f conftest.$ac_objext
31847 if { (ac_try="$ac_compile"
31848 case "(($ac_try" in
31849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850 *) ac_try_echo=$ac_try;;
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853 (eval "$ac_compile") 2>conftest.er1
31855 grep -v '^ *+' conftest.er1 >conftest.err
31857 cat conftest.err >&5
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); } && {
31860 test -z "$ac_c_werror_flag" ||
31861 test ! -s conftest.err
31862 } && test -s conftest.$ac_objext; then
31863 ac_cv_member_struct_stat_st_blksize=yes
31865 echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31868 cat >conftest.$ac_ext <<_ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31874 $ac_includes_default
31878 static struct stat ac_aggr;
31879 if (sizeof ac_aggr.st_blksize)
31885 rm -f conftest.$ac_objext
31886 if { (ac_try="$ac_compile"
31887 case "(($ac_try" in
31888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889 *) ac_try_echo=$ac_try;;
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892 (eval "$ac_compile") 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } && {
31899 test -z "$ac_c_werror_flag" ||
31900 test ! -s conftest.err
31901 } && test -s conftest.$ac_objext; then
31902 ac_cv_member_struct_stat_st_blksize=yes
31904 echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31907 ac_cv_member_struct_stat_st_blksize=no
31910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31916 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31917 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31919 cat >>confdefs.h <<_ACEOF
31920 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31924 cat >>confdefs.h <<\_ACEOF
31925 #define HAVE_ST_BLKSIZE 1
31931 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31932 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31933 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31934 echo $ECHO_N "(cached) $ECHO_C" >&6
31936 cat >conftest.$ac_ext <<_ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h. */
31942 $ac_includes_default
31946 static struct stat ac_aggr;
31947 if (ac_aggr.st_blocks)
31953 rm -f conftest.$ac_objext
31954 if { (ac_try="$ac_compile"
31955 case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_compile") 2>conftest.er1
31962 grep -v '^ *+' conftest.er1 >conftest.err
31964 cat conftest.err >&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } && {
31967 test -z "$ac_c_werror_flag" ||
31968 test ! -s conftest.err
31969 } && test -s conftest.$ac_objext; then
31970 ac_cv_member_struct_stat_st_blocks=yes
31972 echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31975 cat >conftest.$ac_ext <<_ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h. */
31981 $ac_includes_default
31985 static struct stat ac_aggr;
31986 if (sizeof ac_aggr.st_blocks)
31992 rm -f conftest.$ac_objext
31993 if { (ac_try="$ac_compile"
31994 case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999 (eval "$ac_compile") 2>conftest.er1
32001 grep -v '^ *+' conftest.er1 >conftest.err
32003 cat conftest.err >&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } && {
32006 test -z "$ac_c_werror_flag" ||
32007 test ! -s conftest.err
32008 } && test -s conftest.$ac_objext; then
32009 ac_cv_member_struct_stat_st_blocks=yes
32011 echo "$as_me: failed program was:" >&5
32012 sed 's/^/| /' conftest.$ac_ext >&5
32014 ac_cv_member_struct_stat_st_blocks=no
32017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32023 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32024 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32026 cat >>confdefs.h <<_ACEOF
32027 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32031 cat >>confdefs.h <<\_ACEOF
32032 #define HAVE_ST_BLOCKS 1
32036 case " $LIBOBJS " in
32037 *" fileblocks.$ac_objext "* ) ;;
32038 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32045 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32046 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32047 if test "${ac_cv_struct_tm+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 cat >conftest.$ac_ext <<_ACEOF
32053 cat confdefs.h >>conftest.$ac_ext
32054 cat >>conftest.$ac_ext <<_ACEOF
32055 /* end confdefs.h. */
32056 #include <sys/types.h>
32063 int *p = &tm.tm_sec;
32069 rm -f conftest.$ac_objext
32070 if { (ac_try="$ac_compile"
32071 case "(($ac_try" in
32072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32073 *) ac_try_echo=$ac_try;;
32075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32076 (eval "$ac_compile") 2>conftest.er1
32078 grep -v '^ *+' conftest.er1 >conftest.err
32080 cat conftest.err >&5
32081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); } && {
32083 test -z "$ac_c_werror_flag" ||
32084 test ! -s conftest.err
32085 } && test -s conftest.$ac_objext; then
32086 ac_cv_struct_tm=time.h
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_cv_struct_tm=sys/time.h
32094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32096 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32097 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32098 if test $ac_cv_struct_tm = sys/time.h; then
32100 cat >>confdefs.h <<\_ACEOF
32101 #define TM_IN_SYS_TIME 1
32106 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32107 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32108 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32109 echo $ECHO_N "(cached) $ECHO_C" >&6
32111 cat >conftest.$ac_ext <<_ACEOF
32114 cat confdefs.h >>conftest.$ac_ext
32115 cat >>conftest.$ac_ext <<_ACEOF
32116 /* end confdefs.h. */
32117 #include <sys/types.h>
32118 #include <$ac_cv_struct_tm>
32124 static struct tm ac_aggr;
32125 if (ac_aggr.tm_zone)
32131 rm -f conftest.$ac_objext
32132 if { (ac_try="$ac_compile"
32133 case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138 (eval "$ac_compile") 2>conftest.er1
32140 grep -v '^ *+' conftest.er1 >conftest.err
32142 cat conftest.err >&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); } && {
32145 test -z "$ac_c_werror_flag" ||
32146 test ! -s conftest.err
32147 } && test -s conftest.$ac_objext; then
32148 ac_cv_member_struct_tm_tm_zone=yes
32150 echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32153 cat >conftest.$ac_ext <<_ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32159 #include <sys/types.h>
32160 #include <$ac_cv_struct_tm>
32166 static struct tm ac_aggr;
32167 if (sizeof ac_aggr.tm_zone)
32173 rm -f conftest.$ac_objext
32174 if { (ac_try="$ac_compile"
32175 case "(($ac_try" in
32176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177 *) ac_try_echo=$ac_try;;
32179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180 (eval "$ac_compile") 2>conftest.er1
32182 grep -v '^ *+' conftest.er1 >conftest.err
32184 cat conftest.err >&5
32185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32186 (exit $ac_status); } && {
32187 test -z "$ac_c_werror_flag" ||
32188 test ! -s conftest.err
32189 } && test -s conftest.$ac_objext; then
32190 ac_cv_member_struct_tm_tm_zone=yes
32192 echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32195 ac_cv_member_struct_tm_tm_zone=no
32198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32204 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32205 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32207 cat >>confdefs.h <<_ACEOF
32208 #define HAVE_STRUCT_TM_TM_ZONE 1
32214 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32216 cat >>confdefs.h <<\_ACEOF
32217 #define HAVE_TM_ZONE 1
32221 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32222 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32223 if test "${ac_cv_have_decl_tzname+set}" = set; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32245 rm -f conftest.$ac_objext
32246 if { (ac_try="$ac_compile"
32247 case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252 (eval "$ac_compile") 2>conftest.er1
32254 grep -v '^ *+' conftest.er1 >conftest.err
32256 cat conftest.err >&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); } && {
32259 test -z "$ac_c_werror_flag" ||
32260 test ! -s conftest.err
32261 } && test -s conftest.$ac_objext; then
32262 ac_cv_have_decl_tzname=yes
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32267 ac_cv_have_decl_tzname=no
32270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32272 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32273 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32274 if test $ac_cv_have_decl_tzname = yes; then
32276 cat >>confdefs.h <<_ACEOF
32277 #define HAVE_DECL_TZNAME 1
32282 cat >>confdefs.h <<_ACEOF
32283 #define HAVE_DECL_TZNAME 0
32290 { echo "$as_me:$LINENO: checking for tzname" >&5
32291 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32292 if test "${ac_cv_var_tzname+set}" = set; then
32293 echo $ECHO_N "(cached) $ECHO_C" >&6
32295 cat >conftest.$ac_ext <<_ACEOF
32298 cat confdefs.h >>conftest.$ac_ext
32299 cat >>conftest.$ac_ext <<_ACEOF
32300 /* end confdefs.h. */
32302 #if !HAVE_DECL_TZNAME
32303 extern char *tzname[];
32309 return tzname[0][0];
32314 rm -f conftest.$ac_objext conftest$ac_exeext
32315 if { (ac_try="$ac_link"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_link") 2>conftest.er1
32323 grep -v '^ *+' conftest.er1 >conftest.err
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } && {
32328 test -z "$ac_c_werror_flag" ||
32329 test ! -s conftest.err
32330 } && test -s conftest$ac_exeext &&
32331 $as_test_x conftest$ac_exeext; then
32332 ac_cv_var_tzname=yes
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32337 ac_cv_var_tzname=no
32340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32341 conftest$ac_exeext conftest.$ac_ext
32343 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32344 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32345 if test $ac_cv_var_tzname = yes; then
32347 cat >>confdefs.h <<\_ACEOF
32348 #define HAVE_TZNAME 1
32355 { echo "$as_me:$LINENO: checking for utime.h" >&5
32356 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32357 if test "${ba_cv_header_utime_h+set}" = set; then
32358 echo $ECHO_N "(cached) $ECHO_C" >&6
32361 cat >conftest.$ac_ext <<_ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h. */
32368 #include <sys/types.h>
32381 rm -f conftest.$ac_objext
32382 if { (ac_try="$ac_compile"
32383 case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_compile") 2>conftest.er1
32390 grep -v '^ *+' conftest.er1 >conftest.err
32392 cat conftest.err >&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } && {
32395 test -z "$ac_c_werror_flag" ||
32396 test ! -s conftest.err
32397 } && test -s conftest.$ac_objext; then
32399 ba_cv_header_utime_h=yes
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32406 ba_cv_header_utime_h=no
32411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32416 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32417 test $ba_cv_header_utime_h = yes &&
32418 cat >>confdefs.h <<\_ACEOF
32419 #define HAVE_UTIME_H 1
32423 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32424 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32425 if test "${ba_cv_header_socklen_t+set}" = set; then
32426 echo $ECHO_N "(cached) $ECHO_C" >&6
32429 cat >conftest.$ac_ext <<_ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h. */
32436 #include <sys/types.h>
32437 #include <sys/socket.h>
32449 rm -f conftest.$ac_objext
32450 if { (ac_try="$ac_compile"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_compile") 2>conftest.er1
32458 grep -v '^ *+' conftest.er1 >conftest.err
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } && {
32463 test -z "$ac_c_werror_flag" ||
32464 test ! -s conftest.err
32465 } && test -s conftest.$ac_objext; then
32467 ba_cv_header_socklen_t=yes
32470 echo "$as_me: failed program was:" >&5
32471 sed 's/^/| /' conftest.$ac_ext >&5
32474 ba_cv_header_socklen_t=no
32479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32484 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32485 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_SOCKLEN_T 1
32491 ac_cpp='$CXXCPP $CPPFLAGS'
32492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32496 { echo "$as_me:$LINENO: checking for typeof" >&5
32497 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32498 if test "${ba_cv_have_typeof+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32502 if test "$cross_compiling" = yes; then
32504 ba_cv_have_typeof=no
32508 cat >conftest.$ac_ext <<_ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h. */
32515 main(){char *a = 0; a = (typeof a)a;}
32518 rm -f conftest$ac_exeext
32519 if { (ac_try="$ac_link"
32520 case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_link") 2>&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32529 { (case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534 (eval "$ac_try") 2>&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); }; }; then
32539 ba_cv_have_typeof=yes
32542 echo "$as_me: program exited with status $ac_status" >&5
32543 echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32546 ( exit $ac_status )
32548 ba_cv_have_typeof=no
32551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32558 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32559 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32560 test $ba_cv_have_typeof = yes &&
32561 cat >>confdefs.h <<\_ACEOF
32562 #define HAVE_TYPEOF 1
32566 ac_cpp='$CPP $CPPFLAGS'
32567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32572 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32573 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32574 if test "${ac_cv_c_const+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32577 cat >conftest.$ac_ext <<_ACEOF
32580 cat confdefs.h >>conftest.$ac_ext
32581 cat >>conftest.$ac_ext <<_ACEOF
32582 /* end confdefs.h. */
32587 /* FIXME: Include the comments suggested by Paul. */
32588 #ifndef __cplusplus
32589 /* Ultrix mips cc rejects this. */
32590 typedef int charset[2];
32592 /* SunOS 4.1.1 cc rejects this. */
32593 char const *const *pcpcc;
32595 /* NEC SVR4.0.2 mips cc rejects this. */
32596 struct point {int x, y;};
32597 static struct point const zero = {0,0};
32598 /* AIX XL C 1.02.0.0 rejects this.
32599 It does not let you subtract one const X* pointer from another in
32600 an arm of an if-expression whose if-part is not a constant
32602 const char *g = "string";
32603 pcpcc = &g + (g ? g-g : 0);
32604 /* HPUX 7.0 cc rejects these. */
32606 ppc = (char**) pcpcc;
32607 pcpcc = (char const *const *) ppc;
32608 { /* SCO 3.2v4 cc rejects this. */
32610 char const *s = 0 ? (char *) 0 : (char const *) 0;
32615 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32616 int x[] = {25, 17};
32617 const int *foo = &x[0];
32620 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32621 typedef const int *iptr;
32625 { /* AIX XL C 1.02.0.0 rejects this saying
32626 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32627 struct s { int j; const int *ap[3]; };
32628 struct s *b; b->j = 5;
32630 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32631 const int foo = 10;
32632 if (!foo) return 0;
32634 return !cs[0] && !zero.x;
32641 rm -f conftest.$ac_objext
32642 if { (ac_try="$ac_compile"
32643 case "(($ac_try" in
32644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645 *) ac_try_echo=$ac_try;;
32647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648 (eval "$ac_compile") 2>conftest.er1
32650 grep -v '^ *+' conftest.er1 >conftest.err
32652 cat conftest.err >&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); } && {
32655 test -z "$ac_c_werror_flag" ||
32656 test ! -s conftest.err
32657 } && test -s conftest.$ac_objext; then
32660 echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32668 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32669 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32670 if test $ac_cv_c_const = no; then
32672 cat >>confdefs.h <<\_ACEOF
32679 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32680 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32682 # The order of these tests is important.
32683 cat >conftest.$ac_ext <<_ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h. */
32690 #include <sys/statvfs.h>
32691 #include <sys/fstyp.h>
32694 if { (ac_try="$ac_cpp conftest.$ac_ext"
32695 case "(($ac_try" in
32696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32702 grep -v '^ *+' conftest.er1 >conftest.err
32704 cat conftest.err >&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); } >/dev/null && {
32707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32708 test ! -s conftest.err
32710 cat >>confdefs.h <<\_ACEOF
32711 #define FSTYPE_STATVFS 1
32716 echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32722 rm -f conftest.err conftest.$ac_ext
32723 if test $fstype = no; then
32724 cat >conftest.$ac_ext <<_ACEOF
32727 cat confdefs.h >>conftest.$ac_ext
32728 cat >>conftest.$ac_ext <<_ACEOF
32729 /* end confdefs.h. */
32731 #include <sys/statfs.h>
32732 #include <sys/fstyp.h>
32735 if { (ac_try="$ac_cpp conftest.$ac_ext"
32736 case "(($ac_try" in
32737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32738 *) ac_try_echo=$ac_try;;
32740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32743 grep -v '^ *+' conftest.er1 >conftest.err
32745 cat conftest.err >&5
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); } >/dev/null && {
32748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32749 test ! -s conftest.err
32751 cat >>confdefs.h <<\_ACEOF
32752 #define FSTYPE_USG_STATFS 1
32757 echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32763 rm -f conftest.err conftest.$ac_ext
32765 if test $fstype = no; then
32766 cat >conftest.$ac_ext <<_ACEOF
32769 cat confdefs.h >>conftest.$ac_ext
32770 cat >>conftest.$ac_ext <<_ACEOF
32771 /* end confdefs.h. */
32773 #include <sys/statfs.h>
32774 #include <sys/vmount.h>
32777 if { (ac_try="$ac_cpp conftest.$ac_ext"
32778 case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32785 grep -v '^ *+' conftest.er1 >conftest.err
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } >/dev/null && {
32790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32791 test ! -s conftest.err
32793 cat >>confdefs.h <<\_ACEOF
32794 #define FSTYPE_AIX_STATFS 1
32799 echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32805 rm -f conftest.err conftest.$ac_ext
32807 if test $fstype = no; then
32808 cat >conftest.$ac_ext <<_ACEOF
32811 cat confdefs.h >>conftest.$ac_ext
32812 cat >>conftest.$ac_ext <<_ACEOF
32813 /* end confdefs.h. */
32815 #include <mntent.h>
32818 if { (ac_try="$ac_cpp conftest.$ac_ext"
32819 case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32826 grep -v '^ *+' conftest.er1 >conftest.err
32828 cat conftest.err >&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); } >/dev/null && {
32831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32832 test ! -s conftest.err
32834 cat >>confdefs.h <<\_ACEOF
32835 #define FSTYPE_MNTENT 1
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32846 rm -f conftest.err conftest.$ac_ext
32848 if test $fstype = no; then
32849 cat >conftest.$ac_ext <<_ACEOF
32852 cat confdefs.h >>conftest.$ac_ext
32853 cat >>conftest.$ac_ext <<_ACEOF
32854 /* end confdefs.h. */
32855 #include <sys/mount.h>
32858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32859 $EGREP "f_type;" >/dev/null 2>&1; then
32860 cat >>confdefs.h <<\_ACEOF
32861 #define FSTYPE_STATFS 1
32868 if test $fstype = no; then
32869 cat >conftest.$ac_ext <<_ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h. */
32876 #include <sys/mount.h>
32877 #include <sys/fs_types.h>
32880 if { (ac_try="$ac_cpp conftest.$ac_ext"
32881 case "(($ac_try" in
32882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883 *) ac_try_echo=$ac_try;;
32885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32888 grep -v '^ *+' conftest.er1 >conftest.err
32890 cat conftest.err >&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } >/dev/null && {
32893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32894 test ! -s conftest.err
32896 cat >>confdefs.h <<\_ACEOF
32897 #define FSTYPE_GETMNT 1
32902 echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.$ac_ext >&5
32908 rm -f conftest.err conftest.$ac_ext
32910 { echo "$as_me:$LINENO: result: $fstype" >&5
32911 echo "${ECHO_T}$fstype" >&6; }
32913 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32914 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32915 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32916 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32919 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32920 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32922 # Is the header compilable?
32923 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32924 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32925 cat >conftest.$ac_ext <<_ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32931 $ac_includes_default
32932 #include <sys/statvfs.h>
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_compile") 2>conftest.er1
32943 grep -v '^ *+' conftest.er1 >conftest.err
32945 cat conftest.err >&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } && {
32948 test -z "$ac_c_werror_flag" ||
32949 test ! -s conftest.err
32950 } && test -s conftest.$ac_objext; then
32951 ac_header_compiler=yes
32953 echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32956 ac_header_compiler=no
32959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32961 echo "${ECHO_T}$ac_header_compiler" >&6; }
32963 # Is the header present?
32964 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32965 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32966 cat >conftest.$ac_ext <<_ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h. */
32972 #include <sys/statvfs.h>
32974 if { (ac_try="$ac_cpp conftest.$ac_ext"
32975 case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32982 grep -v '^ *+' conftest.er1 >conftest.err
32984 cat conftest.err >&5
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); } >/dev/null && {
32987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32988 test ! -s conftest.err
32990 ac_header_preproc=yes
32992 echo "$as_me: failed program was:" >&5
32993 sed 's/^/| /' conftest.$ac_ext >&5
32995 ac_header_preproc=no
32998 rm -f conftest.err conftest.$ac_ext
32999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33000 echo "${ECHO_T}$ac_header_preproc" >&6; }
33002 # So? What about this header?
33003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33005 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33006 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33007 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33008 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33009 ac_header_preproc=yes
33012 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33013 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33014 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33015 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33016 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33017 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33018 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33019 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33020 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33021 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33022 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33023 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33027 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33028 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33029 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33030 echo $ECHO_N "(cached) $ECHO_C" >&6
33032 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33034 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33035 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33038 if test $ac_cv_header_sys_statvfs_h = yes; then
33040 cat >>confdefs.h <<\_ACEOF
33041 #define HAVE_SYS_STATVFS_H 1
33048 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33049 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33050 if test "${ac_cv_type_signal+set}" = set; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33053 cat >conftest.$ac_ext <<_ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33059 #include <sys/types.h>
33060 #include <signal.h>
33065 return *(signal (0, 0)) (0) == 1;
33070 rm -f conftest.$ac_objext
33071 if { (ac_try="$ac_compile"
33072 case "(($ac_try" in
33073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074 *) ac_try_echo=$ac_try;;
33076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077 (eval "$ac_compile") 2>conftest.er1
33079 grep -v '^ *+' conftest.er1 >conftest.err
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } && {
33084 test -z "$ac_c_werror_flag" ||
33085 test ! -s conftest.err
33086 } && test -s conftest.$ac_objext; then
33087 ac_cv_type_signal=int
33089 echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33092 ac_cv_type_signal=void
33095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33097 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33098 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33100 cat >>confdefs.h <<_ACEOF
33101 #define RETSIGTYPE $ac_cv_type_signal
33106 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33107 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33108 if test "${bash_cv_signal_vintage+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33118 #include <signal.h>
33124 struct sigaction sa;
33125 sigemptyset(&ss); sigsuspend(&ss);
33126 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33127 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33133 rm -f conftest.$ac_objext conftest$ac_exeext
33134 if { (ac_try="$ac_link"
33135 case "(($ac_try" in
33136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137 *) ac_try_echo=$ac_try;;
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140 (eval "$ac_link") 2>conftest.er1
33142 grep -v '^ *+' conftest.er1 >conftest.err
33144 cat conftest.err >&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); } && {
33147 test -z "$ac_c_werror_flag" ||
33148 test ! -s conftest.err
33149 } && test -s conftest$ac_exeext &&
33150 $as_test_x conftest$ac_exeext; then
33151 bash_cv_signal_vintage="posix"
33153 echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33163 #include <signal.h>
33168 int mask = sigmask(SIGINT);
33169 sigsetmask(mask); sigblock(mask); sigpause(mask);
33175 rm -f conftest.$ac_objext conftest$ac_exeext
33176 if { (ac_try="$ac_link"
33177 case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_link") 2>conftest.er1
33184 grep -v '^ *+' conftest.er1 >conftest.err
33186 cat conftest.err >&5
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } && {
33189 test -z "$ac_c_werror_flag" ||
33190 test ! -s conftest.err
33191 } && test -s conftest$ac_exeext &&
33192 $as_test_x conftest$ac_exeext; then
33193 bash_cv_signal_vintage="4.2bsd"
33195 echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.$ac_ext >&5
33199 cat >conftest.$ac_ext <<_ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33206 #include <signal.h>
33207 RETSIGTYPE foo() { }
33212 int mask = sigmask(SIGINT);
33213 sigset(SIGINT, foo); sigrelse(SIGINT);
33214 sighold(SIGINT); sigpause(SIGINT);
33220 rm -f conftest.$ac_objext conftest$ac_exeext
33221 if { (ac_try="$ac_link"
33222 case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_link") 2>conftest.er1
33229 grep -v '^ *+' conftest.er1 >conftest.err
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } && {
33234 test -z "$ac_c_werror_flag" ||
33235 test ! -s conftest.err
33236 } && test -s conftest$ac_exeext &&
33237 $as_test_x conftest$ac_exeext; then
33238 bash_cv_signal_vintage="svr3"
33240 echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.$ac_ext >&5
33243 bash_cv_signal_vintage="v7"
33247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33248 conftest$ac_exeext conftest.$ac_ext
33252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33253 conftest$ac_exeext conftest.$ac_ext
33257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33258 conftest$ac_exeext conftest.$ac_ext
33262 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33263 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33264 if test "$bash_cv_signal_vintage" = "posix"; then
33265 cat >>confdefs.h <<\_ACEOF
33266 #define HAVE_POSIX_SIGNALS 1
33269 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33270 cat >>confdefs.h <<\_ACEOF
33271 #define HAVE_BSD_SIGNALS 1
33274 elif test "$bash_cv_signal_vintage" = "svr3"; then
33275 cat >>confdefs.h <<\_ACEOF
33276 #define HAVE_USG_SIGHOLD 1
33281 { echo "$as_me:$LINENO: checking for mode_t" >&5
33282 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33283 if test "${ac_cv_type_mode_t+set}" = set; then
33284 echo $ECHO_N "(cached) $ECHO_C" >&6
33286 cat >conftest.$ac_ext <<_ACEOF
33289 cat confdefs.h >>conftest.$ac_ext
33290 cat >>conftest.$ac_ext <<_ACEOF
33291 /* end confdefs.h. */
33292 $ac_includes_default
33293 typedef mode_t ac__type_new_;
33297 if ((ac__type_new_ *) 0)
33299 if (sizeof (ac__type_new_))
33305 rm -f conftest.$ac_objext
33306 if { (ac_try="$ac_compile"
33307 case "(($ac_try" in
33308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309 *) ac_try_echo=$ac_try;;
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312 (eval "$ac_compile") 2>conftest.er1
33314 grep -v '^ *+' conftest.er1 >conftest.err
33316 cat conftest.err >&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); } && {
33319 test -z "$ac_c_werror_flag" ||
33320 test ! -s conftest.err
33321 } && test -s conftest.$ac_objext; then
33322 ac_cv_type_mode_t=yes
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33327 ac_cv_type_mode_t=no
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33333 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33334 if test $ac_cv_type_mode_t = yes; then
33338 cat >>confdefs.h <<_ACEOF
33344 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33345 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33346 if test "${ac_cv_type_uid_t+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33349 cat >conftest.$ac_ext <<_ACEOF
33352 cat confdefs.h >>conftest.$ac_ext
33353 cat >>conftest.$ac_ext <<_ACEOF
33354 /* end confdefs.h. */
33355 #include <sys/types.h>
33358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33359 $EGREP "uid_t" >/dev/null 2>&1; then
33360 ac_cv_type_uid_t=yes
33362 ac_cv_type_uid_t=no
33367 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33368 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33369 if test $ac_cv_type_uid_t = no; then
33371 cat >>confdefs.h <<\_ACEOF
33376 cat >>confdefs.h <<\_ACEOF
33382 { echo "$as_me:$LINENO: checking for size_t" >&5
33383 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33384 if test "${ac_cv_type_size_t+set}" = set; then
33385 echo $ECHO_N "(cached) $ECHO_C" >&6
33387 cat >conftest.$ac_ext <<_ACEOF
33390 cat confdefs.h >>conftest.$ac_ext
33391 cat >>conftest.$ac_ext <<_ACEOF
33392 /* end confdefs.h. */
33393 $ac_includes_default
33394 typedef size_t ac__type_new_;
33398 if ((ac__type_new_ *) 0)
33400 if (sizeof (ac__type_new_))
33406 rm -f conftest.$ac_objext
33407 if { (ac_try="$ac_compile"
33408 case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_compile") 2>conftest.er1
33415 grep -v '^ *+' conftest.er1 >conftest.err
33417 cat conftest.err >&5
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); } && {
33420 test -z "$ac_c_werror_flag" ||
33421 test ! -s conftest.err
33422 } && test -s conftest.$ac_objext; then
33423 ac_cv_type_size_t=yes
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33428 ac_cv_type_size_t=no
33431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33434 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33435 if test $ac_cv_type_size_t = yes; then
33439 cat >>confdefs.h <<_ACEOF
33440 #define size_t unsigned int
33445 { echo "$as_me:$LINENO: checking for pid_t" >&5
33446 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33447 if test "${ac_cv_type_pid_t+set}" = set; then
33448 echo $ECHO_N "(cached) $ECHO_C" >&6
33450 cat >conftest.$ac_ext <<_ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h. */
33456 $ac_includes_default
33457 typedef pid_t ac__type_new_;
33461 if ((ac__type_new_ *) 0)
33463 if (sizeof (ac__type_new_))
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_compile") 2>conftest.er1
33478 grep -v '^ *+' conftest.er1 >conftest.err
33480 cat conftest.err >&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } && {
33483 test -z "$ac_c_werror_flag" ||
33484 test ! -s conftest.err
33485 } && test -s conftest.$ac_objext; then
33486 ac_cv_type_pid_t=yes
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 ac_cv_type_pid_t=no
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33497 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33498 if test $ac_cv_type_pid_t = yes; then
33502 cat >>confdefs.h <<_ACEOF
33508 { echo "$as_me:$LINENO: checking for off_t" >&5
33509 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33510 if test "${ac_cv_type_off_t+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33513 cat >conftest.$ac_ext <<_ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h. */
33519 $ac_includes_default
33520 typedef off_t ac__type_new_;
33524 if ((ac__type_new_ *) 0)
33526 if (sizeof (ac__type_new_))
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } && {
33546 test -z "$ac_c_werror_flag" ||
33547 test ! -s conftest.err
33548 } && test -s conftest.$ac_objext; then
33549 ac_cv_type_off_t=yes
33551 echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33554 ac_cv_type_off_t=no
33557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33559 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33560 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33561 if test $ac_cv_type_off_t = yes; then
33565 cat >>confdefs.h <<_ACEOF
33566 #define off_t long int
33572 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33573 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33574 if test "${ac_cv_type_intptr_t+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33577 cat >conftest.$ac_ext <<_ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h. */
33583 $ac_includes_default
33584 typedef intptr_t ac__type_new_;
33588 if ((ac__type_new_ *) 0)
33590 if (sizeof (ac__type_new_))
33596 rm -f conftest.$ac_objext
33597 if { (ac_try="$ac_compile"
33598 case "(($ac_try" in
33599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33600 *) ac_try_echo=$ac_try;;
33602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33603 (eval "$ac_compile") 2>conftest.er1
33605 grep -v '^ *+' conftest.er1 >conftest.err
33607 cat conftest.err >&5
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); } && {
33610 test -z "$ac_c_werror_flag" ||
33611 test ! -s conftest.err
33612 } && test -s conftest.$ac_objext; then
33613 ac_cv_type_intptr_t=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ac_cv_type_intptr_t=no
33621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33623 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33624 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33625 if test $ac_cv_type_intptr_t = yes; then
33627 cat >>confdefs.h <<\_ACEOF
33628 #define HAVE_INTPTR_T 1
33632 for ac_type in 'int' 'long int' 'long long int'; do
33633 cat >conftest.$ac_ext <<_ACEOF
33636 cat confdefs.h >>conftest.$ac_ext
33637 cat >>conftest.$ac_ext <<_ACEOF
33638 /* end confdefs.h. */
33639 $ac_includes_default
33643 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33650 rm -f conftest.$ac_objext
33651 if { (ac_try="$ac_compile"
33652 case "(($ac_try" in
33653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654 *) ac_try_echo=$ac_try;;
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657 (eval "$ac_compile") 2>conftest.er1
33659 grep -v '^ *+' conftest.er1 >conftest.err
33661 cat conftest.err >&5
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); } && {
33664 test -z "$ac_c_werror_flag" ||
33665 test ! -s conftest.err
33666 } && test -s conftest.$ac_objext; then
33668 cat >>confdefs.h <<_ACEOF
33669 #define intptr_t $ac_type
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33681 test -z "$ac_type" && break
33687 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33688 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33689 if test "${ac_cv_type_uintptr_t+set}" = set; then
33690 echo $ECHO_N "(cached) $ECHO_C" >&6
33692 cat >conftest.$ac_ext <<_ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h. */
33698 $ac_includes_default
33699 typedef uintptr_t ac__type_new_;
33703 if ((ac__type_new_ *) 0)
33705 if (sizeof (ac__type_new_))
33711 rm -f conftest.$ac_objext
33712 if { (ac_try="$ac_compile"
33713 case "(($ac_try" in
33714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33715 *) ac_try_echo=$ac_try;;
33717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33718 (eval "$ac_compile") 2>conftest.er1
33720 grep -v '^ *+' conftest.er1 >conftest.err
33722 cat conftest.err >&5
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } && {
33725 test -z "$ac_c_werror_flag" ||
33726 test ! -s conftest.err
33727 } && test -s conftest.$ac_objext; then
33728 ac_cv_type_uintptr_t=yes
33730 echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.$ac_ext >&5
33733 ac_cv_type_uintptr_t=no
33736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33738 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33739 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33740 if test $ac_cv_type_uintptr_t = yes; then
33742 cat >>confdefs.h <<\_ACEOF
33743 #define HAVE_UINTPTR_T 1
33747 for ac_type in 'unsigned int' 'unsigned long int' \
33748 'unsigned long long int'; do
33749 cat >conftest.$ac_ext <<_ACEOF
33752 cat confdefs.h >>conftest.$ac_ext
33753 cat >>conftest.$ac_ext <<_ACEOF
33754 /* end confdefs.h. */
33755 $ac_includes_default
33759 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33766 rm -f conftest.$ac_objext
33767 if { (ac_try="$ac_compile"
33768 case "(($ac_try" in
33769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770 *) ac_try_echo=$ac_try;;
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773 (eval "$ac_compile") 2>conftest.er1
33775 grep -v '^ *+' conftest.er1 >conftest.err
33777 cat conftest.err >&5
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); } && {
33780 test -z "$ac_c_werror_flag" ||
33781 test ! -s conftest.err
33782 } && test -s conftest.$ac_objext; then
33784 cat >>confdefs.h <<_ACEOF
33785 #define uintptr_t $ac_type
33790 echo "$as_me: failed program was:" >&5
33791 sed 's/^/| /' conftest.$ac_ext >&5
33796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33797 test -z "$ac_type" && break
33802 { echo "$as_me:$LINENO: checking for ino_t" >&5
33803 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33804 if test "${ac_cv_type_ino_t+set}" = set; then
33805 echo $ECHO_N "(cached) $ECHO_C" >&6
33807 cat >conftest.$ac_ext <<_ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33813 $ac_includes_default
33814 typedef ino_t ac__type_new_;
33818 if ((ac__type_new_ *) 0)
33820 if (sizeof (ac__type_new_))
33826 rm -f conftest.$ac_objext
33827 if { (ac_try="$ac_compile"
33828 case "(($ac_try" in
33829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33830 *) ac_try_echo=$ac_try;;
33832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33833 (eval "$ac_compile") 2>conftest.er1
33835 grep -v '^ *+' conftest.er1 >conftest.err
33837 cat conftest.err >&5
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); } && {
33840 test -z "$ac_c_werror_flag" ||
33841 test ! -s conftest.err
33842 } && test -s conftest.$ac_objext; then
33843 ac_cv_type_ino_t=yes
33845 echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33848 ac_cv_type_ino_t=no
33851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33853 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33854 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33855 if test $ac_cv_type_ino_t = yes; then
33859 cat >>confdefs.h <<_ACEOF
33860 #define ino_t unsigned long
33865 { echo "$as_me:$LINENO: checking for dev_t" >&5
33866 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33867 if test "${ac_cv_type_dev_t+set}" = set; then
33868 echo $ECHO_N "(cached) $ECHO_C" >&6
33870 cat >conftest.$ac_ext <<_ACEOF
33873 cat confdefs.h >>conftest.$ac_ext
33874 cat >>conftest.$ac_ext <<_ACEOF
33875 /* end confdefs.h. */
33876 $ac_includes_default
33877 typedef dev_t ac__type_new_;
33881 if ((ac__type_new_ *) 0)
33883 if (sizeof (ac__type_new_))
33889 rm -f conftest.$ac_objext
33890 if { (ac_try="$ac_compile"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_compile") 2>conftest.er1
33898 grep -v '^ *+' conftest.er1 >conftest.err
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } && {
33903 test -z "$ac_c_werror_flag" ||
33904 test ! -s conftest.err
33905 } && test -s conftest.$ac_objext; then
33906 ac_cv_type_dev_t=yes
33908 echo "$as_me: failed program was:" >&5
33909 sed 's/^/| /' conftest.$ac_ext >&5
33911 ac_cv_type_dev_t=no
33914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33916 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33917 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33918 if test $ac_cv_type_dev_t = yes; then
33922 cat >>confdefs.h <<_ACEOF
33923 #define dev_t unsigned long
33928 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33929 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33930 if test "${ac_cv_type_daddr_t+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33933 cat >conftest.$ac_ext <<_ACEOF
33936 cat confdefs.h >>conftest.$ac_ext
33937 cat >>conftest.$ac_ext <<_ACEOF
33938 /* end confdefs.h. */
33939 $ac_includes_default
33940 typedef daddr_t ac__type_new_;
33944 if ((ac__type_new_ *) 0)
33946 if (sizeof (ac__type_new_))
33952 rm -f conftest.$ac_objext
33953 if { (ac_try="$ac_compile"
33954 case "(($ac_try" in
33955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33956 *) ac_try_echo=$ac_try;;
33958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33959 (eval "$ac_compile") 2>conftest.er1
33961 grep -v '^ *+' conftest.er1 >conftest.err
33963 cat conftest.err >&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } && {
33966 test -z "$ac_c_werror_flag" ||
33967 test ! -s conftest.err
33968 } && test -s conftest.$ac_objext; then
33969 ac_cv_type_daddr_t=yes
33971 echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33974 ac_cv_type_daddr_t=no
33977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33979 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33980 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33981 if test $ac_cv_type_daddr_t = yes; then
33985 cat >>confdefs.h <<_ACEOF
33986 #define daddr_t long
33991 { echo "$as_me:$LINENO: checking for major_t" >&5
33992 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33993 if test "${ac_cv_type_major_t+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33996 cat >conftest.$ac_ext <<_ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34002 $ac_includes_default
34003 typedef major_t ac__type_new_;
34007 if ((ac__type_new_ *) 0)
34009 if (sizeof (ac__type_new_))
34015 rm -f conftest.$ac_objext
34016 if { (ac_try="$ac_compile"
34017 case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_compile") 2>conftest.er1
34024 grep -v '^ *+' conftest.er1 >conftest.err
34026 cat conftest.err >&5
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); } && {
34029 test -z "$ac_c_werror_flag" ||
34030 test ! -s conftest.err
34031 } && test -s conftest.$ac_objext; then
34032 ac_cv_type_major_t=yes
34034 echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34037 ac_cv_type_major_t=no
34040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34042 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34043 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34044 if test $ac_cv_type_major_t = yes; then
34048 cat >>confdefs.h <<_ACEOF
34049 #define major_t int
34054 { echo "$as_me:$LINENO: checking for minor_t" >&5
34055 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34056 if test "${ac_cv_type_minor_t+set}" = set; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34059 cat >conftest.$ac_ext <<_ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h. */
34065 $ac_includes_default
34066 typedef minor_t ac__type_new_;
34070 if ((ac__type_new_ *) 0)
34072 if (sizeof (ac__type_new_))
34078 rm -f conftest.$ac_objext
34079 if { (ac_try="$ac_compile"
34080 case "(($ac_try" in
34081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34082 *) ac_try_echo=$ac_try;;
34084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34085 (eval "$ac_compile") 2>conftest.er1
34087 grep -v '^ *+' conftest.er1 >conftest.err
34089 cat conftest.err >&5
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); } && {
34092 test -z "$ac_c_werror_flag" ||
34093 test ! -s conftest.err
34094 } && test -s conftest.$ac_objext; then
34095 ac_cv_type_minor_t=yes
34097 echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34100 ac_cv_type_minor_t=no
34103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34105 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34106 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34107 if test $ac_cv_type_minor_t = yes; then
34111 cat >>confdefs.h <<_ACEOF
34112 #define minor_t int
34117 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34118 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34119 if test "${ac_cv_type_ssize_t+set}" = set; then
34120 echo $ECHO_N "(cached) $ECHO_C" >&6
34122 cat >conftest.$ac_ext <<_ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h. */
34128 $ac_includes_default
34129 typedef ssize_t ac__type_new_;
34133 if ((ac__type_new_ *) 0)
34135 if (sizeof (ac__type_new_))
34141 rm -f conftest.$ac_objext
34142 if { (ac_try="$ac_compile"
34143 case "(($ac_try" in
34144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34145 *) ac_try_echo=$ac_try;;
34147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34148 (eval "$ac_compile") 2>conftest.er1
34150 grep -v '^ *+' conftest.er1 >conftest.err
34152 cat conftest.err >&5
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); } && {
34155 test -z "$ac_c_werror_flag" ||
34156 test ! -s conftest.err
34157 } && test -s conftest.$ac_objext; then
34158 ac_cv_type_ssize_t=yes
34160 echo "$as_me: failed program was:" >&5
34161 sed 's/^/| /' conftest.$ac_ext >&5
34163 ac_cv_type_ssize_t=no
34166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34168 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34169 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34170 if test $ac_cv_type_ssize_t = yes; then
34174 cat >>confdefs.h <<_ACEOF
34175 #define ssize_t int
34180 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34181 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34182 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34185 cat >conftest.$ac_ext <<_ACEOF
34188 cat confdefs.h >>conftest.$ac_ext
34189 cat >>conftest.$ac_ext <<_ACEOF
34190 /* end confdefs.h. */
34191 $ac_includes_default
34195 static struct stat ac_aggr;
34196 if (ac_aggr.st_blocks)
34202 rm -f conftest.$ac_objext
34203 if { (ac_try="$ac_compile"
34204 case "(($ac_try" in
34205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206 *) ac_try_echo=$ac_try;;
34208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34209 (eval "$ac_compile") 2>conftest.er1
34211 grep -v '^ *+' conftest.er1 >conftest.err
34213 cat conftest.err >&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } && {
34216 test -z "$ac_c_werror_flag" ||
34217 test ! -s conftest.err
34218 } && test -s conftest.$ac_objext; then
34219 ac_cv_member_struct_stat_st_blocks=yes
34221 echo "$as_me: failed program was:" >&5
34222 sed 's/^/| /' conftest.$ac_ext >&5
34224 cat >conftest.$ac_ext <<_ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h. */
34230 $ac_includes_default
34234 static struct stat ac_aggr;
34235 if (sizeof ac_aggr.st_blocks)
34241 rm -f conftest.$ac_objext
34242 if { (ac_try="$ac_compile"
34243 case "(($ac_try" in
34244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34245 *) ac_try_echo=$ac_try;;
34247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34248 (eval "$ac_compile") 2>conftest.er1
34250 grep -v '^ *+' conftest.er1 >conftest.err
34252 cat conftest.err >&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } && {
34255 test -z "$ac_c_werror_flag" ||
34256 test ! -s conftest.err
34257 } && test -s conftest.$ac_objext; then
34258 ac_cv_member_struct_stat_st_blocks=yes
34260 echo "$as_me: failed program was:" >&5
34261 sed 's/^/| /' conftest.$ac_ext >&5
34263 ac_cv_member_struct_stat_st_blocks=no
34266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34271 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34272 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34273 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34275 cat >>confdefs.h <<_ACEOF
34276 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34280 cat >>confdefs.h <<\_ACEOF
34281 #define HAVE_ST_BLOCKS 1
34285 case " $LIBOBJS " in
34286 *" fileblocks.$ac_objext "* ) ;;
34287 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34294 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34295 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34296 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34299 cat >conftest.$ac_ext <<_ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h. */
34305 $ac_includes_default
34309 static struct stat ac_aggr;
34310 if (ac_aggr.st_rdev)
34316 rm -f conftest.$ac_objext
34317 if { (ac_try="$ac_compile"
34318 case "(($ac_try" in
34319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34320 *) ac_try_echo=$ac_try;;
34322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34323 (eval "$ac_compile") 2>conftest.er1
34325 grep -v '^ *+' conftest.er1 >conftest.err
34327 cat conftest.err >&5
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } && {
34330 test -z "$ac_c_werror_flag" ||
34331 test ! -s conftest.err
34332 } && test -s conftest.$ac_objext; then
34333 ac_cv_member_struct_stat_st_rdev=yes
34335 echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34338 cat >conftest.$ac_ext <<_ACEOF
34341 cat confdefs.h >>conftest.$ac_ext
34342 cat >>conftest.$ac_ext <<_ACEOF
34343 /* end confdefs.h. */
34344 $ac_includes_default
34348 static struct stat ac_aggr;
34349 if (sizeof ac_aggr.st_rdev)
34355 rm -f conftest.$ac_objext
34356 if { (ac_try="$ac_compile"
34357 case "(($ac_try" in
34358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34359 *) ac_try_echo=$ac_try;;
34361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34362 (eval "$ac_compile") 2>conftest.er1
34364 grep -v '^ *+' conftest.er1 >conftest.err
34366 cat conftest.err >&5
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); } && {
34369 test -z "$ac_c_werror_flag" ||
34370 test ! -s conftest.err
34371 } && test -s conftest.$ac_objext; then
34372 ac_cv_member_struct_stat_st_rdev=yes
34374 echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34377 ac_cv_member_struct_stat_st_rdev=no
34380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34386 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34387 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34389 cat >>confdefs.h <<_ACEOF
34390 #define HAVE_STRUCT_STAT_ST_RDEV 1
34394 cat >>confdefs.h <<\_ACEOF
34395 #define HAVE_ST_RDEV 1
34401 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34402 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34403 if test "${ac_cv_struct_tm+set}" = set; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34406 cat >conftest.$ac_ext <<_ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h. */
34412 #include <sys/types.h>
34419 int *p = &tm.tm_sec;
34425 rm -f conftest.$ac_objext
34426 if { (ac_try="$ac_compile"
34427 case "(($ac_try" in
34428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429 *) ac_try_echo=$ac_try;;
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432 (eval "$ac_compile") 2>conftest.er1
34434 grep -v '^ *+' conftest.er1 >conftest.err
34436 cat conftest.err >&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); } && {
34439 test -z "$ac_c_werror_flag" ||
34440 test ! -s conftest.err
34441 } && test -s conftest.$ac_objext; then
34442 ac_cv_struct_tm=time.h
34444 echo "$as_me: failed program was:" >&5
34445 sed 's/^/| /' conftest.$ac_ext >&5
34447 ac_cv_struct_tm=sys/time.h
34450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34452 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34453 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34454 if test $ac_cv_struct_tm = sys/time.h; then
34456 cat >>confdefs.h <<\_ACEOF
34457 #define TM_IN_SYS_TIME 1
34462 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34463 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34464 if test "${ac_cv_c_const+set}" = set; then
34465 echo $ECHO_N "(cached) $ECHO_C" >&6
34467 cat >conftest.$ac_ext <<_ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34477 /* FIXME: Include the comments suggested by Paul. */
34478 #ifndef __cplusplus
34479 /* Ultrix mips cc rejects this. */
34480 typedef int charset[2];
34482 /* SunOS 4.1.1 cc rejects this. */
34483 char const *const *pcpcc;
34485 /* NEC SVR4.0.2 mips cc rejects this. */
34486 struct point {int x, y;};
34487 static struct point const zero = {0,0};
34488 /* AIX XL C 1.02.0.0 rejects this.
34489 It does not let you subtract one const X* pointer from another in
34490 an arm of an if-expression whose if-part is not a constant
34492 const char *g = "string";
34493 pcpcc = &g + (g ? g-g : 0);
34494 /* HPUX 7.0 cc rejects these. */
34496 ppc = (char**) pcpcc;
34497 pcpcc = (char const *const *) ppc;
34498 { /* SCO 3.2v4 cc rejects this. */
34500 char const *s = 0 ? (char *) 0 : (char const *) 0;
34505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34506 int x[] = {25, 17};
34507 const int *foo = &x[0];
34510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34511 typedef const int *iptr;
34515 { /* AIX XL C 1.02.0.0 rejects this saying
34516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34517 struct s { int j; const int *ap[3]; };
34518 struct s *b; b->j = 5;
34520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34521 const int foo = 10;
34522 if (!foo) return 0;
34524 return !cs[0] && !zero.x;
34531 rm -f conftest.$ac_objext
34532 if { (ac_try="$ac_compile"
34533 case "(($ac_try" in
34534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535 *) ac_try_echo=$ac_try;;
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538 (eval "$ac_compile") 2>conftest.er1
34540 grep -v '^ *+' conftest.er1 >conftest.err
34542 cat conftest.err >&5
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); } && {
34545 test -z "$ac_c_werror_flag" ||
34546 test ! -s conftest.err
34547 } && test -s conftest.$ac_objext; then
34550 echo "$as_me: failed program was:" >&5
34551 sed 's/^/| /' conftest.$ac_ext >&5
34556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34558 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34559 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34560 if test $ac_cv_c_const = no; then
34562 cat >>confdefs.h <<\_ACEOF
34569 { echo "$as_me:$LINENO: checking for char" >&5
34570 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34571 if test "${ac_cv_type_char+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34574 cat >conftest.$ac_ext <<_ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h. */
34580 $ac_includes_default
34581 typedef char ac__type_new_;
34585 if ((ac__type_new_ *) 0)
34587 if (sizeof (ac__type_new_))
34593 rm -f conftest.$ac_objext
34594 if { (ac_try="$ac_compile"
34595 case "(($ac_try" in
34596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597 *) ac_try_echo=$ac_try;;
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600 (eval "$ac_compile") 2>conftest.er1
34602 grep -v '^ *+' conftest.er1 >conftest.err
34604 cat conftest.err >&5
34605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 (exit $ac_status); } && {
34607 test -z "$ac_c_werror_flag" ||
34608 test ! -s conftest.err
34609 } && test -s conftest.$ac_objext; then
34610 ac_cv_type_char=yes
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34620 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34621 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34623 # The cast to long int works around a bug in the HP C Compiler
34624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34626 # This bug is HP SR number 8606223364.
34627 { echo "$as_me:$LINENO: checking size of char" >&5
34628 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34629 if test "${ac_cv_sizeof_char+set}" = set; then
34630 echo $ECHO_N "(cached) $ECHO_C" >&6
34632 if test "$cross_compiling" = yes; then
34633 # Depending upon the size, compute the lo and hi bounds.
34634 cat >conftest.$ac_ext <<_ACEOF
34637 cat confdefs.h >>conftest.$ac_ext
34638 cat >>conftest.$ac_ext <<_ACEOF
34639 /* end confdefs.h. */
34640 $ac_includes_default
34641 typedef char ac__type_sizeof_;
34645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34652 rm -f conftest.$ac_objext
34653 if { (ac_try="$ac_compile"
34654 case "(($ac_try" in
34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659 (eval "$ac_compile") 2>conftest.er1
34661 grep -v '^ *+' conftest.er1 >conftest.err
34663 cat conftest.err >&5
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); } && {
34666 test -z "$ac_c_werror_flag" ||
34667 test ! -s conftest.err
34668 } && test -s conftest.$ac_objext; then
34671 cat >conftest.$ac_ext <<_ACEOF
34674 cat confdefs.h >>conftest.$ac_ext
34675 cat >>conftest.$ac_ext <<_ACEOF
34676 /* end confdefs.h. */
34677 $ac_includes_default
34678 typedef char ac__type_sizeof_;
34682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_compile") 2>conftest.er1
34698 grep -v '^ *+' conftest.er1 >conftest.err
34700 cat conftest.err >&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); } && {
34703 test -z "$ac_c_werror_flag" ||
34704 test ! -s conftest.err
34705 } && test -s conftest.$ac_objext; then
34706 ac_hi=$ac_mid; break
34708 echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34711 ac_lo=`expr $ac_mid + 1`
34712 if test $ac_lo -le $ac_mid; then
34716 ac_mid=`expr 2 '*' $ac_mid + 1`
34719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34725 cat >conftest.$ac_ext <<_ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h. */
34731 $ac_includes_default
34732 typedef char ac__type_sizeof_;
34736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34743 rm -f conftest.$ac_objext
34744 if { (ac_try="$ac_compile"
34745 case "(($ac_try" in
34746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747 *) ac_try_echo=$ac_try;;
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750 (eval "$ac_compile") 2>conftest.er1
34752 grep -v '^ *+' conftest.er1 >conftest.err
34754 cat conftest.err >&5
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } && {
34757 test -z "$ac_c_werror_flag" ||
34758 test ! -s conftest.err
34759 } && test -s conftest.$ac_objext; then
34762 cat >conftest.$ac_ext <<_ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h. */
34768 $ac_includes_default
34769 typedef char ac__type_sizeof_;
34773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34780 rm -f conftest.$ac_objext
34781 if { (ac_try="$ac_compile"
34782 case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_compile") 2>conftest.er1
34789 grep -v '^ *+' conftest.er1 >conftest.err
34791 cat conftest.err >&5
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); } && {
34794 test -z "$ac_c_werror_flag" ||
34795 test ! -s conftest.err
34796 } && test -s conftest.$ac_objext; then
34797 ac_lo=$ac_mid; break
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 ac_hi=`expr '(' $ac_mid ')' - 1`
34803 if test $ac_mid -le $ac_hi; then
34807 ac_mid=`expr 2 '*' $ac_mid`
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34813 echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34823 # Binary search between lo and hi bounds.
34824 while test "x$ac_lo" != "x$ac_hi"; do
34825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34826 cat >conftest.$ac_ext <<_ACEOF
34829 cat confdefs.h >>conftest.$ac_ext
34830 cat >>conftest.$ac_ext <<_ACEOF
34831 /* end confdefs.h. */
34832 $ac_includes_default
34833 typedef char ac__type_sizeof_;
34837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34844 rm -f conftest.$ac_objext
34845 if { (ac_try="$ac_compile"
34846 case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_compile") 2>conftest.er1
34853 grep -v '^ *+' conftest.er1 >conftest.err
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } && {
34858 test -z "$ac_c_werror_flag" ||
34859 test ! -s conftest.err
34860 } && test -s conftest.$ac_objext; then
34863 echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34866 ac_lo=`expr '(' $ac_mid ')' + 1`
34869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34872 ?*) ac_cv_sizeof_char=$ac_lo;;
34873 '') if test "$ac_cv_type_char" = yes; then
34874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34875 See \`config.log' for more details." >&5
34876 echo "$as_me: error: cannot compute sizeof (char)
34877 See \`config.log' for more details." >&2;}
34878 { (exit 77); exit 77; }; }
34880 ac_cv_sizeof_char=0
34884 cat >conftest.$ac_ext <<_ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34890 $ac_includes_default
34891 typedef char ac__type_sizeof_;
34892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34895 #include <stdlib.h>
34900 FILE *f = fopen ("conftest.val", "w");
34903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34905 long int i = longval ();
34906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34908 fprintf (f, "%ld\n", i);
34912 unsigned long int i = ulongval ();
34913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34915 fprintf (f, "%lu\n", i);
34917 return ferror (f) || fclose (f) != 0;
34923 rm -f conftest$ac_exeext
34924 if { (ac_try="$ac_link"
34925 case "(($ac_try" in
34926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927 *) ac_try_echo=$ac_try;;
34929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34930 (eval "$ac_link") 2>&5
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34934 { (case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_try") 2>&5
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943 ac_cv_sizeof_char=`cat conftest.val`
34945 echo "$as_me: program exited with status $ac_status" >&5
34946 echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34949 ( exit $ac_status )
34950 if test "$ac_cv_type_char" = yes; then
34951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34952 See \`config.log' for more details." >&5
34953 echo "$as_me: error: cannot compute sizeof (char)
34954 See \`config.log' for more details." >&2;}
34955 { (exit 77); exit 77; }; }
34957 ac_cv_sizeof_char=0
34960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34965 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34969 cat >>confdefs.h <<_ACEOF
34970 #define SIZEOF_CHAR $ac_cv_sizeof_char
34974 { echo "$as_me:$LINENO: checking for short int" >&5
34975 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34976 if test "${ac_cv_type_short_int+set}" = set; then
34977 echo $ECHO_N "(cached) $ECHO_C" >&6
34979 cat >conftest.$ac_ext <<_ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h. */
34985 $ac_includes_default
34986 typedef short int ac__type_new_;
34990 if ((ac__type_new_ *) 0)
34992 if (sizeof (ac__type_new_))
34998 rm -f conftest.$ac_objext
34999 if { (ac_try="$ac_compile"
35000 case "(($ac_try" in
35001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002 *) ac_try_echo=$ac_try;;
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005 (eval "$ac_compile") 2>conftest.er1
35007 grep -v '^ *+' conftest.er1 >conftest.err
35009 cat conftest.err >&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); } && {
35012 test -z "$ac_c_werror_flag" ||
35013 test ! -s conftest.err
35014 } && test -s conftest.$ac_objext; then
35015 ac_cv_type_short_int=yes
35017 echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35020 ac_cv_type_short_int=no
35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35025 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35026 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35028 # The cast to long int works around a bug in the HP C Compiler
35029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35031 # This bug is HP SR number 8606223364.
35032 { echo "$as_me:$LINENO: checking size of short int" >&5
35033 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35034 if test "${ac_cv_sizeof_short_int+set}" = set; then
35035 echo $ECHO_N "(cached) $ECHO_C" >&6
35037 if test "$cross_compiling" = yes; then
35038 # Depending upon the size, compute the lo and hi bounds.
35039 cat >conftest.$ac_ext <<_ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h. */
35045 $ac_includes_default
35046 typedef short int ac__type_sizeof_;
35050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35057 rm -f conftest.$ac_objext
35058 if { (ac_try="$ac_compile"
35059 case "(($ac_try" in
35060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35061 *) ac_try_echo=$ac_try;;
35063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35064 (eval "$ac_compile") 2>conftest.er1
35066 grep -v '^ *+' conftest.er1 >conftest.err
35068 cat conftest.err >&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } && {
35071 test -z "$ac_c_werror_flag" ||
35072 test ! -s conftest.err
35073 } && test -s conftest.$ac_objext; then
35076 cat >conftest.$ac_ext <<_ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h. */
35082 $ac_includes_default
35083 typedef short int ac__type_sizeof_;
35087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101 (eval "$ac_compile") 2>conftest.er1
35103 grep -v '^ *+' conftest.er1 >conftest.err
35105 cat conftest.err >&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); } && {
35108 test -z "$ac_c_werror_flag" ||
35109 test ! -s conftest.err
35110 } && test -s conftest.$ac_objext; then
35111 ac_hi=$ac_mid; break
35113 echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35116 ac_lo=`expr $ac_mid + 1`
35117 if test $ac_lo -le $ac_mid; then
35121 ac_mid=`expr 2 '*' $ac_mid + 1`
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35127 echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35130 cat >conftest.$ac_ext <<_ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h. */
35136 $ac_includes_default
35137 typedef short int ac__type_sizeof_;
35141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35148 rm -f conftest.$ac_objext
35149 if { (ac_try="$ac_compile"
35150 case "(($ac_try" in
35151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152 *) ac_try_echo=$ac_try;;
35154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155 (eval "$ac_compile") 2>conftest.er1
35157 grep -v '^ *+' conftest.er1 >conftest.err
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } && {
35162 test -z "$ac_c_werror_flag" ||
35163 test ! -s conftest.err
35164 } && test -s conftest.$ac_objext; then
35167 cat >conftest.$ac_ext <<_ACEOF
35170 cat confdefs.h >>conftest.$ac_ext
35171 cat >>conftest.$ac_ext <<_ACEOF
35172 /* end confdefs.h. */
35173 $ac_includes_default
35174 typedef short int ac__type_sizeof_;
35178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35185 rm -f conftest.$ac_objext
35186 if { (ac_try="$ac_compile"
35187 case "(($ac_try" in
35188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189 *) ac_try_echo=$ac_try;;
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_compile") 2>conftest.er1
35194 grep -v '^ *+' conftest.er1 >conftest.err
35196 cat conftest.err >&5
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); } && {
35199 test -z "$ac_c_werror_flag" ||
35200 test ! -s conftest.err
35201 } && test -s conftest.$ac_objext; then
35202 ac_lo=$ac_mid; break
35204 echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35207 ac_hi=`expr '(' $ac_mid ')' - 1`
35208 if test $ac_mid -le $ac_hi; then
35212 ac_mid=`expr 2 '*' $ac_mid`
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35218 echo "$as_me: failed program was:" >&5
35219 sed 's/^/| /' conftest.$ac_ext >&5
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 # Binary search between lo and hi bounds.
35229 while test "x$ac_lo" != "x$ac_hi"; do
35230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35231 cat >conftest.$ac_ext <<_ACEOF
35234 cat confdefs.h >>conftest.$ac_ext
35235 cat >>conftest.$ac_ext <<_ACEOF
35236 /* end confdefs.h. */
35237 $ac_includes_default
35238 typedef short int ac__type_sizeof_;
35242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35249 rm -f conftest.$ac_objext
35250 if { (ac_try="$ac_compile"
35251 case "(($ac_try" in
35252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35253 *) ac_try_echo=$ac_try;;
35255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35256 (eval "$ac_compile") 2>conftest.er1
35258 grep -v '^ *+' conftest.er1 >conftest.err
35260 cat conftest.err >&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } && {
35263 test -z "$ac_c_werror_flag" ||
35264 test ! -s conftest.err
35265 } && test -s conftest.$ac_objext; then
35268 echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35271 ac_lo=`expr '(' $ac_mid ')' + 1`
35274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35277 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35278 '') if test "$ac_cv_type_short_int" = yes; then
35279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35280 See \`config.log' for more details." >&5
35281 echo "$as_me: error: cannot compute sizeof (short int)
35282 See \`config.log' for more details." >&2;}
35283 { (exit 77); exit 77; }; }
35285 ac_cv_sizeof_short_int=0
35289 cat >conftest.$ac_ext <<_ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h. */
35295 $ac_includes_default
35296 typedef short int ac__type_sizeof_;
35297 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35298 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35300 #include <stdlib.h>
35305 FILE *f = fopen ("conftest.val", "w");
35308 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35310 long int i = longval ();
35311 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35313 fprintf (f, "%ld\n", i);
35317 unsigned long int i = ulongval ();
35318 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35320 fprintf (f, "%lu\n", i);
35322 return ferror (f) || fclose (f) != 0;
35328 rm -f conftest$ac_exeext
35329 if { (ac_try="$ac_link"
35330 case "(($ac_try" in
35331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332 *) ac_try_echo=$ac_try;;
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335 (eval "$ac_link") 2>&5
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35339 { (case "(($ac_try" in
35340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341 *) ac_try_echo=$ac_try;;
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344 (eval "$ac_try") 2>&5
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; }; then
35348 ac_cv_sizeof_short_int=`cat conftest.val`
35350 echo "$as_me: program exited with status $ac_status" >&5
35351 echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35354 ( exit $ac_status )
35355 if test "$ac_cv_type_short_int" = yes; then
35356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35357 See \`config.log' for more details." >&5
35358 echo "$as_me: error: cannot compute sizeof (short int)
35359 See \`config.log' for more details." >&2;}
35360 { (exit 77); exit 77; }; }
35362 ac_cv_sizeof_short_int=0
35365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35369 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35370 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35374 cat >>confdefs.h <<_ACEOF
35375 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35379 { echo "$as_me:$LINENO: checking for int" >&5
35380 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35381 if test "${ac_cv_type_int+set}" = set; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35384 cat >conftest.$ac_ext <<_ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h. */
35390 $ac_includes_default
35391 typedef int ac__type_new_;
35395 if ((ac__type_new_ *) 0)
35397 if (sizeof (ac__type_new_))
35403 rm -f conftest.$ac_objext
35404 if { (ac_try="$ac_compile"
35405 case "(($ac_try" in
35406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407 *) ac_try_echo=$ac_try;;
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410 (eval "$ac_compile") 2>conftest.er1
35412 grep -v '^ *+' conftest.er1 >conftest.err
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } && {
35417 test -z "$ac_c_werror_flag" ||
35418 test ! -s conftest.err
35419 } && test -s conftest.$ac_objext; then
35422 echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35430 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35431 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35433 # The cast to long int works around a bug in the HP C Compiler
35434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35436 # This bug is HP SR number 8606223364.
35437 { echo "$as_me:$LINENO: checking size of int" >&5
35438 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35439 if test "${ac_cv_sizeof_int+set}" = set; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35442 if test "$cross_compiling" = yes; then
35443 # Depending upon the size, compute the lo and hi bounds.
35444 cat >conftest.$ac_ext <<_ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h. */
35450 $ac_includes_default
35451 typedef int ac__type_sizeof_;
35455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35462 rm -f conftest.$ac_objext
35463 if { (ac_try="$ac_compile"
35464 case "(($ac_try" in
35465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35466 *) ac_try_echo=$ac_try;;
35468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35469 (eval "$ac_compile") 2>conftest.er1
35471 grep -v '^ *+' conftest.er1 >conftest.err
35473 cat conftest.err >&5
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } && {
35476 test -z "$ac_c_werror_flag" ||
35477 test ! -s conftest.err
35478 } && test -s conftest.$ac_objext; then
35481 cat >conftest.$ac_ext <<_ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h. */
35487 $ac_includes_default
35488 typedef int ac__type_sizeof_;
35492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35499 rm -f conftest.$ac_objext
35500 if { (ac_try="$ac_compile"
35501 case "(($ac_try" in
35502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35503 *) ac_try_echo=$ac_try;;
35505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35506 (eval "$ac_compile") 2>conftest.er1
35508 grep -v '^ *+' conftest.er1 >conftest.err
35510 cat conftest.err >&5
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); } && {
35513 test -z "$ac_c_werror_flag" ||
35514 test ! -s conftest.err
35515 } && test -s conftest.$ac_objext; then
35516 ac_hi=$ac_mid; break
35518 echo "$as_me: failed program was:" >&5
35519 sed 's/^/| /' conftest.$ac_ext >&5
35521 ac_lo=`expr $ac_mid + 1`
35522 if test $ac_lo -le $ac_mid; then
35526 ac_mid=`expr 2 '*' $ac_mid + 1`
35529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35532 echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35535 cat >conftest.$ac_ext <<_ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h. */
35541 $ac_includes_default
35542 typedef int ac__type_sizeof_;
35546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35553 rm -f conftest.$ac_objext
35554 if { (ac_try="$ac_compile"
35555 case "(($ac_try" in
35556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35557 *) ac_try_echo=$ac_try;;
35559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35560 (eval "$ac_compile") 2>conftest.er1
35562 grep -v '^ *+' conftest.er1 >conftest.err
35564 cat conftest.err >&5
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } && {
35567 test -z "$ac_c_werror_flag" ||
35568 test ! -s conftest.err
35569 } && test -s conftest.$ac_objext; then
35572 cat >conftest.$ac_ext <<_ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h. */
35578 $ac_includes_default
35579 typedef int ac__type_sizeof_;
35583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35590 rm -f conftest.$ac_objext
35591 if { (ac_try="$ac_compile"
35592 case "(($ac_try" in
35593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35594 *) ac_try_echo=$ac_try;;
35596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35597 (eval "$ac_compile") 2>conftest.er1
35599 grep -v '^ *+' conftest.er1 >conftest.err
35601 cat conftest.err >&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } && {
35604 test -z "$ac_c_werror_flag" ||
35605 test ! -s conftest.err
35606 } && test -s conftest.$ac_objext; then
35607 ac_lo=$ac_mid; break
35609 echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35612 ac_hi=`expr '(' $ac_mid ')' - 1`
35613 if test $ac_mid -le $ac_hi; then
35617 ac_mid=`expr 2 '*' $ac_mid`
35620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35623 echo "$as_me: failed program was:" >&5
35624 sed 's/^/| /' conftest.$ac_ext >&5
35629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 # Binary search between lo and hi bounds.
35634 while test "x$ac_lo" != "x$ac_hi"; do
35635 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35636 cat >conftest.$ac_ext <<_ACEOF
35639 cat confdefs.h >>conftest.$ac_ext
35640 cat >>conftest.$ac_ext <<_ACEOF
35641 /* end confdefs.h. */
35642 $ac_includes_default
35643 typedef int ac__type_sizeof_;
35647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35654 rm -f conftest.$ac_objext
35655 if { (ac_try="$ac_compile"
35656 case "(($ac_try" in
35657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35658 *) ac_try_echo=$ac_try;;
35660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35661 (eval "$ac_compile") 2>conftest.er1
35663 grep -v '^ *+' conftest.er1 >conftest.err
35665 cat conftest.err >&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && {
35668 test -z "$ac_c_werror_flag" ||
35669 test ! -s conftest.err
35670 } && test -s conftest.$ac_objext; then
35673 echo "$as_me: failed program was:" >&5
35674 sed 's/^/| /' conftest.$ac_ext >&5
35676 ac_lo=`expr '(' $ac_mid ')' + 1`
35679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35682 ?*) ac_cv_sizeof_int=$ac_lo;;
35683 '') if test "$ac_cv_type_int" = yes; then
35684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35685 See \`config.log' for more details." >&5
35686 echo "$as_me: error: cannot compute sizeof (int)
35687 See \`config.log' for more details." >&2;}
35688 { (exit 77); exit 77; }; }
35694 cat >conftest.$ac_ext <<_ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h. */
35700 $ac_includes_default
35701 typedef int ac__type_sizeof_;
35702 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35703 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35705 #include <stdlib.h>
35710 FILE *f = fopen ("conftest.val", "w");
35713 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35715 long int i = longval ();
35716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35718 fprintf (f, "%ld\n", i);
35722 unsigned long int i = ulongval ();
35723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35725 fprintf (f, "%lu\n", i);
35727 return ferror (f) || fclose (f) != 0;
35733 rm -f conftest$ac_exeext
35734 if { (ac_try="$ac_link"
35735 case "(($ac_try" in
35736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35737 *) ac_try_echo=$ac_try;;
35739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35740 (eval "$ac_link") 2>&5
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35744 { (case "(($ac_try" in
35745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35746 *) ac_try_echo=$ac_try;;
35748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35749 (eval "$ac_try") 2>&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; }; then
35753 ac_cv_sizeof_int=`cat conftest.val`
35755 echo "$as_me: program exited with status $ac_status" >&5
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35759 ( exit $ac_status )
35760 if test "$ac_cv_type_int" = yes; then
35761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35762 See \`config.log' for more details." >&5
35763 echo "$as_me: error: cannot compute sizeof (int)
35764 See \`config.log' for more details." >&2;}
35765 { (exit 77); exit 77; }; }
35770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35774 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35775 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35779 cat >>confdefs.h <<_ACEOF
35780 #define SIZEOF_INT $ac_cv_sizeof_int
35784 { echo "$as_me:$LINENO: checking for long int" >&5
35785 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35786 if test "${ac_cv_type_long_int+set}" = set; then
35787 echo $ECHO_N "(cached) $ECHO_C" >&6
35789 cat >conftest.$ac_ext <<_ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h. */
35795 $ac_includes_default
35796 typedef long int ac__type_new_;
35800 if ((ac__type_new_ *) 0)
35802 if (sizeof (ac__type_new_))
35808 rm -f conftest.$ac_objext
35809 if { (ac_try="$ac_compile"
35810 case "(($ac_try" in
35811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35812 *) ac_try_echo=$ac_try;;
35814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35815 (eval "$ac_compile") 2>conftest.er1
35817 grep -v '^ *+' conftest.er1 >conftest.err
35819 cat conftest.err >&5
35820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); } && {
35822 test -z "$ac_c_werror_flag" ||
35823 test ! -s conftest.err
35824 } && test -s conftest.$ac_objext; then
35825 ac_cv_type_long_int=yes
35827 echo "$as_me: failed program was:" >&5
35828 sed 's/^/| /' conftest.$ac_ext >&5
35830 ac_cv_type_long_int=no
35833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35835 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35836 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35838 # The cast to long int works around a bug in the HP C Compiler
35839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35841 # This bug is HP SR number 8606223364.
35842 { echo "$as_me:$LINENO: checking size of long int" >&5
35843 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35844 if test "${ac_cv_sizeof_long_int+set}" = set; then
35845 echo $ECHO_N "(cached) $ECHO_C" >&6
35847 if test "$cross_compiling" = yes; then
35848 # Depending upon the size, compute the lo and hi bounds.
35849 cat >conftest.$ac_ext <<_ACEOF
35852 cat confdefs.h >>conftest.$ac_ext
35853 cat >>conftest.$ac_ext <<_ACEOF
35854 /* end confdefs.h. */
35855 $ac_includes_default
35856 typedef long int ac__type_sizeof_;
35860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871 *) ac_try_echo=$ac_try;;
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874 (eval "$ac_compile") 2>conftest.er1
35876 grep -v '^ *+' conftest.er1 >conftest.err
35878 cat conftest.err >&5
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } && {
35881 test -z "$ac_c_werror_flag" ||
35882 test ! -s conftest.err
35883 } && test -s conftest.$ac_objext; then
35886 cat >conftest.$ac_ext <<_ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h. */
35892 $ac_includes_default
35893 typedef long int ac__type_sizeof_;
35897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35904 rm -f conftest.$ac_objext
35905 if { (ac_try="$ac_compile"
35906 case "(($ac_try" in
35907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908 *) ac_try_echo=$ac_try;;
35910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35911 (eval "$ac_compile") 2>conftest.er1
35913 grep -v '^ *+' conftest.er1 >conftest.err
35915 cat conftest.err >&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); } && {
35918 test -z "$ac_c_werror_flag" ||
35919 test ! -s conftest.err
35920 } && test -s conftest.$ac_objext; then
35921 ac_hi=$ac_mid; break
35923 echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35926 ac_lo=`expr $ac_mid + 1`
35927 if test $ac_lo -le $ac_mid; then
35931 ac_mid=`expr 2 '*' $ac_mid + 1`
35934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35937 echo "$as_me: failed program was:" >&5
35938 sed 's/^/| /' conftest.$ac_ext >&5
35940 cat >conftest.$ac_ext <<_ACEOF
35943 cat confdefs.h >>conftest.$ac_ext
35944 cat >>conftest.$ac_ext <<_ACEOF
35945 /* end confdefs.h. */
35946 $ac_includes_default
35947 typedef long int ac__type_sizeof_;
35951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35958 rm -f conftest.$ac_objext
35959 if { (ac_try="$ac_compile"
35960 case "(($ac_try" in
35961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35962 *) ac_try_echo=$ac_try;;
35964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35965 (eval "$ac_compile") 2>conftest.er1
35967 grep -v '^ *+' conftest.er1 >conftest.err
35969 cat conftest.err >&5
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); } && {
35972 test -z "$ac_c_werror_flag" ||
35973 test ! -s conftest.err
35974 } && test -s conftest.$ac_objext; then
35977 cat >conftest.$ac_ext <<_ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h. */
35983 $ac_includes_default
35984 typedef long int ac__type_sizeof_;
35988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35995 rm -f conftest.$ac_objext
35996 if { (ac_try="$ac_compile"
35997 case "(($ac_try" in
35998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35999 *) ac_try_echo=$ac_try;;
36001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36002 (eval "$ac_compile") 2>conftest.er1
36004 grep -v '^ *+' conftest.er1 >conftest.err
36006 cat conftest.err >&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } && {
36009 test -z "$ac_c_werror_flag" ||
36010 test ! -s conftest.err
36011 } && test -s conftest.$ac_objext; then
36012 ac_lo=$ac_mid; break
36014 echo "$as_me: failed program was:" >&5
36015 sed 's/^/| /' conftest.$ac_ext >&5
36017 ac_hi=`expr '(' $ac_mid ')' - 1`
36018 if test $ac_mid -le $ac_hi; then
36022 ac_mid=`expr 2 '*' $ac_mid`
36025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 echo "$as_me: failed program was:" >&5
36029 sed 's/^/| /' conftest.$ac_ext >&5
36034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 # Binary search between lo and hi bounds.
36039 while test "x$ac_lo" != "x$ac_hi"; do
36040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36041 cat >conftest.$ac_ext <<_ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h. */
36047 $ac_includes_default
36048 typedef long int ac__type_sizeof_;
36052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36059 rm -f conftest.$ac_objext
36060 if { (ac_try="$ac_compile"
36061 case "(($ac_try" in
36062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36063 *) ac_try_echo=$ac_try;;
36065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36066 (eval "$ac_compile") 2>conftest.er1
36068 grep -v '^ *+' conftest.er1 >conftest.err
36070 cat conftest.err >&5
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); } && {
36073 test -z "$ac_c_werror_flag" ||
36074 test ! -s conftest.err
36075 } && test -s conftest.$ac_objext; then
36078 echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36081 ac_lo=`expr '(' $ac_mid ')' + 1`
36084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36087 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36088 '') if test "$ac_cv_type_long_int" = yes; then
36089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36090 See \`config.log' for more details." >&5
36091 echo "$as_me: error: cannot compute sizeof (long int)
36092 See \`config.log' for more details." >&2;}
36093 { (exit 77); exit 77; }; }
36095 ac_cv_sizeof_long_int=0
36099 cat >conftest.$ac_ext <<_ACEOF
36102 cat confdefs.h >>conftest.$ac_ext
36103 cat >>conftest.$ac_ext <<_ACEOF
36104 /* end confdefs.h. */
36105 $ac_includes_default
36106 typedef long int ac__type_sizeof_;
36107 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36108 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36110 #include <stdlib.h>
36115 FILE *f = fopen ("conftest.val", "w");
36118 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36120 long int i = longval ();
36121 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36123 fprintf (f, "%ld\n", i);
36127 unsigned long int i = ulongval ();
36128 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36130 fprintf (f, "%lu\n", i);
36132 return ferror (f) || fclose (f) != 0;
36138 rm -f conftest$ac_exeext
36139 if { (ac_try="$ac_link"
36140 case "(($ac_try" in
36141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142 *) ac_try_echo=$ac_try;;
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145 (eval "$ac_link") 2>&5
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36149 { (case "(($ac_try" in
36150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36151 *) ac_try_echo=$ac_try;;
36153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36154 (eval "$ac_try") 2>&5
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); }; }; then
36158 ac_cv_sizeof_long_int=`cat conftest.val`
36160 echo "$as_me: program exited with status $ac_status" >&5
36161 echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36164 ( exit $ac_status )
36165 if test "$ac_cv_type_long_int" = yes; then
36166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36167 See \`config.log' for more details." >&5
36168 echo "$as_me: error: cannot compute sizeof (long int)
36169 See \`config.log' for more details." >&2;}
36170 { (exit 77); exit 77; }; }
36172 ac_cv_sizeof_long_int=0
36175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36179 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36180 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36184 cat >>confdefs.h <<_ACEOF
36185 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36189 { echo "$as_me:$LINENO: checking for long long int" >&5
36190 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36191 if test "${ac_cv_type_long_long_int+set}" = set; then
36192 echo $ECHO_N "(cached) $ECHO_C" >&6
36194 cat >conftest.$ac_ext <<_ACEOF
36197 cat confdefs.h >>conftest.$ac_ext
36198 cat >>conftest.$ac_ext <<_ACEOF
36199 /* end confdefs.h. */
36200 $ac_includes_default
36201 typedef long long int ac__type_new_;
36205 if ((ac__type_new_ *) 0)
36207 if (sizeof (ac__type_new_))
36213 rm -f conftest.$ac_objext
36214 if { (ac_try="$ac_compile"
36215 case "(($ac_try" in
36216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36217 *) ac_try_echo=$ac_try;;
36219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36220 (eval "$ac_compile") 2>conftest.er1
36222 grep -v '^ *+' conftest.er1 >conftest.err
36224 cat conftest.err >&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); } && {
36227 test -z "$ac_c_werror_flag" ||
36228 test ! -s conftest.err
36229 } && test -s conftest.$ac_objext; then
36230 ac_cv_type_long_long_int=yes
36232 echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36235 ac_cv_type_long_long_int=no
36238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36240 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36243 # The cast to long int works around a bug in the HP C Compiler
36244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36246 # This bug is HP SR number 8606223364.
36247 { echo "$as_me:$LINENO: checking size of long long int" >&5
36248 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36249 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36252 if test "$cross_compiling" = yes; then
36253 # Depending upon the size, compute the lo and hi bounds.
36254 cat >conftest.$ac_ext <<_ACEOF
36257 cat confdefs.h >>conftest.$ac_ext
36258 cat >>conftest.$ac_ext <<_ACEOF
36259 /* end confdefs.h. */
36260 $ac_includes_default
36261 typedef long long int ac__type_sizeof_;
36265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36272 rm -f conftest.$ac_objext
36273 if { (ac_try="$ac_compile"
36274 case "(($ac_try" in
36275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36276 *) ac_try_echo=$ac_try;;
36278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36279 (eval "$ac_compile") 2>conftest.er1
36281 grep -v '^ *+' conftest.er1 >conftest.err
36283 cat conftest.err >&5
36284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285 (exit $ac_status); } && {
36286 test -z "$ac_c_werror_flag" ||
36287 test ! -s conftest.err
36288 } && test -s conftest.$ac_objext; then
36291 cat >conftest.$ac_ext <<_ACEOF
36294 cat confdefs.h >>conftest.$ac_ext
36295 cat >>conftest.$ac_ext <<_ACEOF
36296 /* end confdefs.h. */
36297 $ac_includes_default
36298 typedef long long int ac__type_sizeof_;
36302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36309 rm -f conftest.$ac_objext
36310 if { (ac_try="$ac_compile"
36311 case "(($ac_try" in
36312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313 *) ac_try_echo=$ac_try;;
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316 (eval "$ac_compile") 2>conftest.er1
36318 grep -v '^ *+' conftest.er1 >conftest.err
36320 cat conftest.err >&5
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); } && {
36323 test -z "$ac_c_werror_flag" ||
36324 test ! -s conftest.err
36325 } && test -s conftest.$ac_objext; then
36326 ac_hi=$ac_mid; break
36328 echo "$as_me: failed program was:" >&5
36329 sed 's/^/| /' conftest.$ac_ext >&5
36331 ac_lo=`expr $ac_mid + 1`
36332 if test $ac_lo -le $ac_mid; then
36336 ac_mid=`expr 2 '*' $ac_mid + 1`
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36342 echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36345 cat >conftest.$ac_ext <<_ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h. */
36351 $ac_includes_default
36352 typedef long long int ac__type_sizeof_;
36356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36363 rm -f conftest.$ac_objext
36364 if { (ac_try="$ac_compile"
36365 case "(($ac_try" in
36366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36367 *) ac_try_echo=$ac_try;;
36369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36370 (eval "$ac_compile") 2>conftest.er1
36372 grep -v '^ *+' conftest.er1 >conftest.err
36374 cat conftest.err >&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } && {
36377 test -z "$ac_c_werror_flag" ||
36378 test ! -s conftest.err
36379 } && test -s conftest.$ac_objext; then
36382 cat >conftest.$ac_ext <<_ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h. */
36388 $ac_includes_default
36389 typedef long long int ac__type_sizeof_;
36393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36400 rm -f conftest.$ac_objext
36401 if { (ac_try="$ac_compile"
36402 case "(($ac_try" in
36403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36404 *) ac_try_echo=$ac_try;;
36406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36407 (eval "$ac_compile") 2>conftest.er1
36409 grep -v '^ *+' conftest.er1 >conftest.err
36411 cat conftest.err >&5
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } && {
36414 test -z "$ac_c_werror_flag" ||
36415 test ! -s conftest.err
36416 } && test -s conftest.$ac_objext; then
36417 ac_lo=$ac_mid; break
36419 echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36422 ac_hi=`expr '(' $ac_mid ')' - 1`
36423 if test $ac_mid -le $ac_hi; then
36427 ac_mid=`expr 2 '*' $ac_mid`
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 echo "$as_me: failed program was:" >&5
36434 sed 's/^/| /' conftest.$ac_ext >&5
36439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36443 # Binary search between lo and hi bounds.
36444 while test "x$ac_lo" != "x$ac_hi"; do
36445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36446 cat >conftest.$ac_ext <<_ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h. */
36452 $ac_includes_default
36453 typedef long long int ac__type_sizeof_;
36457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36464 rm -f conftest.$ac_objext
36465 if { (ac_try="$ac_compile"
36466 case "(($ac_try" in
36467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468 *) ac_try_echo=$ac_try;;
36470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471 (eval "$ac_compile") 2>conftest.er1
36473 grep -v '^ *+' conftest.er1 >conftest.err
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); } && {
36478 test -z "$ac_c_werror_flag" ||
36479 test ! -s conftest.err
36480 } && test -s conftest.$ac_objext; then
36483 echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36486 ac_lo=`expr '(' $ac_mid ')' + 1`
36489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36492 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36493 '') if test "$ac_cv_type_long_long_int" = yes; then
36494 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36495 See \`config.log' for more details." >&5
36496 echo "$as_me: error: cannot compute sizeof (long long int)
36497 See \`config.log' for more details." >&2;}
36498 { (exit 77); exit 77; }; }
36500 ac_cv_sizeof_long_long_int=0
36504 cat >conftest.$ac_ext <<_ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h. */
36510 $ac_includes_default
36511 typedef long long int ac__type_sizeof_;
36512 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36513 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36515 #include <stdlib.h>
36520 FILE *f = fopen ("conftest.val", "w");
36523 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36525 long int i = longval ();
36526 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36528 fprintf (f, "%ld\n", i);
36532 unsigned long int i = ulongval ();
36533 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36535 fprintf (f, "%lu\n", i);
36537 return ferror (f) || fclose (f) != 0;
36543 rm -f conftest$ac_exeext
36544 if { (ac_try="$ac_link"
36545 case "(($ac_try" in
36546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36547 *) ac_try_echo=$ac_try;;
36549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36550 (eval "$ac_link") 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36554 { (case "(($ac_try" in
36555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36556 *) ac_try_echo=$ac_try;;
36558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36559 (eval "$ac_try") 2>&5
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); }; }; then
36563 ac_cv_sizeof_long_long_int=`cat conftest.val`
36565 echo "$as_me: program exited with status $ac_status" >&5
36566 echo "$as_me: failed program was:" >&5
36567 sed 's/^/| /' conftest.$ac_ext >&5
36569 ( exit $ac_status )
36570 if test "$ac_cv_type_long_long_int" = yes; then
36571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36572 See \`config.log' for more details." >&5
36573 echo "$as_me: error: cannot compute sizeof (long long int)
36574 See \`config.log' for more details." >&2;}
36575 { (exit 77); exit 77; }; }
36577 ac_cv_sizeof_long_long_int=0
36580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36584 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36585 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36589 cat >>confdefs.h <<_ACEOF
36590 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36594 { echo "$as_me:$LINENO: checking for int *" >&5
36595 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36596 if test "${ac_cv_type_int_p+set}" = set; then
36597 echo $ECHO_N "(cached) $ECHO_C" >&6
36599 cat >conftest.$ac_ext <<_ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h. */
36605 $ac_includes_default
36606 typedef int * ac__type_new_;
36610 if ((ac__type_new_ *) 0)
36612 if (sizeof (ac__type_new_))
36618 rm -f conftest.$ac_objext
36619 if { (ac_try="$ac_compile"
36620 case "(($ac_try" in
36621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36622 *) ac_try_echo=$ac_try;;
36624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36625 (eval "$ac_compile") 2>conftest.er1
36627 grep -v '^ *+' conftest.er1 >conftest.err
36629 cat conftest.err >&5
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); } && {
36632 test -z "$ac_c_werror_flag" ||
36633 test ! -s conftest.err
36634 } && test -s conftest.$ac_objext; then
36635 ac_cv_type_int_p=yes
36637 echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36640 ac_cv_type_int_p=no
36643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36645 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36646 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36648 # The cast to long int works around a bug in the HP C Compiler
36649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36651 # This bug is HP SR number 8606223364.
36652 { echo "$as_me:$LINENO: checking size of int *" >&5
36653 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36654 if test "${ac_cv_sizeof_int_p+set}" = set; then
36655 echo $ECHO_N "(cached) $ECHO_C" >&6
36657 if test "$cross_compiling" = yes; then
36658 # Depending upon the size, compute the lo and hi bounds.
36659 cat >conftest.$ac_ext <<_ACEOF
36662 cat confdefs.h >>conftest.$ac_ext
36663 cat >>conftest.$ac_ext <<_ACEOF
36664 /* end confdefs.h. */
36665 $ac_includes_default
36666 typedef int * ac__type_sizeof_;
36670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36677 rm -f conftest.$ac_objext
36678 if { (ac_try="$ac_compile"
36679 case "(($ac_try" in
36680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36681 *) ac_try_echo=$ac_try;;
36683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36684 (eval "$ac_compile") 2>conftest.er1
36686 grep -v '^ *+' conftest.er1 >conftest.err
36688 cat conftest.err >&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); } && {
36691 test -z "$ac_c_werror_flag" ||
36692 test ! -s conftest.err
36693 } && test -s conftest.$ac_objext; then
36696 cat >conftest.$ac_ext <<_ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h. */
36702 $ac_includes_default
36703 typedef int * ac__type_sizeof_;
36707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36714 rm -f conftest.$ac_objext
36715 if { (ac_try="$ac_compile"
36716 case "(($ac_try" in
36717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36718 *) ac_try_echo=$ac_try;;
36720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36721 (eval "$ac_compile") 2>conftest.er1
36723 grep -v '^ *+' conftest.er1 >conftest.err
36725 cat conftest.err >&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); } && {
36728 test -z "$ac_c_werror_flag" ||
36729 test ! -s conftest.err
36730 } && test -s conftest.$ac_objext; then
36731 ac_hi=$ac_mid; break
36733 echo "$as_me: failed program was:" >&5
36734 sed 's/^/| /' conftest.$ac_ext >&5
36736 ac_lo=`expr $ac_mid + 1`
36737 if test $ac_lo -le $ac_mid; then
36741 ac_mid=`expr 2 '*' $ac_mid + 1`
36744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36747 echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36750 cat >conftest.$ac_ext <<_ACEOF
36753 cat confdefs.h >>conftest.$ac_ext
36754 cat >>conftest.$ac_ext <<_ACEOF
36755 /* end confdefs.h. */
36756 $ac_includes_default
36757 typedef int * ac__type_sizeof_;
36761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36768 rm -f conftest.$ac_objext
36769 if { (ac_try="$ac_compile"
36770 case "(($ac_try" in
36771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36772 *) ac_try_echo=$ac_try;;
36774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36775 (eval "$ac_compile") 2>conftest.er1
36777 grep -v '^ *+' conftest.er1 >conftest.err
36779 cat conftest.err >&5
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); } && {
36782 test -z "$ac_c_werror_flag" ||
36783 test ! -s conftest.err
36784 } && test -s conftest.$ac_objext; then
36787 cat >conftest.$ac_ext <<_ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36793 $ac_includes_default
36794 typedef int * ac__type_sizeof_;
36798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36805 rm -f conftest.$ac_objext
36806 if { (ac_try="$ac_compile"
36807 case "(($ac_try" in
36808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36809 *) ac_try_echo=$ac_try;;
36811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36812 (eval "$ac_compile") 2>conftest.er1
36814 grep -v '^ *+' conftest.er1 >conftest.err
36816 cat conftest.err >&5
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); } && {
36819 test -z "$ac_c_werror_flag" ||
36820 test ! -s conftest.err
36821 } && test -s conftest.$ac_objext; then
36822 ac_lo=$ac_mid; break
36824 echo "$as_me: failed program was:" >&5
36825 sed 's/^/| /' conftest.$ac_ext >&5
36827 ac_hi=`expr '(' $ac_mid ')' - 1`
36828 if test $ac_mid -le $ac_hi; then
36832 ac_mid=`expr 2 '*' $ac_mid`
36835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36838 echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36848 # Binary search between lo and hi bounds.
36849 while test "x$ac_lo" != "x$ac_hi"; do
36850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36851 cat >conftest.$ac_ext <<_ACEOF
36854 cat confdefs.h >>conftest.$ac_ext
36855 cat >>conftest.$ac_ext <<_ACEOF
36856 /* end confdefs.h. */
36857 $ac_includes_default
36858 typedef int * ac__type_sizeof_;
36862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36869 rm -f conftest.$ac_objext
36870 if { (ac_try="$ac_compile"
36871 case "(($ac_try" in
36872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36873 *) ac_try_echo=$ac_try;;
36875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36876 (eval "$ac_compile") 2>conftest.er1
36878 grep -v '^ *+' conftest.er1 >conftest.err
36880 cat conftest.err >&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); } && {
36883 test -z "$ac_c_werror_flag" ||
36884 test ! -s conftest.err
36885 } && test -s conftest.$ac_objext; then
36888 echo "$as_me: failed program was:" >&5
36889 sed 's/^/| /' conftest.$ac_ext >&5
36891 ac_lo=`expr '(' $ac_mid ')' + 1`
36894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36897 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36898 '') if test "$ac_cv_type_int_p" = yes; then
36899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36900 See \`config.log' for more details." >&5
36901 echo "$as_me: error: cannot compute sizeof (int *)
36902 See \`config.log' for more details." >&2;}
36903 { (exit 77); exit 77; }; }
36905 ac_cv_sizeof_int_p=0
36909 cat >conftest.$ac_ext <<_ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h. */
36915 $ac_includes_default
36916 typedef int * ac__type_sizeof_;
36917 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36918 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36920 #include <stdlib.h>
36925 FILE *f = fopen ("conftest.val", "w");
36928 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36930 long int i = longval ();
36931 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36933 fprintf (f, "%ld\n", i);
36937 unsigned long int i = ulongval ();
36938 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36940 fprintf (f, "%lu\n", i);
36942 return ferror (f) || fclose (f) != 0;
36948 rm -f conftest$ac_exeext
36949 if { (ac_try="$ac_link"
36950 case "(($ac_try" in
36951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36952 *) ac_try_echo=$ac_try;;
36954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36955 (eval "$ac_link") 2>&5
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36959 { (case "(($ac_try" in
36960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36961 *) ac_try_echo=$ac_try;;
36963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36964 (eval "$ac_try") 2>&5
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); }; }; then
36968 ac_cv_sizeof_int_p=`cat conftest.val`
36970 echo "$as_me: program exited with status $ac_status" >&5
36971 echo "$as_me: failed program was:" >&5
36972 sed 's/^/| /' conftest.$ac_ext >&5
36974 ( exit $ac_status )
36975 if test "$ac_cv_type_int_p" = yes; then
36976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36977 See \`config.log' for more details." >&5
36978 echo "$as_me: error: cannot compute sizeof (int *)
36979 See \`config.log' for more details." >&2;}
36980 { (exit 77); exit 77; }; }
36982 ac_cv_sizeof_int_p=0
36985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36990 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36994 cat >>confdefs.h <<_ACEOF
36995 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37000 { echo "$as_me:$LINENO: checking for u_int type" >&5
37001 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37002 if test "${ac_cv_have_u_int+set}" = set; then
37003 echo $ECHO_N "(cached) $ECHO_C" >&6
37006 cat >conftest.$ac_ext <<_ACEOF
37009 cat confdefs.h >>conftest.$ac_ext
37010 cat >>conftest.$ac_ext <<_ACEOF
37011 /* end confdefs.h. */
37013 #include <sys/types.h>
37025 rm -f conftest.$ac_objext
37026 if { (ac_try="$ac_compile"
37027 case "(($ac_try" in
37028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37029 *) ac_try_echo=$ac_try;;
37031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37032 (eval "$ac_compile") 2>conftest.er1
37034 grep -v '^ *+' conftest.er1 >conftest.err
37036 cat conftest.err >&5
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); } && {
37039 test -z "$ac_c_werror_flag" ||
37040 test ! -s conftest.err
37041 } && test -s conftest.$ac_objext; then
37043 ac_cv_have_u_int="yes"
37046 echo "$as_me: failed program was:" >&5
37047 sed 's/^/| /' conftest.$ac_ext >&5
37050 ac_cv_have_u_int="no"
37055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37059 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37060 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37061 if test "x$ac_cv_have_u_int" = "xyes" ; then
37062 cat >>confdefs.h <<\_ACEOF
37063 #define HAVE_U_INT 1
37069 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37070 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37071 if test "${ac_cv_have_intmax_t+set}" = set; then
37072 echo $ECHO_N "(cached) $ECHO_C" >&6
37075 cat >conftest.$ac_ext <<_ACEOF
37078 cat confdefs.h >>conftest.$ac_ext
37079 cat >>conftest.$ac_ext <<_ACEOF
37080 /* end confdefs.h. */
37082 #include <sys/types.h>
37094 rm -f conftest.$ac_objext
37095 if { (ac_try="$ac_compile"
37096 case "(($ac_try" in
37097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37098 *) ac_try_echo=$ac_try;;
37100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37101 (eval "$ac_compile") 2>conftest.er1
37103 grep -v '^ *+' conftest.er1 >conftest.err
37105 cat conftest.err >&5
37106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107 (exit $ac_status); } && {
37108 test -z "$ac_c_werror_flag" ||
37109 test ! -s conftest.err
37110 } && test -s conftest.$ac_objext; then
37112 ac_cv_have_intmax_t="yes"
37115 echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37119 cat >conftest.$ac_ext <<_ACEOF
37122 cat confdefs.h >>conftest.$ac_ext
37123 cat >>conftest.$ac_ext <<_ACEOF
37124 /* end confdefs.h. */
37126 #include <stdint.h>
37138 rm -f conftest.$ac_objext
37139 if { (ac_try="$ac_compile"
37140 case "(($ac_try" in
37141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142 *) ac_try_echo=$ac_try;;
37144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37145 (eval "$ac_compile") 2>conftest.er1
37147 grep -v '^ *+' conftest.er1 >conftest.err
37149 cat conftest.err >&5
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); } && {
37152 test -z "$ac_c_werror_flag" ||
37153 test ! -s conftest.err
37154 } && test -s conftest.$ac_objext; then
37156 ac_cv_have_intmax_t="yes"
37159 echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37163 ac_cv_have_intmax_t="no"
37168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37177 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37178 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37179 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37180 cat >>confdefs.h <<\_ACEOF
37181 #define HAVE_INTMAX_T 1
37187 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37188 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37189 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37190 echo $ECHO_N "(cached) $ECHO_C" >&6
37193 cat >conftest.$ac_ext <<_ACEOF
37196 cat confdefs.h >>conftest.$ac_ext
37197 cat >>conftest.$ac_ext <<_ACEOF
37198 /* end confdefs.h. */
37200 #include <sys/types.h>
37206 u_intmax_t a; a = 1;
37212 rm -f conftest.$ac_objext
37213 if { (ac_try="$ac_compile"
37214 case "(($ac_try" in
37215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37216 *) ac_try_echo=$ac_try;;
37218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37219 (eval "$ac_compile") 2>conftest.er1
37221 grep -v '^ *+' conftest.er1 >conftest.err
37223 cat conftest.err >&5
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); } && {
37226 test -z "$ac_c_werror_flag" ||
37227 test ! -s conftest.err
37228 } && test -s conftest.$ac_objext; then
37230 ac_cv_have_u_intmax_t="yes"
37233 echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37237 cat >conftest.$ac_ext <<_ACEOF
37240 cat confdefs.h >>conftest.$ac_ext
37241 cat >>conftest.$ac_ext <<_ACEOF
37242 /* end confdefs.h. */
37244 #include <stdint.h>
37250 u_intmax_t a; a = 1;
37256 rm -f conftest.$ac_objext
37257 if { (ac_try="$ac_compile"
37258 case "(($ac_try" in
37259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37260 *) ac_try_echo=$ac_try;;
37262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37263 (eval "$ac_compile") 2>conftest.er1
37265 grep -v '^ *+' conftest.er1 >conftest.err
37267 cat conftest.err >&5
37268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269 (exit $ac_status); } && {
37270 test -z "$ac_c_werror_flag" ||
37271 test ! -s conftest.err
37272 } && test -s conftest.$ac_objext; then
37274 ac_cv_have_u_intmax_t="yes"
37277 echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37281 ac_cv_have_u_intmax_t="no"
37286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37295 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37296 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37297 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37298 cat >>confdefs.h <<\_ACEOF
37299 #define HAVE_U_INTMAX_T 1
37305 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37306 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37307 if test "${ac_cv_have_intxx_t+set}" = set; then
37308 echo $ECHO_N "(cached) $ECHO_C" >&6
37311 cat >conftest.$ac_ext <<_ACEOF
37314 cat confdefs.h >>conftest.$ac_ext
37315 cat >>conftest.$ac_ext <<_ACEOF
37316 /* end confdefs.h. */
37318 #include <sys/types.h>
37324 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37330 rm -f conftest.$ac_objext
37331 if { (ac_try="$ac_compile"
37332 case "(($ac_try" in
37333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37334 *) ac_try_echo=$ac_try;;
37336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37337 (eval "$ac_compile") 2>conftest.er1
37339 grep -v '^ *+' conftest.er1 >conftest.err
37341 cat conftest.err >&5
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } && {
37344 test -z "$ac_c_werror_flag" ||
37345 test ! -s conftest.err
37346 } && test -s conftest.$ac_objext; then
37348 ac_cv_have_intxx_t="yes"
37351 echo "$as_me: failed program was:" >&5
37352 sed 's/^/| /' conftest.$ac_ext >&5
37355 ac_cv_have_intxx_t="no"
37360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37365 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37366 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37367 cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_INTXX_T 1
37374 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37375 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37376 if test "${ac_cv_have_int64_t+set}" = set; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37380 cat >conftest.$ac_ext <<_ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h. */
37387 #include <sys/types.h>
37399 rm -f conftest.$ac_objext
37400 if { (ac_try="$ac_compile"
37401 case "(($ac_try" in
37402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37403 *) ac_try_echo=$ac_try;;
37405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37406 (eval "$ac_compile") 2>conftest.er1
37408 grep -v '^ *+' conftest.er1 >conftest.err
37410 cat conftest.err >&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } && {
37413 test -z "$ac_c_werror_flag" ||
37414 test ! -s conftest.err
37415 } && test -s conftest.$ac_objext; then
37417 ac_cv_have_int64_t="yes"
37420 echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37424 ac_cv_have_int64_t="no"
37429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37433 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37434 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37435 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37436 cat >>confdefs.h <<\_ACEOF
37437 #define HAVE_INT64_T 1
37443 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37444 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37445 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37449 cat >conftest.$ac_ext <<_ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37456 #include <sys/types.h>
37462 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37468 rm -f conftest.$ac_objext
37469 if { (ac_try="$ac_compile"
37470 case "(($ac_try" in
37471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37472 *) ac_try_echo=$ac_try;;
37474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37475 (eval "$ac_compile") 2>conftest.er1
37477 grep -v '^ *+' conftest.er1 >conftest.err
37479 cat conftest.err >&5
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); } && {
37482 test -z "$ac_c_werror_flag" ||
37483 test ! -s conftest.err
37484 } && test -s conftest.$ac_objext; then
37486 ac_cv_have_u_intxx_t="yes"
37489 echo "$as_me: failed program was:" >&5
37490 sed 's/^/| /' conftest.$ac_ext >&5
37493 ac_cv_have_u_intxx_t="no"
37498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37502 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37503 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37504 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37505 cat >>confdefs.h <<\_ACEOF
37506 #define HAVE_U_INTXX_T 1
37512 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37513 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37514 if test "${ac_cv_have_u_int64_t+set}" = set; then
37515 echo $ECHO_N "(cached) $ECHO_C" >&6
37518 cat >conftest.$ac_ext <<_ACEOF
37521 cat confdefs.h >>conftest.$ac_ext
37522 cat >>conftest.$ac_ext <<_ACEOF
37523 /* end confdefs.h. */
37525 #include <sys/types.h>
37531 u_int64_t a; a = 1;
37537 rm -f conftest.$ac_objext
37538 if { (ac_try="$ac_compile"
37539 case "(($ac_try" in
37540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541 *) ac_try_echo=$ac_try;;
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544 (eval "$ac_compile") 2>conftest.er1
37546 grep -v '^ *+' conftest.er1 >conftest.err
37548 cat conftest.err >&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); } && {
37551 test -z "$ac_c_werror_flag" ||
37552 test ! -s conftest.err
37553 } && test -s conftest.$ac_objext; then
37555 ac_cv_have_u_int64_t="yes"
37558 echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37562 ac_cv_have_u_int64_t="no"
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37571 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37572 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37573 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37574 cat >>confdefs.h <<\_ACEOF
37575 #define HAVE_U_INT64_T 1
37581 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37582 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37584 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37585 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37586 cat >conftest.$ac_ext <<_ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h. */
37593 #include <sys/bitypes.h>
37599 int8_t a; int16_t b; int32_t c;
37600 u_int8_t e; u_int16_t f; u_int32_t g;
37601 a = b = c = e = f = g = 1;
37607 rm -f conftest.$ac_objext
37608 if { (ac_try="$ac_compile"
37609 case "(($ac_try" in
37610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37611 *) ac_try_echo=$ac_try;;
37613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37614 (eval "$ac_compile") 2>conftest.er1
37616 grep -v '^ *+' conftest.er1 >conftest.err
37618 cat conftest.err >&5
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); } && {
37621 test -z "$ac_c_werror_flag" ||
37622 test ! -s conftest.err
37623 } && test -s conftest.$ac_objext; then
37625 cat >>confdefs.h <<\_ACEOF
37626 #define HAVE_U_INTXX_T 1
37629 cat >>confdefs.h <<\_ACEOF
37630 #define HAVE_INTXX_T 1
37633 cat >>confdefs.h <<\_ACEOF
37634 #define HAVE_SYS_BITYPES_H 1
37637 { echo "$as_me:$LINENO: result: yes" >&5
37638 echo "${ECHO_T}yes" >&6; }
37641 echo "$as_me: failed program was:" >&5
37642 sed 's/^/| /' conftest.$ac_ext >&5
37645 { echo "$as_me:$LINENO: result: no" >&5
37646 echo "${ECHO_T}no" >&6; }
37651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37654 if test -z "$have_u_intxx_t" ; then
37655 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37656 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37657 if test "${ac_cv_have_uintxx_t+set}" = set; then
37658 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 cat >conftest.$ac_ext <<_ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37668 #include <sys/types.h>
37674 uint8_t a; uint16_t b;
37675 uint32_t c; a = b = c = 1;
37681 rm -f conftest.$ac_objext
37682 if { (ac_try="$ac_compile"
37683 case "(($ac_try" in
37684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37685 *) ac_try_echo=$ac_try;;
37687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37688 (eval "$ac_compile") 2>conftest.er1
37690 grep -v '^ *+' conftest.er1 >conftest.err
37692 cat conftest.err >&5
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); } && {
37695 test -z "$ac_c_werror_flag" ||
37696 test ! -s conftest.err
37697 } && test -s conftest.$ac_objext; then
37699 ac_cv_have_uintxx_t="yes"
37702 echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37706 ac_cv_have_uintxx_t="no"
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37716 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37717 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37718 cat >>confdefs.h <<\_ACEOF
37719 #define HAVE_UINTXX_T 1
37725 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37726 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37728 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37729 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37730 cat >conftest.$ac_ext <<_ACEOF
37733 cat confdefs.h >>conftest.$ac_ext
37734 cat >>conftest.$ac_ext <<_ACEOF
37735 /* end confdefs.h. */
37737 #include <sys/bitypes.h>
37743 int64_t a; u_int64_t b;
37750 rm -f conftest.$ac_objext
37751 if { (ac_try="$ac_compile"
37752 case "(($ac_try" in
37753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754 *) ac_try_echo=$ac_try;;
37756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37757 (eval "$ac_compile") 2>conftest.er1
37759 grep -v '^ *+' conftest.er1 >conftest.err
37761 cat conftest.err >&5
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); } && {
37764 test -z "$ac_c_werror_flag" ||
37765 test ! -s conftest.err
37766 } && test -s conftest.$ac_objext; then
37768 cat >>confdefs.h <<\_ACEOF
37769 #define HAVE_U_INT64_T 1
37772 cat >>confdefs.h <<\_ACEOF
37773 #define HAVE_INT64_T 1
37776 { echo "$as_me:$LINENO: result: yes" >&5
37777 echo "${ECHO_T}yes" >&6; }
37780 echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37784 { echo "$as_me:$LINENO: result: no" >&5
37785 echo "${ECHO_T}no" >&6; }
37790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37793 if (test -z "$have_uintxx_t" && \
37794 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37796 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37797 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37798 cat >conftest.$ac_ext <<_ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h. */
37805 #include <sys/bitypes.h>
37811 uint8_t a; uint16_t b;
37812 uint32_t c; a = b = c = 1;
37818 rm -f conftest.$ac_objext
37819 if { (ac_try="$ac_compile"
37820 case "(($ac_try" in
37821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37822 *) ac_try_echo=$ac_try;;
37824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37825 (eval "$ac_compile") 2>conftest.er1
37827 grep -v '^ *+' conftest.er1 >conftest.err
37829 cat conftest.err >&5
37830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831 (exit $ac_status); } && {
37832 test -z "$ac_c_werror_flag" ||
37833 test ! -s conftest.err
37834 } && test -s conftest.$ac_objext; then
37836 cat >>confdefs.h <<\_ACEOF
37837 #define HAVE_UINTXX_T 1
37840 { echo "$as_me:$LINENO: result: yes" >&5
37841 echo "${ECHO_T}yes" >&6; }
37844 echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37848 { echo "$as_me:$LINENO: result: no" >&5
37849 echo "${ECHO_T}no" >&6; }
37854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37890 echo $ECHO_N "(cached) $ECHO_C" >&6
37892 cat >conftest.$ac_ext <<_ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h. */
37898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37900 #define $ac_func innocuous_$ac_func
37902 /* System header to define __stub macros and hopefully few prototypes,
37903 which can conflict with char $ac_func (); below.
37904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37905 <limits.h> exists even on freestanding compilers. */
37908 # include <limits.h>
37910 # include <assert.h>
37915 /* Override any GCC internal prototype to avoid an error.
37916 Use char because int might match the return type of a GCC
37917 builtin and then its argument prototype would still apply. */
37922 /* The GNU C library defines this for functions which it implements
37923 to always fail with ENOSYS. Some functions are actually named
37924 something starting with __ and the normal name is an alias. */
37925 #if defined __stub_$ac_func || defined __stub___$ac_func
37932 return $ac_func ();
37937 rm -f conftest.$ac_objext conftest$ac_exeext
37938 if { (ac_try="$ac_link"
37939 case "(($ac_try" in
37940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37941 *) ac_try_echo=$ac_try;;
37943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37944 (eval "$ac_link") 2>conftest.er1
37946 grep -v '^ *+' conftest.er1 >conftest.err
37948 cat conftest.err >&5
37949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950 (exit $ac_status); } && {
37951 test -z "$ac_c_werror_flag" ||
37952 test ! -s conftest.err
37953 } && test -s conftest$ac_exeext &&
37954 $as_test_x conftest$ac_exeext; then
37955 eval "$as_ac_var=yes"
37957 echo "$as_me: failed program was:" >&5
37958 sed 's/^/| /' conftest.$ac_ext >&5
37960 eval "$as_ac_var=no"
37963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37964 conftest$ac_exeext conftest.$ac_ext
37966 ac_res=`eval echo '${'$as_ac_var'}'`
37967 { echo "$as_me:$LINENO: result: $ac_res" >&5
37968 echo "${ECHO_T}$ac_res" >&6; }
37969 if test `eval echo '${'$as_ac_var'}'` = yes; then
37970 cat >>confdefs.h <<_ACEOF
37971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37975 echo 'configure: cannot find needed function.'; exit 1
37982 for ac_func in fchdir
37984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37988 echo $ECHO_N "(cached) $ECHO_C" >&6
37990 cat >conftest.$ac_ext <<_ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h. */
37996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37998 #define $ac_func innocuous_$ac_func
38000 /* System header to define __stub macros and hopefully few prototypes,
38001 which can conflict with char $ac_func (); below.
38002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38003 <limits.h> exists even on freestanding compilers. */
38006 # include <limits.h>
38008 # include <assert.h>
38013 /* Override any GCC internal prototype to avoid an error.
38014 Use char because int might match the return type of a GCC
38015 builtin and then its argument prototype would still apply. */
38020 /* The GNU C library defines this for functions which it implements
38021 to always fail with ENOSYS. Some functions are actually named
38022 something starting with __ and the normal name is an alias. */
38023 #if defined __stub_$ac_func || defined __stub___$ac_func
38030 return $ac_func ();
38035 rm -f conftest.$ac_objext conftest$ac_exeext
38036 if { (ac_try="$ac_link"
38037 case "(($ac_try" in
38038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039 *) ac_try_echo=$ac_try;;
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042 (eval "$ac_link") 2>conftest.er1
38044 grep -v '^ *+' conftest.er1 >conftest.err
38046 cat conftest.err >&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); } && {
38049 test -z "$ac_c_werror_flag" ||
38050 test ! -s conftest.err
38051 } && test -s conftest$ac_exeext &&
38052 $as_test_x conftest$ac_exeext; then
38053 eval "$as_ac_var=yes"
38055 echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38058 eval "$as_ac_var=no"
38061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38062 conftest$ac_exeext conftest.$ac_ext
38064 ac_res=`eval echo '${'$as_ac_var'}'`
38065 { echo "$as_me:$LINENO: result: $ac_res" >&5
38066 echo "${ECHO_T}$ac_res" >&6; }
38067 if test `eval echo '${'$as_ac_var'}'` = yes; then
38068 cat >>confdefs.h <<_ACEOF
38069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38071 cat >>confdefs.h <<\_ACEOF
38072 #define HAVE_FCHDIR 1
38079 for ac_func in strtoll
38081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38085 echo $ECHO_N "(cached) $ECHO_C" >&6
38087 cat >conftest.$ac_ext <<_ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h. */
38093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38095 #define $ac_func innocuous_$ac_func
38097 /* System header to define __stub macros and hopefully few prototypes,
38098 which can conflict with char $ac_func (); below.
38099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38100 <limits.h> exists even on freestanding compilers. */
38103 # include <limits.h>
38105 # include <assert.h>
38110 /* Override any GCC internal prototype to avoid an error.
38111 Use char because int might match the return type of a GCC
38112 builtin and then its argument prototype would still apply. */
38117 /* The GNU C library defines this for functions which it implements
38118 to always fail with ENOSYS. Some functions are actually named
38119 something starting with __ and the normal name is an alias. */
38120 #if defined __stub_$ac_func || defined __stub___$ac_func
38127 return $ac_func ();
38132 rm -f conftest.$ac_objext conftest$ac_exeext
38133 if { (ac_try="$ac_link"
38134 case "(($ac_try" in
38135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38136 *) ac_try_echo=$ac_try;;
38138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38139 (eval "$ac_link") 2>conftest.er1
38141 grep -v '^ *+' conftest.er1 >conftest.err
38143 cat conftest.err >&5
38144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38145 (exit $ac_status); } && {
38146 test -z "$ac_c_werror_flag" ||
38147 test ! -s conftest.err
38148 } && test -s conftest$ac_exeext &&
38149 $as_test_x conftest$ac_exeext; then
38150 eval "$as_ac_var=yes"
38152 echo "$as_me: failed program was:" >&5
38153 sed 's/^/| /' conftest.$ac_ext >&5
38155 eval "$as_ac_var=no"
38158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38159 conftest$ac_exeext conftest.$ac_ext
38161 ac_res=`eval echo '${'$as_ac_var'}'`
38162 { echo "$as_me:$LINENO: result: $ac_res" >&5
38163 echo "${ECHO_T}$ac_res" >&6; }
38164 if test `eval echo '${'$as_ac_var'}'` = yes; then
38165 cat >>confdefs.h <<_ACEOF
38166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38168 cat >>confdefs.h <<\_ACEOF
38169 #define HAVE_STRTOLL 1
38176 for ac_func in posix_fadvise
38178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38182 echo $ECHO_N "(cached) $ECHO_C" >&6
38184 cat >conftest.$ac_ext <<_ACEOF
38187 cat confdefs.h >>conftest.$ac_ext
38188 cat >>conftest.$ac_ext <<_ACEOF
38189 /* end confdefs.h. */
38190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38192 #define $ac_func innocuous_$ac_func
38194 /* System header to define __stub macros and hopefully few prototypes,
38195 which can conflict with char $ac_func (); below.
38196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38197 <limits.h> exists even on freestanding compilers. */
38200 # include <limits.h>
38202 # include <assert.h>
38207 /* Override any GCC internal prototype to avoid an error.
38208 Use char because int might match the return type of a GCC
38209 builtin and then its argument prototype would still apply. */
38214 /* The GNU C library defines this for functions which it implements
38215 to always fail with ENOSYS. Some functions are actually named
38216 something starting with __ and the normal name is an alias. */
38217 #if defined __stub_$ac_func || defined __stub___$ac_func
38224 return $ac_func ();
38229 rm -f conftest.$ac_objext conftest$ac_exeext
38230 if { (ac_try="$ac_link"
38231 case "(($ac_try" in
38232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38233 *) ac_try_echo=$ac_try;;
38235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38236 (eval "$ac_link") 2>conftest.er1
38238 grep -v '^ *+' conftest.er1 >conftest.err
38240 cat conftest.err >&5
38241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 (exit $ac_status); } && {
38243 test -z "$ac_c_werror_flag" ||
38244 test ! -s conftest.err
38245 } && test -s conftest$ac_exeext &&
38246 $as_test_x conftest$ac_exeext; then
38247 eval "$as_ac_var=yes"
38249 echo "$as_me: failed program was:" >&5
38250 sed 's/^/| /' conftest.$ac_ext >&5
38252 eval "$as_ac_var=no"
38255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38256 conftest$ac_exeext conftest.$ac_ext
38258 ac_res=`eval echo '${'$as_ac_var'}'`
38259 { echo "$as_me:$LINENO: result: $ac_res" >&5
38260 echo "${ECHO_T}$ac_res" >&6; }
38261 if test `eval echo '${'$as_ac_var'}'` = yes; then
38262 cat >>confdefs.h <<_ACEOF
38263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38270 for ac_func in fdatasync
38272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38276 echo $ECHO_N "(cached) $ECHO_C" >&6
38278 cat >conftest.$ac_ext <<_ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h. */
38284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38286 #define $ac_func innocuous_$ac_func
38288 /* System header to define __stub macros and hopefully few prototypes,
38289 which can conflict with char $ac_func (); below.
38290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38291 <limits.h> exists even on freestanding compilers. */
38294 # include <limits.h>
38296 # include <assert.h>
38301 /* Override any GCC internal prototype to avoid an error.
38302 Use char because int might match the return type of a GCC
38303 builtin and then its argument prototype would still apply. */
38308 /* The GNU C library defines this for functions which it implements
38309 to always fail with ENOSYS. Some functions are actually named
38310 something starting with __ and the normal name is an alias. */
38311 #if defined __stub_$ac_func || defined __stub___$ac_func
38318 return $ac_func ();
38323 rm -f conftest.$ac_objext conftest$ac_exeext
38324 if { (ac_try="$ac_link"
38325 case "(($ac_try" in
38326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38327 *) ac_try_echo=$ac_try;;
38329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38330 (eval "$ac_link") 2>conftest.er1
38332 grep -v '^ *+' conftest.er1 >conftest.err
38334 cat conftest.err >&5
38335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); } && {
38337 test -z "$ac_c_werror_flag" ||
38338 test ! -s conftest.err
38339 } && test -s conftest$ac_exeext &&
38340 $as_test_x conftest$ac_exeext; then
38341 eval "$as_ac_var=yes"
38343 echo "$as_me: failed program was:" >&5
38344 sed 's/^/| /' conftest.$ac_ext >&5
38346 eval "$as_ac_var=no"
38349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38350 conftest$ac_exeext conftest.$ac_ext
38352 ac_res=`eval echo '${'$as_ac_var'}'`
38353 { echo "$as_me:$LINENO: result: $ac_res" >&5
38354 echo "${ECHO_T}$ac_res" >&6; }
38355 if test `eval echo '${'$as_ac_var'}'` = yes; then
38356 cat >>confdefs.h <<_ACEOF
38357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38365 for ac_func in chflags
38367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38371 echo $ECHO_N "(cached) $ECHO_C" >&6
38373 cat >conftest.$ac_ext <<_ACEOF
38376 cat confdefs.h >>conftest.$ac_ext
38377 cat >>conftest.$ac_ext <<_ACEOF
38378 /* end confdefs.h. */
38379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38381 #define $ac_func innocuous_$ac_func
38383 /* System header to define __stub macros and hopefully few prototypes,
38384 which can conflict with char $ac_func (); below.
38385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38386 <limits.h> exists even on freestanding compilers. */
38389 # include <limits.h>
38391 # include <assert.h>
38396 /* Override any GCC internal prototype to avoid an error.
38397 Use char because int might match the return type of a GCC
38398 builtin and then its argument prototype would still apply. */
38403 /* The GNU C library defines this for functions which it implements
38404 to always fail with ENOSYS. Some functions are actually named
38405 something starting with __ and the normal name is an alias. */
38406 #if defined __stub_$ac_func || defined __stub___$ac_func
38413 return $ac_func ();
38418 rm -f conftest.$ac_objext conftest$ac_exeext
38419 if { (ac_try="$ac_link"
38420 case "(($ac_try" in
38421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38422 *) ac_try_echo=$ac_try;;
38424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38425 (eval "$ac_link") 2>conftest.er1
38427 grep -v '^ *+' conftest.er1 >conftest.err
38429 cat conftest.err >&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); } && {
38432 test -z "$ac_c_werror_flag" ||
38433 test ! -s conftest.err
38434 } && test -s conftest$ac_exeext &&
38435 $as_test_x conftest$ac_exeext; then
38436 eval "$as_ac_var=yes"
38438 echo "$as_me: failed program was:" >&5
38439 sed 's/^/| /' conftest.$ac_ext >&5
38441 eval "$as_ac_var=no"
38444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38445 conftest$ac_exeext conftest.$ac_ext
38447 ac_res=`eval echo '${'$as_ac_var'}'`
38448 { echo "$as_me:$LINENO: result: $ac_res" >&5
38449 echo "${ECHO_T}$ac_res" >&6; }
38450 if test `eval echo '${'$as_ac_var'}'` = yes; then
38451 cat >>confdefs.h <<_ACEOF
38452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38463 for ac_func in snprintf vsnprintf gethostid fseeko
38465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38469 echo $ECHO_N "(cached) $ECHO_C" >&6
38471 cat >conftest.$ac_ext <<_ACEOF
38474 cat confdefs.h >>conftest.$ac_ext
38475 cat >>conftest.$ac_ext <<_ACEOF
38476 /* end confdefs.h. */
38477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38479 #define $ac_func innocuous_$ac_func
38481 /* System header to define __stub macros and hopefully few prototypes,
38482 which can conflict with char $ac_func (); below.
38483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38484 <limits.h> exists even on freestanding compilers. */
38487 # include <limits.h>
38489 # include <assert.h>
38494 /* Override any GCC internal prototype to avoid an error.
38495 Use char because int might match the return type of a GCC
38496 builtin and then its argument prototype would still apply. */
38501 /* The GNU C library defines this for functions which it implements
38502 to always fail with ENOSYS. Some functions are actually named
38503 something starting with __ and the normal name is an alias. */
38504 #if defined __stub_$ac_func || defined __stub___$ac_func
38511 return $ac_func ();
38516 rm -f conftest.$ac_objext conftest$ac_exeext
38517 if { (ac_try="$ac_link"
38518 case "(($ac_try" in
38519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38520 *) ac_try_echo=$ac_try;;
38522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38523 (eval "$ac_link") 2>conftest.er1
38525 grep -v '^ *+' conftest.er1 >conftest.err
38527 cat conftest.err >&5
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } && {
38530 test -z "$ac_c_werror_flag" ||
38531 test ! -s conftest.err
38532 } && test -s conftest$ac_exeext &&
38533 $as_test_x conftest$ac_exeext; then
38534 eval "$as_ac_var=yes"
38536 echo "$as_me: failed program was:" >&5
38537 sed 's/^/| /' conftest.$ac_ext >&5
38539 eval "$as_ac_var=no"
38542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38543 conftest$ac_exeext conftest.$ac_ext
38545 ac_res=`eval echo '${'$as_ac_var'}'`
38546 { echo "$as_me:$LINENO: result: $ac_res" >&5
38547 echo "${ECHO_T}$ac_res" >&6; }
38548 if test `eval echo '${'$as_ac_var'}'` = yes; then
38549 cat >>confdefs.h <<_ACEOF
38550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38557 { echo "$as_me:$LINENO: checking for va_copy" >&5
38558 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38559 if test "${ba_cv_va_copy+set}" = set; then
38560 echo $ECHO_N "(cached) $ECHO_C" >&6
38563 cat >conftest.$ac_ext <<_ACEOF
38566 cat confdefs.h >>conftest.$ac_ext
38567 cat >>conftest.$ac_ext <<_ACEOF
38568 /* end confdefs.h. */
38570 #include <stdarg.h>
38571 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38572 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38578 call_use_va_copy(1,2,3)
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588 *) ac_try_echo=$ac_try;;
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591 (eval "$ac_link") 2>conftest.er1
38593 grep -v '^ *+' conftest.er1 >conftest.err
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } && {
38598 test -z "$ac_c_werror_flag" ||
38599 test ! -s conftest.err
38600 } && test -s conftest$ac_exeext &&
38601 $as_test_x conftest$ac_exeext; then
38606 echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38616 conftest$ac_exeext conftest.$ac_ext
38620 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38621 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38622 test $ba_cv_va_copy = yes &&
38623 cat >>confdefs.h <<\_ACEOF
38624 #define HAVE_VA_COPY 1
38632 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38638 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 cat >conftest.$ac_ext <<_ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h. */
38646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38648 #define $ac_func innocuous_$ac_func
38650 /* System header to define __stub macros and hopefully few prototypes,
38651 which can conflict with char $ac_func (); below.
38652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38653 <limits.h> exists even on freestanding compilers. */
38656 # include <limits.h>
38658 # include <assert.h>
38663 /* Override any GCC internal prototype to avoid an error.
38664 Use char because int might match the return type of a GCC
38665 builtin and then its argument prototype would still apply. */
38670 /* The GNU C library defines this for functions which it implements
38671 to always fail with ENOSYS. Some functions are actually named
38672 something starting with __ and the normal name is an alias. */
38673 #if defined __stub_$ac_func || defined __stub___$ac_func
38680 return $ac_func ();
38685 rm -f conftest.$ac_objext conftest$ac_exeext
38686 if { (ac_try="$ac_link"
38687 case "(($ac_try" in
38688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38689 *) ac_try_echo=$ac_try;;
38691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38692 (eval "$ac_link") 2>conftest.er1
38694 grep -v '^ *+' conftest.er1 >conftest.err
38696 cat conftest.err >&5
38697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698 (exit $ac_status); } && {
38699 test -z "$ac_c_werror_flag" ||
38700 test ! -s conftest.err
38701 } && test -s conftest$ac_exeext &&
38702 $as_test_x conftest$ac_exeext; then
38703 eval "$as_ac_var=yes"
38705 echo "$as_me: failed program was:" >&5
38706 sed 's/^/| /' conftest.$ac_ext >&5
38708 eval "$as_ac_var=no"
38711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38712 conftest$ac_exeext conftest.$ac_ext
38714 ac_res=`eval echo '${'$as_ac_var'}'`
38715 { echo "$as_me:$LINENO: result: $ac_res" >&5
38716 echo "${ECHO_T}$ac_res" >&6; }
38717 if test `eval echo '${'$as_ac_var'}'` = yes; then
38718 cat >>confdefs.h <<_ACEOF
38719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38726 # If resolver functions are not in libc check for -lnsl or -lresolv.
38727 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38728 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38729 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38730 echo $ECHO_N "(cached) $ECHO_C" >&6
38732 cat >conftest.$ac_ext <<_ACEOF
38735 cat confdefs.h >>conftest.$ac_ext
38736 cat >>conftest.$ac_ext <<_ACEOF
38737 /* end confdefs.h. */
38738 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38740 #define gethostbyname_r innocuous_gethostbyname_r
38742 /* System header to define __stub macros and hopefully few prototypes,
38743 which can conflict with char gethostbyname_r (); below.
38744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38745 <limits.h> exists even on freestanding compilers. */
38748 # include <limits.h>
38750 # include <assert.h>
38753 #undef gethostbyname_r
38755 /* Override any GCC internal prototype to avoid an error.
38756 Use char because int might match the return type of a GCC
38757 builtin and then its argument prototype would still apply. */
38761 char gethostbyname_r ();
38762 /* The GNU C library defines this for functions which it implements
38763 to always fail with ENOSYS. Some functions are actually named
38764 something starting with __ and the normal name is an alias. */
38765 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38772 return gethostbyname_r ();
38777 rm -f conftest.$ac_objext conftest$ac_exeext
38778 if { (ac_try="$ac_link"
38779 case "(($ac_try" in
38780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38781 *) ac_try_echo=$ac_try;;
38783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38784 (eval "$ac_link") 2>conftest.er1
38786 grep -v '^ *+' conftest.er1 >conftest.err
38788 cat conftest.err >&5
38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790 (exit $ac_status); } && {
38791 test -z "$ac_c_werror_flag" ||
38792 test ! -s conftest.err
38793 } && test -s conftest$ac_exeext &&
38794 $as_test_x conftest$ac_exeext; then
38795 ac_cv_func_gethostbyname_r=yes
38797 echo "$as_me: failed program was:" >&5
38798 sed 's/^/| /' conftest.$ac_ext >&5
38800 ac_cv_func_gethostbyname_r=no
38803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38804 conftest$ac_exeext conftest.$ac_ext
38806 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38807 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38808 if test $ac_cv_func_gethostbyname_r = yes; then
38809 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38810 echo "${ECHO_T}using libc's resolver" >&6; }
38813 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38814 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38815 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38816 echo $ECHO_N "(cached) $ECHO_C" >&6
38818 ac_check_lib_save_LIBS=$LIBS
38820 cat >conftest.$ac_ext <<_ACEOF
38823 cat confdefs.h >>conftest.$ac_ext
38824 cat >>conftest.$ac_ext <<_ACEOF
38825 /* end confdefs.h. */
38827 /* Override any GCC internal prototype to avoid an error.
38828 Use char because int might match the return type of a GCC
38829 builtin and then its argument prototype would still apply. */
38833 char gethostbyname_r ();
38837 return gethostbyname_r ();
38842 rm -f conftest.$ac_objext conftest$ac_exeext
38843 if { (ac_try="$ac_link"
38844 case "(($ac_try" in
38845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38846 *) ac_try_echo=$ac_try;;
38848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38849 (eval "$ac_link") 2>conftest.er1
38851 grep -v '^ *+' conftest.er1 >conftest.err
38853 cat conftest.err >&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); } && {
38856 test -z "$ac_c_werror_flag" ||
38857 test ! -s conftest.err
38858 } && test -s conftest$ac_exeext &&
38859 $as_test_x conftest$ac_exeext; then
38860 ac_cv_lib_nsl_gethostbyname_r=yes
38862 echo "$as_me: failed program was:" >&5
38863 sed 's/^/| /' conftest.$ac_ext >&5
38865 ac_cv_lib_nsl_gethostbyname_r=no
38868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38869 conftest$ac_exeext conftest.$ac_ext
38870 LIBS=$ac_check_lib_save_LIBS
38872 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38873 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38874 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38875 cat >>confdefs.h <<_ACEOF
38876 #define HAVE_LIBNSL 1
38884 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38885 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38886 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38887 echo $ECHO_N "(cached) $ECHO_C" >&6
38889 ac_check_lib_save_LIBS=$LIBS
38890 LIBS="-lresolv $LIBS"
38891 cat >conftest.$ac_ext <<_ACEOF
38894 cat confdefs.h >>conftest.$ac_ext
38895 cat >>conftest.$ac_ext <<_ACEOF
38896 /* end confdefs.h. */
38898 /* Override any GCC internal prototype to avoid an error.
38899 Use char because int might match the return type of a GCC
38900 builtin and then its argument prototype would still apply. */
38904 char gethostbyname_r ();
38908 return gethostbyname_r ();
38913 rm -f conftest.$ac_objext conftest$ac_exeext
38914 if { (ac_try="$ac_link"
38915 case "(($ac_try" in
38916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38917 *) ac_try_echo=$ac_try;;
38919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38920 (eval "$ac_link") 2>conftest.er1
38922 grep -v '^ *+' conftest.er1 >conftest.err
38924 cat conftest.err >&5
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); } && {
38927 test -z "$ac_c_werror_flag" ||
38928 test ! -s conftest.err
38929 } && test -s conftest$ac_exeext &&
38930 $as_test_x conftest$ac_exeext; then
38931 ac_cv_lib_resolv_gethostbyname_r=yes
38933 echo "$as_me: failed program was:" >&5
38934 sed 's/^/| /' conftest.$ac_ext >&5
38936 ac_cv_lib_resolv_gethostbyname_r=no
38939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38940 conftest$ac_exeext conftest.$ac_ext
38941 LIBS=$ac_check_lib_save_LIBS
38943 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38944 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38945 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38946 cat >>confdefs.h <<_ACEOF
38947 #define HAVE_LIBRESOLV 1
38950 LIBS="-lresolv $LIBS"
38958 for ac_func in inet_pton
38960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38964 echo $ECHO_N "(cached) $ECHO_C" >&6
38966 cat >conftest.$ac_ext <<_ACEOF
38969 cat confdefs.h >>conftest.$ac_ext
38970 cat >>conftest.$ac_ext <<_ACEOF
38971 /* end confdefs.h. */
38972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38974 #define $ac_func innocuous_$ac_func
38976 /* System header to define __stub macros and hopefully few prototypes,
38977 which can conflict with char $ac_func (); below.
38978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38979 <limits.h> exists even on freestanding compilers. */
38982 # include <limits.h>
38984 # include <assert.h>
38989 /* Override any GCC internal prototype to avoid an error.
38990 Use char because int might match the return type of a GCC
38991 builtin and then its argument prototype would still apply. */
38996 /* The GNU C library defines this for functions which it implements
38997 to always fail with ENOSYS. Some functions are actually named
38998 something starting with __ and the normal name is an alias. */
38999 #if defined __stub_$ac_func || defined __stub___$ac_func
39006 return $ac_func ();
39011 rm -f conftest.$ac_objext conftest$ac_exeext
39012 if { (ac_try="$ac_link"
39013 case "(($ac_try" in
39014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39015 *) ac_try_echo=$ac_try;;
39017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39018 (eval "$ac_link") 2>conftest.er1
39020 grep -v '^ *+' conftest.er1 >conftest.err
39022 cat conftest.err >&5
39023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024 (exit $ac_status); } && {
39025 test -z "$ac_c_werror_flag" ||
39026 test ! -s conftest.err
39027 } && test -s conftest$ac_exeext &&
39028 $as_test_x conftest$ac_exeext; then
39029 eval "$as_ac_var=yes"
39031 echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.$ac_ext >&5
39034 eval "$as_ac_var=no"
39037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39038 conftest$ac_exeext conftest.$ac_ext
39040 ac_res=`eval echo '${'$as_ac_var'}'`
39041 { echo "$as_me:$LINENO: result: $ac_res" >&5
39042 echo "${ECHO_T}$ac_res" >&6; }
39043 if test `eval echo '${'$as_ac_var'}'` = yes; then
39044 cat >>confdefs.h <<_ACEOF
39045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39047 cat >>confdefs.h <<\_ACEOF
39048 #define HAVE_INET_PTON 1
39055 for ac_func in inet_ntop
39057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39061 echo $ECHO_N "(cached) $ECHO_C" >&6
39063 cat >conftest.$ac_ext <<_ACEOF
39066 cat confdefs.h >>conftest.$ac_ext
39067 cat >>conftest.$ac_ext <<_ACEOF
39068 /* end confdefs.h. */
39069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39071 #define $ac_func innocuous_$ac_func
39073 /* System header to define __stub macros and hopefully few prototypes,
39074 which can conflict with char $ac_func (); below.
39075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39076 <limits.h> exists even on freestanding compilers. */
39079 # include <limits.h>
39081 # include <assert.h>
39086 /* Override any GCC internal prototype to avoid an error.
39087 Use char because int might match the return type of a GCC
39088 builtin and then its argument prototype would still apply. */
39093 /* The GNU C library defines this for functions which it implements
39094 to always fail with ENOSYS. Some functions are actually named
39095 something starting with __ and the normal name is an alias. */
39096 #if defined __stub_$ac_func || defined __stub___$ac_func
39103 return $ac_func ();
39108 rm -f conftest.$ac_objext conftest$ac_exeext
39109 if { (ac_try="$ac_link"
39110 case "(($ac_try" in
39111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39112 *) ac_try_echo=$ac_try;;
39114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39115 (eval "$ac_link") 2>conftest.er1
39117 grep -v '^ *+' conftest.er1 >conftest.err
39119 cat conftest.err >&5
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } && {
39122 test -z "$ac_c_werror_flag" ||
39123 test ! -s conftest.err
39124 } && test -s conftest$ac_exeext &&
39125 $as_test_x conftest$ac_exeext; then
39126 eval "$as_ac_var=yes"
39128 echo "$as_me: failed program was:" >&5
39129 sed 's/^/| /' conftest.$ac_ext >&5
39131 eval "$as_ac_var=no"
39134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39135 conftest$ac_exeext conftest.$ac_ext
39137 ac_res=`eval echo '${'$as_ac_var'}'`
39138 { echo "$as_me:$LINENO: result: $ac_res" >&5
39139 echo "${ECHO_T}$ac_res" >&6; }
39140 if test `eval echo '${'$as_ac_var'}'` = yes; then
39141 cat >>confdefs.h <<_ACEOF
39142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39144 cat >>confdefs.h <<\_ACEOF
39145 #define HAVE_INET_NTOP 1
39152 for ac_func in gethostbyname2
39154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39158 echo $ECHO_N "(cached) $ECHO_C" >&6
39160 cat >conftest.$ac_ext <<_ACEOF
39163 cat confdefs.h >>conftest.$ac_ext
39164 cat >>conftest.$ac_ext <<_ACEOF
39165 /* end confdefs.h. */
39166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39168 #define $ac_func innocuous_$ac_func
39170 /* System header to define __stub macros and hopefully few prototypes,
39171 which can conflict with char $ac_func (); below.
39172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39173 <limits.h> exists even on freestanding compilers. */
39176 # include <limits.h>
39178 # include <assert.h>
39183 /* Override any GCC internal prototype to avoid an error.
39184 Use char because int might match the return type of a GCC
39185 builtin and then its argument prototype would still apply. */
39190 /* The GNU C library defines this for functions which it implements
39191 to always fail with ENOSYS. Some functions are actually named
39192 something starting with __ and the normal name is an alias. */
39193 #if defined __stub_$ac_func || defined __stub___$ac_func
39200 return $ac_func ();
39205 rm -f conftest.$ac_objext conftest$ac_exeext
39206 if { (ac_try="$ac_link"
39207 case "(($ac_try" in
39208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39209 *) ac_try_echo=$ac_try;;
39211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39212 (eval "$ac_link") 2>conftest.er1
39214 grep -v '^ *+' conftest.er1 >conftest.err
39216 cat conftest.err >&5
39217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218 (exit $ac_status); } && {
39219 test -z "$ac_c_werror_flag" ||
39220 test ! -s conftest.err
39221 } && test -s conftest$ac_exeext &&
39222 $as_test_x conftest$ac_exeext; then
39223 eval "$as_ac_var=yes"
39225 echo "$as_me: failed program was:" >&5
39226 sed 's/^/| /' conftest.$ac_ext >&5
39228 eval "$as_ac_var=no"
39231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39232 conftest$ac_exeext conftest.$ac_ext
39234 ac_res=`eval echo '${'$as_ac_var'}'`
39235 { echo "$as_me:$LINENO: result: $ac_res" >&5
39236 echo "${ECHO_T}$ac_res" >&6; }
39237 if test `eval echo '${'$as_ac_var'}'` = yes; then
39238 cat >>confdefs.h <<_ACEOF
39239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39241 cat >>confdefs.h <<\_ACEOF
39242 #define HAVE_GETHOSTBYNAME2 1
39249 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39250 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39251 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39252 echo $ECHO_N "(cached) $ECHO_C" >&6
39255 cat >conftest.$ac_ext <<_ACEOF
39258 cat confdefs.h >>conftest.$ac_ext
39259 cat >>conftest.$ac_ext <<_ACEOF
39260 /* end confdefs.h. */
39262 #include <sys/socket.h>
39268 struct sockaddr s; s.sa_len;
39274 rm -f conftest.$ac_objext
39275 if { (ac_try="$ac_compile"
39276 case "(($ac_try" in
39277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278 *) ac_try_echo=$ac_try;;
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281 (eval "$ac_compile") 2>conftest.er1
39283 grep -v '^ *+' conftest.er1 >conftest.err
39285 cat conftest.err >&5
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); } && {
39288 test -z "$ac_c_werror_flag" ||
39289 test ! -s conftest.err
39290 } && test -s conftest.$ac_objext; then
39292 ac_cv_struct_sockaddr_sa_len=yes
39295 echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39298 ac_cv_struct_sockaddr_sa_len=no
39303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39307 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39308 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39310 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39312 cat >>confdefs.h <<\_ACEOF
39313 #define HAVE_SA_LEN 1
39319 for ac_func in strftime
39321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39325 echo $ECHO_N "(cached) $ECHO_C" >&6
39327 cat >conftest.$ac_ext <<_ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h. */
39333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39335 #define $ac_func innocuous_$ac_func
39337 /* System header to define __stub macros and hopefully few prototypes,
39338 which can conflict with char $ac_func (); below.
39339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39340 <limits.h> exists even on freestanding compilers. */
39343 # include <limits.h>
39345 # include <assert.h>
39350 /* Override any GCC internal prototype to avoid an error.
39351 Use char because int might match the return type of a GCC
39352 builtin and then its argument prototype would still apply. */
39357 /* The GNU C library defines this for functions which it implements
39358 to always fail with ENOSYS. Some functions are actually named
39359 something starting with __ and the normal name is an alias. */
39360 #if defined __stub_$ac_func || defined __stub___$ac_func
39367 return $ac_func ();
39372 rm -f conftest.$ac_objext conftest$ac_exeext
39373 if { (ac_try="$ac_link"
39374 case "(($ac_try" in
39375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39376 *) ac_try_echo=$ac_try;;
39378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39379 (eval "$ac_link") 2>conftest.er1
39381 grep -v '^ *+' conftest.er1 >conftest.err
39383 cat conftest.err >&5
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); } && {
39386 test -z "$ac_c_werror_flag" ||
39387 test ! -s conftest.err
39388 } && test -s conftest$ac_exeext &&
39389 $as_test_x conftest$ac_exeext; then
39390 eval "$as_ac_var=yes"
39392 echo "$as_me: failed program was:" >&5
39393 sed 's/^/| /' conftest.$ac_ext >&5
39395 eval "$as_ac_var=no"
39398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39399 conftest$ac_exeext conftest.$ac_ext
39401 ac_res=`eval echo '${'$as_ac_var'}'`
39402 { echo "$as_me:$LINENO: result: $ac_res" >&5
39403 echo "${ECHO_T}$ac_res" >&6; }
39404 if test `eval echo '${'$as_ac_var'}'` = yes; then
39405 cat >>confdefs.h <<_ACEOF
39406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39410 # strftime is in -lintl on SCO UNIX.
39411 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39412 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39413 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39414 echo $ECHO_N "(cached) $ECHO_C" >&6
39416 ac_check_lib_save_LIBS=$LIBS
39417 LIBS="-lintl $LIBS"
39418 cat >conftest.$ac_ext <<_ACEOF
39421 cat confdefs.h >>conftest.$ac_ext
39422 cat >>conftest.$ac_ext <<_ACEOF
39423 /* end confdefs.h. */
39425 /* Override any GCC internal prototype to avoid an error.
39426 Use char because int might match the return type of a GCC
39427 builtin and then its argument prototype would still apply. */
39435 return strftime ();
39440 rm -f conftest.$ac_objext conftest$ac_exeext
39441 if { (ac_try="$ac_link"
39442 case "(($ac_try" in
39443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39444 *) ac_try_echo=$ac_try;;
39446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39447 (eval "$ac_link") 2>conftest.er1
39449 grep -v '^ *+' conftest.er1 >conftest.err
39451 cat conftest.err >&5
39452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453 (exit $ac_status); } && {
39454 test -z "$ac_c_werror_flag" ||
39455 test ! -s conftest.err
39456 } && test -s conftest$ac_exeext &&
39457 $as_test_x conftest$ac_exeext; then
39458 ac_cv_lib_intl_strftime=yes
39460 echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39463 ac_cv_lib_intl_strftime=no
39466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39467 conftest$ac_exeext conftest.$ac_ext
39468 LIBS=$ac_check_lib_save_LIBS
39470 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39471 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39472 if test $ac_cv_lib_intl_strftime = yes; then
39473 cat >>confdefs.h <<\_ACEOF
39474 #define HAVE_STRFTIME 1
39477 LIBS="-lintl $LIBS"
39484 for ac_func in vprintf
39486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39490 echo $ECHO_N "(cached) $ECHO_C" >&6
39492 cat >conftest.$ac_ext <<_ACEOF
39495 cat confdefs.h >>conftest.$ac_ext
39496 cat >>conftest.$ac_ext <<_ACEOF
39497 /* end confdefs.h. */
39498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39500 #define $ac_func innocuous_$ac_func
39502 /* System header to define __stub macros and hopefully few prototypes,
39503 which can conflict with char $ac_func (); below.
39504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39505 <limits.h> exists even on freestanding compilers. */
39508 # include <limits.h>
39510 # include <assert.h>
39515 /* Override any GCC internal prototype to avoid an error.
39516 Use char because int might match the return type of a GCC
39517 builtin and then its argument prototype would still apply. */
39522 /* The GNU C library defines this for functions which it implements
39523 to always fail with ENOSYS. Some functions are actually named
39524 something starting with __ and the normal name is an alias. */
39525 #if defined __stub_$ac_func || defined __stub___$ac_func
39532 return $ac_func ();
39537 rm -f conftest.$ac_objext conftest$ac_exeext
39538 if { (ac_try="$ac_link"
39539 case "(($ac_try" in
39540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39541 *) ac_try_echo=$ac_try;;
39543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39544 (eval "$ac_link") 2>conftest.er1
39546 grep -v '^ *+' conftest.er1 >conftest.err
39548 cat conftest.err >&5
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } && {
39551 test -z "$ac_c_werror_flag" ||
39552 test ! -s conftest.err
39553 } && test -s conftest$ac_exeext &&
39554 $as_test_x conftest$ac_exeext; then
39555 eval "$as_ac_var=yes"
39557 echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39560 eval "$as_ac_var=no"
39563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39564 conftest$ac_exeext conftest.$ac_ext
39566 ac_res=`eval echo '${'$as_ac_var'}'`
39567 { echo "$as_me:$LINENO: result: $ac_res" >&5
39568 echo "${ECHO_T}$ac_res" >&6; }
39569 if test `eval echo '${'$as_ac_var'}'` = yes; then
39570 cat >>confdefs.h <<_ACEOF
39571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39574 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39575 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39576 if test "${ac_cv_func__doprnt+set}" = set; then
39577 echo $ECHO_N "(cached) $ECHO_C" >&6
39579 cat >conftest.$ac_ext <<_ACEOF
39582 cat confdefs.h >>conftest.$ac_ext
39583 cat >>conftest.$ac_ext <<_ACEOF
39584 /* end confdefs.h. */
39585 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39587 #define _doprnt innocuous__doprnt
39589 /* System header to define __stub macros and hopefully few prototypes,
39590 which can conflict with char _doprnt (); below.
39591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592 <limits.h> exists even on freestanding compilers. */
39595 # include <limits.h>
39597 # include <assert.h>
39602 /* Override any GCC internal prototype to avoid an error.
39603 Use char because int might match the return type of a GCC
39604 builtin and then its argument prototype would still apply. */
39609 /* The GNU C library defines this for functions which it implements
39610 to always fail with ENOSYS. Some functions are actually named
39611 something starting with __ and the normal name is an alias. */
39612 #if defined __stub__doprnt || defined __stub____doprnt
39624 rm -f conftest.$ac_objext conftest$ac_exeext
39625 if { (ac_try="$ac_link"
39626 case "(($ac_try" in
39627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39628 *) ac_try_echo=$ac_try;;
39630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39631 (eval "$ac_link") 2>conftest.er1
39633 grep -v '^ *+' conftest.er1 >conftest.err
39635 cat conftest.err >&5
39636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637 (exit $ac_status); } && {
39638 test -z "$ac_c_werror_flag" ||
39639 test ! -s conftest.err
39640 } && test -s conftest$ac_exeext &&
39641 $as_test_x conftest$ac_exeext; then
39642 ac_cv_func__doprnt=yes
39644 echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.$ac_ext >&5
39647 ac_cv_func__doprnt=no
39650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39651 conftest$ac_exeext conftest.$ac_ext
39653 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39654 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39655 if test $ac_cv_func__doprnt = yes; then
39657 cat >>confdefs.h <<\_ACEOF
39658 #define HAVE_DOPRNT 1
39667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39668 # for constant arguments. Useless!
39669 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39671 if test "${ac_cv_working_alloca_h+set}" = set; then
39672 echo $ECHO_N "(cached) $ECHO_C" >&6
39674 cat >conftest.$ac_ext <<_ACEOF
39677 cat confdefs.h >>conftest.$ac_ext
39678 cat >>conftest.$ac_ext <<_ACEOF
39679 /* end confdefs.h. */
39680 #include <alloca.h>
39684 char *p = (char *) alloca (2 * sizeof (int));
39690 rm -f conftest.$ac_objext conftest$ac_exeext
39691 if { (ac_try="$ac_link"
39692 case "(($ac_try" in
39693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39694 *) ac_try_echo=$ac_try;;
39696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39697 (eval "$ac_link") 2>conftest.er1
39699 grep -v '^ *+' conftest.er1 >conftest.err
39701 cat conftest.err >&5
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); } && {
39704 test -z "$ac_c_werror_flag" ||
39705 test ! -s conftest.err
39706 } && test -s conftest$ac_exeext &&
39707 $as_test_x conftest$ac_exeext; then
39708 ac_cv_working_alloca_h=yes
39710 echo "$as_me: failed program was:" >&5
39711 sed 's/^/| /' conftest.$ac_ext >&5
39713 ac_cv_working_alloca_h=no
39716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39717 conftest$ac_exeext conftest.$ac_ext
39719 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39720 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39721 if test $ac_cv_working_alloca_h = yes; then
39723 cat >>confdefs.h <<\_ACEOF
39724 #define HAVE_ALLOCA_H 1
39729 { echo "$as_me:$LINENO: checking for alloca" >&5
39730 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39731 if test "${ac_cv_func_alloca_works+set}" = set; then
39732 echo $ECHO_N "(cached) $ECHO_C" >&6
39734 cat >conftest.$ac_ext <<_ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h. */
39741 # define alloca __builtin_alloca
39744 # include <malloc.h>
39745 # define alloca _alloca
39747 # ifdef HAVE_ALLOCA_H
39748 # include <alloca.h>
39753 # ifndef alloca /* predefined by HP cc +Olibcalls */
39764 char *p = (char *) alloca (1);
39770 rm -f conftest.$ac_objext conftest$ac_exeext
39771 if { (ac_try="$ac_link"
39772 case "(($ac_try" in
39773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39774 *) ac_try_echo=$ac_try;;
39776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39777 (eval "$ac_link") 2>conftest.er1
39779 grep -v '^ *+' conftest.er1 >conftest.err
39781 cat conftest.err >&5
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); } && {
39784 test -z "$ac_c_werror_flag" ||
39785 test ! -s conftest.err
39786 } && test -s conftest$ac_exeext &&
39787 $as_test_x conftest$ac_exeext; then
39788 ac_cv_func_alloca_works=yes
39790 echo "$as_me: failed program was:" >&5
39791 sed 's/^/| /' conftest.$ac_ext >&5
39793 ac_cv_func_alloca_works=no
39796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39797 conftest$ac_exeext conftest.$ac_ext
39799 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39800 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39802 if test $ac_cv_func_alloca_works = yes; then
39804 cat >>confdefs.h <<\_ACEOF
39805 #define HAVE_ALLOCA 1
39809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39810 # that cause trouble. Some versions do not even contain alloca or
39811 # contain a buggy version. If you still want to use their alloca,
39812 # use ar to extract alloca.o from them instead of compiling alloca.c.
39814 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39816 cat >>confdefs.h <<\_ACEOF
39821 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39822 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39823 if test "${ac_cv_os_cray+set}" = set; then
39824 echo $ECHO_N "(cached) $ECHO_C" >&6
39826 cat >conftest.$ac_ext <<_ACEOF
39829 cat confdefs.h >>conftest.$ac_ext
39830 cat >>conftest.$ac_ext <<_ACEOF
39831 /* end confdefs.h. */
39832 #if defined CRAY && ! defined CRAY2
39839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39840 $EGREP "webecray" >/dev/null 2>&1; then
39848 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39849 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39850 if test $ac_cv_os_cray = yes; then
39851 for ac_func in _getb67 GETB67 getb67; do
39852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39856 echo $ECHO_N "(cached) $ECHO_C" >&6
39858 cat >conftest.$ac_ext <<_ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h. */
39864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39866 #define $ac_func innocuous_$ac_func
39868 /* System header to define __stub macros and hopefully few prototypes,
39869 which can conflict with char $ac_func (); below.
39870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39871 <limits.h> exists even on freestanding compilers. */
39874 # include <limits.h>
39876 # include <assert.h>
39881 /* Override any GCC internal prototype to avoid an error.
39882 Use char because int might match the return type of a GCC
39883 builtin and then its argument prototype would still apply. */
39888 /* The GNU C library defines this for functions which it implements
39889 to always fail with ENOSYS. Some functions are actually named
39890 something starting with __ and the normal name is an alias. */
39891 #if defined __stub_$ac_func || defined __stub___$ac_func
39898 return $ac_func ();
39903 rm -f conftest.$ac_objext conftest$ac_exeext
39904 if { (ac_try="$ac_link"
39905 case "(($ac_try" in
39906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39907 *) ac_try_echo=$ac_try;;
39909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39910 (eval "$ac_link") 2>conftest.er1
39912 grep -v '^ *+' conftest.er1 >conftest.err
39914 cat conftest.err >&5
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); } && {
39917 test -z "$ac_c_werror_flag" ||
39918 test ! -s conftest.err
39919 } && test -s conftest$ac_exeext &&
39920 $as_test_x conftest$ac_exeext; then
39921 eval "$as_ac_var=yes"
39923 echo "$as_me: failed program was:" >&5
39924 sed 's/^/| /' conftest.$ac_ext >&5
39926 eval "$as_ac_var=no"
39929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39930 conftest$ac_exeext conftest.$ac_ext
39932 ac_res=`eval echo '${'$as_ac_var'}'`
39933 { echo "$as_me:$LINENO: result: $ac_res" >&5
39934 echo "${ECHO_T}$ac_res" >&6; }
39935 if test `eval echo '${'$as_ac_var'}'` = yes; then
39937 cat >>confdefs.h <<_ACEOF
39938 #define CRAY_STACKSEG_END $ac_func
39947 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39948 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39949 if test "${ac_cv_c_stack_direction+set}" = set; then
39950 echo $ECHO_N "(cached) $ECHO_C" >&6
39952 if test "$cross_compiling" = yes; then
39953 ac_cv_c_stack_direction=0
39955 cat >conftest.$ac_ext <<_ACEOF
39958 cat confdefs.h >>conftest.$ac_ext
39959 cat >>conftest.$ac_ext <<_ACEOF
39960 /* end confdefs.h. */
39961 $ac_includes_default
39963 find_stack_direction ()
39965 static char *addr = 0;
39970 return find_stack_direction ();
39973 return (&dummy > addr) ? 1 : -1;
39979 return find_stack_direction () < 0;
39982 rm -f conftest$ac_exeext
39983 if { (ac_try="$ac_link"
39984 case "(($ac_try" in
39985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39986 *) ac_try_echo=$ac_try;;
39988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39989 (eval "$ac_link") 2>&5
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39993 { (case "(($ac_try" in
39994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39995 *) ac_try_echo=$ac_try;;
39997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39998 (eval "$ac_try") 2>&5
40000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40001 (exit $ac_status); }; }; then
40002 ac_cv_c_stack_direction=1
40004 echo "$as_me: program exited with status $ac_status" >&5
40005 echo "$as_me: failed program was:" >&5
40006 sed 's/^/| /' conftest.$ac_ext >&5
40008 ( exit $ac_status )
40009 ac_cv_c_stack_direction=-1
40011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40016 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40017 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40019 cat >>confdefs.h <<_ACEOF
40020 #define STACK_DIRECTION $ac_cv_c_stack_direction
40026 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40027 # -lseq on Dynix/PTX, -lgen on Unixware.
40028 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40029 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40030 if test "${ac_cv_search_getmntent+set}" = set; then
40031 echo $ECHO_N "(cached) $ECHO_C" >&6
40033 ac_func_search_save_LIBS=$LIBS
40034 cat >conftest.$ac_ext <<_ACEOF
40037 cat confdefs.h >>conftest.$ac_ext
40038 cat >>conftest.$ac_ext <<_ACEOF
40039 /* end confdefs.h. */
40041 /* Override any GCC internal prototype to avoid an error.
40042 Use char because int might match the return type of a GCC
40043 builtin and then its argument prototype would still apply. */
40051 return getmntent ();
40056 for ac_lib in '' sun seq gen; do
40057 if test -z "$ac_lib"; then
40058 ac_res="none required"
40061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40063 rm -f conftest.$ac_objext conftest$ac_exeext
40064 if { (ac_try="$ac_link"
40065 case "(($ac_try" in
40066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40067 *) ac_try_echo=$ac_try;;
40069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40070 (eval "$ac_link") 2>conftest.er1
40072 grep -v '^ *+' conftest.er1 >conftest.err
40074 cat conftest.err >&5
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); } && {
40077 test -z "$ac_c_werror_flag" ||
40078 test ! -s conftest.err
40079 } && test -s conftest$ac_exeext &&
40080 $as_test_x conftest$ac_exeext; then
40081 ac_cv_search_getmntent=$ac_res
40083 echo "$as_me: failed program was:" >&5
40084 sed 's/^/| /' conftest.$ac_ext >&5
40089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40091 if test "${ac_cv_search_getmntent+set}" = set; then
40095 if test "${ac_cv_search_getmntent+set}" = set; then
40098 ac_cv_search_getmntent=no
40100 rm conftest.$ac_ext
40101 LIBS=$ac_func_search_save_LIBS
40103 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40104 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40105 ac_res=$ac_cv_search_getmntent
40106 if test "$ac_res" != no; then
40107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40108 ac_cv_func_getmntent=yes
40110 cat >>confdefs.h <<\_ACEOF
40111 #define HAVE_GETMNTENT 1
40115 ac_cv_func_getmntent=no
40119 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40120 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40121 if test "${ac_cv_func_closedir_void+set}" = set; then
40122 echo $ECHO_N "(cached) $ECHO_C" >&6
40124 if test "$cross_compiling" = yes; then
40125 ac_cv_func_closedir_void=yes
40127 cat >conftest.$ac_ext <<_ACEOF
40130 cat confdefs.h >>conftest.$ac_ext
40131 cat >>conftest.$ac_ext <<_ACEOF
40132 /* end confdefs.h. */
40133 $ac_includes_default
40134 #include <$ac_header_dirent>
40135 #ifndef __cplusplus
40142 return closedir (opendir (".")) != 0;
40147 rm -f conftest$ac_exeext
40148 if { (ac_try="$ac_link"
40149 case "(($ac_try" in
40150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40151 *) ac_try_echo=$ac_try;;
40153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40154 (eval "$ac_link") 2>&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40158 { (case "(($ac_try" in
40159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40160 *) ac_try_echo=$ac_try;;
40162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40163 (eval "$ac_try") 2>&5
40165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166 (exit $ac_status); }; }; then
40167 ac_cv_func_closedir_void=no
40169 echo "$as_me: program exited with status $ac_status" >&5
40170 echo "$as_me: failed program was:" >&5
40171 sed 's/^/| /' conftest.$ac_ext >&5
40173 ( exit $ac_status )
40174 ac_cv_func_closedir_void=yes
40176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40181 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40182 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40183 if test $ac_cv_func_closedir_void = yes; then
40185 cat >>confdefs.h <<\_ACEOF
40186 #define CLOSEDIR_VOID 1
40191 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40192 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40193 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40194 echo $ECHO_N "(cached) $ECHO_C" >&6
40196 if test "$cross_compiling" = yes; then
40197 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40198 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40199 { (exit 1); exit 1; }; }
40201 cat >conftest.$ac_ext <<_ACEOF
40204 cat confdefs.h >>conftest.$ac_ext
40205 cat >>conftest.$ac_ext <<_ACEOF
40206 /* end confdefs.h. */
40207 $ac_includes_default
40211 /* If this system has a BSD-style setpgrp which takes arguments,
40212 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40213 exit successfully. */
40214 return setpgrp (1,1) != -1;
40219 rm -f conftest$ac_exeext
40220 if { (ac_try="$ac_link"
40221 case "(($ac_try" in
40222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40223 *) ac_try_echo=$ac_try;;
40225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40226 (eval "$ac_link") 2>&5
40228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40230 { (case "(($ac_try" in
40231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40232 *) ac_try_echo=$ac_try;;
40234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40235 (eval "$ac_try") 2>&5
40237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 (exit $ac_status); }; }; then
40239 ac_cv_func_setpgrp_void=no
40241 echo "$as_me: program exited with status $ac_status" >&5
40242 echo "$as_me: failed program was:" >&5
40243 sed 's/^/| /' conftest.$ac_ext >&5
40245 ( exit $ac_status )
40246 ac_cv_func_setpgrp_void=yes
40248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40253 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40254 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40255 if test $ac_cv_func_setpgrp_void = yes; then
40257 cat >>confdefs.h <<\_ACEOF
40258 #define SETPGRP_VOID 1
40262 # AC_FUNC_FNMATCH dnl use local version
40264 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40265 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40266 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40267 echo $ECHO_N "(cached) $ECHO_C" >&6
40269 ac_check_lib_save_LIBS=$LIBS
40270 LIBS="-lintl $LIBS"
40271 cat >conftest.$ac_ext <<_ACEOF
40274 cat confdefs.h >>conftest.$ac_ext
40275 cat >>conftest.$ac_ext <<_ACEOF
40276 /* end confdefs.h. */
40278 /* Override any GCC internal prototype to avoid an error.
40279 Use char because int might match the return type of a GCC
40280 builtin and then its argument prototype would still apply. */
40293 rm -f conftest.$ac_objext conftest$ac_exeext
40294 if { (ac_try="$ac_link"
40295 case "(($ac_try" in
40296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40297 *) ac_try_echo=$ac_try;;
40299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40300 (eval "$ac_link") 2>conftest.er1
40302 grep -v '^ *+' conftest.er1 >conftest.err
40304 cat conftest.err >&5
40305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306 (exit $ac_status); } && {
40307 test -z "$ac_c_werror_flag" ||
40308 test ! -s conftest.err
40309 } && test -s conftest$ac_exeext &&
40310 $as_test_x conftest$ac_exeext; then
40311 ac_cv_lib_intl_gettext=yes
40313 echo "$as_me: failed program was:" >&5
40314 sed 's/^/| /' conftest.$ac_ext >&5
40316 ac_cv_lib_intl_gettext=no
40319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40320 conftest$ac_exeext conftest.$ac_ext
40321 LIBS=$ac_check_lib_save_LIBS
40323 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40324 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40325 if test $ac_cv_lib_intl_gettext = yes; then
40326 LIBS="$LIBS -lintl"
40331 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40332 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40333 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40334 echo $ECHO_N "(cached) $ECHO_C" >&6
40336 ac_check_lib_save_LIBS=$LIBS
40338 cat >conftest.$ac_ext <<_ACEOF
40341 cat confdefs.h >>conftest.$ac_ext
40342 cat >>conftest.$ac_ext <<_ACEOF
40343 /* end confdefs.h. */
40345 /* Override any GCC internal prototype to avoid an error.
40346 Use char because int might match the return type of a GCC
40347 builtin and then its argument prototype would still apply. */
40355 return getpwnam ();
40360 rm -f conftest.$ac_objext conftest$ac_exeext
40361 if { (ac_try="$ac_link"
40362 case "(($ac_try" in
40363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40364 *) ac_try_echo=$ac_try;;
40366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40367 (eval "$ac_link") 2>conftest.er1
40369 grep -v '^ *+' conftest.er1 >conftest.err
40371 cat conftest.err >&5
40372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); } && {
40374 test -z "$ac_c_werror_flag" ||
40375 test ! -s conftest.err
40376 } && test -s conftest$ac_exeext &&
40377 $as_test_x conftest$ac_exeext; then
40378 ac_cv_lib_sun_getpwnam=yes
40380 echo "$as_me: failed program was:" >&5
40381 sed 's/^/| /' conftest.$ac_ext >&5
40383 ac_cv_lib_sun_getpwnam=no
40386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40387 conftest$ac_exeext conftest.$ac_ext
40388 LIBS=$ac_check_lib_save_LIBS
40390 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40391 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40392 if test $ac_cv_lib_sun_getpwnam = yes; then
40393 cat >>confdefs.h <<_ACEOF
40394 #define HAVE_LIBSUN 1
40403 for ac_header in zlib.h
40405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40410 echo $ECHO_N "(cached) $ECHO_C" >&6
40412 ac_res=`eval echo '${'$as_ac_Header'}'`
40413 { echo "$as_me:$LINENO: result: $ac_res" >&5
40414 echo "${ECHO_T}$ac_res" >&6; }
40416 # Is the header compilable?
40417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40419 cat >conftest.$ac_ext <<_ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h. */
40425 $ac_includes_default
40426 #include <$ac_header>
40428 rm -f conftest.$ac_objext
40429 if { (ac_try="$ac_compile"
40430 case "(($ac_try" in
40431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40432 *) ac_try_echo=$ac_try;;
40434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40435 (eval "$ac_compile") 2>conftest.er1
40437 grep -v '^ *+' conftest.er1 >conftest.err
40439 cat conftest.err >&5
40440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); } && {
40442 test -z "$ac_c_werror_flag" ||
40443 test ! -s conftest.err
40444 } && test -s conftest.$ac_objext; then
40445 ac_header_compiler=yes
40447 echo "$as_me: failed program was:" >&5
40448 sed 's/^/| /' conftest.$ac_ext >&5
40450 ac_header_compiler=no
40453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40455 echo "${ECHO_T}$ac_header_compiler" >&6; }
40457 # Is the header present?
40458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40466 #include <$ac_header>
40468 if { (ac_try="$ac_cpp conftest.$ac_ext"
40469 case "(($ac_try" in
40470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40471 *) ac_try_echo=$ac_try;;
40473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40476 grep -v '^ *+' conftest.er1 >conftest.err
40478 cat conftest.err >&5
40479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480 (exit $ac_status); } >/dev/null && {
40481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40482 test ! -s conftest.err
40484 ac_header_preproc=yes
40486 echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40489 ac_header_preproc=no
40492 rm -f conftest.err conftest.$ac_ext
40493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40494 echo "${ECHO_T}$ac_header_preproc" >&6; }
40496 # So? What about this header?
40497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40503 ac_header_preproc=yes
40506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40524 echo $ECHO_N "(cached) $ECHO_C" >&6
40526 eval "$as_ac_Header=\$ac_header_preproc"
40528 ac_res=`eval echo '${'$as_ac_Header'}'`
40529 { echo "$as_me:$LINENO: result: $ac_res" >&5
40530 echo "${ECHO_T}$ac_res" >&6; }
40533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40534 cat >>confdefs.h <<_ACEOF
40535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40542 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40543 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40544 if test "${ac_cv_lib_z_deflate+set}" = set; then
40545 echo $ECHO_N "(cached) $ECHO_C" >&6
40547 ac_check_lib_save_LIBS=$LIBS
40549 cat >conftest.$ac_ext <<_ACEOF
40552 cat confdefs.h >>conftest.$ac_ext
40553 cat >>conftest.$ac_ext <<_ACEOF
40554 /* end confdefs.h. */
40556 /* Override any GCC internal prototype to avoid an error.
40557 Use char because int might match the return type of a GCC
40558 builtin and then its argument prototype would still apply. */
40571 rm -f conftest.$ac_objext conftest$ac_exeext
40572 if { (ac_try="$ac_link"
40573 case "(($ac_try" in
40574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40575 *) ac_try_echo=$ac_try;;
40577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40578 (eval "$ac_link") 2>conftest.er1
40580 grep -v '^ *+' conftest.er1 >conftest.err
40582 cat conftest.err >&5
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); } && {
40585 test -z "$ac_c_werror_flag" ||
40586 test ! -s conftest.err
40587 } && test -s conftest$ac_exeext &&
40588 $as_test_x conftest$ac_exeext; then
40589 ac_cv_lib_z_deflate=yes
40591 echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40594 ac_cv_lib_z_deflate=no
40597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40598 conftest$ac_exeext conftest.$ac_ext
40599 LIBS=$ac_check_lib_save_LIBS
40601 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40602 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40603 if test $ac_cv_lib_z_deflate = yes; then
40608 if test x$FDLIBS = x-lz; then
40609 cat >>confdefs.h <<\_ACEOF
40610 #define HAVE_LIBZ 1
40617 # Check whether --enable-acl was given.
40618 if test "${enable_acl+set}" = set; then
40619 enableval=$enable_acl;
40620 if test x$enableval = xyes; then
40622 elif test x$enableval = xno; then
40631 have_extended_acl=no
40632 if test x$support_acl = xyes -o x$support_acl = xauto; then
40633 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40634 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40635 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40636 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40637 echo $ECHO_N "(cached) $ECHO_C" >&6
40639 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40640 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40642 # Is the header compilable?
40643 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40644 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40645 cat >conftest.$ac_ext <<_ACEOF
40648 cat confdefs.h >>conftest.$ac_ext
40649 cat >>conftest.$ac_ext <<_ACEOF
40650 /* end confdefs.h. */
40651 $ac_includes_default
40652 #include <sys/acl.h>
40654 rm -f conftest.$ac_objext
40655 if { (ac_try="$ac_compile"
40656 case "(($ac_try" in
40657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40658 *) ac_try_echo=$ac_try;;
40660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40661 (eval "$ac_compile") 2>conftest.er1
40663 grep -v '^ *+' conftest.er1 >conftest.err
40665 cat conftest.err >&5
40666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40667 (exit $ac_status); } && {
40668 test -z "$ac_c_werror_flag" ||
40669 test ! -s conftest.err
40670 } && test -s conftest.$ac_objext; then
40671 ac_header_compiler=yes
40673 echo "$as_me: failed program was:" >&5
40674 sed 's/^/| /' conftest.$ac_ext >&5
40676 ac_header_compiler=no
40679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40681 echo "${ECHO_T}$ac_header_compiler" >&6; }
40683 # Is the header present?
40684 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40685 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40686 cat >conftest.$ac_ext <<_ACEOF
40689 cat confdefs.h >>conftest.$ac_ext
40690 cat >>conftest.$ac_ext <<_ACEOF
40691 /* end confdefs.h. */
40692 #include <sys/acl.h>
40694 if { (ac_try="$ac_cpp conftest.$ac_ext"
40695 case "(($ac_try" in
40696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40697 *) ac_try_echo=$ac_try;;
40699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40702 grep -v '^ *+' conftest.er1 >conftest.err
40704 cat conftest.err >&5
40705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706 (exit $ac_status); } >/dev/null && {
40707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40708 test ! -s conftest.err
40710 ac_header_preproc=yes
40712 echo "$as_me: failed program was:" >&5
40713 sed 's/^/| /' conftest.$ac_ext >&5
40715 ac_header_preproc=no
40718 rm -f conftest.err conftest.$ac_ext
40719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40720 echo "${ECHO_T}$ac_header_preproc" >&6; }
40722 # So? What about this header?
40723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40725 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40726 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40727 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40728 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40729 ac_header_preproc=yes
40732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40733 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40735 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40736 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40737 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40738 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40739 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40740 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40741 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40742 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40743 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40747 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40748 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40749 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40750 echo $ECHO_N "(cached) $ECHO_C" >&6
40752 ac_cv_header_sys_acl_h=$ac_header_preproc
40754 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40755 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40758 if test $ac_cv_header_sys_acl_h = yes; then
40760 cat >>confdefs.h <<\_ACEOF
40761 #define HAVE_SYS_ACL_H 1
40767 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40768 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40769 if test "${ac_cv_func_acl_get_file+set}" = set; then
40770 echo $ECHO_N "(cached) $ECHO_C" >&6
40772 cat >conftest.$ac_ext <<_ACEOF
40775 cat confdefs.h >>conftest.$ac_ext
40776 cat >>conftest.$ac_ext <<_ACEOF
40777 /* end confdefs.h. */
40778 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40780 #define acl_get_file innocuous_acl_get_file
40782 /* System header to define __stub macros and hopefully few prototypes,
40783 which can conflict with char acl_get_file (); below.
40784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40785 <limits.h> exists even on freestanding compilers. */
40788 # include <limits.h>
40790 # include <assert.h>
40793 #undef acl_get_file
40795 /* Override any GCC internal prototype to avoid an error.
40796 Use char because int might match the return type of a GCC
40797 builtin and then its argument prototype would still apply. */
40801 char acl_get_file ();
40802 /* The GNU C library defines this for functions which it implements
40803 to always fail with ENOSYS. Some functions are actually named
40804 something starting with __ and the normal name is an alias. */
40805 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40812 return acl_get_file ();
40817 rm -f conftest.$ac_objext conftest$ac_exeext
40818 if { (ac_try="$ac_link"
40819 case "(($ac_try" in
40820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40821 *) ac_try_echo=$ac_try;;
40823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40824 (eval "$ac_link") 2>conftest.er1
40826 grep -v '^ *+' conftest.er1 >conftest.err
40828 cat conftest.err >&5
40829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830 (exit $ac_status); } && {
40831 test -z "$ac_c_werror_flag" ||
40832 test ! -s conftest.err
40833 } && test -s conftest$ac_exeext &&
40834 $as_test_x conftest$ac_exeext; then
40835 ac_cv_func_acl_get_file=yes
40837 echo "$as_me: failed program was:" >&5
40838 sed 's/^/| /' conftest.$ac_ext >&5
40840 ac_cv_func_acl_get_file=no
40843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40844 conftest$ac_exeext conftest.$ac_ext
40846 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40847 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40848 if test $ac_cv_func_acl_get_file = yes; then
40854 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40855 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40856 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40857 echo $ECHO_N "(cached) $ECHO_C" >&6
40859 ac_check_lib_save_LIBS=$LIBS
40861 cat >conftest.$ac_ext <<_ACEOF
40864 cat confdefs.h >>conftest.$ac_ext
40865 cat >>conftest.$ac_ext <<_ACEOF
40866 /* end confdefs.h. */
40868 /* Override any GCC internal prototype to avoid an error.
40869 Use char because int might match the return type of a GCC
40870 builtin and then its argument prototype would still apply. */
40874 char acl_get_file ();
40878 return acl_get_file ();
40883 rm -f conftest.$ac_objext conftest$ac_exeext
40884 if { (ac_try="$ac_link"
40885 case "(($ac_try" in
40886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40887 *) ac_try_echo=$ac_try;;
40889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40890 (eval "$ac_link") 2>conftest.er1
40892 grep -v '^ *+' conftest.er1 >conftest.err
40894 cat conftest.err >&5
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); } && {
40897 test -z "$ac_c_werror_flag" ||
40898 test ! -s conftest.err
40899 } && test -s conftest$ac_exeext &&
40900 $as_test_x conftest$ac_exeext; then
40901 ac_cv_lib_acl_acl_get_file=yes
40903 echo "$as_me: failed program was:" >&5
40904 sed 's/^/| /' conftest.$ac_ext >&5
40906 ac_cv_lib_acl_acl_get_file=no
40909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40910 conftest$ac_exeext conftest.$ac_ext
40911 LIBS=$ac_check_lib_save_LIBS
40913 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40914 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40915 if test $ac_cv_lib_acl_acl_get_file = yes; then
40918 FDLIBS="-lacl $FDLIBS"
40922 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40923 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40924 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40925 echo $ECHO_N "(cached) $ECHO_C" >&6
40927 ac_check_lib_save_LIBS=$LIBS
40928 LIBS="-lpacl $LIBS"
40929 cat >conftest.$ac_ext <<_ACEOF
40932 cat confdefs.h >>conftest.$ac_ext
40933 cat >>conftest.$ac_ext <<_ACEOF
40934 /* end confdefs.h. */
40936 /* Override any GCC internal prototype to avoid an error.
40937 Use char because int might match the return type of a GCC
40938 builtin and then its argument prototype would still apply. */
40942 char acl_get_file ();
40946 return acl_get_file ();
40951 rm -f conftest.$ac_objext conftest$ac_exeext
40952 if { (ac_try="$ac_link"
40953 case "(($ac_try" in
40954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40955 *) ac_try_echo=$ac_try;;
40957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40958 (eval "$ac_link") 2>conftest.er1
40960 grep -v '^ *+' conftest.er1 >conftest.err
40962 cat conftest.err >&5
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } && {
40965 test -z "$ac_c_werror_flag" ||
40966 test ! -s conftest.err
40967 } && test -s conftest$ac_exeext &&
40968 $as_test_x conftest$ac_exeext; then
40969 ac_cv_lib_pacl_acl_get_file=yes
40971 echo "$as_me: failed program was:" >&5
40972 sed 's/^/| /' conftest.$ac_ext >&5
40974 ac_cv_lib_pacl_acl_get_file=no
40977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40978 conftest$ac_exeext conftest.$ac_ext
40979 LIBS=$ac_check_lib_save_LIBS
40981 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40982 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40983 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40986 FDLIBS="-lpacl $FDLIBS"
40990 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40991 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40992 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40993 echo $ECHO_N "(cached) $ECHO_C" >&6
40995 ac_check_lib_save_LIBS=$LIBS
40997 cat >conftest.$ac_ext <<_ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h. */
41004 /* Override any GCC internal prototype to avoid an error.
41005 Use char because int might match the return type of a GCC
41006 builtin and then its argument prototype would still apply. */
41014 return acltotext ();
41019 rm -f conftest.$ac_objext conftest$ac_exeext
41020 if { (ac_try="$ac_link"
41021 case "(($ac_try" in
41022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023 *) ac_try_echo=$ac_try;;
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026 (eval "$ac_link") 2>conftest.er1
41028 grep -v '^ *+' conftest.er1 >conftest.err
41030 cat conftest.err >&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } && {
41033 test -z "$ac_c_werror_flag" ||
41034 test ! -s conftest.err
41035 } && test -s conftest$ac_exeext &&
41036 $as_test_x conftest$ac_exeext; then
41037 ac_cv_lib_sec_acltotext=yes
41039 echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41042 ac_cv_lib_sec_acltotext=no
41045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41046 conftest$ac_exeext conftest.$ac_ext
41047 LIBS=$ac_check_lib_save_LIBS
41049 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41050 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41051 if test $ac_cv_lib_sec_acltotext = yes; then
41054 FDLIBS="-lsec $FDLIBS"
41056 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41057 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41058 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41059 echo $ECHO_N "(cached) $ECHO_C" >&6
41061 ac_check_lib_save_LIBS=$LIBS
41063 cat >conftest.$ac_ext <<_ACEOF
41066 cat confdefs.h >>conftest.$ac_ext
41067 cat >>conftest.$ac_ext <<_ACEOF
41068 /* end confdefs.h. */
41070 /* Override any GCC internal prototype to avoid an error.
41071 Use char because int might match the return type of a GCC
41072 builtin and then its argument prototype would still apply. */
41076 char acl_totext ();
41080 return acl_totext ();
41085 rm -f conftest.$ac_objext conftest$ac_exeext
41086 if { (ac_try="$ac_link"
41087 case "(($ac_try" in
41088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41089 *) ac_try_echo=$ac_try;;
41091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41092 (eval "$ac_link") 2>conftest.er1
41094 grep -v '^ *+' conftest.er1 >conftest.err
41096 cat conftest.err >&5
41097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); } && {
41099 test -z "$ac_c_werror_flag" ||
41100 test ! -s conftest.err
41101 } && test -s conftest$ac_exeext &&
41102 $as_test_x conftest$ac_exeext; then
41103 ac_cv_lib_sec_acl_totext=yes
41105 echo "$as_me: failed program was:" >&5
41106 sed 's/^/| /' conftest.$ac_ext >&5
41108 ac_cv_lib_sec_acl_totext=no
41111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41112 conftest$ac_exeext conftest.$ac_ext
41113 LIBS=$ac_check_lib_save_LIBS
41115 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41116 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41117 if test $ac_cv_lib_sec_acl_totext = yes; then
41119 have_extended_acl=yes
41141 if test x$support_acl = xyes -a $have_acl != yes; then
41142 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41143 please either load the acl libraries or rerun configure without --enable-acl" >&5
41144 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41145 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41146 { (exit 1); exit 1; }; }
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 1
41167 # Check whether --enable-xattr was given.
41168 if test "${enable_xattr+set}" = set; then
41169 enableval=$enable_xattr;
41170 if test x$enableval = xyes; then
41172 elif test x$enableval = xno; then
41181 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41182 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41183 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41184 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41185 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41186 echo $ECHO_N "(cached) $ECHO_C" >&6
41188 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41189 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41191 # Is the header compilable?
41192 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41193 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41194 cat >conftest.$ac_ext <<_ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h. */
41200 $ac_includes_default
41201 #include <sys/extattr.h>
41203 rm -f conftest.$ac_objext
41204 if { (ac_try="$ac_compile"
41205 case "(($ac_try" in
41206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41207 *) ac_try_echo=$ac_try;;
41209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41210 (eval "$ac_compile") 2>conftest.er1
41212 grep -v '^ *+' conftest.er1 >conftest.err
41214 cat conftest.err >&5
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); } && {
41217 test -z "$ac_c_werror_flag" ||
41218 test ! -s conftest.err
41219 } && test -s conftest.$ac_objext; then
41220 ac_header_compiler=yes
41222 echo "$as_me: failed program was:" >&5
41223 sed 's/^/| /' conftest.$ac_ext >&5
41225 ac_header_compiler=no
41228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41230 echo "${ECHO_T}$ac_header_compiler" >&6; }
41232 # Is the header present?
41233 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41234 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41235 cat >conftest.$ac_ext <<_ACEOF
41238 cat confdefs.h >>conftest.$ac_ext
41239 cat >>conftest.$ac_ext <<_ACEOF
41240 /* end confdefs.h. */
41241 #include <sys/extattr.h>
41243 if { (ac_try="$ac_cpp conftest.$ac_ext"
41244 case "(($ac_try" in
41245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41246 *) ac_try_echo=$ac_try;;
41248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41251 grep -v '^ *+' conftest.er1 >conftest.err
41253 cat conftest.err >&5
41254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255 (exit $ac_status); } >/dev/null && {
41256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41257 test ! -s conftest.err
41259 ac_header_preproc=yes
41261 echo "$as_me: failed program was:" >&5
41262 sed 's/^/| /' conftest.$ac_ext >&5
41264 ac_header_preproc=no
41267 rm -f conftest.err conftest.$ac_ext
41268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41269 echo "${ECHO_T}$ac_header_preproc" >&6; }
41271 # So? What about this header?
41272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41274 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41275 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41276 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41277 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41278 ac_header_preproc=yes
41281 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41282 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41283 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41284 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41285 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41286 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41287 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41288 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41289 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41290 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41291 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41292 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41296 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41297 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41298 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41299 echo $ECHO_N "(cached) $ECHO_C" >&6
41301 ac_cv_header_sys_extattr_h=$ac_header_preproc
41303 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41304 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41307 if test $ac_cv_header_sys_extattr_h = yes; then
41309 cat >>confdefs.h <<\_ACEOF
41310 #define HAVE_SYS_EXTATTR_H 1
41316 if test "${ac_cv_header_libutil_h+set}" = set; then
41317 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41318 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41319 if test "${ac_cv_header_libutil_h+set}" = set; then
41320 echo $ECHO_N "(cached) $ECHO_C" >&6
41322 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41323 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41325 # Is the header compilable?
41326 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41327 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41328 cat >conftest.$ac_ext <<_ACEOF
41331 cat confdefs.h >>conftest.$ac_ext
41332 cat >>conftest.$ac_ext <<_ACEOF
41333 /* end confdefs.h. */
41334 $ac_includes_default
41335 #include <libutil.h>
41337 rm -f conftest.$ac_objext
41338 if { (ac_try="$ac_compile"
41339 case "(($ac_try" in
41340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41341 *) ac_try_echo=$ac_try;;
41343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41344 (eval "$ac_compile") 2>conftest.er1
41346 grep -v '^ *+' conftest.er1 >conftest.err
41348 cat conftest.err >&5
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); } && {
41351 test -z "$ac_c_werror_flag" ||
41352 test ! -s conftest.err
41353 } && test -s conftest.$ac_objext; then
41354 ac_header_compiler=yes
41356 echo "$as_me: failed program was:" >&5
41357 sed 's/^/| /' conftest.$ac_ext >&5
41359 ac_header_compiler=no
41362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41364 echo "${ECHO_T}$ac_header_compiler" >&6; }
41366 # Is the header present?
41367 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41368 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41369 cat >conftest.$ac_ext <<_ACEOF
41372 cat confdefs.h >>conftest.$ac_ext
41373 cat >>conftest.$ac_ext <<_ACEOF
41374 /* end confdefs.h. */
41375 #include <libutil.h>
41377 if { (ac_try="$ac_cpp conftest.$ac_ext"
41378 case "(($ac_try" in
41379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41380 *) ac_try_echo=$ac_try;;
41382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41385 grep -v '^ *+' conftest.er1 >conftest.err
41387 cat conftest.err >&5
41388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41389 (exit $ac_status); } >/dev/null && {
41390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41391 test ! -s conftest.err
41393 ac_header_preproc=yes
41395 echo "$as_me: failed program was:" >&5
41396 sed 's/^/| /' conftest.$ac_ext >&5
41398 ac_header_preproc=no
41401 rm -f conftest.err conftest.$ac_ext
41402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41403 echo "${ECHO_T}$ac_header_preproc" >&6; }
41405 # So? What about this header?
41406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41408 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41409 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41410 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41411 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41412 ac_header_preproc=yes
41415 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41416 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41417 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41418 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41419 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41420 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41421 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41422 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41423 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41424 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41425 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41426 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41430 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41431 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41432 if test "${ac_cv_header_libutil_h+set}" = set; then
41433 echo $ECHO_N "(cached) $ECHO_C" >&6
41435 ac_cv_header_libutil_h=$ac_header_preproc
41437 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41438 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41441 if test $ac_cv_header_libutil_h = yes; then
41443 cat >>confdefs.h <<\_ACEOF
41444 #define HAVE_LIBUTIL_H 1
41453 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41459 echo $ECHO_N "(cached) $ECHO_C" >&6
41461 cat >conftest.$ac_ext <<_ACEOF
41464 cat confdefs.h >>conftest.$ac_ext
41465 cat >>conftest.$ac_ext <<_ACEOF
41466 /* end confdefs.h. */
41467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41469 #define $ac_func innocuous_$ac_func
41471 /* System header to define __stub macros and hopefully few prototypes,
41472 which can conflict with char $ac_func (); below.
41473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41474 <limits.h> exists even on freestanding compilers. */
41477 # include <limits.h>
41479 # include <assert.h>
41484 /* Override any GCC internal prototype to avoid an error.
41485 Use char because int might match the return type of a GCC
41486 builtin and then its argument prototype would still apply. */
41491 /* The GNU C library defines this for functions which it implements
41492 to always fail with ENOSYS. Some functions are actually named
41493 something starting with __ and the normal name is an alias. */
41494 #if defined __stub_$ac_func || defined __stub___$ac_func
41501 return $ac_func ();
41506 rm -f conftest.$ac_objext conftest$ac_exeext
41507 if { (ac_try="$ac_link"
41508 case "(($ac_try" in
41509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41510 *) ac_try_echo=$ac_try;;
41512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41513 (eval "$ac_link") 2>conftest.er1
41515 grep -v '^ *+' conftest.er1 >conftest.err
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } && {
41520 test -z "$ac_c_werror_flag" ||
41521 test ! -s conftest.err
41522 } && test -s conftest$ac_exeext &&
41523 $as_test_x conftest$ac_exeext; then
41524 eval "$as_ac_var=yes"
41526 echo "$as_me: failed program was:" >&5
41527 sed 's/^/| /' conftest.$ac_ext >&5
41529 eval "$as_ac_var=no"
41532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41533 conftest$ac_exeext conftest.$ac_ext
41535 ac_res=`eval echo '${'$as_ac_var'}'`
41536 { echo "$as_me:$LINENO: result: $ac_res" >&5
41537 echo "${ECHO_T}$ac_res" >&6; }
41538 if test `eval echo '${'$as_ac_var'}'` = yes; then
41539 cat >>confdefs.h <<_ACEOF
41540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41545 cat >>confdefs.h <<\_ACEOF
41546 #define HAVE_EXTATTR_GET_LINK 1
41550 cat >>confdefs.h <<\_ACEOF
41551 #define HAVE_EXTATTR_SET_LINK 1
41555 cat >>confdefs.h <<\_ACEOF
41556 #define HAVE_EXTATTR_LIST_LINK 1
41565 if test $have_xattr = no; then
41569 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41575 echo $ECHO_N "(cached) $ECHO_C" >&6
41577 cat >conftest.$ac_ext <<_ACEOF
41580 cat confdefs.h >>conftest.$ac_ext
41581 cat >>conftest.$ac_ext <<_ACEOF
41582 /* end confdefs.h. */
41583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41585 #define $ac_func innocuous_$ac_func
41587 /* System header to define __stub macros and hopefully few prototypes,
41588 which can conflict with char $ac_func (); below.
41589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41590 <limits.h> exists even on freestanding compilers. */
41593 # include <limits.h>
41595 # include <assert.h>
41600 /* Override any GCC internal prototype to avoid an error.
41601 Use char because int might match the return type of a GCC
41602 builtin and then its argument prototype would still apply. */
41607 /* The GNU C library defines this for functions which it implements
41608 to always fail with ENOSYS. Some functions are actually named
41609 something starting with __ and the normal name is an alias. */
41610 #if defined __stub_$ac_func || defined __stub___$ac_func
41617 return $ac_func ();
41622 rm -f conftest.$ac_objext conftest$ac_exeext
41623 if { (ac_try="$ac_link"
41624 case "(($ac_try" in
41625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41626 *) ac_try_echo=$ac_try;;
41628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41629 (eval "$ac_link") 2>conftest.er1
41631 grep -v '^ *+' conftest.er1 >conftest.err
41633 cat conftest.err >&5
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); } && {
41636 test -z "$ac_c_werror_flag" ||
41637 test ! -s conftest.err
41638 } && test -s conftest$ac_exeext &&
41639 $as_test_x conftest$ac_exeext; then
41640 eval "$as_ac_var=yes"
41642 echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41645 eval "$as_ac_var=no"
41648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41649 conftest$ac_exeext conftest.$ac_ext
41651 ac_res=`eval echo '${'$as_ac_var'}'`
41652 { echo "$as_me:$LINENO: result: $ac_res" >&5
41653 echo "${ECHO_T}$ac_res" >&6; }
41654 if test `eval echo '${'$as_ac_var'}'` = yes; then
41655 cat >>confdefs.h <<_ACEOF
41656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41661 cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_EXTATTR_GET_FILE 1
41666 cat >>confdefs.h <<\_ACEOF
41667 #define HAVE_EXTATTR_SET_FILE 1
41671 cat >>confdefs.h <<\_ACEOF
41672 #define HAVE_EXTATTR_LIST_FILE 1
41682 if test $have_xattr = yes; then
41683 have_extattr_string_in_libc=no
41686 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41692 echo $ECHO_N "(cached) $ECHO_C" >&6
41694 cat >conftest.$ac_ext <<_ACEOF
41697 cat confdefs.h >>conftest.$ac_ext
41698 cat >>conftest.$ac_ext <<_ACEOF
41699 /* end confdefs.h. */
41700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41702 #define $ac_func innocuous_$ac_func
41704 /* System header to define __stub macros and hopefully few prototypes,
41705 which can conflict with char $ac_func (); below.
41706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41707 <limits.h> exists even on freestanding compilers. */
41710 # include <limits.h>
41712 # include <assert.h>
41717 /* Override any GCC internal prototype to avoid an error.
41718 Use char because int might match the return type of a GCC
41719 builtin and then its argument prototype would still apply. */
41724 /* The GNU C library defines this for functions which it implements
41725 to always fail with ENOSYS. Some functions are actually named
41726 something starting with __ and the normal name is an alias. */
41727 #if defined __stub_$ac_func || defined __stub___$ac_func
41734 return $ac_func ();
41739 rm -f conftest.$ac_objext conftest$ac_exeext
41740 if { (ac_try="$ac_link"
41741 case "(($ac_try" in
41742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41743 *) ac_try_echo=$ac_try;;
41745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41746 (eval "$ac_link") 2>conftest.er1
41748 grep -v '^ *+' conftest.er1 >conftest.err
41750 cat conftest.err >&5
41751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752 (exit $ac_status); } && {
41753 test -z "$ac_c_werror_flag" ||
41754 test ! -s conftest.err
41755 } && test -s conftest$ac_exeext &&
41756 $as_test_x conftest$ac_exeext; then
41757 eval "$as_ac_var=yes"
41759 echo "$as_me: failed program was:" >&5
41760 sed 's/^/| /' conftest.$ac_ext >&5
41762 eval "$as_ac_var=no"
41765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41766 conftest$ac_exeext conftest.$ac_ext
41768 ac_res=`eval echo '${'$as_ac_var'}'`
41769 { echo "$as_me:$LINENO: result: $ac_res" >&5
41770 echo "${ECHO_T}$ac_res" >&6; }
41771 if test `eval echo '${'$as_ac_var'}'` = yes; then
41772 cat >>confdefs.h <<_ACEOF
41773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41776 have_extattr_string_in_libc=yes
41778 cat >>confdefs.h <<\_ACEOF
41779 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41783 cat >>confdefs.h <<\_ACEOF
41784 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41793 if test $have_extattr_string_in_libc = no; then
41794 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41795 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41796 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41797 echo $ECHO_N "(cached) $ECHO_C" >&6
41799 ac_check_lib_save_LIBS=$LIBS
41800 LIBS="-lutil $LIBS"
41801 cat >conftest.$ac_ext <<_ACEOF
41804 cat confdefs.h >>conftest.$ac_ext
41805 cat >>conftest.$ac_ext <<_ACEOF
41806 /* end confdefs.h. */
41808 /* Override any GCC internal prototype to avoid an error.
41809 Use char because int might match the return type of a GCC
41810 builtin and then its argument prototype would still apply. */
41814 char extattr_namespace_to_string extattr_string_to_namespace ();
41818 return extattr_namespace_to_string extattr_string_to_namespace ();
41823 rm -f conftest.$ac_objext conftest$ac_exeext
41824 if { (ac_try="$ac_link"
41825 case "(($ac_try" in
41826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827 *) ac_try_echo=$ac_try;;
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830 (eval "$ac_link") 2>conftest.er1
41832 grep -v '^ *+' conftest.er1 >conftest.err
41834 cat conftest.err >&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); } && {
41837 test -z "$ac_c_werror_flag" ||
41838 test ! -s conftest.err
41839 } && test -s conftest$ac_exeext &&
41840 $as_test_x conftest$ac_exeext; then
41841 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41843 echo "$as_me: failed program was:" >&5
41844 sed 's/^/| /' conftest.$ac_ext >&5
41846 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41850 conftest$ac_exeext conftest.$ac_ext
41851 LIBS=$ac_check_lib_save_LIBS
41853 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41854 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41855 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41858 cat >>confdefs.h <<\_ACEOF
41859 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41863 cat >>confdefs.h <<\_ACEOF
41864 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41867 FDLIBS="-lutil $FDLIBS"
41875 if test $have_xattr = no; then
41876 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41877 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41878 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41879 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41880 echo $ECHO_N "(cached) $ECHO_C" >&6
41882 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41883 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41885 # Is the header compilable?
41886 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41887 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41888 cat >conftest.$ac_ext <<_ACEOF
41891 cat confdefs.h >>conftest.$ac_ext
41892 cat >>conftest.$ac_ext <<_ACEOF
41893 /* end confdefs.h. */
41894 $ac_includes_default
41895 #include <sys/xattr.h>
41897 rm -f conftest.$ac_objext
41898 if { (ac_try="$ac_compile"
41899 case "(($ac_try" in
41900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41901 *) ac_try_echo=$ac_try;;
41903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41904 (eval "$ac_compile") 2>conftest.er1
41906 grep -v '^ *+' conftest.er1 >conftest.err
41908 cat conftest.err >&5
41909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); } && {
41911 test -z "$ac_c_werror_flag" ||
41912 test ! -s conftest.err
41913 } && test -s conftest.$ac_objext; then
41914 ac_header_compiler=yes
41916 echo "$as_me: failed program was:" >&5
41917 sed 's/^/| /' conftest.$ac_ext >&5
41919 ac_header_compiler=no
41922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41924 echo "${ECHO_T}$ac_header_compiler" >&6; }
41926 # Is the header present?
41927 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41928 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41929 cat >conftest.$ac_ext <<_ACEOF
41932 cat confdefs.h >>conftest.$ac_ext
41933 cat >>conftest.$ac_ext <<_ACEOF
41934 /* end confdefs.h. */
41935 #include <sys/xattr.h>
41937 if { (ac_try="$ac_cpp conftest.$ac_ext"
41938 case "(($ac_try" in
41939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41940 *) ac_try_echo=$ac_try;;
41942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41945 grep -v '^ *+' conftest.er1 >conftest.err
41947 cat conftest.err >&5
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); } >/dev/null && {
41950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41951 test ! -s conftest.err
41953 ac_header_preproc=yes
41955 echo "$as_me: failed program was:" >&5
41956 sed 's/^/| /' conftest.$ac_ext >&5
41958 ac_header_preproc=no
41961 rm -f conftest.err conftest.$ac_ext
41962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41963 echo "${ECHO_T}$ac_header_preproc" >&6; }
41965 # So? What about this header?
41966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41968 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41969 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41970 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41971 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41972 ac_header_preproc=yes
41975 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41976 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41977 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41978 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41979 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41980 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41981 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41982 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41983 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41984 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41985 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41986 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41990 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41991 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41992 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41993 echo $ECHO_N "(cached) $ECHO_C" >&6
41995 ac_cv_header_sys_xattr_h=$ac_header_preproc
41997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41998 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42001 if test $ac_cv_header_sys_xattr_h = yes; then
42003 cat >>confdefs.h <<\_ACEOF
42004 #define HAVE_SYS_XATTR_H 1
42013 for ac_func in llistxattr lgetxattr lsetxattr
42015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42019 echo $ECHO_N "(cached) $ECHO_C" >&6
42021 cat >conftest.$ac_ext <<_ACEOF
42024 cat confdefs.h >>conftest.$ac_ext
42025 cat >>conftest.$ac_ext <<_ACEOF
42026 /* end confdefs.h. */
42027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42029 #define $ac_func innocuous_$ac_func
42031 /* System header to define __stub macros and hopefully few prototypes,
42032 which can conflict with char $ac_func (); below.
42033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42034 <limits.h> exists even on freestanding compilers. */
42037 # include <limits.h>
42039 # include <assert.h>
42044 /* Override any GCC internal prototype to avoid an error.
42045 Use char because int might match the return type of a GCC
42046 builtin and then its argument prototype would still apply. */
42051 /* The GNU C library defines this for functions which it implements
42052 to always fail with ENOSYS. Some functions are actually named
42053 something starting with __ and the normal name is an alias. */
42054 #if defined __stub_$ac_func || defined __stub___$ac_func
42061 return $ac_func ();
42066 rm -f conftest.$ac_objext conftest$ac_exeext
42067 if { (ac_try="$ac_link"
42068 case "(($ac_try" in
42069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070 *) ac_try_echo=$ac_try;;
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073 (eval "$ac_link") 2>conftest.er1
42075 grep -v '^ *+' conftest.er1 >conftest.err
42077 cat conftest.err >&5
42078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42079 (exit $ac_status); } && {
42080 test -z "$ac_c_werror_flag" ||
42081 test ! -s conftest.err
42082 } && test -s conftest$ac_exeext &&
42083 $as_test_x conftest$ac_exeext; then
42084 eval "$as_ac_var=yes"
42086 echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42089 eval "$as_ac_var=no"
42092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42093 conftest$ac_exeext conftest.$ac_ext
42095 ac_res=`eval echo '${'$as_ac_var'}'`
42096 { echo "$as_me:$LINENO: result: $ac_res" >&5
42097 echo "${ECHO_T}$ac_res" >&6; }
42098 if test `eval echo '${'$as_ac_var'}'` = yes; then
42099 cat >>confdefs.h <<_ACEOF
42100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42105 cat >>confdefs.h <<\_ACEOF
42106 #define HAVE_LLISTXATTR 1
42110 cat >>confdefs.h <<\_ACEOF
42111 #define HAVE_LGETXATTR 1
42115 cat >>confdefs.h <<\_ACEOF
42116 #define HAVE_LSETXATTR 1
42125 if test $have_xattr = no; then
42129 for ac_func in listxattr getxattr setxattr
42131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42135 echo $ECHO_N "(cached) $ECHO_C" >&6
42137 cat >conftest.$ac_ext <<_ACEOF
42140 cat confdefs.h >>conftest.$ac_ext
42141 cat >>conftest.$ac_ext <<_ACEOF
42142 /* end confdefs.h. */
42143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42145 #define $ac_func innocuous_$ac_func
42147 /* System header to define __stub macros and hopefully few prototypes,
42148 which can conflict with char $ac_func (); below.
42149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42150 <limits.h> exists even on freestanding compilers. */
42153 # include <limits.h>
42155 # include <assert.h>
42160 /* Override any GCC internal prototype to avoid an error.
42161 Use char because int might match the return type of a GCC
42162 builtin and then its argument prototype would still apply. */
42167 /* The GNU C library defines this for functions which it implements
42168 to always fail with ENOSYS. Some functions are actually named
42169 something starting with __ and the normal name is an alias. */
42170 #if defined __stub_$ac_func || defined __stub___$ac_func
42177 return $ac_func ();
42182 rm -f conftest.$ac_objext conftest$ac_exeext
42183 if { (ac_try="$ac_link"
42184 case "(($ac_try" in
42185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42186 *) ac_try_echo=$ac_try;;
42188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42189 (eval "$ac_link") 2>conftest.er1
42191 grep -v '^ *+' conftest.er1 >conftest.err
42193 cat conftest.err >&5
42194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42195 (exit $ac_status); } && {
42196 test -z "$ac_c_werror_flag" ||
42197 test ! -s conftest.err
42198 } && test -s conftest$ac_exeext &&
42199 $as_test_x conftest$ac_exeext; then
42200 eval "$as_ac_var=yes"
42202 echo "$as_me: failed program was:" >&5
42203 sed 's/^/| /' conftest.$ac_ext >&5
42205 eval "$as_ac_var=no"
42208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42209 conftest$ac_exeext conftest.$ac_ext
42211 ac_res=`eval echo '${'$as_ac_var'}'`
42212 { echo "$as_me:$LINENO: result: $ac_res" >&5
42213 echo "${ECHO_T}$ac_res" >&6; }
42214 if test `eval echo '${'$as_ac_var'}'` = yes; then
42215 cat >>confdefs.h <<_ACEOF
42216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42221 cat >>confdefs.h <<\_ACEOF
42222 #define HAVE_LISTXATTR 1
42226 cat >>confdefs.h <<\_ACEOF
42227 #define HAVE_GETXATTR 1
42231 cat >>confdefs.h <<\_ACEOF
42232 #define HAVE_SETXATTR 1
42243 if test $have_xattr = no; then
42244 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42245 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42246 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42247 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42248 echo $ECHO_N "(cached) $ECHO_C" >&6
42250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42251 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42253 # Is the header compilable?
42254 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42255 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42256 cat >conftest.$ac_ext <<_ACEOF
42259 cat confdefs.h >>conftest.$ac_ext
42260 cat >>conftest.$ac_ext <<_ACEOF
42261 /* end confdefs.h. */
42262 $ac_includes_default
42263 #include <sys/attr.h>
42265 rm -f conftest.$ac_objext
42266 if { (ac_try="$ac_compile"
42267 case "(($ac_try" in
42268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42269 *) ac_try_echo=$ac_try;;
42271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42272 (eval "$ac_compile") 2>conftest.er1
42274 grep -v '^ *+' conftest.er1 >conftest.err
42276 cat conftest.err >&5
42277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 (exit $ac_status); } && {
42279 test -z "$ac_c_werror_flag" ||
42280 test ! -s conftest.err
42281 } && test -s conftest.$ac_objext; then
42282 ac_header_compiler=yes
42284 echo "$as_me: failed program was:" >&5
42285 sed 's/^/| /' conftest.$ac_ext >&5
42287 ac_header_compiler=no
42290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42292 echo "${ECHO_T}$ac_header_compiler" >&6; }
42294 # Is the header present?
42295 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42296 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42297 cat >conftest.$ac_ext <<_ACEOF
42300 cat confdefs.h >>conftest.$ac_ext
42301 cat >>conftest.$ac_ext <<_ACEOF
42302 /* end confdefs.h. */
42303 #include <sys/attr.h>
42305 if { (ac_try="$ac_cpp conftest.$ac_ext"
42306 case "(($ac_try" in
42307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42308 *) ac_try_echo=$ac_try;;
42310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42313 grep -v '^ *+' conftest.er1 >conftest.err
42315 cat conftest.err >&5
42316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317 (exit $ac_status); } >/dev/null && {
42318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42319 test ! -s conftest.err
42321 ac_header_preproc=yes
42323 echo "$as_me: failed program was:" >&5
42324 sed 's/^/| /' conftest.$ac_ext >&5
42326 ac_header_preproc=no
42329 rm -f conftest.err conftest.$ac_ext
42330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42331 echo "${ECHO_T}$ac_header_preproc" >&6; }
42333 # So? What about this header?
42334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42336 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42337 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42338 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42339 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42340 ac_header_preproc=yes
42343 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42344 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42345 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42346 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42347 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42348 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42349 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42350 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42351 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42352 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42353 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42354 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42358 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42359 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42360 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42361 echo $ECHO_N "(cached) $ECHO_C" >&6
42363 ac_cv_header_sys_attr_h=$ac_header_preproc
42365 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42366 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42369 if test $ac_cv_header_sys_attr_h = yes; then
42371 cat >>confdefs.h <<\_ACEOF
42372 #define HAVE_SYS_ATTR_H 1
42378 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42379 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42380 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42381 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42382 echo $ECHO_N "(cached) $ECHO_C" >&6
42384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42385 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42387 # Is the header compilable?
42388 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42389 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42390 cat >conftest.$ac_ext <<_ACEOF
42393 cat confdefs.h >>conftest.$ac_ext
42394 cat >>conftest.$ac_ext <<_ACEOF
42395 /* end confdefs.h. */
42396 $ac_includes_default
42397 #include <sys/nvpair.h>
42399 rm -f conftest.$ac_objext
42400 if { (ac_try="$ac_compile"
42401 case "(($ac_try" in
42402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42403 *) ac_try_echo=$ac_try;;
42405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42406 (eval "$ac_compile") 2>conftest.er1
42408 grep -v '^ *+' conftest.er1 >conftest.err
42410 cat conftest.err >&5
42411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412 (exit $ac_status); } && {
42413 test -z "$ac_c_werror_flag" ||
42414 test ! -s conftest.err
42415 } && test -s conftest.$ac_objext; then
42416 ac_header_compiler=yes
42418 echo "$as_me: failed program was:" >&5
42419 sed 's/^/| /' conftest.$ac_ext >&5
42421 ac_header_compiler=no
42424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42426 echo "${ECHO_T}$ac_header_compiler" >&6; }
42428 # Is the header present?
42429 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42430 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42431 cat >conftest.$ac_ext <<_ACEOF
42434 cat confdefs.h >>conftest.$ac_ext
42435 cat >>conftest.$ac_ext <<_ACEOF
42436 /* end confdefs.h. */
42437 #include <sys/nvpair.h>
42439 if { (ac_try="$ac_cpp conftest.$ac_ext"
42440 case "(($ac_try" in
42441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42442 *) ac_try_echo=$ac_try;;
42444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42447 grep -v '^ *+' conftest.er1 >conftest.err
42449 cat conftest.err >&5
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); } >/dev/null && {
42452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42453 test ! -s conftest.err
42455 ac_header_preproc=yes
42457 echo "$as_me: failed program was:" >&5
42458 sed 's/^/| /' conftest.$ac_ext >&5
42460 ac_header_preproc=no
42463 rm -f conftest.err conftest.$ac_ext
42464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42465 echo "${ECHO_T}$ac_header_preproc" >&6; }
42467 # So? What about this header?
42468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42470 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42471 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42472 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42473 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42474 ac_header_preproc=yes
42477 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42478 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42479 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42480 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42481 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42482 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42483 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42484 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42485 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42486 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42487 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42488 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42492 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42493 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42494 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42495 echo $ECHO_N "(cached) $ECHO_C" >&6
42497 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42499 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42500 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42503 if test $ac_cv_header_sys_nvpair_h = yes; then
42505 cat >>confdefs.h <<\_ACEOF
42506 #define HAVE_SYS_NVPAIR_H 1
42512 if test "${ac_cv_header_attr_h+set}" = set; then
42513 { echo "$as_me:$LINENO: checking for attr.h" >&5
42514 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42515 if test "${ac_cv_header_attr_h+set}" = set; then
42516 echo $ECHO_N "(cached) $ECHO_C" >&6
42518 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42519 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42521 # Is the header compilable?
42522 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42523 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42524 cat >conftest.$ac_ext <<_ACEOF
42527 cat confdefs.h >>conftest.$ac_ext
42528 cat >>conftest.$ac_ext <<_ACEOF
42529 /* end confdefs.h. */
42530 $ac_includes_default
42533 rm -f conftest.$ac_objext
42534 if { (ac_try="$ac_compile"
42535 case "(($ac_try" in
42536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42537 *) ac_try_echo=$ac_try;;
42539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42540 (eval "$ac_compile") 2>conftest.er1
42542 grep -v '^ *+' conftest.er1 >conftest.err
42544 cat conftest.err >&5
42545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546 (exit $ac_status); } && {
42547 test -z "$ac_c_werror_flag" ||
42548 test ! -s conftest.err
42549 } && test -s conftest.$ac_objext; then
42550 ac_header_compiler=yes
42552 echo "$as_me: failed program was:" >&5
42553 sed 's/^/| /' conftest.$ac_ext >&5
42555 ac_header_compiler=no
42558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42560 echo "${ECHO_T}$ac_header_compiler" >&6; }
42562 # Is the header present?
42563 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42564 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42565 cat >conftest.$ac_ext <<_ACEOF
42568 cat confdefs.h >>conftest.$ac_ext
42569 cat >>conftest.$ac_ext <<_ACEOF
42570 /* end confdefs.h. */
42573 if { (ac_try="$ac_cpp conftest.$ac_ext"
42574 case "(($ac_try" in
42575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42576 *) ac_try_echo=$ac_try;;
42578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42581 grep -v '^ *+' conftest.er1 >conftest.err
42583 cat conftest.err >&5
42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585 (exit $ac_status); } >/dev/null && {
42586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42587 test ! -s conftest.err
42589 ac_header_preproc=yes
42591 echo "$as_me: failed program was:" >&5
42592 sed 's/^/| /' conftest.$ac_ext >&5
42594 ac_header_preproc=no
42597 rm -f conftest.err conftest.$ac_ext
42598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42599 echo "${ECHO_T}$ac_header_preproc" >&6; }
42601 # So? What about this header?
42602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42604 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42605 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42606 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42607 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42608 ac_header_preproc=yes
42611 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42612 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42613 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42614 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42615 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42616 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42617 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42618 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42619 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42620 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42621 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42622 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42626 { echo "$as_me:$LINENO: checking for attr.h" >&5
42627 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42628 if test "${ac_cv_header_attr_h+set}" = set; then
42629 echo $ECHO_N "(cached) $ECHO_C" >&6
42631 ac_cv_header_attr_h=$ac_header_preproc
42633 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42634 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42637 if test $ac_cv_header_attr_h = yes; then
42639 cat >>confdefs.h <<\_ACEOF
42640 #define HAVE_ATTR_H 1
42652 for ac_func in openat fstatat unlinkat fchownat futimesat
42654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42658 echo $ECHO_N "(cached) $ECHO_C" >&6
42660 cat >conftest.$ac_ext <<_ACEOF
42663 cat confdefs.h >>conftest.$ac_ext
42664 cat >>conftest.$ac_ext <<_ACEOF
42665 /* end confdefs.h. */
42666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42668 #define $ac_func innocuous_$ac_func
42670 /* System header to define __stub macros and hopefully few prototypes,
42671 which can conflict with char $ac_func (); below.
42672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42673 <limits.h> exists even on freestanding compilers. */
42676 # include <limits.h>
42678 # include <assert.h>
42683 /* Override any GCC internal prototype to avoid an error.
42684 Use char because int might match the return type of a GCC
42685 builtin and then its argument prototype would still apply. */
42690 /* The GNU C library defines this for functions which it implements
42691 to always fail with ENOSYS. Some functions are actually named
42692 something starting with __ and the normal name is an alias. */
42693 #if defined __stub_$ac_func || defined __stub___$ac_func
42700 return $ac_func ();
42705 rm -f conftest.$ac_objext conftest$ac_exeext
42706 if { (ac_try="$ac_link"
42707 case "(($ac_try" in
42708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42709 *) ac_try_echo=$ac_try;;
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712 (eval "$ac_link") 2>conftest.er1
42714 grep -v '^ *+' conftest.er1 >conftest.err
42716 cat conftest.err >&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); } && {
42719 test -z "$ac_c_werror_flag" ||
42720 test ! -s conftest.err
42721 } && test -s conftest$ac_exeext &&
42722 $as_test_x conftest$ac_exeext; then
42723 eval "$as_ac_var=yes"
42725 echo "$as_me: failed program was:" >&5
42726 sed 's/^/| /' conftest.$ac_ext >&5
42728 eval "$as_ac_var=no"
42731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42732 conftest$ac_exeext conftest.$ac_ext
42734 ac_res=`eval echo '${'$as_ac_var'}'`
42735 { echo "$as_me:$LINENO: result: $ac_res" >&5
42736 echo "${ECHO_T}$ac_res" >&6; }
42737 if test `eval echo '${'$as_ac_var'}'` = yes; then
42738 cat >>confdefs.h <<_ACEOF
42739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42744 cat >>confdefs.h <<\_ACEOF
42745 #define HAVE_OPENAT 1
42749 cat >>confdefs.h <<\_ACEOF
42750 #define HAVE_FSTATAT 1
42754 cat >>confdefs.h <<\_ACEOF
42755 #define HAVE_UNLINKAT 1
42759 cat >>confdefs.h <<\_ACEOF
42760 #define HAVE_FCHOWNAT 1
42764 cat >>confdefs.h <<\_ACEOF
42765 #define HAVE_FUTIMESAT 1
42774 if test $have_xattr = yes; then
42775 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42776 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42777 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42778 echo $ECHO_N "(cached) $ECHO_C" >&6
42780 ac_check_lib_save_LIBS=$LIBS
42781 LIBS="-lnvpair $LIBS"
42782 cat >conftest.$ac_ext <<_ACEOF
42785 cat confdefs.h >>conftest.$ac_ext
42786 cat >>conftest.$ac_ext <<_ACEOF
42787 /* end confdefs.h. */
42789 /* Override any GCC internal prototype to avoid an error.
42790 Use char because int might match the return type of a GCC
42791 builtin and then its argument prototype would still apply. */
42795 char nvlist_next_nvpair ();
42799 return nvlist_next_nvpair ();
42804 rm -f conftest.$ac_objext conftest$ac_exeext
42805 if { (ac_try="$ac_link"
42806 case "(($ac_try" in
42807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42808 *) ac_try_echo=$ac_try;;
42810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42811 (eval "$ac_link") 2>conftest.er1
42813 grep -v '^ *+' conftest.er1 >conftest.err
42815 cat conftest.err >&5
42816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817 (exit $ac_status); } && {
42818 test -z "$ac_c_werror_flag" ||
42819 test ! -s conftest.err
42820 } && test -s conftest$ac_exeext &&
42821 $as_test_x conftest$ac_exeext; then
42822 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42824 echo "$as_me: failed program was:" >&5
42825 sed 's/^/| /' conftest.$ac_ext >&5
42827 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42831 conftest$ac_exeext conftest.$ac_ext
42832 LIBS=$ac_check_lib_save_LIBS
42834 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42835 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42836 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42839 cat >>confdefs.h <<\_ACEOF
42840 #define HAVE_NVLIST_NEXT_NVPAIR 1
42843 FDLIBS="-lnvpair $FDLIBS"
42851 if test x$support_xattr = xyes -a $have_xattr != yes; then
42852 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42853 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42854 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42855 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42856 { (exit 1); exit 1; }; }
42858 if test $have_xattr = yes; then
42860 cat >>confdefs.h <<\_ACEOF
42861 #define HAVE_XATTR 1
42869 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42870 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42871 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42872 echo $ECHO_N "(cached) $ECHO_C" >&6
42874 ac_check_lib_save_LIBS=$LIBS
42875 LIBS="-lpthread $LIBS"
42876 cat >conftest.$ac_ext <<_ACEOF
42879 cat confdefs.h >>conftest.$ac_ext
42880 cat >>conftest.$ac_ext <<_ACEOF
42881 /* end confdefs.h. */
42883 /* Override any GCC internal prototype to avoid an error.
42884 Use char because int might match the return type of a GCC
42885 builtin and then its argument prototype would still apply. */
42889 char pthread_create ();
42893 return pthread_create ();
42898 rm -f conftest.$ac_objext conftest$ac_exeext
42899 if { (ac_try="$ac_link"
42900 case "(($ac_try" in
42901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42902 *) ac_try_echo=$ac_try;;
42904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42905 (eval "$ac_link") 2>conftest.er1
42907 grep -v '^ *+' conftest.er1 >conftest.err
42909 cat conftest.err >&5
42910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911 (exit $ac_status); } && {
42912 test -z "$ac_c_werror_flag" ||
42913 test ! -s conftest.err
42914 } && test -s conftest$ac_exeext &&
42915 $as_test_x conftest$ac_exeext; then
42916 ac_cv_lib_pthread_pthread_create=yes
42918 echo "$as_me: failed program was:" >&5
42919 sed 's/^/| /' conftest.$ac_ext >&5
42921 ac_cv_lib_pthread_pthread_create=no
42924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42925 conftest$ac_exeext conftest.$ac_ext
42926 LIBS=$ac_check_lib_save_LIBS
42928 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42929 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42930 if test $ac_cv_lib_pthread_pthread_create = yes; then
42931 PTHREAD_LIB="-lpthread"
42934 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42935 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42936 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42937 echo $ECHO_N "(cached) $ECHO_C" >&6
42939 ac_check_lib_save_LIBS=$LIBS
42940 LIBS="-lpthreads $LIBS"
42941 cat >conftest.$ac_ext <<_ACEOF
42944 cat confdefs.h >>conftest.$ac_ext
42945 cat >>conftest.$ac_ext <<_ACEOF
42946 /* end confdefs.h. */
42948 /* Override any GCC internal prototype to avoid an error.
42949 Use char because int might match the return type of a GCC
42950 builtin and then its argument prototype would still apply. */
42954 char pthread_create ();
42958 return pthread_create ();
42963 rm -f conftest.$ac_objext conftest$ac_exeext
42964 if { (ac_try="$ac_link"
42965 case "(($ac_try" in
42966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42967 *) ac_try_echo=$ac_try;;
42969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42970 (eval "$ac_link") 2>conftest.er1
42972 grep -v '^ *+' conftest.er1 >conftest.err
42974 cat conftest.err >&5
42975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42976 (exit $ac_status); } && {
42977 test -z "$ac_c_werror_flag" ||
42978 test ! -s conftest.err
42979 } && test -s conftest$ac_exeext &&
42980 $as_test_x conftest$ac_exeext; then
42981 ac_cv_lib_pthreads_pthread_create=yes
42983 echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42986 ac_cv_lib_pthreads_pthread_create=no
42989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42990 conftest$ac_exeext conftest.$ac_ext
42991 LIBS=$ac_check_lib_save_LIBS
42993 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42994 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42995 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42996 PTHREAD_LIB="-lpthreads"
42999 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43000 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43001 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43002 echo $ECHO_N "(cached) $ECHO_C" >&6
43004 ac_check_lib_save_LIBS=$LIBS
43006 cat >conftest.$ac_ext <<_ACEOF
43009 cat confdefs.h >>conftest.$ac_ext
43010 cat >>conftest.$ac_ext <<_ACEOF
43011 /* end confdefs.h. */
43013 /* Override any GCC internal prototype to avoid an error.
43014 Use char because int might match the return type of a GCC
43015 builtin and then its argument prototype would still apply. */
43019 char pthread_create ();
43023 return pthread_create ();
43028 rm -f conftest.$ac_objext conftest$ac_exeext
43029 if { (ac_try="$ac_link"
43030 case "(($ac_try" in
43031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43032 *) ac_try_echo=$ac_try;;
43034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43035 (eval "$ac_link") 2>conftest.er1
43037 grep -v '^ *+' conftest.er1 >conftest.err
43039 cat conftest.err >&5
43040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); } && {
43042 test -z "$ac_c_werror_flag" ||
43043 test ! -s conftest.err
43044 } && test -s conftest$ac_exeext &&
43045 $as_test_x conftest$ac_exeext; then
43046 ac_cv_lib_c_r_pthread_create=yes
43048 echo "$as_me: failed program was:" >&5
43049 sed 's/^/| /' conftest.$ac_ext >&5
43051 ac_cv_lib_c_r_pthread_create=no
43054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43055 conftest$ac_exeext conftest.$ac_ext
43056 LIBS=$ac_check_lib_save_LIBS
43058 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43059 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43060 if test $ac_cv_lib_c_r_pthread_create = yes; then
43061 PTHREAD_LIB="-lc_r"
43064 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43065 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43066 if test "${ac_cv_func_pthread_create+set}" = set; then
43067 echo $ECHO_N "(cached) $ECHO_C" >&6
43069 cat >conftest.$ac_ext <<_ACEOF
43072 cat confdefs.h >>conftest.$ac_ext
43073 cat >>conftest.$ac_ext <<_ACEOF
43074 /* end confdefs.h. */
43075 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43077 #define pthread_create innocuous_pthread_create
43079 /* System header to define __stub macros and hopefully few prototypes,
43080 which can conflict with char pthread_create (); below.
43081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43082 <limits.h> exists even on freestanding compilers. */
43085 # include <limits.h>
43087 # include <assert.h>
43090 #undef pthread_create
43092 /* Override any GCC internal prototype to avoid an error.
43093 Use char because int might match the return type of a GCC
43094 builtin and then its argument prototype would still apply. */
43098 char pthread_create ();
43099 /* The GNU C library defines this for functions which it implements
43100 to always fail with ENOSYS. Some functions are actually named
43101 something starting with __ and the normal name is an alias. */
43102 #if defined __stub_pthread_create || defined __stub___pthread_create
43109 return pthread_create ();
43114 rm -f conftest.$ac_objext conftest$ac_exeext
43115 if { (ac_try="$ac_link"
43116 case "(($ac_try" in
43117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43118 *) ac_try_echo=$ac_try;;
43120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43121 (eval "$ac_link") 2>conftest.er1
43123 grep -v '^ *+' conftest.er1 >conftest.err
43125 cat conftest.err >&5
43126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43127 (exit $ac_status); } && {
43128 test -z "$ac_c_werror_flag" ||
43129 test ! -s conftest.err
43130 } && test -s conftest$ac_exeext &&
43131 $as_test_x conftest$ac_exeext; then
43132 ac_cv_func_pthread_create=yes
43134 echo "$as_me: failed program was:" >&5
43135 sed 's/^/| /' conftest.$ac_ext >&5
43137 ac_cv_func_pthread_create=no
43140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43141 conftest$ac_exeext conftest.$ac_ext
43143 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43144 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43161 for ac_header in sys/prctl.h sys/capability.h
43163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43168 echo $ECHO_N "(cached) $ECHO_C" >&6
43170 ac_res=`eval echo '${'$as_ac_Header'}'`
43171 { echo "$as_me:$LINENO: result: $ac_res" >&5
43172 echo "${ECHO_T}$ac_res" >&6; }
43174 # Is the header compilable?
43175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43177 cat >conftest.$ac_ext <<_ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h. */
43183 $ac_includes_default
43184 #include <$ac_header>
43186 rm -f conftest.$ac_objext
43187 if { (ac_try="$ac_compile"
43188 case "(($ac_try" in
43189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43190 *) ac_try_echo=$ac_try;;
43192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43193 (eval "$ac_compile") 2>conftest.er1
43195 grep -v '^ *+' conftest.er1 >conftest.err
43197 cat conftest.err >&5
43198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43199 (exit $ac_status); } && {
43200 test -z "$ac_c_werror_flag" ||
43201 test ! -s conftest.err
43202 } && test -s conftest.$ac_objext; then
43203 ac_header_compiler=yes
43205 echo "$as_me: failed program was:" >&5
43206 sed 's/^/| /' conftest.$ac_ext >&5
43208 ac_header_compiler=no
43211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43213 echo "${ECHO_T}$ac_header_compiler" >&6; }
43215 # Is the header present?
43216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43218 cat >conftest.$ac_ext <<_ACEOF
43221 cat confdefs.h >>conftest.$ac_ext
43222 cat >>conftest.$ac_ext <<_ACEOF
43223 /* end confdefs.h. */
43224 #include <$ac_header>
43226 if { (ac_try="$ac_cpp conftest.$ac_ext"
43227 case "(($ac_try" in
43228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43229 *) ac_try_echo=$ac_try;;
43231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43234 grep -v '^ *+' conftest.er1 >conftest.err
43236 cat conftest.err >&5
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); } >/dev/null && {
43239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43240 test ! -s conftest.err
43242 ac_header_preproc=yes
43244 echo "$as_me: failed program was:" >&5
43245 sed 's/^/| /' conftest.$ac_ext >&5
43247 ac_header_preproc=no
43250 rm -f conftest.err conftest.$ac_ext
43251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43252 echo "${ECHO_T}$ac_header_preproc" >&6; }
43254 # So? What about this header?
43255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43261 ac_header_preproc=yes
43264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43282 echo $ECHO_N "(cached) $ECHO_C" >&6
43284 eval "$as_ac_Header=\$ac_header_preproc"
43286 ac_res=`eval echo '${'$as_ac_Header'}'`
43287 { echo "$as_me:$LINENO: result: $ac_res" >&5
43288 echo "${ECHO_T}$ac_res" >&6; }
43291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43292 cat >>confdefs.h <<_ACEOF
43293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43302 for ac_func in prctl setreuid
43304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43308 echo $ECHO_N "(cached) $ECHO_C" >&6
43310 cat >conftest.$ac_ext <<_ACEOF
43313 cat confdefs.h >>conftest.$ac_ext
43314 cat >>conftest.$ac_ext <<_ACEOF
43315 /* end confdefs.h. */
43316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43318 #define $ac_func innocuous_$ac_func
43320 /* System header to define __stub macros and hopefully few prototypes,
43321 which can conflict with char $ac_func (); below.
43322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43323 <limits.h> exists even on freestanding compilers. */
43326 # include <limits.h>
43328 # include <assert.h>
43333 /* Override any GCC internal prototype to avoid an error.
43334 Use char because int might match the return type of a GCC
43335 builtin and then its argument prototype would still apply. */
43340 /* The GNU C library defines this for functions which it implements
43341 to always fail with ENOSYS. Some functions are actually named
43342 something starting with __ and the normal name is an alias. */
43343 #if defined __stub_$ac_func || defined __stub___$ac_func
43350 return $ac_func ();
43355 rm -f conftest.$ac_objext conftest$ac_exeext
43356 if { (ac_try="$ac_link"
43357 case "(($ac_try" in
43358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43359 *) ac_try_echo=$ac_try;;
43361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43362 (eval "$ac_link") 2>conftest.er1
43364 grep -v '^ *+' conftest.er1 >conftest.err
43366 cat conftest.err >&5
43367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43368 (exit $ac_status); } && {
43369 test -z "$ac_c_werror_flag" ||
43370 test ! -s conftest.err
43371 } && test -s conftest$ac_exeext &&
43372 $as_test_x conftest$ac_exeext; then
43373 eval "$as_ac_var=yes"
43375 echo "$as_me: failed program was:" >&5
43376 sed 's/^/| /' conftest.$ac_ext >&5
43378 eval "$as_ac_var=no"
43381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43382 conftest$ac_exeext conftest.$ac_ext
43384 ac_res=`eval echo '${'$as_ac_var'}'`
43385 { echo "$as_me:$LINENO: result: $ac_res" >&5
43386 echo "${ECHO_T}$ac_res" >&6; }
43387 if test `eval echo '${'$as_ac_var'}'` = yes; then
43388 cat >>confdefs.h <<_ACEOF
43389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43395 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43396 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43397 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43398 echo $ECHO_N "(cached) $ECHO_C" >&6
43400 ac_check_lib_save_LIBS=$LIBS
43402 cat >conftest.$ac_ext <<_ACEOF
43405 cat confdefs.h >>conftest.$ac_ext
43406 cat >>conftest.$ac_ext <<_ACEOF
43407 /* end confdefs.h. */
43409 /* Override any GCC internal prototype to avoid an error.
43410 Use char because int might match the return type of a GCC
43411 builtin and then its argument prototype would still apply. */
43415 char cap_set_proc ();
43419 return cap_set_proc ();
43424 rm -f conftest.$ac_objext conftest$ac_exeext
43425 if { (ac_try="$ac_link"
43426 case "(($ac_try" in
43427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43428 *) ac_try_echo=$ac_try;;
43430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43431 (eval "$ac_link") 2>conftest.er1
43433 grep -v '^ *+' conftest.er1 >conftest.err
43435 cat conftest.err >&5
43436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43437 (exit $ac_status); } && {
43438 test -z "$ac_c_werror_flag" ||
43439 test ! -s conftest.err
43440 } && test -s conftest$ac_exeext &&
43441 $as_test_x conftest$ac_exeext; then
43442 ac_cv_lib_cap_cap_set_proc=yes
43444 echo "$as_me: failed program was:" >&5
43445 sed 's/^/| /' conftest.$ac_ext >&5
43447 ac_cv_lib_cap_cap_set_proc=no
43450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43451 conftest$ac_exeext conftest.$ac_ext
43452 LIBS=$ac_check_lib_save_LIBS
43454 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43455 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43456 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43462 if test x$CAP_LIBS = x-lcap; then
43464 cat >>confdefs.h <<\_ACEOF
43465 #define HAVE_LIBCAP 1
43472 cat >>confdefs.h <<\_ACEOF
43477 CFLAGS=${CFLAGS--O}
43479 if test x$have_gcc = xyes ; then
43480 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43481 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43483 LDFLAGS=${LDFLAGS--O}
43484 DB_LIBS="${SQL_LFLAGS}"
43485 CPPFLAGS="$CPPFLAGS"
43512 PFILES="platforms/Makefile"
43517 hostname=`uname -n | cut -d '.' -f 1`
43518 if test x${hostname} = x ; then
43519 hostname="localhost"
43521 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43522 if test ! $? = 0; then
43523 hostname="localhost"
43526 case "$DISTNAME" in
43529 PSCMD="ps -e -o pid,comm"
43530 PFILES="${PFILES} \
43531 platforms/aix/Makefile"
43532 TAPEDRIVE="/dev/rmt0.1"
43536 PTHREAD_LIB="-lpthread -lexc"
43537 if test "${CC}" = "gcc" ; then
43544 TAPEDRIVE="/dev/nrmt0"
43547 DISTVER=`uname -a |awk '{print $3}'`
43548 TAPEDRIVE="/dev/nrmt0"
43549 PTHREAD_LIB="-pthread"
43550 CFLAGS="${CFLAGS} -pthread"
43551 PSCMD="ps -ax -o pid,command"
43554 PFILES="${PFILES} \
43555 platforms/bsdi/Makefile \
43556 platforms/bsdi/bacula-fd \
43557 platforms/bsdi/bacula-sd \
43558 platforms/bsdi/bacula-dir"
43559 largefile_support="yes"
43562 DISTVER=`uname -a |awk '{print $3}'`
43563 TAPEDRIVE="/dev/nrst0"
43565 WCFLAGS="-mwindows"
43566 WLDFLAGS="-mwindows"
43570 TAPEDRIVE="/dev/nst0"
43571 PSCMD="ps -e -o pid,command"
43573 PFILES="${PFILES} \
43574 platforms/darwin/Makefile"
43578 TAPEDRIVE="/dev/nst0"
43579 PSCMD="ps -e -o pid,command"
43581 PFILES="${PFILES} \
43582 platforms/osx/Makefile"
43585 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43588 DISTVER=`cat /etc/debian_version`
43589 if test -f /etc/lsb-release ; then
43591 if test "x$DISTRIB_ID" != "x" ; then
43592 DISTNAME=$DISTRIB_ID
43594 if test "x$DISTRIB_RELEASE" != "x" ; then
43595 DISTVER=$DISTRIB_RELEASE
43598 if test "$DISTNAME" = "Ubuntu" ; then
43601 TAPEDRIVE="/dev/nst0"
43602 PSCMD="ps -e -o pid,command"
43603 if test "$DISTNAME" = "ubuntu" ; then
43604 PFILES="${PFILES} \
43605 platforms/ubuntu/Makefile \
43606 platforms/ubuntu/bacula-fd \
43607 platforms/ubuntu/bacula-sd \
43608 platforms/ubuntu/bacula-dir"
43610 PFILES="${PFILES} \
43611 platforms/debian/Makefile \
43612 platforms/debian/bacula-fd \
43613 platforms/debian/bacula-sd \
43614 platforms/debian/bacula-dir"
43618 DISTVER=`uname -a |awk '{print $3}'`
43619 VER=`echo $DISTVER | cut -c 1`
43620 if test x$VER = x4 ; then
43621 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43622 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43626 TAPEDRIVE="/dev/nrsa0"
43627 PSCMD="ps -ax -o pid,command"
43628 PFILES="${PFILES} \
43629 platforms/freebsd/Makefile \
43630 platforms/freebsd/bacula-fd \
43631 platforms/freebsd/bacula-sd \
43632 platforms/freebsd/bacula-dir"
43633 largefile_support="yes"
43636 PSCMD="UNIX95=1; ps -e -o pid,comm"
43637 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43639 TAPEDRIVE="/dev/rmt/0hnb"
43640 PTHREAD_LIB="-lpthread"
43641 cat >>confdefs.h <<\_ACEOF
43642 #define _INCLUDE_LONGLONG 1
43648 TAPEDRIVE="/dev/rmt/0cbn"
43649 PSCMD="ps -e -o pid,comm"
43650 PFILES="${PFILES} \
43651 platforms/irix/Makefile \
43652 platforms/irix/bacula-fd \
43653 platforms/irix/bacula-sd \
43654 platforms/irix/bacula-dir"
43657 DISTVER=`uname -a |awk '{print $3}'`
43660 TAPEDRIVE="/dev/nrst0"
43661 PSCMD="ps -ax -o pid,command"
43662 PTHREAD_LIB="-pthread"
43663 CFLAGS="${CFLAGS} -pthread"
43666 DISTVER=`uname -a |awk '{print $3}'`
43669 TAPEDRIVE="/dev/nrst0"
43670 PSCMD="ps -ax -o pid,command"
43671 PTHREAD_LIB="-pthread"
43672 CFLAGS="${CFLAGS} -pthread"
43673 PFILES="${PFILES} \
43674 platforms/openbsd/Makefile \
43675 platforms/openbsd/bacula-fd \
43676 platforms/openbsd/bacula-sd \
43677 platforms/openbsd/bacula-dir"
43680 if test -f /etc/whitebox-release ; then
43681 f=/etc/whitebox-release
43683 f=/etc/redhat-release
43685 if test `cat $f | grep release |\
43686 cut -f 3 -d ' '`x = "Enterprise"x ; then
43687 DISTVER="Enterprise "`cat $f | grep release |\
43690 DISTVER=`cat /etc/redhat-release | grep release |\
43693 TAPEDRIVE="/dev/nst0"
43694 PSCMD="ps -e -o pid,command"
43695 PFILES="${PFILES} \
43696 platforms/redhat/Makefile \
43697 platforms/redhat/bacula-fd \
43698 platforms/redhat/bacula-sd \
43699 platforms/redhat/bacula-dir
43703 DISTVER=`cat /etc/mandrake-release | grep release |\
43705 TAPEDRIVE="/dev/nst0"
43706 PSCMD="ps -e -o pid,command"
43707 PFILES="${PFILES} \
43708 platforms/mandrake/Makefile \
43709 platforms/mandrake/bacula-fd \
43710 platforms/mandrake/bacula-sd \
43711 platforms/mandrake/bacula-dir \
43712 platforms/mandrake/bacula.spec \
43716 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43717 TAPEDRIVE="/dev/nst0"
43718 PSCMD="ps -e -o pid,command"
43719 PFILES="${PFILES} \
43720 platforms/gentoo/Makefile \
43721 platforms/gentoo/bacula-init \
43722 platforms/gentoo/bacula-fd \
43723 platforms/gentoo/bacula-sd \
43724 platforms/gentoo/bacula-dir"
43727 DISTVER=`cat /etc/slackware-version`
43728 TAPEDRIVE="/dev/nst0"
43729 PSCMD="ps -e -o pid,command"
43730 PFILES="${PFILES} \
43731 platforms/slackware/Makefile \
43732 platforms/slackware/rc.bacula-fd \
43733 platforms/slackware/rc.bacula-sd \
43734 platforms/slackware/rc.bacula-dir\
43735 platforms/slackware/functions.bacula"
43739 TAPEDRIVE="/dev/rmt/0cbn"
43740 PSCMD="ps -e -o pid,comm"
43741 PFILES="${PFILES} \
43742 platforms/solaris/Makefile \
43743 platforms/solaris/bacula-fd \
43744 platforms/solaris/bacula-sd \
43745 platforms/solaris/bacula-dir"
43746 if test x$DISTVER = x5.6 ; then
43747 cat >>confdefs.h <<\_ACEOF
43748 #define HAVE_OLD_SOCKOPT 1
43752 LIBS="$LIBS -lresolv"
43755 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43757 TAPEDRIVE="/dev/nst0"
43758 PSCMD="ps -e -o pid,command"
43759 PFILES="${PFILES} \
43760 platforms/suse/Makefile \
43761 platforms/suse/bacula-fd \
43762 platforms/suse/bacula-sd \
43763 platforms/suse/bacula-dir \
43764 platforms/suse/bacula \
43765 platforms/suse/bacula.spec"
43770 TAPEDRIVE="/dev/nst0"
43771 PSCMD="ps -e -o pid,command"
43772 PFILES="${PFILES} \
43773 platforms/suse/Makefile \
43774 platforms/suse/bacula-fd \
43775 platforms/suse/bacula-sd \
43776 platforms/suse/bacula-dir"
43780 TAPEDRIVE="/dev/nst0"
43783 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43789 LIBS="$PTHREAD_LIB $LIBS"
43791 cat >>confdefs.h <<_ACEOF
43795 cat >>confdefs.h <<_ACEOF
43806 MCOMMON=./autoconf/Make.common
43809 if test "x${subsysdir}" = "x${sbindir}" ; then
43812 echo "You have set both --sbindir and --with-subsys-dir"
43813 echo " equal to: ${subsysdir} "
43814 echo "This is not permitted. Please reconfigure."
43816 echo "Aborting configuration ..."
43822 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_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"
43824 ac_config_commands="$ac_config_commands default"
43826 cat >confcache <<\_ACEOF
43827 # This file is a shell script that caches the results of configure
43828 # tests run on this system so they can be shared between configure
43829 # scripts and configure runs, see configure's option --config-cache.
43830 # It is not useful on other systems. If it contains results you don't
43831 # want to keep, you may remove or edit it.
43833 # config.status only pays attention to the cache file if you give it
43834 # the --recheck option to rerun configure.
43836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43838 # following values.
43842 # The following way of writing the cache mishandles newlines in values,
43843 # but we know of no workaround that is simple, portable, and efficient.
43844 # So, we kill variables containing newlines.
43845 # Ultrix sh set writes to stderr and can't be redirected directly,
43846 # and sets the high bit in the cache file unless we assign to the vars.
43848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43849 eval ac_val=\$$ac_var
43853 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43854 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43857 _ | IFS | as_nl) ;; #(
43858 *) $as_unset $ac_var ;;
43864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43865 *${as_nl}ac_space=\ *)
43866 # `set' does not quote correctly, so add quotes (double-quote
43867 # substitution turns \\\\ into \\, and sed turns \\ into \).
43870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43873 # `set' quotes correctly as required by POSIX, so do not add quotes.
43874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43888 if test -w "$cache_file"; then
43889 test "x$cache_file" != "x/dev/null" &&
43890 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43891 echo "$as_me: updating cache $cache_file" >&6;}
43892 cat confcache >$cache_file
43894 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43895 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43901 # Let make expand exec_prefix.
43902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43904 DEFS=-DHAVE_CONFIG_H
43908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43909 # 1. Remove the extension, and $U if already installed.
43910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43911 ac_i=`echo "$ac_i" | sed "$ac_script"`
43912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43913 # will be set to the directory where LIBOBJS objects are built.
43914 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43915 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43917 LIBOBJS=$ac_libobjs
43919 LTLIBOBJS=$ac_ltlibobjs
43923 : ${CONFIG_STATUS=./config.status}
43924 ac_clean_files_save=$ac_clean_files
43925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43928 cat >$CONFIG_STATUS <<_ACEOF
43930 # Generated by $as_me.
43931 # Run this file to recreate the current configuration.
43932 # Compiler output produced by configure, useful for debugging
43933 # configure, is in config.log if it exists.
43936 ac_cs_recheck=false
43938 SHELL=\${CONFIG_SHELL-$SHELL}
43941 cat >>$CONFIG_STATUS <<\_ACEOF
43942 ## --------------------- ##
43943 ## M4sh Initialization. ##
43944 ## --------------------- ##
43946 # Be more Bourne compatible
43947 DUALCASE=1; export DUALCASE # for MKS sh
43948 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43951 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43952 # is contrary to our usage. Disable this feature.
43953 alias -g '${1+"$@"}'='"$@"'
43954 setopt NO_GLOB_SUBST
43956 case `(set -o) 2>/dev/null` in
43957 *posix*) set -o posix ;;
43966 # Avoid depending upon Character Ranges.
43967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43970 as_cr_digits='0123456789'
43971 as_cr_alnum=$as_cr_Letters$as_cr_digits
43973 # The user is always right.
43974 if test "${PATH_SEPARATOR+set}" != set; then
43975 echo "#! /bin/sh" >conf$$.sh
43976 echo "exit 0" >>conf$$.sh
43978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43986 # Support unset when possible.
43987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43995 # We need space, tab and new line, in precisely that order. Quoting is
43996 # there to prevent editors from complaining about space-tab.
43997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43998 # splitting by setting IFS to empty value.)
44003 # Find who we are. Look in the path if we contain no directory separator.
44005 *[\\/]* ) as_myself=$0 ;;
44006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44007 for as_dir in $PATH
44010 test -z "$as_dir" && as_dir=.
44011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44017 # We did not find ourselves, most probably we were run as `sh COMMAND'
44018 # in which case we are not to be found in the path.
44019 if test "x$as_myself" = x; then
44022 if test ! -f "$as_myself"; then
44023 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44024 { (exit 1); exit 1; }
44027 # Work around bugs in pre-3.0 UWIN ksh.
44028 for as_var in ENV MAIL MAILPATH
44029 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44039 LC_TELEPHONE LC_TIME
44041 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44042 eval $as_var=C; export $as_var
44044 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44048 # Required to use basename.
44049 if expr a : '\(a\)' >/dev/null 2>&1 &&
44050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44057 as_basename=basename
44063 # Name of the executable.
44064 as_me=`$as_basename -- "$0" ||
44065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44066 X"$0" : 'X\(//\)$' \| \
44067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44069 sed '/^.*\/\([^/][^/]*\)\/*$/{
44088 as_lineno_1=$LINENO
44089 as_lineno_2=$LINENO
44090 test "x$as_lineno_1" != "x$as_lineno_2" &&
44091 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44093 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44094 # uniformly replaced by the line number. The first 'sed' inserts a
44095 # line-number line after each line using $LINENO; the second 'sed'
44096 # does the real work. The second script uses 'N' to pair each
44097 # line-number line with the line containing $LINENO, and appends
44098 # trailing '-' during substitution so that $LINENO is not a special
44099 # case at line end.
44100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44101 # scripts with optimization help from Paolo Bonzini. Blame Lee
44102 # E. McMahon (1931-1989) for sed's syntax. :-)
44114 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44117 ' >$as_me.lineno &&
44118 chmod +x "$as_me.lineno" ||
44119 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44120 { (exit 1); exit 1; }; }
44122 # Don't try to exec as it changes $[0], causing all sort of problems
44123 # (the dirname of $[0] is not the place where we might find the
44124 # original and so on. Autoconf is especially sensitive to this).
44125 . "./$as_me.lineno"
44126 # Exit status is that of the last command.
44131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44137 ECHO_C= ECHO_N= ECHO_T=
44138 case `echo -n x` in
44140 case `echo 'x\c'` in
44141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44148 if expr a : '\(a\)' >/dev/null 2>&1 &&
44149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44155 rm -f conf$$ conf$$.exe conf$$.file
44156 if test -d conf$$.dir; then
44157 rm -f conf$$.dir/conf$$.file
44163 if ln -s conf$$.file conf$$ 2>/dev/null; then
44165 # ... but there are two gotchas:
44166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44168 # In both cases, we have to default to `cp -p'.
44169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44171 elif ln conf$$.file conf$$ 2>/dev/null; then
44176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44177 rmdir conf$$.dir 2>/dev/null
44179 if mkdir -p . 2>/dev/null; then
44182 test -d ./-p && rmdir ./-p
44186 if test -x / >/dev/null 2>&1; then
44187 as_test_x='test -x'
44189 if ls -dL / >/dev/null 2>&1; then
44196 if test -d "$1"; then
44202 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44203 ???[sx]*):;;*)false;;esac;fi
44207 as_executable_p=$as_test_x
44209 # Sed expression to map a string onto a valid CPP name.
44210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44212 # Sed expression to map a string onto a valid variable name.
44213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44218 # Save the log message, to keep $[0] and so on meaningful, and to
44219 # report actual input values of CONFIG_FILES etc. instead of their
44220 # values after options handling.
44222 This file was extended by $as_me, which was
44223 generated by GNU Autoconf 2.61. Invocation command line was
44225 CONFIG_FILES = $CONFIG_FILES
44226 CONFIG_HEADERS = $CONFIG_HEADERS
44227 CONFIG_LINKS = $CONFIG_LINKS
44228 CONFIG_COMMANDS = $CONFIG_COMMANDS
44231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44236 cat >>$CONFIG_STATUS <<_ACEOF
44237 # Files that config.status was made for.
44238 config_files="$ac_config_files"
44239 config_headers="$ac_config_headers"
44240 config_commands="$ac_config_commands"
44244 cat >>$CONFIG_STATUS <<\_ACEOF
44246 \`$as_me' instantiates files from templates according to the
44247 current configuration.
44249 Usage: $0 [OPTIONS] [FILE]...
44251 -h, --help print this help, then exit
44252 -V, --version print version number and configuration settings, then exit
44253 -q, --quiet do not print progress messages
44254 -d, --debug don't remove temporary files
44255 --recheck update $as_me by reconfiguring in the same conditions
44256 --file=FILE[:TEMPLATE]
44257 instantiate the configuration file FILE
44258 --header=FILE[:TEMPLATE]
44259 instantiate the configuration header FILE
44261 Configuration files:
44264 Configuration headers:
44267 Configuration commands:
44270 Report bugs to <bug-autoconf@gnu.org>."
44273 cat >>$CONFIG_STATUS <<_ACEOF
44276 configured by $0, generated by GNU Autoconf 2.61,
44277 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44279 Copyright (C) 2006 Free Software Foundation, Inc.
44280 This config.status script is free software; the Free Software Foundation
44281 gives unlimited permission to copy, distribute and modify it."
44288 cat >>$CONFIG_STATUS <<\_ACEOF
44289 # If no file are specified by the user, then we need to provide default
44290 # value. By we need to know if files were specified by the user.
44296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44308 # Handling of the options.
44309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44312 echo "$ac_cs_version"; exit ;;
44313 --debug | --debu | --deb | --de | --d | -d )
44315 --file | --fil | --fi | --f )
44317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44318 ac_need_defaults=false;;
44319 --header | --heade | --head | --hea )
44321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44322 ac_need_defaults=false;;
44324 # Conflict between --help and --header
44325 { echo "$as_me: error: ambiguous option: $1
44326 Try \`$0 --help' for more information." >&2
44327 { (exit 1); exit 1; }; };;
44328 --help | --hel | -h )
44329 echo "$ac_cs_usage"; exit ;;
44330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44334 # This is an error.
44335 -*) { echo "$as_me: error: unrecognized option: $1
44336 Try \`$0 --help' for more information." >&2
44337 { (exit 1); exit 1; }; } ;;
44339 *) ac_config_targets="$ac_config_targets $1"
44340 ac_need_defaults=false ;;
44346 ac_configure_extra_args=
44348 if $ac_cs_silent; then
44350 ac_configure_extra_args="$ac_configure_extra_args --silent"
44354 cat >>$CONFIG_STATUS <<_ACEOF
44355 if \$ac_cs_recheck; then
44356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44357 CONFIG_SHELL=$SHELL
44358 export CONFIG_SHELL
44359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44363 cat >>$CONFIG_STATUS <<\_ACEOF
44367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44368 ## Running $as_me. ##
44374 cat >>$CONFIG_STATUS <<_ACEOF
44380 # The HP-UX ksh and POSIX shell print the target directory to stdout
44381 # if CDPATH is set.
44382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44384 sed_quote_subst='$sed_quote_subst'
44385 double_quote_subst='$double_quote_subst'
44386 delay_variable_subst='$delay_variable_subst'
44387 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44388 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44389 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44390 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44391 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44392 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44393 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44394 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44395 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44396 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44397 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44398 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44399 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44400 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44401 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44402 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44403 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44404 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44405 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44406 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44407 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44408 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44409 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44410 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44411 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44412 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44413 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44414 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44415 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44416 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44417 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44418 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44419 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44420 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44421 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44422 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44423 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44424 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44425 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44426 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44427 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44428 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44429 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44430 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44431 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"`'
44432 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"`'
44433 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44434 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44435 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44436 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44437 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44438 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44439 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44440 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44441 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44442 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44443 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44444 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44445 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44446 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44447 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44448 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44449 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44450 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44451 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44452 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44453 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44454 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44455 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44456 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44457 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44458 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44459 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44460 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44461 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44462 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44463 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44464 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44465 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44466 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44467 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44468 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44469 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44470 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44471 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44472 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44473 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44474 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44475 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44476 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44477 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44478 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44479 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44480 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44481 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44482 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44483 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44484 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44485 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44486 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44487 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44488 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44489 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44490 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44491 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44492 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44493 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44494 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44495 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44496 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44497 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44498 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44499 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44500 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44501 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44502 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44503 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44504 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44505 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44506 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44507 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44508 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44509 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44510 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44511 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44512 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44513 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44514 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44515 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44516 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44517 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44518 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44519 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44520 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44521 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44522 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44523 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44524 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44525 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44526 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44527 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44528 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44529 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44530 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44531 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44532 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44533 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44534 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44535 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44536 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44537 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44538 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44539 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44540 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44541 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44542 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44543 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44544 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44545 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44546 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44547 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44548 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44549 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44550 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44551 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44552 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44553 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44554 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44555 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44556 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44557 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44560 LTCFLAGS='$LTCFLAGS'
44561 compiler='$compiler_DEFAULT'
44563 # Quote evaled strings.
44575 deplibs_check_method \
44584 lt_cv_sys_global_symbol_pipe \
44585 lt_cv_sys_global_symbol_to_cdecl \
44586 lt_cv_sys_global_symbol_to_c_name_address \
44587 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44590 lt_prog_compiler_no_builtin_flag \
44591 lt_prog_compiler_wl \
44592 lt_prog_compiler_pic \
44593 lt_prog_compiler_static \
44594 lt_cv_prog_compiler_c_o \
44602 export_dynamic_flag_spec \
44603 whole_archive_flag_spec \
44604 compiler_needs_object \
44606 allow_undefined_flag \
44607 no_undefined_flag \
44608 hardcode_libdir_flag_spec \
44609 hardcode_libdir_flag_spec_ld \
44610 hardcode_libdir_separator \
44615 variables_saved_for_relink \
44617 library_names_spec \
44622 compiler_lib_search_dirs \
44627 compiler_lib_search_path \
44630 lt_prog_compiler_no_builtin_flag_CXX \
44631 lt_prog_compiler_wl_CXX \
44632 lt_prog_compiler_pic_CXX \
44633 lt_prog_compiler_static_CXX \
44634 lt_cv_prog_compiler_c_o_CXX \
44635 export_dynamic_flag_spec_CXX \
44636 whole_archive_flag_spec_CXX \
44637 compiler_needs_object_CXX \
44639 allow_undefined_flag_CXX \
44640 no_undefined_flag_CXX \
44641 hardcode_libdir_flag_spec_CXX \
44642 hardcode_libdir_flag_spec_ld_CXX \
44643 hardcode_libdir_separator_CXX \
44644 fix_srcfile_path_CXX \
44645 exclude_expsyms_CXX \
44646 include_expsyms_CXX \
44647 file_list_spec_CXX \
44648 compiler_lib_search_dirs_CXX \
44649 predep_objects_CXX \
44650 postdep_objects_CXX \
44653 compiler_lib_search_path_CXX; do
44654 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44655 *[\\\\\\\`\\"\\\$]*)
44656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44664 # Double-quote double-evaled strings.
44665 for var in reload_cmds \
44666 old_postinstall_cmds \
44667 old_postuninstall_cmds \
44669 extract_expsyms_cmds \
44670 old_archive_from_new_cmds \
44671 old_archive_from_expsyms_cmds \
44673 archive_expsym_cmds \
44675 module_expsym_cmds \
44676 export_symbols_cmds \
44679 postuninstall_cmds \
44681 sys_lib_search_path_spec \
44682 sys_lib_dlsearch_path_spec \
44683 old_archive_cmds_CXX \
44684 old_archive_from_new_cmds_CXX \
44685 old_archive_from_expsyms_cmds_CXX \
44687 archive_expsym_cmds_CXX \
44689 module_expsym_cmds_CXX \
44690 export_symbols_cmds_CXX \
44691 prelink_cmds_CXX; do
44692 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44693 *[\\\\\\\`\\"\\\$]*)
44694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44702 # Fix-up fallback echo if it was mangled by the above quoting rules.
44704 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44708 ac_aux_dir='$ac_aux_dir'
44709 xsi_shell='$xsi_shell'
44710 lt_shell_append='$lt_shell_append'
44712 # See if we are running on zsh, and set the options which allow our
44713 # commands through without removal of \ escapes INIT.
44714 if test -n "\${ZSH_VERSION+set}" ; then
44715 setopt NO_GLOB_SUBST
44721 TIMESTAMP='$TIMESTAMP'
44729 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44730 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44732 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44733 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44734 LINGUAS="${LINGUAS-%UNSET%}"
44739 cat >>$CONFIG_STATUS <<\_ACEOF
44741 # Handling of arguments.
44742 for ac_config_target in $ac_config_targets
44744 case $ac_config_target in
44745 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44747 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44748 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44749 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44750 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44751 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44752 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44753 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44754 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44755 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44756 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44757 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44758 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44759 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44760 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44761 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44762 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44763 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44764 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44765 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44766 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44767 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44768 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44769 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44770 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44771 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44772 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44773 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44774 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44775 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44776 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44777 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44778 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44779 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44780 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44781 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44782 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44783 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44784 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44785 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44786 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44787 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44788 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44789 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44790 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44791 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44792 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44793 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44794 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44795 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44796 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44797 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44798 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44799 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44800 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44801 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44802 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44803 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44804 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44805 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44806 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44807 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44808 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44809 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44810 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44811 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44812 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44813 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44814 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44815 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44816 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44817 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44818 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44819 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44820 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44821 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44822 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44823 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44824 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44825 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44826 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44827 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44828 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44829 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44830 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44831 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44832 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44833 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44834 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44835 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44836 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44837 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44838 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44839 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44840 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44841 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44842 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44843 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44844 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44845 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44846 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44847 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44848 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44849 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44850 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44851 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44852 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44853 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44854 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44855 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44856 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44857 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44858 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44859 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44860 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44861 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44866 { (exit 1); exit 1; }; };;
44871 # If the user did not use the arguments to specify the items to instantiate,
44872 # then the envvar interface is used. Set only those that are not.
44873 # We use the long form for the default assignment because of an extremely
44874 # bizarre bug on SunOS 4.1.3.
44875 if $ac_need_defaults; then
44876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44881 # Have a temporary directory for convenience. Make it in the build tree
44882 # simply because there is no reason against having it here, and in addition,
44883 # creating and moving files from /tmp can sometimes cause problems.
44884 # Hook for its removal unless debugging.
44885 # Note that there is a small window in which the directory will not be cleaned:
44886 # after its creation but before its name has been assigned to `$tmp'.
44890 trap 'exit_status=$?
44891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44893 trap '{ (exit 1); exit 1; }' 1 2 13 15
44895 # Create a (secure) tmp directory for tmp files.
44898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44899 test -n "$tmp" && test -d "$tmp"
44902 tmp=./conf$$-$RANDOM
44903 (umask 077 && mkdir "$tmp")
44906 echo "$me: cannot create a temporary directory in ." >&2
44907 { (exit 1); exit 1; }
44911 # Set up the sed scripts for CONFIG_FILES section.
44914 # No need to generate the scripts if there are no CONFIG_FILES.
44915 # This happens for instance when ./config.status config.h
44916 if test -n "$CONFIG_FILES"; then
44920 # Create sed commands to just substitute file output variables.
44922 # Remaining file output variables are in a fragment that also has non-file
44928 for ac_last_try in false false false false false :; do
44929 cat >conf$$subs.sed <<_ACEOF
44930 SHELL!$SHELL$ac_delim
44931 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44932 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44933 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44934 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44935 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44936 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44937 exec_prefix!$exec_prefix$ac_delim
44938 prefix!$prefix$ac_delim
44939 program_transform_name!$program_transform_name$ac_delim
44940 bindir!$bindir$ac_delim
44941 sbindir!$sbindir$ac_delim
44942 libexecdir!$libexecdir$ac_delim
44943 datarootdir!$datarootdir$ac_delim
44944 datadir!$datadir$ac_delim
44945 sysconfdir!$sysconfdir$ac_delim
44946 sharedstatedir!$sharedstatedir$ac_delim
44947 localstatedir!$localstatedir$ac_delim
44948 includedir!$includedir$ac_delim
44949 oldincludedir!$oldincludedir$ac_delim
44950 docdir!$docdir$ac_delim
44951 infodir!$infodir$ac_delim
44952 htmldir!$htmldir$ac_delim
44953 dvidir!$dvidir$ac_delim
44954 pdfdir!$pdfdir$ac_delim
44955 psdir!$psdir$ac_delim
44956 libdir!$libdir$ac_delim
44957 localedir!$localedir$ac_delim
44958 mandir!$mandir$ac_delim
44959 DEFS!$DEFS$ac_delim
44960 ECHO_C!$ECHO_C$ac_delim
44961 ECHO_N!$ECHO_N$ac_delim
44962 ECHO_T!$ECHO_T$ac_delim
44963 LIBS!$LIBS$ac_delim
44964 build_alias!$build_alias$ac_delim
44965 host_alias!$host_alias$ac_delim
44966 target_alias!$target_alias$ac_delim
44967 BUILD_DIR!$BUILD_DIR$ac_delim
44968 TOP_DIR!$TOP_DIR$ac_delim
44969 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44970 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44971 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44972 TRUEPRG!$TRUEPRG$ac_delim
44973 FALSEPRG!$FALSEPRG$ac_delim
44974 VERSION!$VERSION$ac_delim
44975 DATE!$DATE$ac_delim
44976 LSMDATE!$LSMDATE$ac_delim
44977 BACULA!$BACULA$ac_delim
44978 post_host!$post_host$ac_delim
44980 CFLAGS!$CFLAGS$ac_delim
44981 LDFLAGS!$LDFLAGS$ac_delim
44982 CPPFLAGS!$CPPFLAGS$ac_delim
44983 ac_ct_CC!$ac_ct_CC$ac_delim
44984 EXEEXT!$EXEEXT$ac_delim
44985 OBJEXT!$OBJEXT$ac_delim
44987 CXXFLAGS!$CXXFLAGS$ac_delim
44988 ac_ct_CXX!$ac_ct_CXX$ac_delim
44990 GREP!$GREP$ac_delim
44991 EGREP!$EGREP$ac_delim
44992 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44993 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44994 INSTALL_DATA!$INSTALL_DATA$ac_delim
44996 REMOVE!$REMOVE$ac_delim
44999 ECHO!$ECHO$ac_delim
45003 OPENSSL!$OPENSSL$ac_delim
45006 MKISOFS!$MKISOFS$ac_delim
45007 PYTHON!$PYTHON$ac_delim
45008 GROWISOFS!$GROWISOFS$ac_delim
45009 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45010 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45011 PKGCONFIG!$PKGCONFIG$ac_delim
45012 QMAKE!$QMAKE$ac_delim
45013 QMAKEQT4!$QMAKEQT4$ac_delim
45014 GMAKE!$GMAKE$ac_delim
45015 WXCONFIG!$WXCONFIG$ac_delim
45016 WXFLAGS!$WXFLAGS$ac_delim
45017 CDRECORD!$CDRECORD$ac_delim
45018 PIDOF!$PIDOF$ac_delim
45020 ARFLAGS!$ARFLAGS$ac_delim
45021 MAKE_SHELL!$MAKE_SHELL$ac_delim
45022 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45023 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45026 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45028 elif $ac_last_try; then
45029 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45030 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45031 { (exit 1); exit 1; }; }
45033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45037 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45038 if test -n "$ac_eof"; then
45039 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45040 ac_eof=`expr $ac_eof + 1`
45043 cat >>$CONFIG_STATUS <<_ACEOF
45044 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45046 /^[ ]*@MCOMMON@[ ]*$/{
45052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45053 s/^/s,@/; s/!/@,|#_!!_#|/
45056 s/'"$ac_delim"'$/,g/; t
45058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45059 ' >>$CONFIG_STATUS <conf$$subs.sed
45060 rm -f conf$$subs.sed
45061 cat >>$CONFIG_STATUS <<_ACEOF
45067 for ac_last_try in false false false false false :; do
45068 cat >conf$$subs.sed <<_ACEOF
45069 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45070 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45071 LIBTOOL!$LIBTOOL$ac_delim
45072 build!$build$ac_delim
45073 build_cpu!$build_cpu$ac_delim
45074 build_vendor!$build_vendor$ac_delim
45075 build_os!$build_os$ac_delim
45076 host!$host$ac_delim
45077 host_cpu!$host_cpu$ac_delim
45078 host_vendor!$host_vendor$ac_delim
45079 host_os!$host_os$ac_delim
45080 FGREP!$FGREP$ac_delim
45082 DUMPBIN!$DUMPBIN$ac_delim
45083 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45085 LN_S!$LN_S$ac_delim
45086 OBJDUMP!$OBJDUMP$ac_delim
45087 STRIP!$STRIP$ac_delim
45088 RANLIB!$RANLIB$ac_delim
45089 lt_ECHO!$lt_ECHO$ac_delim
45090 DSYMUTIL!$DSYMUTIL$ac_delim
45091 NMEDIT!$NMEDIT$ac_delim
45092 LIPO!$LIPO$ac_delim
45093 OTOOL!$OTOOL$ac_delim
45094 OTOOL64!$OTOOL64$ac_delim
45095 CXXCPP!$CXXCPP$ac_delim
45096 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45097 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45098 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45099 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45100 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45101 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45102 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45103 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45104 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45105 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45106 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45107 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45108 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45109 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45110 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45111 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45112 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45113 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45114 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45115 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45116 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45117 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45118 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45119 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45120 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45121 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45122 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45123 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45124 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45125 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45126 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45127 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45128 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45129 SET_MAKE!$SET_MAKE$ac_delim
45130 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45131 USE_NLS!$USE_NLS$ac_delim
45132 MSGFMT!$MSGFMT$ac_delim
45133 GMSGFMT!$GMSGFMT$ac_delim
45134 XGETTEXT!$XGETTEXT$ac_delim
45135 MSGMERGE!$MSGMERGE$ac_delim
45136 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45137 LIBICONV!$LIBICONV$ac_delim
45138 LTLIBICONV!$LTLIBICONV$ac_delim
45139 INTLLIBS!$INTLLIBS$ac_delim
45140 LIBINTL!$LIBINTL$ac_delim
45141 LTLIBINTL!$LTLIBINTL$ac_delim
45142 POSUB!$POSUB$ac_delim
45143 GLIBC2!$GLIBC2$ac_delim
45144 ALLOCA!$ALLOCA$ac_delim
45145 GLIBC21!$GLIBC21$ac_delim
45146 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45147 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45148 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45149 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45150 INTLBISON!$INTLBISON$ac_delim
45151 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45152 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45153 CATOBJEXT!$CATOBJEXT$ac_delim
45154 DATADIRNAME!$DATADIRNAME$ac_delim
45155 INSTOBJEXT!$INSTOBJEXT$ac_delim
45156 GENCAT!$GENCAT$ac_delim
45157 INTLOBJS!$INTLOBJS$ac_delim
45158 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45159 BAT_DIR!$BAT_DIR$ac_delim
45160 QWT_INC!$QWT_INC$ac_delim
45161 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45162 QWT_LIB!$QWT_LIB$ac_delim
45164 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45165 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45170 elif $ac_last_try; then
45171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45173 { (exit 1); exit 1; }; }
45175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45180 if test -n "$ac_eof"; then
45181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45182 ac_eof=`expr $ac_eof + 1`
45185 cat >>$CONFIG_STATUS <<_ACEOF
45186 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45191 s/^/s,@/; s/!/@,|#_!!_#|/
45194 s/'"$ac_delim"'$/,g/; t
45196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45197 ' >>$CONFIG_STATUS <conf$$subs.sed
45198 rm -f conf$$subs.sed
45199 cat >>$CONFIG_STATUS <<_ACEOF
45205 for ac_last_try in false false false false false :; do
45206 cat >conf$$subs.sed <<_ACEOF
45207 WX_DIR!$WX_DIR$ac_delim
45208 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45209 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45210 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45211 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45212 STATIC_FD!$STATIC_FD$ac_delim
45213 STATIC_SD!$STATIC_SD$ac_delim
45214 STATIC_DIR!$STATIC_DIR$ac_delim
45215 STATIC_CONS!$STATIC_CONS$ac_delim
45216 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45217 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45218 ALL_DIRS!$ALL_DIRS$ac_delim
45219 DIRD_DIR!$DIRD_DIR$ac_delim
45220 DIR_TOOLS!$DIR_TOOLS$ac_delim
45221 STORED_DIR!$STORED_DIR$ac_delim
45222 CONS_INC!$CONS_INC$ac_delim
45223 CONS_OBJ!$CONS_OBJ$ac_delim
45224 CONS_SRC!$CONS_SRC$ac_delim
45225 CONS_LIBS!$CONS_LIBS$ac_delim
45226 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45227 READLINE_SRC!$READLINE_SRC$ac_delim
45228 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45229 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45230 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45231 OPENSSL_INC!$OPENSSL_INC$ac_delim
45232 working_dir!$working_dir$ac_delim
45233 archivedir!$archivedir$ac_delim
45234 basename!$basename$ac_delim
45235 hostname!$hostname$ac_delim
45236 scriptdir!$scriptdir$ac_delim
45237 bsrdir!$bsrdir$ac_delim
45238 logdir!$logdir$ac_delim
45239 plugindir!$plugindir$ac_delim
45240 dump_email!$dump_email$ac_delim
45241 job_email!$job_email$ac_delim
45242 smtp_host!$smtp_host$ac_delim
45243 piddir!$piddir$ac_delim
45244 subsysdir!$subsysdir$ac_delim
45245 baseport!$baseport$ac_delim
45246 dir_port!$dir_port$ac_delim
45247 fd_port!$fd_port$ac_delim
45248 sd_port!$sd_port$ac_delim
45249 dir_password!$dir_password$ac_delim
45250 fd_password!$fd_password$ac_delim
45251 sd_password!$sd_password$ac_delim
45252 mon_dir_password!$mon_dir_password$ac_delim
45253 mon_fd_password!$mon_fd_password$ac_delim
45254 mon_sd_password!$mon_sd_password$ac_delim
45255 db_name!$db_name$ac_delim
45256 db_user!$db_user$ac_delim
45257 db_password!$db_password$ac_delim
45258 db_port!$db_port$ac_delim
45259 dir_user!$dir_user$ac_delim
45260 dir_group!$dir_group$ac_delim
45261 sd_user!$sd_user$ac_delim
45262 sd_group!$sd_group$ac_delim
45263 fd_user!$fd_user$ac_delim
45264 fd_group!$fd_group$ac_delim
45265 SBINPERM!$SBINPERM$ac_delim
45266 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45267 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45268 SQL_BINDIR!$SQL_BINDIR$ac_delim
45269 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45270 uncomment_dbi!$uncomment_dbi$ac_delim
45271 DB_PROG!$DB_PROG$ac_delim
45272 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45273 cats!$cats$ac_delim
45274 DB_TYPE!$DB_TYPE$ac_delim
45275 GETCONF!$GETCONF$ac_delim
45276 XMKMF!$XMKMF$ac_delim
45277 X_CFLAGS!$X_CFLAGS$ac_delim
45278 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45279 X_LIBS!$X_LIBS$ac_delim
45280 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45281 LIBOBJS!$LIBOBJS$ac_delim
45282 CAP_LIBS!$CAP_LIBS$ac_delim
45283 FDLIBS!$FDLIBS$ac_delim
45284 DEBUG!$DEBUG$ac_delim
45285 DINCLUDE!$DINCLUDE$ac_delim
45286 DLIB!$DLIB$ac_delim
45287 DB_LIBS!$DB_LIBS$ac_delim
45288 WCFLAGS!$WCFLAGS$ac_delim
45289 WLDFLAGS!$WLDFLAGS$ac_delim
45290 WRAPLIBS!$WRAPLIBS$ac_delim
45291 OBJLIST!$OBJLIST$ac_delim
45292 TAPEDRIVE!$TAPEDRIVE$ac_delim
45293 PSCMD!$PSCMD$ac_delim
45294 WIN32!$WIN32$ac_delim
45295 MACOSX!$MACOSX$ac_delim
45296 DISTNAME!$DISTNAME$ac_delim
45297 DISTVER!$DISTVER$ac_delim
45298 LTLIBOBJS!$LTLIBOBJS$ac_delim
45301 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45303 elif $ac_last_try; then
45304 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45306 { (exit 1); exit 1; }; }
45308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45313 if test -n "$ac_eof"; then
45314 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45315 ac_eof=`expr $ac_eof + 1`
45318 cat >>$CONFIG_STATUS <<_ACEOF
45319 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45324 s/^/s,@/; s/!/@,|#_!!_#|/
45327 s/'"$ac_delim"'$/,g/; t
45329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45330 ' >>$CONFIG_STATUS <conf$$subs.sed
45331 rm -f conf$$subs.sed
45332 cat >>$CONFIG_STATUS <<_ACEOF
45339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45341 # trailing colons and then remove the whole line if VPATH becomes empty
45342 # (actually we leave an empty line to preserve line numbers).
45343 if test "x$srcdir" = x.; then
45344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45345 s/:*\$(srcdir):*/:/
45346 s/:*\${srcdir}:*/:/
45348 s/^\([^=]*=[ ]*\):*/\1/
45354 cat >>$CONFIG_STATUS <<\_ACEOF
45355 fi # test -n "$CONFIG_FILES"
45358 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45361 :[FHLC]) ac_mode=$ac_tag; continue;;
45363 case $ac_mode$ac_tag in
45365 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45366 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45367 { (exit 1); exit 1; }; };;
45368 :[FH]-) ac_tag=-:-;;
45369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45386 -) ac_f="$tmp/stdin";;
45387 *) # Look for the file first in the build tree, then in the source tree
45388 # (if the path is not absolute). The absolute path cannot be DOS-style,
45389 # because $ac_f cannot contain `:'.
45393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45395 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45396 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45397 { (exit 1); exit 1; }; };;
45399 ac_file_inputs="$ac_file_inputs $ac_f"
45402 # Let's still pretend it is `configure' which instantiates (i.e., don't
45403 # use $as_me), people would be surprised to read:
45404 # /* config.h. Generated by config.status. */
45405 configure_input="Generated from "`IFS=:
45406 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45407 if test x"$ac_file" != x-; then
45408 configure_input="$ac_file. $configure_input"
45409 { echo "$as_me:$LINENO: creating $ac_file" >&5
45410 echo "$as_me: creating $ac_file" >&6;}
45414 *:-:* | *:-) cat >"$tmp/stdin";;
45419 ac_dir=`$as_dirname -- "$ac_file" ||
45420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45421 X"$ac_file" : 'X\(//\)[^/]' \| \
45422 X"$ac_file" : 'X\(//\)$' \| \
45423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45429 /^X\(\/\/\)[^/].*/{
45444 -*) as_dir=./$as_dir;;
45446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45451 *) as_qdir=$as_dir;;
45453 as_dirs="'$as_qdir' $as_dirs"
45454 as_dir=`$as_dirname -- "$as_dir" ||
45455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45456 X"$as_dir" : 'X\(//\)[^/]' \| \
45457 X"$as_dir" : 'X\(//\)$' \| \
45458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45464 /^X\(\/\/\)[^/].*/{
45477 test -d "$as_dir" && break
45479 test -z "$as_dirs" || eval "mkdir $as_dirs"
45480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45482 { (exit 1); exit 1; }; }; }
45486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45489 # A ".." for each directory in $ac_dir_suffix.
45490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45491 case $ac_top_builddir_sub in
45492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45496 ac_abs_top_builddir=$ac_pwd
45497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45498 # for backward compatibility:
45499 ac_top_builddir=$ac_top_build_prefix
45502 .) # We are building in place.
45504 ac_top_srcdir=$ac_top_builddir_sub
45505 ac_abs_top_srcdir=$ac_pwd ;;
45506 [\\/]* | ?:[\\/]* ) # Absolute name.
45507 ac_srcdir=$srcdir$ac_dir_suffix;
45508 ac_top_srcdir=$srcdir
45509 ac_abs_top_srcdir=$srcdir ;;
45510 *) # Relative name.
45511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45512 ac_top_srcdir=$ac_top_build_prefix$srcdir
45513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45526 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45530 cat >>$CONFIG_STATUS <<\_ACEOF
45531 # If the template does not know about datarootdir, expand it.
45532 # FIXME: This hack should be removed a few years after 2.60.
45533 ac_datarootdir_hack=; ac_datarootdir_seen=
45535 case `sed -n '/datarootdir/ {
45544 ' $ac_file_inputs` in
45545 *datarootdir*) ac_datarootdir_seen=yes;;
45546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45547 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45548 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45550 cat >>$CONFIG_STATUS <<_ACEOF
45551 ac_datarootdir_hack='
45552 s&@datadir@&$datadir&g
45553 s&@docdir@&$docdir&g
45554 s&@infodir@&$infodir&g
45555 s&@localedir@&$localedir&g
45556 s&@mandir@&$mandir&g
45557 s&\\\${datarootdir}&$datarootdir&g' ;;
45561 # Neutralize VPATH when `$srcdir' = `.'.
45562 # Shell code in configure.ac might set extrasub.
45563 # FIXME: do we really want to maintain this feature?
45564 cat >>$CONFIG_STATUS <<_ACEOF
45568 cat >>$CONFIG_STATUS <<\_ACEOF
45570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45571 s&@configure_input@&$configure_input&;t t
45572 s&@top_builddir@&$ac_top_builddir_sub&;t t
45573 s&@srcdir@&$ac_srcdir&;t t
45574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45575 s&@top_srcdir@&$ac_top_srcdir&;t t
45576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45577 s&@builddir@&$ac_builddir&;t t
45578 s&@abs_builddir@&$ac_abs_builddir&;t t
45579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45580 s&@INSTALL@&$ac_INSTALL&;t t
45581 $ac_datarootdir_hack
45582 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45587 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45588 which seems to be undefined. Please make sure it is defined." >&5
45589 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45590 which seems to be undefined. Please make sure it is defined." >&2;}
45594 -) cat "$tmp/out"; rm -f "$tmp/out";;
45595 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45604 # Transform confdefs.h into a sed script `conftest.defines', that
45605 # substitutes the proper values into config.h.in to produce config.h.
45606 rm -f conftest.defines conftest.tail
45607 # First, append a space to every undef/define line, to ease matching.
45608 echo 's/$/ /' >conftest.defines
45609 # Then, protect against being on the right side of a sed subst, or in
45610 # an unquoted here document, in config.status. If some macros were
45611 # called several times there might be several #defines for the same
45612 # symbol, which is useless. But do not sort them, since the last
45613 # AC_DEFINE must be honored.
45614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45615 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45616 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45617 # PARAMS is the parameter list in the macro definition--in most cases, it's
45618 # just an empty string.
45619 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45620 ac_dB='\\)[ (].*,\\1define\\2'
45628 s/^[ ]*#[ ]*define[ ][ ]*//
45633 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45634 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45635 ' >>conftest.defines
45637 # Remove the space that was appended to ease matching.
45638 # Then replace #undef with comments. This is necessary, for
45639 # example, in the case of _POSIX_SOURCE, which is predefined and required
45640 # on some systems where configure will not decide to define it.
45641 # (The regexp can be short, since the line contains either #define or #undef.)
45643 s,^[ #]*u.*,/* & */,' >>conftest.defines
45645 # Break up conftest.defines:
45646 ac_max_sed_lines=50
45648 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45649 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45650 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45652 ac_in='$ac_file_inputs'
45653 ac_out='"$tmp/out1"'
45654 ac_nxt='"$tmp/out2"'
45658 # Write a here document:
45659 cat >>$CONFIG_STATUS <<_ACEOF
45660 # First, check the format of the line:
45661 cat >"\$tmp/defines.sed" <<\\CEOF
45662 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45663 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45667 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45669 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45670 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45671 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45672 grep . conftest.tail >/dev/null || break
45673 rm -f conftest.defines
45674 mv conftest.tail conftest.defines
45676 rm -f conftest.defines conftest.tail
45678 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45679 cat >>$CONFIG_STATUS <<\_ACEOF
45680 if test x"$ac_file" != x-; then
45681 echo "/* $configure_input */" >"$tmp/config.h"
45682 cat "$ac_result" >>"$tmp/config.h"
45683 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45684 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45685 echo "$as_me: $ac_file is unchanged" >&6;}
45688 mv "$tmp/config.h" $ac_file
45691 echo "/* $configure_input */"
45697 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45698 echo "$as_me: executing $ac_file commands" >&6;}
45703 case $ac_file$ac_mode in
45706 # See if we are running on zsh, and set the options which allow our
45707 # commands through without removal of \ escapes.
45708 if test -n "${ZSH_VERSION+set}" ; then
45709 setopt NO_GLOB_SUBST
45712 cfgfile="${ofile}T"
45713 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45716 cat <<_LT_EOF >> "$cfgfile"
45719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45724 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45725 # 2006, 2007, 2008 Free Software Foundation, Inc.
45726 # Written by Gordon Matzigkeit, 1996
45728 # This file is part of GNU Libtool.
45730 # GNU Libtool is free software; you can redistribute it and/or
45731 # modify it under the terms of the GNU General Public License as
45732 # published by the Free Software Foundation; either version 2 of
45733 # the License, or (at your option) any later version.
45735 # As a special exception to the GNU General Public License,
45736 # if you distribute this file as part of a program or library that
45737 # is built using GNU Libtool, you may include this file under the
45738 # same distribution terms that you use for the rest of that program.
45740 # GNU Libtool is distributed in the hope that it will be useful,
45741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45743 # GNU General Public License for more details.
45745 # You should have received a copy of the GNU General Public License
45746 # along with GNU Libtool; see the file COPYING. If not, a copy
45747 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45748 # obtained by writing to the Free Software Foundation, Inc.,
45749 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45752 # The names of the tagged configurations supported by this script.
45753 available_tags="CXX "
45755 # ### BEGIN LIBTOOL CONFIG
45757 # Which release of libtool.m4 was used?
45758 macro_version=$macro_version
45759 macro_revision=$macro_revision
45761 # Whether or not to build shared libraries.
45762 build_libtool_libs=$enable_shared
45764 # Whether or not to build static libraries.
45765 build_old_libs=$enable_static
45767 # What type of objects to build.
45770 # Whether or not to optimize for fast installation.
45771 fast_install=$enable_fast_install
45774 host_alias=$host_alias
45778 # The build system.
45779 build_alias=$build_alias
45783 # A sed program that does not truncate output.
45786 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45787 Xsed="\$SED -e 1s/^X//"
45789 # A grep program that handles long lines.
45795 # A literal string matcher.
45798 # A BSD- or MS-compatible name lister.
45801 # Whether we need soft or hard links.
45804 # What is the maximum length of a command?
45805 max_cmd_len=$max_cmd_len
45807 # Object file suffix (normally "o").
45810 # Executable file suffix (normally "").
45813 # whether the shell understands "unset".
45816 # turn spaces into newlines.
45819 # turn newlines into spaces.
45822 # How to create reloadable object files.
45823 reload_flag=$lt_reload_flag
45824 reload_cmds=$lt_reload_cmds
45826 # An object symbol dumper.
45827 OBJDUMP=$lt_OBJDUMP
45829 # Method to check whether dependent libraries are shared objects.
45830 deplibs_check_method=$lt_deplibs_check_method
45832 # Command to use when deplibs_check_method == "file_magic".
45833 file_magic_cmd=$lt_file_magic_cmd
45837 AR_FLAGS=$lt_AR_FLAGS
45839 # A symbol stripping program.
45842 # Commands used to install an old-style archive.
45844 old_postinstall_cmds=$lt_old_postinstall_cmds
45845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45850 # LTCC compiler flags.
45851 LTCFLAGS=$lt_CFLAGS
45853 # Take the output of nm and produce a listing of raw symbols and C names.
45854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45856 # Transform the output of nm in a proper C declaration.
45857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45859 # Transform the output of nm in a C name address pair.
45860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45862 # Transform the output of nm in a C name address pair when lib prefix is needed.
45863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45865 # The name of the directory that contains temporary libtool files.
45868 # Shell to use when invoking shell scripts.
45871 # An echo program that does not interpret backslashes.
45874 # Used to examine libraries when file_magic_cmd begins with "file".
45875 MAGIC_CMD=$MAGIC_CMD
45877 # Must we lock files when doing compilation?
45878 need_locks=$lt_need_locks
45880 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45881 DSYMUTIL=$lt_DSYMUTIL
45883 # Tool to change global to local symbols on Mac OS X.
45886 # Tool to manipulate fat objects and archives on Mac OS X.
45889 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45892 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45893 OTOOL64=$lt_OTOOL64
45895 # Old archive suffix (normally "a").
45898 # Shared library suffix (normally ".so").
45899 shrext_cmds=$lt_shrext_cmds
45901 # The commands to extract the exported symbol list from a shared archive.
45902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45904 # Variables whose values should be saved in libtool wrapper scripts and
45905 # restored at link time.
45906 variables_saved_for_relink=$lt_variables_saved_for_relink
45908 # Do we need the "lib" prefix for modules?
45909 need_lib_prefix=$need_lib_prefix
45911 # Do we need a version for libraries?
45912 need_version=$need_version
45914 # Library versioning type.
45915 version_type=$version_type
45917 # Shared library runtime path variable.
45918 runpath_var=$runpath_var
45920 # Shared library path variable.
45921 shlibpath_var=$shlibpath_var
45923 # Is shlibpath searched before the hard-coded library search path?
45924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45926 # Format of library name prefix.
45927 libname_spec=$lt_libname_spec
45929 # List of archive names. First name is the real one, the rest are links.
45930 # The last name is the one that the linker finds with -lNAME
45931 library_names_spec=$lt_library_names_spec
45933 # The coded name of the library, if different from the real name.
45934 soname_spec=$lt_soname_spec
45936 # Command to use after installation of a shared archive.
45937 postinstall_cmds=$lt_postinstall_cmds
45939 # Command to use after uninstallation of a shared archive.
45940 postuninstall_cmds=$lt_postuninstall_cmds
45942 # Commands used to finish a libtool library installation in a directory.
45943 finish_cmds=$lt_finish_cmds
45945 # As "finish_cmds", except a single script fragment to be evaled but
45947 finish_eval=$lt_finish_eval
45949 # Whether we should hardcode library paths into libraries.
45950 hardcode_into_libs=$hardcode_into_libs
45952 # Compile-time system search path for libraries.
45953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45955 # Run-time system search path for libraries.
45956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45958 # Whether dlopen is supported.
45959 dlopen_support=$enable_dlopen
45961 # Whether dlopen of programs is supported.
45962 dlopen_self=$enable_dlopen_self
45964 # Whether dlopen of statically linked programs is supported.
45965 dlopen_self_static=$enable_dlopen_self_static
45967 # Commands to strip libraries.
45968 old_striplib=$lt_old_striplib
45969 striplib=$lt_striplib
45972 # The linker used to build libraries.
45975 # Commands used to build an old-style archive.
45976 old_archive_cmds=$lt_old_archive_cmds
45978 # A language specific compiler.
45981 # Is the compiler the GNU compiler?
45984 # Compiler flag to turn off builtin functions.
45985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45987 # How to pass a linker flag through the compiler.
45988 wl=$lt_lt_prog_compiler_wl
45990 # Additional compiler flags for building library objects.
45991 pic_flag=$lt_lt_prog_compiler_pic
45993 # Compiler flag to prevent dynamic linking.
45994 link_static_flag=$lt_lt_prog_compiler_static
45996 # Does compiler simultaneously support -c and -o options?
45997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45999 # Whether or not to add -lc for building shared libraries.
46000 build_libtool_need_lc=$archive_cmds_need_lc
46002 # Whether or not to disallow shared libs when runtime libs are static.
46003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46005 # Compiler flag to allow reflexive dlopens.
46006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46008 # Compiler flag to generate shared objects directly from archives.
46009 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46011 # Whether the compiler copes with passing no objects directly.
46012 compiler_needs_object=$lt_compiler_needs_object
46014 # Create an old-style archive from a shared archive.
46015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46017 # Create a temporary old-style archive to link instead of a shared archive.
46018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46020 # Commands used to build a shared archive.
46021 archive_cmds=$lt_archive_cmds
46022 archive_expsym_cmds=$lt_archive_expsym_cmds
46024 # Commands used to build a loadable module if different from building
46025 # a shared archive.
46026 module_cmds=$lt_module_cmds
46027 module_expsym_cmds=$lt_module_expsym_cmds
46029 # Whether we are building with GNU ld or not.
46030 with_gnu_ld=$lt_with_gnu_ld
46032 # Flag that allows shared libraries with undefined symbols to be built.
46033 allow_undefined_flag=$lt_allow_undefined_flag
46035 # Flag that enforces no undefined symbols.
46036 no_undefined_flag=$lt_no_undefined_flag
46038 # Flag to hardcode \$libdir into a binary during linking.
46039 # This must work even if \$libdir does not exist
46040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46042 # If ld is used when linking, flag to hardcode \$libdir into a binary
46043 # during linking. This must work even if \$libdir does not exist.
46044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46046 # Whether we need a single "-rpath" flag with a separated argument.
46047 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46050 # DIR into the resulting binary.
46051 hardcode_direct=$hardcode_direct
46053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46054 # DIR into the resulting binary and the resulting library dependency is
46055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46056 # library is relocated.
46057 hardcode_direct_absolute=$hardcode_direct_absolute
46059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46060 # into the resulting binary.
46061 hardcode_minus_L=$hardcode_minus_L
46063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46064 # into the resulting binary.
46065 hardcode_shlibpath_var=$hardcode_shlibpath_var
46067 # Set to "yes" if building a shared library automatically hardcodes DIR
46068 # into the library and all subsequent libraries and executables linked
46070 hardcode_automatic=$hardcode_automatic
46072 # Set to yes if linker adds runtime paths of dependent libraries
46073 # to runtime path list.
46074 inherit_rpath=$inherit_rpath
46076 # Whether libtool must link a program against all its dependency libraries.
46077 link_all_deplibs=$link_all_deplibs
46079 # Fix the shell variable \$srcfile for the compiler.
46080 fix_srcfile_path=$lt_fix_srcfile_path
46082 # Set to "yes" if exported symbols are required.
46083 always_export_symbols=$always_export_symbols
46085 # The commands to list exported symbols.
46086 export_symbols_cmds=$lt_export_symbols_cmds
46088 # Symbols that should not be listed in the preloaded symbols.
46089 exclude_expsyms=$lt_exclude_expsyms
46091 # Symbols that must always be exported.
46092 include_expsyms=$lt_include_expsyms
46094 # Commands necessary for linking programs (against libraries) with templates.
46095 prelink_cmds=$lt_prelink_cmds
46097 # Specify filename containing input files.
46098 file_list_spec=$lt_file_list_spec
46100 # How to hardcode a shared library path into an executable.
46101 hardcode_action=$hardcode_action
46103 # The directories searched by this compiler when creating a shared library.
46104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46106 # Dependencies to place before and after the objects being linked to
46107 # create a shared library.
46108 predep_objects=$lt_predep_objects
46109 postdep_objects=$lt_postdep_objects
46110 predeps=$lt_predeps
46111 postdeps=$lt_postdeps
46113 # The library search path used internally by the compiler when linking
46114 # a shared library.
46115 compiler_lib_search_path=$lt_compiler_lib_search_path
46117 # ### END LIBTOOL CONFIG
46123 cat <<\_LT_EOF >> "$cfgfile"
46124 # AIX sometimes has problems with the GCC collect2 program. For some
46125 # reason, if we set the COLLECT_NAMES environment variable, the problems
46126 # vanish in a puff of smoke.
46127 if test "X${COLLECT_NAMES+set}" != Xset; then
46129 export COLLECT_NAMES
46136 ltmain="$ac_aux_dir/ltmain.sh"
46139 # We use sed instead of cat because bash on DJGPP gets confused if
46140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46141 # text mode, it properly converts lines to CR/LF. This bash problem
46142 # is reportedly fixed, but why not run on old versions too?
46143 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46144 || (rm -f "$cfgfile"; exit 1)
46148 cat << \_LT_EOF >> "$cfgfile"
46150 # func_dirname file append nondir_replacement
46151 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46152 # otherwise set result to NONDIR_REPLACEMENT.
46156 */*) func_dirname_result="${1%/*}${2}" ;;
46157 * ) func_dirname_result="${3}" ;;
46161 # func_basename file
46164 func_basename_result="${1##*/}"
46167 # func_dirname_and_basename file append nondir_replacement
46168 # perform func_basename and func_dirname in a single function
46170 # dirname: Compute the dirname of FILE. If nonempty,
46171 # add APPEND to the result, otherwise set result
46172 # to NONDIR_REPLACEMENT.
46173 # value returned in "$func_dirname_result"
46174 # basename: Compute filename of FILE.
46175 # value retuned in "$func_basename_result"
46176 # Implementation must be kept synchronized with func_dirname
46177 # and func_basename. For efficiency, we do not delegate to
46178 # those functions but instead duplicate the functionality here.
46179 func_dirname_and_basename ()
46182 */*) func_dirname_result="${1%/*}${2}" ;;
46183 * ) func_dirname_result="${3}" ;;
46185 func_basename_result="${1##*/}"
46188 # func_stripname prefix suffix name
46189 # strip PREFIX and SUFFIX off of NAME.
46190 # PREFIX and SUFFIX must not contain globbing or regex special
46191 # characters, hashes, percent signs, but SUFFIX may contain a leading
46192 # dot (in which case that matches only a dot).
46195 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46196 # positional parameters, so assign one to ordinary parameter first.
46197 func_stripname_result=${3}
46198 func_stripname_result=${func_stripname_result#"${1}"}
46199 func_stripname_result=${func_stripname_result%"${2}"}
46205 func_opt_split_opt=${1%%=*}
46206 func_opt_split_arg=${1#*=}
46213 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46214 *) func_lo2o_result=${1} ;;
46218 # func_xform libobj-or-source
46221 func_xform_result=${1%.*}.lo
46224 # func_arith arithmetic-term...
46227 func_arith_result=$(( $* ))
46231 # STRING may not start with a hyphen.
46234 func_len_result=${#1}
46239 *) # Bourne compatible functions.
46240 cat << \_LT_EOF >> "$cfgfile"
46242 # func_dirname file append nondir_replacement
46243 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46244 # otherwise set result to NONDIR_REPLACEMENT.
46247 # Extract subdirectory from the argument.
46248 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46249 if test "X$func_dirname_result" = "X${1}"; then
46250 func_dirname_result="${3}"
46252 func_dirname_result="$func_dirname_result${2}"
46256 # func_basename file
46259 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46263 # func_stripname prefix suffix name
46264 # strip PREFIX and SUFFIX off of NAME.
46265 # PREFIX and SUFFIX must not contain globbing or regex special
46266 # characters, hashes, percent signs, but SUFFIX may contain a leading
46267 # dot (in which case that matches only a dot).
46268 # func_strip_suffix prefix name
46272 .*) func_stripname_result=`$ECHO "X${3}" \
46273 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46274 *) func_stripname_result=`$ECHO "X${3}" \
46275 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46280 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46281 my_sed_long_arg='1s/^-[^=]*=//'
46286 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46287 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46293 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46296 # func_xform libobj-or-source
46299 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46302 # func_arith arithmetic-term...
46305 func_arith_result=`expr "$@"`
46309 # STRING may not start with a hyphen.
46312 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46318 case $lt_shell_append in
46320 cat << \_LT_EOF >> "$cfgfile"
46322 # func_append var value
46323 # Append VALUE to the end of shell variable VAR.
46331 cat << \_LT_EOF >> "$cfgfile"
46333 # func_append var value
46334 # Append VALUE to the end of shell variable VAR.
46345 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46346 || (rm -f "$cfgfile"; exit 1)
46348 mv -f "$cfgfile" "$ofile" ||
46349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46353 cat <<_LT_EOF >> "$ofile"
46355 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46357 # The linker used to build libraries.
46360 # Commands used to build an old-style archive.
46361 old_archive_cmds=$lt_old_archive_cmds_CXX
46363 # A language specific compiler.
46364 CC=$lt_compiler_CXX
46366 # Is the compiler the GNU compiler?
46369 # Compiler flag to turn off builtin functions.
46370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46372 # How to pass a linker flag through the compiler.
46373 wl=$lt_lt_prog_compiler_wl_CXX
46375 # Additional compiler flags for building library objects.
46376 pic_flag=$lt_lt_prog_compiler_pic_CXX
46378 # Compiler flag to prevent dynamic linking.
46379 link_static_flag=$lt_lt_prog_compiler_static_CXX
46381 # Does compiler simultaneously support -c and -o options?
46382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46384 # Whether or not to add -lc for building shared libraries.
46385 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46387 # Whether or not to disallow shared libs when runtime libs are static.
46388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46390 # Compiler flag to allow reflexive dlopens.
46391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46393 # Compiler flag to generate shared objects directly from archives.
46394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46396 # Whether the compiler copes with passing no objects directly.
46397 compiler_needs_object=$lt_compiler_needs_object_CXX
46399 # Create an old-style archive from a shared archive.
46400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46402 # Create a temporary old-style archive to link instead of a shared archive.
46403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46405 # Commands used to build a shared archive.
46406 archive_cmds=$lt_archive_cmds_CXX
46407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46409 # Commands used to build a loadable module if different from building
46410 # a shared archive.
46411 module_cmds=$lt_module_cmds_CXX
46412 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46414 # Whether we are building with GNU ld or not.
46415 with_gnu_ld=$lt_with_gnu_ld_CXX
46417 # Flag that allows shared libraries with undefined symbols to be built.
46418 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46420 # Flag that enforces no undefined symbols.
46421 no_undefined_flag=$lt_no_undefined_flag_CXX
46423 # Flag to hardcode \$libdir into a binary during linking.
46424 # This must work even if \$libdir does not exist
46425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46427 # If ld is used when linking, flag to hardcode \$libdir into a binary
46428 # during linking. This must work even if \$libdir does not exist.
46429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46431 # Whether we need a single "-rpath" flag with a separated argument.
46432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46435 # DIR into the resulting binary.
46436 hardcode_direct=$hardcode_direct_CXX
46438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46439 # DIR into the resulting binary and the resulting library dependency is
46440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46441 # library is relocated.
46442 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46445 # into the resulting binary.
46446 hardcode_minus_L=$hardcode_minus_L_CXX
46448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46449 # into the resulting binary.
46450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46452 # Set to "yes" if building a shared library automatically hardcodes DIR
46453 # into the library and all subsequent libraries and executables linked
46455 hardcode_automatic=$hardcode_automatic_CXX
46457 # Set to yes if linker adds runtime paths of dependent libraries
46458 # to runtime path list.
46459 inherit_rpath=$inherit_rpath_CXX
46461 # Whether libtool must link a program against all its dependency libraries.
46462 link_all_deplibs=$link_all_deplibs_CXX
46464 # Fix the shell variable \$srcfile for the compiler.
46465 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46467 # Set to "yes" if exported symbols are required.
46468 always_export_symbols=$always_export_symbols_CXX
46470 # The commands to list exported symbols.
46471 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46473 # Symbols that should not be listed in the preloaded symbols.
46474 exclude_expsyms=$lt_exclude_expsyms_CXX
46476 # Symbols that must always be exported.
46477 include_expsyms=$lt_include_expsyms_CXX
46479 # Commands necessary for linking programs (against libraries) with templates.
46480 prelink_cmds=$lt_prelink_cmds_CXX
46482 # Specify filename containing input files.
46483 file_list_spec=$lt_file_list_spec_CXX
46485 # How to hardcode a shared library path into an executable.
46486 hardcode_action=$hardcode_action_CXX
46488 # The directories searched by this compiler when creating a shared library.
46489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46491 # Dependencies to place before and after the objects being linked to
46492 # create a shared library.
46493 predep_objects=$lt_predep_objects_CXX
46494 postdep_objects=$lt_postdep_objects_CXX
46495 predeps=$lt_predeps_CXX
46496 postdeps=$lt_postdeps_CXX
46498 # The library search path used internally by the compiler when linking
46499 # a shared library.
46500 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46502 # ### END LIBTOOL TAG CONFIG: CXX
46507 for ac_file in $CONFIG_FILES; do
46508 # Support "outfile[:infile[:infile...]]"
46510 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46512 # PO directories have a Makefile.in generated from Makefile.in.in.
46513 case "$ac_file" in */Makefile.in)
46514 # Adjust a relative srcdir.
46515 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46516 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46517 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46518 # In autoconf-2.13 it is called $ac_given_srcdir.
46519 # In autoconf-2.50 it is called $srcdir.
46520 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46521 case "$ac_given_srcdir" in
46522 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46523 /*) top_srcdir="$ac_given_srcdir" ;;
46524 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46526 # Treat a directory as a PO directory if and only if it has a
46527 # POTFILES.in file. This allows packages to have multiple PO
46528 # directories under different names or in different locations.
46529 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46530 rm -f "$ac_dir/POTFILES"
46531 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46532 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46533 POMAKEFILEDEPS="POTFILES.in"
46534 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46535 # on $ac_dir but don't depend on user-specified configuration
46537 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46538 # The LINGUAS file contains the set of available languages.
46539 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46540 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46542 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46543 # Hide the ALL_LINGUAS assigment from automake.
46544 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46545 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46547 # The set of available languages was given in configure.in.
46548 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46551 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46552 # Compute UPDATEPOFILES
46553 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46554 # Compute DUMMYPOFILES
46555 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46557 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46558 case "$ac_given_srcdir" in
46560 *) srcdirpre='$(srcdir)/' ;;
46566 for lang in $ALL_LINGUAS; do
46567 POFILES="$POFILES $srcdirpre$lang.po"
46568 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46569 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46570 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46572 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46573 # environment variable.
46575 if test -n "$ALL_LINGUAS"; then
46576 for presentlang in $ALL_LINGUAS; do
46578 if test "%UNSET%" != "$LINGUAS"; then
46579 desiredlanguages="$LINGUAS"
46581 desiredlanguages="$ALL_LINGUAS"
46583 for desiredlang in $desiredlanguages; do
46584 # Use the presentlang catalog if desiredlang is
46585 # a. equal to presentlang, or
46586 # b. a variant of presentlang (because in this case,
46587 # presentlang can be used as a fallback for messages
46588 # which are not translated in the desiredlang catalog).
46589 case "$desiredlang" in
46590 "$presentlang"*) useit=yes;;
46593 if test $useit = yes; then
46594 INST_LINGUAS="$INST_LINGUAS $presentlang"
46599 if test -n "$INST_LINGUAS"; then
46600 for lang in $INST_LINGUAS; do
46601 CATALOGS="$CATALOGS $lang.gmo"
46604 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46605 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"
46606 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46607 if test -f "$f"; then
46609 *.orig | *.bak | *~) ;;
46610 *) cat "$f" >> "$ac_dir/Makefile" ;;
46625 { (exit 0); exit 0; }
46627 chmod +x $CONFIG_STATUS
46628 ac_clean_files=$ac_clean_files_save
46631 # configure is writing to config.log, and then calls config.status.
46632 # config.status does its own redirection, appending to config.log.
46633 # Unfortunately, on DOS this fails, as config.log is still kept open
46634 # by configure, so config.status won't be able to write to it; its
46635 # output is simply discarded. So we exec the FD to /dev/null,
46636 # effectively closing config.log, so it can be properly (re)opened and
46637 # appended to by config.status. When coming back to configure, we
46638 # need to make the FD available again.
46639 if test "$no_create" != yes; then
46641 ac_config_status_args=
46642 test "$silent" = yes &&
46643 ac_config_status_args="$ac_config_status_args --quiet"
46645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46648 # would make configure fail if this is the last instruction.
46649 $ac_cs_success || { (exit 1); exit 1; }
46653 if test "${support_bat}" = "yes" ; then
46654 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46655 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46656 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46657 { (exit 1); exit 1; }; }
46662 if test "x$QMAKEQT4" != "xnone"; then
46667 echo "Creating bat Makefile"
46671 ${MAKE:-make} clean
46675 if test X"$GCC" = "Xyes" ; then
46676 echo "Doing make of dependencies"
46677 ${MAKE:-make} depend
46681 chmod 755 install_conf_file build-depkgs-qt-console
46685 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46686 chmod 755 dvd-handler dvd-simulator
46687 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46691 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46692 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
46696 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46697 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46699 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46700 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46702 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46703 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46705 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
46706 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
46708 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46709 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46711 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46712 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46714 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46715 chmod 755 $c/sqlite
46718 chmod 755 src/win32/build-depkgs-mingw32
46720 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46721 largefile_support="yes"
46724 if test X"$GCC" = "Xyes" ; then
46725 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46726 if test "x${CCVERSION}" = "x" ; then
46727 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46729 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46730 if test x"${CXXVERSION}" = x ; then
46731 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46735 # clean up any old junk
46739 ${MAKE:-make} clean
46741 if test "x${db_type}" = "xInternal" ; then
46744 echo "You have not specified either --enable-client-only or one of the"
46745 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46746 echo " This is not permitted. Please reconfigure."
46748 echo "Aborting the configuration ..."
46755 Configuration on `date`:
46757 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46758 Bacula version: ${BACULA} ${VERSION} (${DATE})
46759 Source code location: ${srcdir}
46760 Install binaries: ${sbindir}
46761 Install libraries: ${libdir}
46762 Install config files: ${sysconfdir}
46763 Scripts directory: ${scriptdir}
46764 Archive directory: ${archivedir}
46765 Working directory: ${working_dir}
46766 PID directory: ${piddir}
46767 Subsys directory: ${subsysdir}
46768 Man directory: ${mandir}
46769 Data directory: ${datarootdir}
46770 Plugin directory: ${plugindir}
46771 C Compiler: ${CC} ${CCVERSION}
46772 C++ Compiler: ${CXX} ${CXXVERSION}
46773 Compiler flags: ${WCFLAGS} ${CFLAGS}
46774 Linker flags: ${WLDFLAGS} ${LDFLAGS}
46776 Statically Linked Tools: ${support_static_tools}
46777 Statically Linked FD: ${support_static_fd}
46778 Statically Linked SD: ${support_static_sd}
46779 Statically Linked DIR: ${support_static_dir}
46780 Statically Linked CONS: ${support_static_cons}
46781 Database type: ${db_type}
46782 Database port: ${db_port}
46783 Database lib: ${DB_LIBS}
46784 Database name: ${db_name}
46785 Database user: ${db_user}
46787 Job Output Email: ${job_email}
46788 Traceback Email: ${dump_email}
46789 SMTP Host Address: ${smtp_host}
46791 Director Port: ${dir_port}
46792 File daemon Port: ${fd_port}
46793 Storage daemon Port: ${sd_port}
46795 Director User: ${dir_user}
46796 Director Group: ${dir_group}
46797 Storage Daemon User: ${sd_user}
46798 Storage DaemonGroup: ${sd_group}
46799 File Daemon User: ${fd_user}
46800 File Daemon Group: ${fd_group}
46802 SQL binaries Directory ${SQL_BINDIR}
46804 Large file support: $largefile_support
46805 Bacula conio support: ${got_conio} ${CONS_LIBS}
46806 readline support: ${got_readline} ${PRTREADLINE_SRC}
46807 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
46808 TLS support: ${support_tls}
46809 Encryption support: ${support_crypto}
46810 ZLIB support: ${have_zlib}
46811 enable-smartalloc: ${support_smartalloc}
46812 enable-lockmgr: ${support_lockmgr}
46813 bat support: ${support_bat} ${QWT_LDFLAGS}
46814 enable-gnome: ${support_gnome} ${gnome_version}
46815 enable-bwx-console: ${support_wx_console} ${wx_version}
46816 enable-tray-monitor: ${support_tray_monitor}
46817 client-only: ${build_client_only}
46818 build-dird: ${build_dird}
46819 build-stored: ${build_stored}
46820 ACL support: ${have_acl}
46821 XATTR support: ${have_xattr}
46822 Python support: ${support_python} ${PYTHON_LIBS}
46823 Batch insert enabled: ${support_batch_insert}