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
818 LIBBACCFG_LT_REVISION
824 LIBBACSQL_LT_REVISION
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
921 HAVE_FREEBSD_OS_FALSE
925 HAVE_OPENBSD_OS_FALSE
956 BUILD_INCLUDED_LIBINTL
963 INTL_LIBTOOL_SUFFIX_PREFIX
972 TRAY_MONITOR_CPPFLAGS
1063 ac_subst_files='MCOMMON'
1064 ac_precious_vars='build_alias
1082 # Initialize some variables set by options.
1084 ac_init_version=false
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1094 program_transform_name=s,x,x,
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE}'
1119 infodir='${datarootdir}/info'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1132 # If the previous option needs an argument, assign it.
1133 if test -n "$ac_prev"; then
1134 eval $ac_prev=\$ac_option
1140 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 # Accept the important Cygnus configure options, so we can diagnose typos.
1146 case $ac_dashdash$ac_option in
1150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153 bindir=$ac_optarg ;;
1155 -build | --build | --buil | --bui | --bu)
1156 ac_prev=build_alias ;;
1157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158 build_alias=$ac_optarg ;;
1160 -cache-file | --cache-file | --cache-fil | --cache-fi \
1161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162 ac_prev=cache_file ;;
1163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165 cache_file=$ac_optarg ;;
1167 --config-cache | -C)
1168 cache_file=config.cache ;;
1170 -datadir | --datadir | --datadi | --datad)
1172 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173 datadir=$ac_optarg ;;
1175 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176 | --dataroo | --dataro | --datar)
1177 ac_prev=datarootdir ;;
1178 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180 datarootdir=$ac_optarg ;;
1182 -disable-* | --disable-*)
1183 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1189 eval enable_$ac_feature=no ;;
1191 -docdir | --docdir | --docdi | --doc | --do)
1193 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1194 docdir=$ac_optarg ;;
1196 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1199 dvidir=$ac_optarg ;;
1201 -enable-* | --enable-*)
1202 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1208 eval enable_$ac_feature=\$ac_optarg ;;
1210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212 | --exec | --exe | --ex)
1213 ac_prev=exec_prefix ;;
1214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216 | --exec=* | --exe=* | --ex=*)
1217 exec_prefix=$ac_optarg ;;
1219 -gas | --gas | --ga | --g)
1220 # Obsolete; use --with-gas.
1223 -help | --help | --hel | --he | -h)
1224 ac_init_help=long ;;
1225 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226 ac_init_help=recursive ;;
1227 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228 ac_init_help=short ;;
1230 -host | --host | --hos | --ho)
1231 ac_prev=host_alias ;;
1232 -host=* | --host=* | --hos=* | --ho=*)
1233 host_alias=$ac_optarg ;;
1235 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 htmldir=$ac_optarg ;;
1241 -includedir | --includedir | --includedi | --included | --include \
1242 | --includ | --inclu | --incl | --inc)
1243 ac_prev=includedir ;;
1244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245 | --includ=* | --inclu=* | --incl=* | --inc=*)
1246 includedir=$ac_optarg ;;
1248 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251 infodir=$ac_optarg ;;
1253 -libdir | --libdir | --libdi | --libd)
1255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256 libdir=$ac_optarg ;;
1258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259 | --libexe | --libex | --libe)
1260 ac_prev=libexecdir ;;
1261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262 | --libexe=* | --libex=* | --libe=*)
1263 libexecdir=$ac_optarg ;;
1265 -localedir | --localedir | --localedi | --localed | --locale)
1266 ac_prev=localedir ;;
1267 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268 localedir=$ac_optarg ;;
1270 -localstatedir | --localstatedir | --localstatedi | --localstated \
1271 | --localstate | --localstat | --localsta | --localst | --locals)
1272 ac_prev=localstatedir ;;
1273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275 localstatedir=$ac_optarg ;;
1277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280 mandir=$ac_optarg ;;
1282 -nfp | --nfp | --nf)
1283 # Obsolete; use --without-fp.
1286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287 | --no-cr | --no-c | -n)
1290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296 | --oldin | --oldi | --old | --ol | --o)
1297 ac_prev=oldincludedir ;;
1298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301 oldincludedir=$ac_optarg ;;
1303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306 prefix=$ac_optarg ;;
1308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309 | --program-pre | --program-pr | --program-p)
1310 ac_prev=program_prefix ;;
1311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313 program_prefix=$ac_optarg ;;
1315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316 | --program-suf | --program-su | --program-s)
1317 ac_prev=program_suffix ;;
1318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320 program_suffix=$ac_optarg ;;
1322 -program-transform-name | --program-transform-name \
1323 | --program-transform-nam | --program-transform-na \
1324 | --program-transform-n | --program-transform- \
1325 | --program-transform | --program-transfor \
1326 | --program-transfo | --program-transf \
1327 | --program-trans | --program-tran \
1328 | --progr-tra | --program-tr | --program-t)
1329 ac_prev=program_transform_name ;;
1330 -program-transform-name=* | --program-transform-name=* \
1331 | --program-transform-nam=* | --program-transform-na=* \
1332 | --program-transform-n=* | --program-transform-=* \
1333 | --program-transform=* | --program-transfor=* \
1334 | --program-transfo=* | --program-transf=* \
1335 | --program-trans=* | --program-tran=* \
1336 | --progr-tra=* | --program-tr=* | --program-t=*)
1337 program_transform_name=$ac_optarg ;;
1339 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342 pdfdir=$ac_optarg ;;
1344 -psdir | --psdir | --psdi | --psd | --ps)
1346 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350 | -silent | --silent | --silen | --sile | --sil)
1353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 sbindir=$ac_optarg ;;
1359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361 | --sharedst | --shareds | --shared | --share | --shar \
1363 ac_prev=sharedstatedir ;;
1364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 sharedstatedir=$ac_optarg ;;
1370 -site | --site | --sit)
1372 -site=* | --site=* | --sit=*)
1375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378 srcdir=$ac_optarg ;;
1380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381 | --syscon | --sysco | --sysc | --sys | --sy)
1382 ac_prev=sysconfdir ;;
1383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385 sysconfdir=$ac_optarg ;;
1387 -target | --target | --targe | --targ | --tar | --ta | --t)
1388 ac_prev=target_alias ;;
1389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390 target_alias=$ac_optarg ;;
1392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1395 -version | --version | --versio | --versi | --vers | -V)
1396 ac_init_version=: ;;
1399 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 { echo "$as_me: error: invalid package name: $ac_package" >&2
1403 { (exit 1); exit 1; }; }
1404 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1405 eval with_$ac_package=\$ac_optarg ;;
1407 -without-* | --without-*)
1408 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 { echo "$as_me: error: invalid package name: $ac_package" >&2
1412 { (exit 1); exit 1; }; }
1413 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1414 eval with_$ac_package=no ;;
1417 # Obsolete; use --with-x.
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1434 -*) { echo "$as_me: error: unrecognized option: $ac_option
1435 Try \`$0 --help' for more information." >&2
1436 { (exit 1); exit 1; }; }
1440 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1443 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1444 { (exit 1); exit 1; }; }
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 { echo "$as_me: error: missing argument to $ac_option" >&2
1462 { (exit 1); exit 1; }; }
1465 # Be sure to have absolute directory names.
1466 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val=\$$ac_var
1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477 { (exit 1); exit 1; }; }
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492 If a cross compiler is detected then cross compile mode will be used." >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1501 test "$silent" = yes && exec 6>/dev/null
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 { echo "$as_me: error: Working directory cannot be determined" >&2
1508 { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 { echo "$as_me: error: pwd does not report name of working directory" >&2
1511 { (exit 1); exit 1; }; }
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$0" ||
1519 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$0" : 'X\(//\)[^/]' \| \
1521 X"$0" : 'X\(//\)$' \| \
1522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1546 ac_srcdir_defaulted=no
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551 { (exit 1); exit 1; }; }
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1556 { (exit 1); exit 1; }; }
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --x-includes=DIR X include files are in DIR
1641 --x-libraries=DIR X library files are in DIR
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1649 if test -n "$ac_init_help"; then
1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1656 --enable-libtool enable building using GNU libtool [default=yes]
1657 --enable-shared[=PKGS] build shared libraries [default=yes]
1658 --enable-static[=PKGS] build static libraries [default=no]
1659 --enable-fast-install[=PKGS]
1660 optimize for fast installation [default=yes]
1661 --disable-libtool-lock avoid locking (might break parallel builds)
1662 --enable-includes enable installing of include files [default=no]
1663 --disable-nls do not use Native Language Support
1664 --disable-rpath do not hardcode runtime library paths
1665 --enable-gnome enable build of bgnome-console GUI [default=no]
1666 --enable-bat enable build of bat Qt4 GUI [default=no]
1667 --enable-bwx-console enable build of wxWidgets console [default=no]
1668 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1670 --enable-smartalloc enable smartalloc debugging support [default=no]
1671 --enable-lockmgr enable lock manager support [default=no]
1672 --enable-static-tools enable static tape tools [default=no]
1673 --enable-static-fd enable static File daemon [default=no]
1674 --enable-static-sd enable static Storage daemon [default=no]
1675 --enable-static-dir enable static Director [default=no]
1676 --enable-static-cons enable static Console [default=no]
1677 --enable-client-only build client (File daemon) only [default=no]
1678 --enable-build-dird enable building of dird (Director) [default=yes]
1679 --enable-build-stored enable building of stored (Storage daemon)
1681 --disable-conio disable conio support [default=no]
1682 --enable-ipv6 enable ipv6 support [default=yes]
1683 --disable-readline disable readline support [default=yes]
1684 --enable-batch-insert enable the DB batch insert code [default=no]
1685 --disable-largefile omit support for large files
1686 --disable-acl disable acl support [default=auto]
1687 --disable-xattr disable xattr support [default=auto]
1690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1692 --with-pic try to use only PIC/non-PIC objects [default=use
1694 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1695 --with-gnu-ld assume the C compiler uses GNU ld default=no
1696 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1697 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1698 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1699 --without-libintl-prefix don't search for libintl in includedir and libdir
1700 --with-included-gettext use the GNU gettext library included here
1701 --with-readline[=DIR] specify readline library directory
1702 --with-python[=DIR] Include Python support. DIR is the Python base
1703 install directory, default is to search through a
1704 number of common places for the Python files.
1705 --with-tcp-wrappers[=DIR]
1706 enable tcpwrappers support
1707 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1708 --with-working-dir=PATH specify path of Bacula working directory
1709 --with-archivedir=PATH specify path of SD archive directory
1710 --with-basename=RESNAME specify base resource name for daemons
1711 --with-hostname=RESNAME specify host name for daemons
1712 --with-scriptdir=PATH specify path of Bacula scripts directory
1713 --with-bsrdir=PATH specify path of Bacula bsrs directory
1714 --with-logdir=PATH specify path of Bacula logs directory
1715 --with-plugindir=PATH specify path of Bacula plugins directory
1716 --with-dump-email=EMAIL dump email address
1717 --with-job-email=EMAIL job output email address
1718 --with-smtp-host=HOST SMTP mail host address
1719 --with-pid-dir=PATH specify location of Bacula pid files
1720 --with-subsys-dir=PATH specify location of Bacula subsys file
1721 --with-baseport=PORT specify base port address for daemons
1722 --with-dir-password=PASSWORD
1723 specify Director's password
1724 --with-fd-password=PASSWORD
1725 specify Client's password
1726 --with-sd-password=PASSWORD
1727 specify Storage daemon's password
1728 --with-mon-dir-password=PASSWORD
1729 specify Director's password used by the monitor
1730 --with-mon-fd-password=PASSWORD
1731 specify Client's password used by the monitor
1732 --with-mon-sd-password=PASSWORD
1733 specify Storage daemon's password used by the
1735 --with-db-name=DBNAME specify database name [default=bacula]
1736 --with-db-user=UNAME specify database user [default=bacula]
1737 --with-db-password=PWD specify database password [default=*none*]
1738 --with-db-port=DBPORT specify a database port [default=null]
1739 --with-dir-user=USER specify user for Director daemon
1740 --with-dir-group=GROUP specify group for Director daemon
1741 --with-sd-user=USER specify user for Storage daemon
1742 --with-sd-group=GROUP specify group for Storage daemon
1743 --with-fd-user=USER specify user for File daemon
1744 --with-fd-group=GROUP specify group for File daemon
1745 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1746 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1747 base install directory, [default=/usr/local/pgsql]
1748 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1749 directory, default is to search through a number of
1750 common places for the MySQL files.
1751 --with-embedded-mysql[=DIR]
1752 Include MySQL support. DIR is the MySQL base install
1753 directory, default is to search through a number of
1754 common places for the MySQL files.
1755 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1756 install directory, default is to search through a
1757 number of common places for the Ingres files.
1758 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1759 install directory, default is to search through a
1760 number of common places for the SQLite3 files.
1761 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1762 directory, default is to search through a number of
1763 common places for the DBI files.
1764 --with-dbi-driver[=DRIVER]
1765 Suport for DBI driver. DRIVER is the one DBI driver
1766 like Mysql, Postgresql, others. Default is to not
1767 configure any driver.
1768 --with-x use the X Window System
1770 Some influential environment variables:
1771 CC C compiler command
1772 CFLAGS C compiler flags
1773 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1774 nonstandard directory <lib dir>
1775 LIBS libraries to pass to the linker, e.g. -l<library>
1776 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777 you have headers in a nonstandard directory <include dir>
1778 CXX C++ compiler command
1779 CXXFLAGS C++ compiler flags
1781 WXCONFIG wx-config command. On some systems, you must set it to
1782 wx-config-2.6 to use wxWidgets 2.6.
1783 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1784 CXXCPP C++ preprocessor
1785 XMKMF Path to xmkmf, Makefile generator for X Window System
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1794 if test "$ac_init_help" = "recursive"; then
1795 # If there are subdirs, report their specific --help.
1796 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797 test -d "$ac_dir" || continue
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1804 # A ".." for each directory in $ac_dir_suffix.
1805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1806 case $ac_top_builddir_sub in
1807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1817 .) # We are building in place.
1819 ac_top_srcdir=$ac_top_builddir_sub
1820 ac_abs_top_srcdir=$ac_pwd ;;
1821 [\\/]* | ?:[\\/]* ) # Absolute name.
1822 ac_srcdir=$srcdir$ac_dir_suffix;
1823 ac_top_srcdir=$srcdir
1824 ac_abs_top_srcdir=$srcdir ;;
1826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827 ac_top_srcdir=$ac_top_build_prefix$srcdir
1828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1832 cd "$ac_dir" || { ac_status=$?; continue; }
1833 # Check for guested configure.
1834 if test -f "$ac_srcdir/configure.gnu"; then
1836 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837 elif test -f "$ac_srcdir/configure"; then
1839 $SHELL "$ac_srcdir/configure" --help=recursive
1841 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843 cd "$ac_pwd" || { ac_status=$?; break; }
1847 test -n "$ac_init_help" && exit $ac_status
1848 if $ac_init_version; then
1851 generated by GNU Autoconf 2.61
1853 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.61. Invocation command line was
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 echo "PATH: $as_dir"
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_must_keep_next=false
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1936 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1941 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 -* ) ac_must_keep_next=true ;;
1957 ac_configure_args="$ac_configure_args '$ac_arg'"
1962 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log. We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1976 ## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##
1981 # The following way of writing the cache mishandles newlines in values,
1983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984 eval ac_val=\$$ac_var
1988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1992 _ | IFS | as_nl) ;; #(
1993 *) $as_unset $ac_var ;;
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 ## ----------------- ##
2014 ## Output variables. ##
2015 ## ----------------- ##
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 echo "$ac_var='\''$ac_val'\''"
2028 if test -n "$ac_subst_files"; then
2030 ## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##
2035 for ac_var in $ac_subst_files
2037 eval ac_val=\$$ac_var
2039 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 echo "$ac_var='\''$ac_val'\''"
2046 if test -s confdefs.h; then
2056 test "$ac_signal" != 0 &&
2057 echo "$as_me: caught signal $ac_signal"
2058 echo "$as_me: exit $exit_status"
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 # Predefined preprocessor variables.
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102 set x "$CONFIG_SITE"
2103 elif test "x$prefix" != xNONE; then
2104 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2106 set x "$ac_default_prefix/share/config.site" \
2107 "$ac_default_prefix/etc/config.site"
2112 if test -r "$ac_site_file"; then
2113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2158 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2160 echo "$as_me: former value: $ac_old_val" >&2;}
2161 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2162 echo "$as_me: current value: $ac_new_val" >&2;}
2163 ac_cache_corrupted=:
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2169 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg=$ac_var=$ac_new_val ;;
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2178 if $ac_cache_corrupted; then
2179 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2183 { (exit 1); exit 1; }; }
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2217 if test -f "$ac_dir/install-sh"; then
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 elif test -f "$ac_dir/install.sh"; then
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 elif test -f "$ac_dir/shtool"; then
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2231 if test -z "$ac_aux_dir"; then
2232 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2234 { (exit 1); exit 1; }; }
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2249 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2250 WIN32MAINDIR=${BUILD_DIR}
2251 WIN32TOPDIR=${TOP_DIR}
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 TRUEPRG=$ac_cv_path_TRUEPRG
2292 if test -n "$TRUEPRG"; then
2293 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2294 echo "${ECHO_T}$TRUEPRG" >&6; }
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$TRUEPRG" && break
2303 test -n "$TRUEPRG" || TRUEPRG=":"
2305 for ac_prog in false
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 FALSEPRG=$ac_cv_path_FALSEPRG
2338 if test -n "$FALSEPRG"; then
2339 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2340 echo "${ECHO_T}$FALSEPRG" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$FALSEPRG" && break
2349 test -n "$FALSEPRG" || FALSEPRG=":"
2354 if test "x$BACULA" != x; then
2355 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2357 BACULA=${BACULA:-Bacula}
2358 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2359 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2360 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2362 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2363 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2364 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2369 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2370 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2373 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2374 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2378 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2379 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2381 echo "configuring for ${BACULA} $VERSION ($DATE)"
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file in $ac_files ''
2790 test -f "$ac_file" || continue
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819 { echo "$as_me:$LINENO: result: $ac_file" >&5
2820 echo "${ECHO_T}$ac_file" >&6; }
2821 if test -z "$ac_file"; then
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_link") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3028 GCC=`test $ac_compiler_gnu = yes && echo yes`
3029 ac_test_CFLAGS=${CFLAGS+set}
3030 ac_save_CFLAGS=$CFLAGS
3031 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_cc_g+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_c_werror_flag=$ac_save_c_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3168 if test "$ac_test_CFLAGS" = set; then
3169 CFLAGS=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171 if test "$GCC" = yes; then
3177 if test "$GCC" = yes; then
3183 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3184 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_c89+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 ac_cv_prog_cc_c89=no
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3198 #include <sys/types.h>
3199 #include <sys/stat.h>
3200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3201 struct buf { int x; };
3202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3203 static char *e (p, i)
3209 static char *f (char * (*g) (char **, int), char **p, ...)
3214 s = g (p, va_arg (v,int));
3219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3220 function prototypes and stuff, but not '\xHH' hex character constants.
3221 These don't provoke an error unfortunately, instead are silently treated
3222 as 'x'. The following induces an error, until -std is added to get
3223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3224 array size at least. It's necessary to write '\x00'==0 to get something
3225 that's true only with -std. */
3226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3229 inside strings and character constants. */
3231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3233 int test (int i, double x);
3234 struct s1 {int (*f) (int a);};
3235 struct s2 {int (*f) (double a);};
3236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3250 CC="$ac_save_CC $ac_arg"
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3268 ac_cv_prog_cc_c89=$ac_arg
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3276 rm -f core conftest.err conftest.$ac_objext
3277 test "x$ac_cv_prog_cc_c89" != "xno" && break
3279 rm -f conftest.$ac_ext
3284 case "x$ac_cv_prog_cc_c89" in
3286 { echo "$as_me:$LINENO: result: none needed" >&5
3287 echo "${ECHO_T}none needed" >&6; } ;;
3289 { echo "$as_me:$LINENO: result: unsupported" >&5
3290 echo "${ECHO_T}unsupported" >&6; } ;;
3292 CC="$CC $ac_cv_prog_cc_c89"
3293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 ac_cpp='$CXXCPP $CPPFLAGS'
3306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3309 if test -z "$CXX"; then
3310 if test -n "$CCC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CXX+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$CXX"; then
3324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 test -n "$CXX" && break
3356 if test -z "$CXX"; then
3358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 if test -n "$ac_ct_CXX"; then
3368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CXX="$ac_prog"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3388 if test -n "$ac_ct_CXX"; then
3389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3392 { echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6; }
3397 test -n "$ac_ct_CXX" && break
3400 if test "x$ac_ct_CXX" = x; then
3403 case $cross_compiling:$ac_tool_warned in
3405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3406 whose name does not start with the host triplet. If you think this
3407 configuration is useful to you, please write to autoconf@gnu.org." >&5
3408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3409 whose name does not start with the host triplet. If you think this
3410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3411 ac_tool_warned=yes ;;
3419 # Provide some information about the compiler.
3420 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3421 ac_compiler=`set X $ac_compile; echo $2`
3422 { (ac_try="$ac_compiler --version >&5"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compiler --version >&5") 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }
3432 { (ac_try="$ac_compiler -v >&5"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compiler -v >&5") 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }
3442 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }
3453 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_cxx_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3505 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3506 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3507 GXX=`test $ac_compiler_gnu = yes && echo yes`
3508 ac_test_CXXFLAGS=${CXXFLAGS+set}
3509 ac_save_CXXFLAGS=$CXXFLAGS
3510 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3512 if test "${ac_cv_prog_cxx_g+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3516 ac_cxx_werror_flag=yes
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_cxx_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3551 ac_cv_prog_cxx_g=yes
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_cxx_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_prog_cxx_g=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3646 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3647 if test "$ac_test_CXXFLAGS" = set; then
3648 CXXFLAGS=$ac_save_CXXFLAGS
3649 elif test $ac_cv_prog_cxx_g = yes; then
3650 if test "$GXX" = yes; then
3656 if test "$GXX" = yes; then
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 if test "x$CC" != xcc; then
3669 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3670 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3672 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3673 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3675 set dummy $CC; ac_cc=`echo $2 |
3676 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3677 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3695 # Make sure it works both with $CC and with simple cc.
3696 # We do the test twice because some compilers refuse to overwrite an
3697 # existing .o file with -o, though they will create one.
3698 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3700 if { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_try") 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); };
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3720 if test "x$CC" != xcc; then
3721 # Test first that cc exists at all.
3722 if { ac_try='cc -c conftest.$ac_ext >&5'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3734 if { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); };
3756 # cc exists but doesn't like -o.
3757 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3762 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3764 rm -f core conftest*
3767 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3771 { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3774 cat >>confdefs.h <<\_ACEOF
3775 #define NO_MINUS_C_MINUS_O 1
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3786 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3787 # On Suns, sometimes $CPP names a directory.
3788 if test -n "$CPP" && test -d "$CPP"; then
3791 if test -z "$CPP"; then
3792 if test "${ac_cv_prog_CPP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 # Double quotes because CPP needs to be expanded
3796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3799 for ac_c_preproc_warn_flag in '' yes
3801 # Use a header file that comes with gcc, so configuring glibc
3802 # with a fresh cross-compiler works.
3803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3804 # <limits.h> exists even on freestanding compilers.
3805 # On the NeXT, cc -E runs the code through the compiler's parser,
3806 # not just through cpp. "Syntax error" is here to catch this case.
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3814 # include <limits.h>
3816 # include <assert.h>
3820 if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null && {
3833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 # Broken: fails on valid input.
3845 rm -f conftest.err conftest.$ac_ext
3847 # OK, works on sane cases. Now check whether nonexistent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3857 if { (ac_try="$ac_cpp conftest.$ac_ext"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null && {
3870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3873 # Broken: success on invalid input.
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Passes both tests.
3884 rm -f conftest.err conftest.$ac_ext
3887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3888 rm -f conftest.err conftest.$ac_ext
3889 if $ac_preproc_ok; then
3901 { echo "$as_me:$LINENO: result: $CPP" >&5
3902 echo "${ECHO_T}$CPP" >&6; }
3904 for ac_c_preproc_warn_flag in '' yes
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if { (ac_try="$ac_cpp conftest.$ac_ext"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null && {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 # Broken: fails on valid input.
3950 rm -f conftest.err conftest.$ac_ext
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3962 if { (ac_try="$ac_cpp conftest.$ac_ext"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null && {
3975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3978 # Broken: success on invalid input.
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Passes both tests.
3989 rm -f conftest.err conftest.$ac_ext
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then
3997 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details." >&5
3999 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4000 See \`config.log' for more details." >&2;}
4001 { (exit 1); exit 1; }; }
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4012 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 # Extract the first word of "grep ggrep" to use in msg output
4017 if test -z "$GREP"; then
4018 set dummy grep ggrep; ac_prog_name=$2
4019 if test "${ac_cv_path_GREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_path_GREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in grep ggrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033 # Check for GNU ac_path_GREP and select it if it is found.
4034 # Check for GNU $ac_path_GREP
4035 case `"$ac_path_GREP" --version 2>&1` in
4037 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 echo 'GREP' >> "conftest.nl"
4047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 ac_count=`expr $ac_count + 1`
4050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_GREP="$ac_path_GREP"
4053 ac_path_GREP_max=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_GREP_found && break 3
4072 GREP="$ac_cv_path_GREP"
4073 if test -z "$GREP"; then
4074 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076 { (exit 1); exit 1; }; }
4080 ac_cv_path_GREP=$GREP
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4090 { echo "$as_me:$LINENO: checking for egrep" >&5
4091 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4092 if test "${ac_cv_path_EGREP+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096 then ac_cv_path_EGREP="$GREP -E"
4098 # Extract the first word of "egrep" to use in msg output
4099 if test -z "$EGREP"; then
4100 set dummy egrep; ac_prog_name=$2
4101 if test "${ac_cv_path_EGREP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 ac_path_EGREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in egrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4114 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4115 # Check for GNU ac_path_EGREP and select it if it is found.
4116 # Check for GNU $ac_path_EGREP
4117 case `"$ac_path_EGREP" --version 2>&1` in
4119 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4122 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 echo 'EGREP' >> "conftest.nl"
4129 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 ac_count=`expr $ac_count + 1`
4132 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_EGREP="$ac_path_EGREP"
4135 ac_path_EGREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 $ac_path_EGREP_found && break 3
4154 EGREP="$ac_cv_path_EGREP"
4155 if test -z "$EGREP"; then
4156 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4157 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4158 { (exit 1); exit 1; }; }
4162 ac_cv_path_EGREP=$EGREP
4168 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4169 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4170 EGREP="$ac_cv_path_EGREP"
4173 if test $ac_cv_c_compiler_gnu = yes; then
4174 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4175 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4176 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_pattern="Autoconf.*'x'"
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4191 ac_cv_prog_gcc_traditional=yes
4193 ac_cv_prog_gcc_traditional=no
4198 if test $ac_cv_prog_gcc_traditional = no; then
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4210 ac_cv_prog_gcc_traditional=yes
4216 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4217 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4218 if test $ac_cv_prog_gcc_traditional = yes; then
4219 CC="$CC -traditional"
4223 BASECC=`basename $CC`
4225 if test "x$BASECC" = xgcc; then
4226 cat >>confdefs.h <<\_ACEOF
4232 # Extract the first word of "$CXX", so it can be a program name with args.
4233 set dummy $CXX; ac_word=$2
4234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4236 if test "${ac_cv_path_CXX+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4264 if test -n "$CXX"; then
4265 { echo "$as_me:$LINENO: result: $CXX" >&5
4266 echo "${ECHO_T}$CXX" >&6; }
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4273 if test ! -e $CXX; then
4274 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4275 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4276 { (exit 1); exit 1; }; }
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 # Account for people who put trailing slashes in PATH elements.
4305 ./ | .// | /cC/* | \
4306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4313 for ac_prog in ginstall scoinst install; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4316 if test $ac_prog = install &&
4317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4338 if test "${ac_cv_path_install+set}" = set; then
4339 INSTALL=$ac_cv_path_install
4341 # As a last resort, use the slow shell script. Don't cache a
4342 # value for INSTALL within a source directory, because that will
4343 # break other packages using the cache if that directory is
4344 # removed, or if the value is a relative name.
4345 INSTALL=$ac_install_sh
4348 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4349 echo "${ECHO_T}$INSTALL" >&6; }
4351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4352 # It thinks the first close brace ends the variable substitution.
4353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4359 # Extract the first word of "mv", so it can be a program name with args.
4360 set dummy mv; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_path_MV+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4391 if test -n "$MV"; then
4392 { echo "$as_me:$LINENO: result: $MV" >&5
4393 echo "${ECHO_T}$MV" >&6; }
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4400 # Extract the first word of "rm", so it can be a program name with args.
4401 set dummy rm; ac_word=$2
4402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4404 if test "${ac_cv_path_REMOVE+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4431 REMOVE=$ac_cv_path_REMOVE
4432 if test -n "$REMOVE"; then
4433 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4434 echo "${ECHO_T}$REMOVE" >&6; }
4436 { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4441 # Extract the first word of "cp", so it can be a program name with args.
4442 set dummy cp; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_path_CP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4473 if test -n "$CP"; then
4474 { echo "$as_me:$LINENO: result: $CP" >&5
4475 echo "${ECHO_T}$CP" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4482 # Extract the first word of "sed", so it can be a program name with args.
4483 set dummy sed; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_path_SED+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4514 if test -n "$SED"; then
4515 { echo "$as_me:$LINENO: result: $SED" >&5
4516 echo "${ECHO_T}$SED" >&6; }
4518 { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4523 # Extract the first word of "echo", so it can be a program name with args.
4524 set dummy echo; ac_word=$2
4525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4527 if test "${ac_cv_path_ECHO+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4554 ECHO=$ac_cv_path_ECHO
4555 if test -n "$ECHO"; then
4556 { echo "$as_me:$LINENO: result: $ECHO" >&5
4557 echo "${ECHO_T}$ECHO" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4564 # Extract the first word of "cmp", so it can be a program name with args.
4565 set dummy cmp; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_CMP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4596 if test -n "$CMP"; then
4597 { echo "$as_me:$LINENO: result: $CMP" >&5
4598 echo "${ECHO_T}$CMP" >&6; }
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 # Extract the first word of "tbl", so it can be a program name with args.
4606 set dummy tbl; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_path_TBL+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4637 if test -n "$TBL"; then
4638 { echo "$as_me:$LINENO: result: $TBL" >&5
4639 echo "${ECHO_T}$TBL" >&6; }
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4646 # Extract the first word of "ar", so it can be a program name with args.
4647 set dummy ar; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_path_AR+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4678 if test -n "$AR"; then
4679 { echo "$as_me:$LINENO: result: $AR" >&5
4680 echo "${ECHO_T}$AR" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 # Extract the first word of "openssl", so it can be a program name with args.
4688 set dummy openssl; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_path_OPENSSL+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4718 OPENSSL=$ac_cv_path_OPENSSL
4719 if test -n "$OPENSSL"; then
4720 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4721 echo "${ECHO_T}$OPENSSL" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 # Extract the first word of "mtx", so it can be a program name with args.
4729 set dummy mtx; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_path_MTX+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4760 if test -n "$MTX"; then
4761 { echo "$as_me:$LINENO: result: $MTX" >&5
4762 echo "${ECHO_T}$MTX" >&6; }
4764 { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4769 # Extract the first word of "dd", so it can be a program name with args.
4770 set dummy dd; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_path_DD+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4801 if test -n "$DD"; then
4802 { echo "$as_me:$LINENO: result: $DD" >&5
4803 echo "${ECHO_T}$DD" >&6; }
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4810 # Extract the first word of "mkisofs", so it can be a program name with args.
4811 set dummy mkisofs; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_path_MKISOFS+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4841 MKISOFS=$ac_cv_path_MKISOFS
4842 if test -n "$MKISOFS"; then
4843 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4844 echo "${ECHO_T}$MKISOFS" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4851 # Extract the first word of "python", so it can be a program name with args.
4852 set dummy python; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_path_PYTHON+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4882 PYTHON=$ac_cv_path_PYTHON
4883 if test -n "$PYTHON"; then
4884 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4885 echo "${ECHO_T}$PYTHON" >&6; }
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 # Extract the first word of "growisofs", so it can be a program name with args.
4893 set dummy growisofs; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4923 GROWISOFS=$ac_cv_path_GROWISOFS
4924 if test -n "$GROWISOFS"; then
4925 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4926 echo "${ECHO_T}$GROWISOFS" >&6; }
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4933 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4934 set dummy dvd+rw-mediainfo; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 case $DVDRWMEDIAINFO in
4942 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4964 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4965 if test -n "$DVDRWMEDIAINFO"; then
4966 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4967 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4969 { echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6; }
4974 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4975 set dummy dvd+rw-format; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 case $DVDRWFORMAT in
4983 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5005 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5006 if test -n "$DVDRWFORMAT"; then
5007 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5008 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5015 # Extract the first word of "pkg-config", so it can be a program name with args.
5016 set dummy pkg-config; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5046 PKGCONFIG=$ac_cv_path_PKGCONFIG
5047 if test -n "$PKGCONFIG"; then
5048 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5049 echo "${ECHO_T}$PKGCONFIG" >&6; }
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5056 # Extract the first word of "qmake", so it can be a program name with args.
5057 set dummy qmake; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_path_QMAKE+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5087 QMAKE=$ac_cv_path_QMAKE
5088 if test -n "$QMAKE"; then
5089 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5090 echo "${ECHO_T}$QMAKE" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 # Extract the first word of "gmake", so it can be a program name with args.
5098 set dummy gmake; ac_word=$2
5099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101 if test "${ac_cv_path_GMAKE+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5128 GMAKE=$ac_cv_path_GMAKE
5129 if test -n "$GMAKE"; then
5130 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5131 echo "${ECHO_T}$GMAKE" >&6; }
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5139 if test "x$WXCONFIG" = x; then
5142 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5143 set dummy ${WXCONFIG}; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5173 WXCONFIG=$ac_cv_path_WXCONFIG
5174 if test -n "$WXCONFIG"; then
5175 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5176 echo "${ECHO_T}$WXCONFIG" >&6; }
5178 { echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6; }
5184 # Extract the first word of "cdrecord", so it can be a program name with args.
5185 set dummy cdrecord; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_path_CDRECORD+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5215 CDRECORD=$ac_cv_path_CDRECORD
5216 if test -n "$CDRECORD"; then
5217 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5218 echo "${ECHO_T}$CDRECORD" >&6; }
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5225 # Extract the first word of "pidof", so it can be a program name with args.
5226 set dummy pidof; ac_word=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_path_PIDOF+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5256 PIDOF=$ac_cv_path_PIDOF
5257 if test -n "$PIDOF"; then
5258 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5259 echo "${ECHO_T}$PIDOF" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 for ac_prog in gawk mawk nawk awk
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5272 if test "${ac_cv_prog_AWK+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test -n "$AWK"; then
5276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_AWK="$ac_prog"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$AWK"; then
5297 { echo "$as_me:$LINENO: result: $AWK" >&5
5298 echo "${ECHO_T}$AWK" >&6; }
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 test -n "$AWK" && break
5308 # Some AWK programs fail, so test it and warn the user
5309 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5310 { if ((prog == $2) || (("(" prog ")") == $2) ||
5311 (("" prog "") == $2) ||
5312 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5314 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5315 The regex engine of $AWK is too broken to be used you
5316 might want to install GNU AWK.
5317 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5318 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5319 The regex engine of $AWK is too broken to be used you
5320 might want to install GNU AWK.
5321 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5322 { (exit 1); exit 1; }; }
5325 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5326 set dummy $THE_AWK; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_AWK+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5357 if test -n "$AWK"; then
5358 { echo "$as_me:$LINENO: result: $AWK" >&5
5359 echo "${ECHO_T}$AWK" >&6; }
5361 { echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6; }
5368 test -n "$ARFLAG" || ARFLAGS="cr"
5380 # Check whether --enable-libtool was given.
5381 if test "${enable_libtool+set}" = set; then
5382 enableval=$enable_libtool;
5383 if test x$enableval = xno; then
5392 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5398 macro_version='2.2.6'
5399 macro_revision='1.3012'
5413 ltmain="$ac_aux_dir/ltmain.sh"
5415 # Make sure we can run config.sub.
5416 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5417 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5418 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5419 { (exit 1); exit 1; }; }
5421 { echo "$as_me:$LINENO: checking build system type" >&5
5422 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5423 if test "${ac_cv_build+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_build_alias=$build_alias
5427 test "x$ac_build_alias" = x &&
5428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5429 test "x$ac_build_alias" = x &&
5430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5432 { (exit 1); exit 1; }; }
5433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5434 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5435 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5436 { (exit 1); exit 1; }; }
5439 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5440 echo "${ECHO_T}$ac_cv_build" >&6; }
5441 case $ac_cv_build in
5443 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5444 echo "$as_me: error: invalid value of canonical build" >&2;}
5445 { (exit 1); exit 1; }; };;
5448 ac_save_IFS=$IFS; IFS='-'
5454 # Remember, the first character of IFS is used to create $*,
5455 # except with old shells:
5458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461 { echo "$as_me:$LINENO: checking host system type" >&5
5462 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5463 if test "${ac_cv_host+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 if test "x$host_alias" = x; then
5467 ac_cv_host=$ac_cv_build
5469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5470 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5471 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5472 { (exit 1); exit 1; }; }
5476 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5477 echo "${ECHO_T}$ac_cv_host" >&6; }
5480 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5481 echo "$as_me: error: invalid value of canonical host" >&2;}
5482 { (exit 1); exit 1; }; };;
5485 ac_save_IFS=$IFS; IFS='-'
5491 # Remember, the first character of IFS is used to create $*,
5492 # except with old shells:
5495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5498 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5499 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5500 if test "${ac_cv_path_SED+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5504 for ac_i in 1 2 3 4 5 6 7; do
5505 ac_script="$ac_script$as_nl$ac_script"
5507 echo "$ac_script" | sed 99q >conftest.sed
5508 $as_unset ac_script || ac_script=
5509 # Extract the first word of "sed gsed" to use in msg output
5510 if test -z "$SED"; then
5511 set dummy sed gsed; ac_prog_name=$2
5512 if test "${ac_cv_path_SED+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_path_SED_found=false
5516 # Loop through the user's path and test for each of PROGNAME-LIST
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_prog in sed gsed; do
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5526 # Check for GNU ac_path_SED and select it if it is found.
5527 # Check for GNU $ac_path_SED
5528 case `"$ac_path_SED" --version 2>&1` in
5530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5536 cat "conftest.in" "conftest.in" >"conftest.tmp"
5537 mv "conftest.tmp" "conftest.in"
5538 cp "conftest.in" "conftest.nl"
5539 echo '' >> "conftest.nl"
5540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542 ac_count=`expr $ac_count + 1`
5543 if test $ac_count -gt ${ac_path_SED_max-0}; then
5544 # Best one so far, save it but keep looking for a better one
5545 ac_cv_path_SED="$ac_path_SED"
5546 ac_path_SED_max=$ac_count
5548 # 10*(2^10) chars as input seems more than enough
5549 test $ac_count -gt 10 && break
5551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5555 $ac_path_SED_found && break 3
5565 SED="$ac_cv_path_SED"
5566 if test -z "$SED"; then
5567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5568 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5569 { (exit 1); exit 1; }; }
5577 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5578 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5579 SED="$ac_cv_path_SED"
5582 test -z "$SED" && SED=sed
5583 Xsed="$SED -e 1s/^X//"
5595 { echo "$as_me:$LINENO: checking for fgrep" >&5
5596 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5597 if test "${ac_cv_path_FGREP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5601 then ac_cv_path_FGREP="$GREP -F"
5603 # Extract the first word of "fgrep" to use in msg output
5604 if test -z "$FGREP"; then
5605 set dummy fgrep; ac_prog_name=$2
5606 if test "${ac_cv_path_FGREP+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_path_FGREP_found=false
5610 # Loop through the user's path and test for each of PROGNAME-LIST
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 test -z "$as_dir" && as_dir=.
5616 for ac_prog in fgrep; do
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5619 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5620 # Check for GNU ac_path_FGREP and select it if it is found.
5621 # Check for GNU $ac_path_FGREP
5622 case `"$ac_path_FGREP" --version 2>&1` in
5624 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5630 cat "conftest.in" "conftest.in" >"conftest.tmp"
5631 mv "conftest.tmp" "conftest.in"
5632 cp "conftest.in" "conftest.nl"
5633 echo 'FGREP' >> "conftest.nl"
5634 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5636 ac_count=`expr $ac_count + 1`
5637 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5638 # Best one so far, save it but keep looking for a better one
5639 ac_cv_path_FGREP="$ac_path_FGREP"
5640 ac_path_FGREP_max=$ac_count
5642 # 10*(2^10) chars as input seems more than enough
5643 test $ac_count -gt 10 && break
5645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649 $ac_path_FGREP_found && break 3
5659 FGREP="$ac_cv_path_FGREP"
5660 if test -z "$FGREP"; then
5661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5663 { (exit 1); exit 1; }; }
5667 ac_cv_path_FGREP=$FGREP
5673 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5674 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5675 FGREP="$ac_cv_path_FGREP"
5678 test -z "$GREP" && GREP=grep
5698 # Check whether --with-gnu-ld was given.
5699 if test "${with_gnu_ld+set}" = set; then
5700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5706 if test "$GCC" = yes; then
5707 # Check if gcc -print-prog-name=ld gives a path.
5708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712 # gcc leaves a trailing carriage return which upsets mingw
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718 # Accept absolute paths.
5720 re_direlt='/[^/][^/]*/\.\./'
5721 # Canonicalize the pathname of ld
5722 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5723 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5724 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5726 test -z "$LD" && LD="$ac_prog"
5729 # If it fails, then pretend we aren't using GCC.
5733 # If it is relative, then search for the first ld in PATH.
5737 elif test "$with_gnu_ld" = yes; then
5738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5744 if test "${lt_cv_path_LD+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -z "$LD"; then
5748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749 for ac_dir in $PATH; do
5751 test -z "$ac_dir" && ac_dir=.
5752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5753 lt_cv_path_LD="$ac_dir/$ac_prog"
5754 # Check to see if the program is GNU ld. I'd rather use --version,
5755 # but apparently some variants of GNU ld only accept -v.
5756 # Break only if it was the GNU/non-GNU ld that we prefer.
5757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5758 *GNU* | *'with BFD'*)
5759 test "$with_gnu_ld" != no && break
5762 test "$with_gnu_ld" != yes && break
5769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5774 if test -n "$LD"; then
5775 { echo "$as_me:$LINENO: result: $LD" >&5
5776 echo "${ECHO_T}$LD" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5783 { (exit 1); exit 1; }; }
5784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5790 case `$LD -v 2>&1 </dev/null` in
5791 *GNU* | *'with BFD'*)
5792 lt_cv_prog_gnu_ld=yes
5795 lt_cv_prog_gnu_ld=no
5799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5801 with_gnu_ld=$lt_cv_prog_gnu_ld
5811 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5812 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5813 if test "${lt_cv_path_NM+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$NM"; then
5817 # Let the user override the test.
5820 lt_nm_to_check="${ac_tool_prefix}nm"
5821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5822 lt_nm_to_check="$lt_nm_to_check nm"
5824 for lt_tmp_nm in $lt_nm_to_check; do
5825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5828 test -z "$ac_dir" && ac_dir=.
5829 tmp_nm="$ac_dir/$lt_tmp_nm"
5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5831 # Check to see if the nm accepts a BSD-compat flag.
5832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5833 # nm: unknown option "B" ignored
5834 # Tru64's nm complains that /dev/null is an invalid object file
5835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5836 */dev/null* | *'Invalid file or object type'*)
5837 lt_cv_path_NM="$tmp_nm -B"
5841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5843 lt_cv_path_NM="$tmp_nm -p"
5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848 continue # so that we can try to find one that supports BSD flags
5857 : ${lt_cv_path_NM=no}
5860 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5861 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5862 if test "$lt_cv_path_NM" != "no"; then
5865 # Didn't find any BSD compatible name lister, look for dumpbin.
5866 if test -n "$ac_tool_prefix"; then
5867 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if test -n "$DUMPBIN"; then
5877 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 DUMPBIN=$ac_cv_prog_DUMPBIN
5897 if test -n "$DUMPBIN"; then
5898 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5899 echo "${ECHO_T}$DUMPBIN" >&6; }
5901 { echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6; }
5906 test -n "$DUMPBIN" && break
5909 if test -z "$DUMPBIN"; then
5910 ac_ct_DUMPBIN=$DUMPBIN
5911 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$ac_ct_DUMPBIN"; then
5921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5941 if test -n "$ac_ct_DUMPBIN"; then
5942 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5943 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 test -n "$ac_ct_DUMPBIN" && break
5953 if test "x$ac_ct_DUMPBIN" = x; then
5956 case $cross_compiling:$ac_tool_warned in
5958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet. If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&5
5961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet. If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5964 ac_tool_warned=yes ;;
5966 DUMPBIN=$ac_ct_DUMPBIN
5971 if test "$DUMPBIN" != ":"; then
5975 test -z "$NM" && NM=nm
5982 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5983 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5984 if test "${lt_cv_nm_interface+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 lt_cv_nm_interface="BSD nm"
5988 echo "int some_variable = 0;" > conftest.$ac_ext
5989 (eval echo "\"\$as_me:5989: $ac_compile\"" >&5)
5990 (eval "$ac_compile" 2>conftest.err)
5991 cat conftest.err >&5
5992 (eval echo "\"\$as_me:5992: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5994 cat conftest.err >&5
5995 (eval echo "\"\$as_me:5995: output\"" >&5)
5996 cat conftest.out >&5
5997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5998 lt_cv_nm_interface="MS dumpbin"
6002 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6003 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6005 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6006 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6008 if test "$LN_S" = "ln -s"; then
6009 { echo "$as_me:$LINENO: result: yes" >&5
6010 echo "${ECHO_T}yes" >&6; }
6012 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6013 echo "${ECHO_T}no, using $LN_S" >&6; }
6016 # find the maximum length of command line arguments
6017 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6018 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6019 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 # On DJGPP, this test can blow up pretty badly due to problems in libc
6028 # (any single argument exceeding 2000 bytes causes a buffer overrun
6029 # during glob expansion). Even if it were fixed, the result of this
6030 # check would be larger than it should be.
6031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6035 # Under GNU Hurd, this test is not required because there is
6036 # no limit to the length of command line arguments.
6037 # Libtool will interpret -1 as no limit whatsoever
6038 lt_cv_sys_max_cmd_len=-1;
6041 cygwin* | mingw* | cegcc*)
6042 # On Win9x/ME, this test blows up -- it succeeds, but takes
6043 # about 5 minutes as the teststring grows exponentially.
6044 # Worse, since 9x/ME are not pre-emptively multitasking,
6045 # you end up with a "frozen" computer, even though with patience
6046 # the test eventually succeeds (with a max line length of 256k).
6047 # Instead, let's just punt: use the minimum linelength reported by
6048 # all of the supported platforms: 8192 (on NT/2K/XP).
6049 lt_cv_sys_max_cmd_len=8192;
6053 # On AmigaOS with pdksh, this test takes hours, literally.
6054 # So we just punt and use a minimum line length of 8192.
6055 lt_cv_sys_max_cmd_len=8192;
6058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6059 # This has been around since 386BSD, at least. Likely further.
6060 if test -x /sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6062 elif test -x /usr/sbin/sysctl; then
6063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6067 # And add a safety zone
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6074 lt_cv_sys_max_cmd_len=196608
6078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6080 # nice to cause kernel panics so lets avoid the loop below.
6081 # First set a reasonable default.
6082 lt_cv_sys_max_cmd_len=16384
6084 if test -x /sbin/sysconfig; then
6085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6091 lt_cv_sys_max_cmd_len=102400
6093 sysv5* | sco5v6* | sysv4.2uw2*)
6094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6095 if test -n "$kargmax"; then
6096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6098 lt_cv_sys_max_cmd_len=32768
6102 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6103 if test -n "$lt_cv_sys_max_cmd_len"; then
6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107 # Make teststring a little bigger before we do anything with it.
6108 # a 1K string should be a reasonable start.
6109 for i in 1 2 3 4 5 6 7 8 ; do
6110 teststring=$teststring$teststring
6112 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6113 # If test is not a shell built-in, we'll probably end up computing a
6114 # maximum length that is only half of the actual maximum length, but
6116 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6117 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6118 test $i != 17 # 1/2 MB should be enough
6121 teststring=$teststring$teststring
6123 # Only check the string length outside the loop.
6124 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6126 # Add a significant safety factor because C++ compilers can tack on
6127 # massive amounts of additional arguments before passing them to the
6128 # linker. It appears as though 1/2 is a usable value.
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136 if test -n $lt_cv_sys_max_cmd_len ; then
6137 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6138 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6140 { echo "$as_me:$LINENO: result: none" >&5
6141 echo "${ECHO_T}none" >&6; }
6143 max_cmd_len=$lt_cv_sys_max_cmd_len
6154 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6155 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6156 # Try some XSI features
6159 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6161 && eval 'test $(( 1 + 1 )) -eq 2 \
6162 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6164 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6165 echo "${ECHO_T}$xsi_shell" >&6; }
6168 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6169 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6171 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173 && lt_shell_append=yes
6174 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6175 echo "${ECHO_T}$lt_shell_append" >&6; }
6178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6188 # test EBCDIC or ASCII
6189 case `echo X|tr X '\101'` in
6190 A) # ASCII based system
6191 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6192 lt_SP2NL='tr \040 \012'
6193 lt_NL2SP='tr \015\012 \040\040'
6195 *) # EBCDIC based system
6196 lt_SP2NL='tr \100 \n'
6197 lt_NL2SP='tr \r\n \100\100'
6209 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6210 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6211 if test "${lt_cv_ld_reload_flag+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 lt_cv_ld_reload_flag='-r'
6216 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6217 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6218 reload_flag=$lt_cv_ld_reload_flag
6219 case $reload_flag in
6221 *) reload_flag=" $reload_flag" ;;
6223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 if test "$GCC" = yes; then
6227 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$OBJDUMP"; then
6251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 OBJDUMP=$ac_cv_prog_OBJDUMP
6271 if test -n "$OBJDUMP"; then
6272 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6273 echo "${ECHO_T}$OBJDUMP" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_OBJDUMP"; then
6282 ac_ct_OBJDUMP=$OBJDUMP
6283 # Extract the first word of "objdump", so it can be a program name with args.
6284 set dummy objdump; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 if test -n "$ac_ct_OBJDUMP"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6311 if test -n "$ac_ct_OBJDUMP"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6313 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_OBJDUMP" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6332 OBJDUMP=$ac_ct_OBJDUMP
6335 OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 test -z "$OBJDUMP" && OBJDUMP=objdump
6348 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6349 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6350 if test "${lt_cv_deplibs_check_method+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 lt_cv_file_magic_cmd='$MAGIC_CMD'
6354 lt_cv_file_magic_test_file=
6355 lt_cv_deplibs_check_method='unknown'
6356 # Need to set the preceding variable on all platforms that support
6357 # interlibrary dependencies.
6358 # 'none' -- dependencies not supported.
6359 # `unknown' -- same as none, but documents that we really don't know.
6360 # 'pass_all' -- all dependencies passed with no checks.
6361 # 'test_compile' -- check by making test program.
6362 # 'file_magic [[regex]]' -- check by looking for files in library path
6363 # which responds to the $file_magic_cmd with a given extended regex.
6364 # If you have `file' or equivalent on your system and you're not sure
6365 # whether `pass_all' will *always* work, you probably want this one.
6369 lt_cv_deplibs_check_method=pass_all
6373 lt_cv_deplibs_check_method=pass_all
6377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6378 lt_cv_file_magic_cmd='/usr/bin/file -L'
6379 lt_cv_file_magic_test_file=/shlib/libc.so
6383 # func_win32_libid is a shell function defined in ltmain.sh
6384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6385 lt_cv_file_magic_cmd='func_win32_libid'
6389 # Base MSYS/MinGW do not provide the 'file' command needed by
6390 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6391 # unless we find 'file', for example because we are cross-compiling.
6392 if ( file / ) >/dev/null 2>&1; then
6393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394 lt_cv_file_magic_cmd='func_win32_libid'
6396 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6397 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 # use the weaker test based on 'objdump'. See mingw*.
6403 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6404 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 darwin* | rhapsody*)
6408 lt_cv_deplibs_check_method=pass_all
6411 freebsd* | dragonfly*)
6412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415 # Not sure whether the presence of OpenBSD here was a mistake.
6416 # Let's accept both of them until this is cleared up.
6417 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6418 lt_cv_file_magic_cmd=/usr/bin/file
6419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6423 lt_cv_deplibs_check_method=pass_all
6428 lt_cv_deplibs_check_method=pass_all
6431 hpux10.20* | hpux11*)
6432 lt_cv_file_magic_cmd=/usr/bin/file
6435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439 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]'
6440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454 irix5* | irix6* | nonstopux*)
6456 *-32|*"-32 ") libmagic=32-bit;;
6457 *-n32|*"-n32 ") libmagic=N32;;
6458 *-64|*"-64 ") libmagic=64-bit;;
6459 *) libmagic=never-match;;
6461 lt_cv_deplibs_check_method=pass_all
6464 # This must be Linux ELF.
6465 linux* | k*bsd*-gnu)
6466 lt_cv_deplibs_check_method=pass_all
6470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479 lt_cv_file_magic_cmd=/usr/bin/file
6480 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484 lt_cv_deplibs_check_method=pass_all
6488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495 osf3* | osf4* | osf5*)
6496 lt_cv_deplibs_check_method=pass_all
6500 lt_cv_deplibs_check_method=pass_all
6504 lt_cv_deplibs_check_method=pass_all
6507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508 lt_cv_deplibs_check_method=pass_all
6512 case $host_vendor in
6514 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]'
6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518 lt_cv_deplibs_check_method=pass_all
6521 lt_cv_file_magic_cmd='/bin/file'
6522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525 lt_cv_file_magic_cmd='/bin/file'
6526 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527 lt_cv_file_magic_test_file=/lib/libc.so
6530 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6544 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6545 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6546 file_magic_cmd=$lt_cv_file_magic_cmd
6547 deplibs_check_method=$lt_cv_deplibs_check_method
6548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_AR+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 if test -n "$AR"; then
6570 ac_cv_prog_AR="$AR" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_AR="${ac_tool_prefix}ar"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 if test -n "$AR"; then
6591 { echo "$as_me:$LINENO: result: $AR" >&5
6592 echo "${ECHO_T}$AR" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6600 if test -z "$ac_cv_prog_AR"; then
6602 # Extract the first word of "ar", so it can be a program name with args.
6603 set dummy ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 if test -n "$ac_ct_AR"; then
6610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_AR="ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6630 if test -n "$ac_ct_AR"; then
6631 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6632 echo "${ECHO_T}$ac_ct_AR" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6638 if test "x$ac_ct_AR" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6657 test -z "$AR" && AR=ar
6658 test -z "$AR_FLAGS" && AR_FLAGS=cru
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}strip; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_STRIP+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 if test -n "$STRIP"; then
6679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 STRIP=$ac_cv_prog_STRIP
6699 if test -n "$STRIP"; then
6700 { echo "$as_me:$LINENO: result: $STRIP" >&5
6701 echo "${ECHO_T}$STRIP" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6709 if test -z "$ac_cv_prog_STRIP"; then
6711 # Extract the first word of "strip", so it can be a program name with args.
6712 set dummy strip; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 if test -n "$ac_ct_STRIP"; then
6719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_ac_ct_STRIP="strip"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6739 if test -n "$ac_ct_STRIP"; then
6740 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6741 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6747 if test "x$ac_ct_STRIP" = x; then
6750 case $cross_compiling:$ac_tool_warned in
6752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&5
6755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6756 whose name does not start with the host triplet. If you think this
6757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6758 ac_tool_warned=yes ;;
6763 STRIP="$ac_cv_prog_STRIP"
6766 test -z "$STRIP" && STRIP=:
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_RANLIB+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 if test -n "$RANLIB"; then
6782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 echo "${ECHO_T}$RANLIB" >&6; }
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$ac_ct_RANLIB"; then
6822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_RANLIB="ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6842 if test -n "$ac_ct_RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6844 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6850 if test "x$ac_ct_RANLIB" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6863 RANLIB=$ac_ct_RANLIB
6866 RANLIB="$ac_cv_prog_RANLIB"
6869 test -z "$RANLIB" && RANLIB=:
6876 # Determine commands to create old-style static archives.
6877 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6878 old_postinstall_cmds='chmod 644 $oldlib'
6879 old_postuninstall_cmds=
6881 if test -n "$RANLIB"; then
6884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6890 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926 # If no C compiler was specified, use CC.
6929 # If no C compiler flags were specified, use CFLAGS.
6930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6932 # Allow CC to be a program name with arguments.
6936 # Check for command to grab the raw symbol name followed by C symbol from nm.
6937 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6938 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6939 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 # These are sane defaults that work on at least a few old systems.
6944 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6946 # Character class describing NM global symbol codes.
6947 symcode='[BCDEGRST]'
6949 # Regexp to match symbols that can be accessed directly from C.
6950 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952 # Define system-specific variables.
6957 cygwin* | mingw* | pw32* | cegcc*)
6958 symcode='[ABCDGISTW]'
6961 if test "$host_cpu" = ia64; then
6962 symcode='[ABCDEGRST]'
6966 symcode='[BCDEGRST]'
6969 symcode='[BCDEGQRST]'
6980 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6988 # If we're using GNU nm, then use its standard symbol codes.
6989 case `$NM -V 2>&1` in
6990 *GNU* | *'with BFD'*)
6991 symcode='[ABCDGIRSTW]' ;;
6994 # Transform an extracted symbol line into a proper C declaration.
6995 # Some systems (esp. on ia64) link data and code symbols differently,
6996 # so use this general approach.
6997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6999 # Transform an extracted symbol line into symbol name and symbol address
7000 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7001 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'"
7003 # Handle CRLF in mingw tool chain
7007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7011 # Try without a prefix underscore, then with it.
7012 for ac_symprfx in "" "_"; do
7014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7015 symxfrm="\\1 $ac_symprfx\\2 \\2"
7017 # Write the raw and C identifiers.
7018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7019 # Fake it for dumpbin and say T for any non-static function
7020 # and D for any global variable.
7021 # Also find C++ and __fastcall symbols from MSVC++,
7022 # which start with @ or ?.
7023 lt_cv_sys_global_symbol_pipe="$AWK '"\
7024 " {last_section=section; section=\$ 3};"\
7025 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7026 " \$ 0!~/External *\|/{next};"\
7027 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7028 " {if(hide[section]) next};"\
7029 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7030 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7031 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7032 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7033 " ' prfx=^$ac_symprfx"
7035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038 # Check to see that the pipe works correctly.
7042 cat > conftest.$ac_ext <<_LT_EOF
7047 void nm_test_func(void);
7048 void nm_test_func(void){}
7052 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; then
7060 # Now try to grab the symbols.
7062 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && test -s "$nlist"; then
7067 # Try sorting and uniquifying the output.
7068 if sort "$nlist" | uniq > "$nlist"T; then
7069 mv -f "$nlist"T "$nlist"
7074 # Make sure that we snagged all the symbols we need.
7075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7077 cat <<_LT_EOF > conftest.$ac_ext
7083 # Now generate the symbol file.
7084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7086 cat <<_LT_EOF >> conftest.$ac_ext
7088 /* The mapping between symbol names and symbols. */
7093 lt__PROGRAM__LTX_preloaded_symbols[] =
7095 { "@PROGRAM@", (void *) 0 },
7097 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7098 cat <<\_LT_EOF >> conftest.$ac_ext
7102 /* This works around a problem in FreeBSD linker */
7103 #ifdef FREEBSD_WORKAROUND
7104 static const void *lt_preloaded_setup() {
7105 return lt__PROGRAM__LTX_preloaded_symbols;
7113 # Now try linking the two files.
7114 mv conftest.$ac_objext conftstm.$ac_objext
7115 lt_save_LIBS="$LIBS"
7116 lt_save_CFLAGS="$CFLAGS"
7117 LIBS="conftstm.$ac_objext"
7118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7126 LIBS="$lt_save_LIBS"
7127 CFLAGS="$lt_save_CFLAGS"
7129 echo "cannot find nm_test_func in $nlist" >&5
7132 echo "cannot find nm_test_var in $nlist" >&5
7135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7138 echo "$progname: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 rm -rf conftest* conftst*
7143 # Do not use the global_symbol_pipe unless it works.
7144 if test "$pipe_works" = yes; then
7147 lt_cv_sys_global_symbol_pipe=
7153 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7154 lt_cv_sys_global_symbol_to_cdecl=
7156 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7157 { echo "$as_me:$LINENO: result: failed" >&5
7158 echo "${ECHO_T}failed" >&6; }
7160 { echo "$as_me:$LINENO: result: ok" >&5
7161 echo "${ECHO_T}ok" >&6; }
7185 # Check whether --enable-libtool-lock was given.
7186 if test "${enable_libtool_lock+set}" = set; then
7187 enableval=$enable_libtool_lock;
7190 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7192 # Some flags need to be propagated to the compiler or linker for good
7196 # Find out which ABI we are using.
7197 echo 'int i;' > conftest.$ac_ext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199 (eval $ac_compile) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; then
7203 case `/usr/bin/file conftest.$ac_objext` in
7215 # Find out which ABI we are using.
7216 echo '#line 7216 "configure"' > conftest.$ac_ext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; then
7222 if test "$lt_cv_prog_gnu_ld" = yes; then
7223 case `/usr/bin/file conftest.$ac_objext` in
7225 LD="${LD-ld} -melf32bsmip"
7228 LD="${LD-ld} -melf32bmipn32"
7231 LD="${LD-ld} -melf64bmip"
7235 case `/usr/bin/file conftest.$ac_objext` in
7251 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7252 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7253 # Find out which ABI we are using.
7254 echo 'int i;' > conftest.$ac_ext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; then
7260 case `/usr/bin/file conftest.o` in
7263 x86_64-*kfreebsd*-gnu)
7264 LD="${LD-ld} -m elf_i386_fbsd"
7267 LD="${LD-ld} -m elf_i386"
7269 ppc64-*linux*|powerpc64-*linux*)
7270 LD="${LD-ld} -m elf32ppclinux"
7273 LD="${LD-ld} -m elf_s390"
7276 LD="${LD-ld} -m elf32_sparc"
7282 x86_64-*kfreebsd*-gnu)
7283 LD="${LD-ld} -m elf_x86_64_fbsd"
7286 LD="${LD-ld} -m elf_x86_64"
7288 ppc*-*linux*|powerpc*-*linux*)
7289 LD="${LD-ld} -m elf64ppc"
7291 s390*-*linux*|s390*-*tpf*)
7292 LD="${LD-ld} -m elf64_s390"
7295 LD="${LD-ld} -m elf64_sparc"
7305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7306 SAVE_CFLAGS="$CFLAGS"
7307 CFLAGS="$CFLAGS -belf"
7308 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7310 if test "${lt_cv_cc_needs_belf+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (ac_try="$ac_link"
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_link") 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest$ac_exeext &&
7351 $as_test_x conftest$ac_exeext; then
7352 lt_cv_cc_needs_belf=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 lt_cv_cc_needs_belf=no
7360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7361 conftest$ac_exeext conftest.$ac_ext
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7370 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7373 CFLAGS="$SAVE_CFLAGS"
7377 # Find out which ABI we are using.
7378 echo 'int i;' > conftest.$ac_ext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; then
7384 case `/usr/bin/file conftest.o` in
7386 case $lt_cv_prog_gnu_ld in
7387 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7389 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7401 need_locks="$enable_libtool_lock"
7405 rhapsody* | darwin*)
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 if test -n "$DSYMUTIL"; then
7415 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7435 if test -n "$DSYMUTIL"; then
7436 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7437 echo "${ECHO_T}$DSYMUTIL" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7445 if test -z "$ac_cv_prog_DSYMUTIL"; then
7446 ac_ct_DSYMUTIL=$DSYMUTIL
7447 # Extract the first word of "dsymutil", so it can be a program name with args.
7448 set dummy dsymutil; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 if test -n "$ac_ct_DSYMUTIL"; then
7455 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7475 if test -n "$ac_ct_DSYMUTIL"; then
7476 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7477 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7483 if test "x$ac_ct_DSYMUTIL" = x; then
7486 case $cross_compiling:$ac_tool_warned in
7488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet. If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&5
7491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet. If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7494 ac_tool_warned=yes ;;
7496 DSYMUTIL=$ac_ct_DSYMUTIL
7499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$NMEDIT"; then
7511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 NMEDIT=$ac_cv_prog_NMEDIT
7531 if test -n "$NMEDIT"; then
7532 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7533 echo "${ECHO_T}$NMEDIT" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7541 if test -z "$ac_cv_prog_NMEDIT"; then
7542 ac_ct_NMEDIT=$NMEDIT
7543 # Extract the first word of "nmedit", so it can be a program name with args.
7544 set dummy nmedit; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$ac_ct_NMEDIT"; then
7551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571 if test -n "$ac_ct_NMEDIT"; then
7572 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7573 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7579 if test "x$ac_ct_NMEDIT" = x; then
7582 case $cross_compiling:$ac_tool_warned in
7584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7585 whose name does not start with the host triplet. If you think this
7586 configuration is useful to you, please write to autoconf@gnu.org." >&5
7587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7588 whose name does not start with the host triplet. If you think this
7589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7590 ac_tool_warned=yes ;;
7592 NMEDIT=$ac_ct_NMEDIT
7595 NMEDIT="$ac_cv_prog_NMEDIT"
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_prog_LIPO+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 if test -n "$LIPO"; then
7607 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 LIPO=$ac_cv_prog_LIPO
7627 if test -n "$LIPO"; then
7628 { echo "$as_me:$LINENO: result: $LIPO" >&5
7629 echo "${ECHO_T}$LIPO" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7637 if test -z "$ac_cv_prog_LIPO"; then
7639 # Extract the first word of "lipo", so it can be a program name with args.
7640 set dummy lipo; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 if test -n "$ac_ct_LIPO"; then
7647 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_prog_ac_ct_LIPO="lipo"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7667 if test -n "$ac_ct_LIPO"; then
7668 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7669 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7671 { echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6; }
7675 if test "x$ac_ct_LIPO" = x; then
7678 case $cross_compiling:$ac_tool_warned in
7680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7681 whose name does not start with the host triplet. If you think this
7682 configuration is useful to you, please write to autoconf@gnu.org." >&5
7683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7684 whose name does not start with the host triplet. If you think this
7685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7686 ac_tool_warned=yes ;;
7691 LIPO="$ac_cv_prog_LIPO"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_prog_OTOOL+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test -n "$OTOOL"; then
7703 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 OTOOL=$ac_cv_prog_OTOOL
7723 if test -n "$OTOOL"; then
7724 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7725 echo "${ECHO_T}$OTOOL" >&6; }
7727 { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7733 if test -z "$ac_cv_prog_OTOOL"; then
7735 # Extract the first word of "otool", so it can be a program name with args.
7736 set dummy otool; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test -n "$ac_ct_OTOOL"; then
7743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_ac_ct_OTOOL="otool"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7763 if test -n "$ac_ct_OTOOL"; then
7764 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7765 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7771 if test "x$ac_ct_OTOOL" = x; then
7774 case $cross_compiling:$ac_tool_warned in
7776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7777 whose name does not start with the host triplet. If you think this
7778 configuration is useful to you, please write to autoconf@gnu.org." >&5
7779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7780 whose name does not start with the host triplet. If you think this
7781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7782 ac_tool_warned=yes ;;
7787 OTOOL="$ac_cv_prog_OTOOL"
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 if test -n "$OTOOL64"; then
7799 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 OTOOL64=$ac_cv_prog_OTOOL64
7819 if test -n "$OTOOL64"; then
7820 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7821 echo "${ECHO_T}$OTOOL64" >&6; }
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7829 if test -z "$ac_cv_prog_OTOOL64"; then
7830 ac_ct_OTOOL64=$OTOOL64
7831 # Extract the first word of "otool64", so it can be a program name with args.
7832 set dummy otool64; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 if test -n "$ac_ct_OTOOL64"; then
7839 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_OTOOL64="otool64"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7859 if test -n "$ac_ct_OTOOL64"; then
7860 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7861 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7863 { echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6; }
7867 if test "x$ac_ct_OTOOL64" = x; then
7870 case $cross_compiling:$ac_tool_warned in
7872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7873 whose name does not start with the host triplet. If you think this
7874 configuration is useful to you, please write to autoconf@gnu.org." >&5
7875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7876 whose name does not start with the host triplet. If you think this
7877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7878 ac_tool_warned=yes ;;
7880 OTOOL64=$ac_ct_OTOOL64
7883 OTOOL64="$ac_cv_prog_OTOOL64"
7912 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7913 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7914 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 lt_cv_apple_cc_single_mod=no
7918 if test -z "${LT_MULTI_MODULE}"; then
7919 # By default we will add the -single_module flag. You can override
7920 # by either setting the environment variable LT_MULTI_MODULE
7921 # non-empty at configure time, or by adding -multi_module to the
7923 rm -rf libconftest.dylib*
7924 echo "int foo(void){return 1;}" > conftest.c
7925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7926 -dynamiclib -Wl,-single_module conftest.c" >&5
7927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7931 lt_cv_apple_cc_single_mod=yes
7933 cat conftest.err >&5
7935 rm -rf libconftest.dylib*
7939 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7940 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7941 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7942 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7943 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 lt_cv_ld_exported_symbols_list=no
7947 save_LDFLAGS=$LDFLAGS
7948 echo "_main" > conftest.sym
7949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest$ac_exeext &&
7982 $as_test_x conftest$ac_exeext; then
7983 lt_cv_ld_exported_symbols_list=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 lt_cv_ld_exported_symbols_list=no
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LDFLAGS="$save_LDFLAGS"
7996 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7997 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7999 rhapsody* | darwin1.[012])
8000 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003 darwin*) # darwin 5.x on
8004 # if running on 10.5 or later, the deployment target defaults
8005 # to the OS version, if on x86, and 10.4, the deployment
8006 # target defaults to 10.4. Don't you love it?
8007 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8008 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018 _lt_dar_single_mod='$single_module'
8020 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 if test "$DSYMUTIL" != ":"; then
8026 _lt_dsymutil='~$DSYMUTIL $lib || :'
8033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8035 if test "${ac_cv_header_stdc+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8057 rm -f conftest.$ac_objext
8058 if { (ac_try="$ac_compile"
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_header_stdc=yes
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_cv_header_stdc=no
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 if test $ac_cv_header_stdc = yes; then
8085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8096 $EGREP "memchr" >/dev/null 2>&1; then
8099 ac_cv_header_stdc=no
8105 if test $ac_cv_header_stdc = yes; then
8106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "free" >/dev/null 2>&1; then
8120 ac_cv_header_stdc=no
8126 if test $ac_cv_header_stdc = yes; then
8127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8128 if test "$cross_compiling" = yes; then
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8139 #if ((' ' & 0x0FF) == 0x020)
8140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8143 # define ISLOWER(c) \
8144 (('a' <= (c) && (c) <= 'i') \
8145 || ('j' <= (c) && (c) <= 'r') \
8146 || ('s' <= (c) && (c) <= 'z'))
8147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8155 for (i = 0; i < 256; i++)
8156 if (XOR (islower (i), ISLOWER (i))
8157 || toupper (i) != TOUPPER (i))
8162 rm -f conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8173 { (case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_try") 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8184 echo "$as_me: program exited with status $ac_status" >&5
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_cv_header_stdc=no
8191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8199 if test $ac_cv_header_stdc = yes; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define STDC_HEADERS 1
8207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8218 inttypes.h stdint.h unistd.h
8220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 $ac_includes_default
8234 #include <$ac_header>
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_compile") 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest.$ac_objext; then
8253 eval "$as_ac_Header=yes"
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 eval "$as_ac_Header=no"
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265 echo "${ECHO_T}$ac_res" >&6; }
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267 cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 for ac_header in dlfcn.h
8279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8293 #include <$ac_header>
8295 rm -f conftest.$ac_objext
8296 if { (ac_try="$ac_compile"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_compile") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest.$ac_objext; then
8312 eval "$as_ac_Header=yes"
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 eval "$as_ac_Header=no"
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 ac_res=`eval echo '${'$as_ac_Header'}'`
8323 { echo "$as_me:$LINENO: result: $ac_res" >&5
8324 echo "${ECHO_T}$ac_res" >&6; }
8325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326 cat >>confdefs.h <<_ACEOF
8327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8337 ac_cpp='$CXXCPP $CPPFLAGS'
8338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8341 if test -z "$CXX"; then
8342 if test -n "$CCC"; then
8345 if test -n "$ac_tool_prefix"; then
8346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352 if test "${ac_cv_prog_CXX+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 if test -n "$CXX"; then
8356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 if test -n "$CXX"; then
8377 { echo "$as_me:$LINENO: result: $CXX" >&5
8378 echo "${ECHO_T}$CXX" >&6; }
8380 { echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6; }
8385 test -n "$CXX" && break
8388 if test -z "$CXX"; then
8390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8392 # Extract the first word of "$ac_prog", so it can be a program name with args.
8393 set dummy $ac_prog; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 if test -n "$ac_ct_CXX"; then
8400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_ac_ct_CXX="$ac_prog"
8410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8420 if test -n "$ac_ct_CXX"; then
8421 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8422 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8429 test -n "$ac_ct_CXX" && break
8432 if test "x$ac_ct_CXX" = x; then
8435 case $cross_compiling:$ac_tool_warned in
8437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet. If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&5
8440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet. If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8443 ac_tool_warned=yes ;;
8451 # Provide some information about the compiler.
8452 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8453 ac_compiler=`set X $ac_compile; echo $2`
8454 { (ac_try="$ac_compiler --version >&5"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compiler --version >&5") 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }
8464 { (ac_try="$ac_compiler -v >&5"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compiler -v >&5") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }
8474 { (ac_try="$ac_compiler -V >&5"
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compiler -V >&5") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }
8485 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8486 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8487 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_cxx_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8538 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8539 GXX=`test $ac_compiler_gnu = yes && echo yes`
8540 ac_test_CXXFLAGS=${CXXFLAGS+set}
8541 ac_save_CXXFLAGS=$CXXFLAGS
8542 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8543 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8544 if test "${ac_cv_prog_cxx_g+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8548 ac_cxx_werror_flag=yes
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_cxx_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest.$ac_objext; then
8583 ac_cv_prog_cxx_g=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_cxx_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_compile") 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } && {
8657 test -z "$ac_cxx_werror_flag" ||
8658 test ! -s conftest.err
8659 } && test -s conftest.$ac_objext; then
8660 ac_cv_prog_cxx_g=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8677 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8679 if test "$ac_test_CXXFLAGS" = set; then
8680 CXXFLAGS=$ac_save_CXXFLAGS
8681 elif test $ac_cv_prog_cxx_g = yes; then
8682 if test "$GXX" = yes; then
8688 if test "$GXX" = yes; then
8695 ac_cpp='$CPP $CPPFLAGS'
8696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8700 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8701 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8702 (test "X$CXX" != "Xg++"))) ; then
8704 ac_cpp='$CXXCPP $CPPFLAGS'
8705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8708 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8709 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8710 if test -z "$CXXCPP"; then
8711 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 # Double quotes because CXXCPP needs to be expanded
8715 for CXXCPP in "$CXX -E" "/lib/cpp"
8718 for ac_cxx_preproc_warn_flag in '' yes
8720 # Use a header file that comes with gcc, so configuring glibc
8721 # with a fresh cross-compiler works.
8722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723 # <limits.h> exists even on freestanding compilers.
8724 # On the NeXT, cc -E runs the code through the compiler's parser,
8725 # not just through cpp. "Syntax error" is here to catch this case.
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8733 # include <limits.h>
8735 # include <assert.h>
8739 if { (ac_try="$ac_cpp conftest.$ac_ext"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev/null && {
8752 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8753 test ! -s conftest.err
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 # Broken: fails on valid input.
8764 rm -f conftest.err conftest.$ac_ext
8766 # OK, works on sane cases. Now check whether nonexistent headers
8767 # can be detected and how.
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 #include <ac_nonexistent.h>
8776 if { (ac_try="$ac_cpp conftest.$ac_ext"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } >/dev/null && {
8789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8790 test ! -s conftest.err
8792 # Broken: success on invalid input.
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 # Passes both tests.
8803 rm -f conftest.err conftest.$ac_ext
8806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8807 rm -f conftest.err conftest.$ac_ext
8808 if $ac_preproc_ok; then
8813 ac_cv_prog_CXXCPP=$CXXCPP
8816 CXXCPP=$ac_cv_prog_CXXCPP
8818 ac_cv_prog_CXXCPP=$CXXCPP
8820 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8821 echo "${ECHO_T}$CXXCPP" >&6; }
8823 for ac_cxx_preproc_warn_flag in '' yes
8825 # Use a header file that comes with gcc, so configuring glibc
8826 # with a fresh cross-compiler works.
8827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828 # <limits.h> exists even on freestanding compilers.
8829 # On the NeXT, cc -E runs the code through the compiler's parser,
8830 # not just through cpp. "Syntax error" is here to catch this case.
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 # include <limits.h>
8840 # include <assert.h>
8844 if { (ac_try="$ac_cpp conftest.$ac_ext"
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } >/dev/null && {
8857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8858 test ! -s conftest.err
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 # Broken: fails on valid input.
8869 rm -f conftest.err conftest.$ac_ext
8871 # OK, works on sane cases. Now check whether nonexistent headers
8872 # can be detected and how.
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <ac_nonexistent.h>
8881 if { (ac_try="$ac_cpp conftest.$ac_ext"
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8889 grep -v '^ *+' conftest.er1 >conftest.err
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } >/dev/null && {
8894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8895 test ! -s conftest.err
8897 # Broken: success on invalid input.
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 # Passes both tests.
8908 rm -f conftest.err conftest.$ac_ext
8911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8912 rm -f conftest.err conftest.$ac_ext
8913 if $ac_preproc_ok; then
8916 _lt_caught_CXX_error=yes
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 _lt_caught_CXX_error=yes
8934 # Check whether --enable-shared was given.
8935 if test "${enable_shared+set}" = set; then
8936 enableval=$enable_shared; p=${PACKAGE-default}
8938 yes) enable_shared=yes ;;
8939 no) enable_shared=no ;;
8942 # Look at the argument we got. We use all the common list separators.
8943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8944 for pkg in $enableval; do
8946 if test "X$pkg" = "X$p"; then
8963 # Check whether --enable-static was given.
8964 if test "${enable_static+set}" = set; then
8965 enableval=$enable_static; p=${PACKAGE-default}
8967 yes) enable_static=yes ;;
8968 no) enable_static=no ;;
8971 # Look at the argument we got. We use all the common list separators.
8972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973 for pkg in $enableval; do
8975 if test "X$pkg" = "X$p"; then
9004 # Check whether --with-pic was given.
9005 if test "${with_pic+set}" = set; then
9006 withval=$with_pic; pic_mode="$withval"
9012 test -z "$pic_mode" && pic_mode=default
9020 # Check whether --enable-fast-install was given.
9021 if test "${enable_fast_install+set}" = set; then
9022 enableval=$enable_fast_install; p=${PACKAGE-default}
9024 yes) enable_fast_install=yes ;;
9025 no) enable_fast_install=no ;;
9027 enable_fast_install=no
9028 # Look at the argument we got. We use all the common list separators.
9029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9030 for pkg in $enableval; do
9032 if test "X$pkg" = "X$p"; then
9033 enable_fast_install=yes
9040 enable_fast_install=yes
9053 # This can be used to rebuild libtool when needed
9054 LIBTOOL_DEPS="$ltmain"
9056 # Always use our own libtool.
9057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9083 test -z "$LN_S" && LN_S="ln -s"
9098 if test -n "${ZSH_VERSION+set}" ; then
9099 setopt NO_GLOB_SUBST
9102 { echo "$as_me:$LINENO: checking for objdir" >&5
9103 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9104 if test "${lt_cv_objdir+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 rm -f .libs 2>/dev/null
9108 mkdir .libs 2>/dev/null
9109 if test -d .libs; then
9112 # MS-DOS does not allow filenames that begin with a dot.
9115 rmdir .libs 2>/dev/null
9117 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9118 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9119 objdir=$lt_cv_objdir
9125 cat >>confdefs.h <<_ACEOF
9126 #define LT_OBJDIR "$lt_cv_objdir/"
9147 # AIX sometimes has problems with the GCC collect2 program. For some
9148 # reason, if we set the COLLECT_NAMES environment variable, the problems
9149 # vanish in a puff of smoke.
9150 if test "X${COLLECT_NAMES+set}" != Xset; then
9152 export COLLECT_NAMES
9157 # Sed substitution that helps us do robust quoting. It backslashifies
9158 # metacharacters that are still active within double-quoted strings.
9159 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9161 # Same as above, but do not quote variable references.
9162 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9164 # Sed substitution to delay expansion of an escaped shell variable in a
9165 # double_quote_subst'ed string.
9166 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9168 # Sed substitution to delay expansion of an escaped single quote.
9169 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9171 # Sed substitution to avoid accidental globbing in evaled expressions
9172 no_glob_subst='s/\*/\\\*/g'
9176 can_build_shared=yes
9178 # All known linkers require a `.a' archive for static linking (except MSVC,
9179 # which needs '.lib').
9182 with_gnu_ld="$lt_cv_prog_gnu_ld"
9185 old_CFLAGS="$CFLAGS"
9187 # Set sane defaults for various variables
9188 test -z "$CC" && CC=cc
9189 test -z "$LTCC" && LTCC=$CC
9190 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9191 test -z "$LD" && LD=ld
9192 test -z "$ac_objext" && ac_objext=o
9194 for cc_temp in $compiler""; do
9196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9205 # Only perform the check for file, if the check method requires it
9206 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9207 case $deplibs_check_method in
9209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9210 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9211 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9212 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220 lt_save_MAGIC_CMD="$MAGIC_CMD"
9221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9223 for ac_dir in $ac_dummy; do
9225 test -z "$ac_dir" && ac_dir=.
9226 if test -f $ac_dir/${ac_tool_prefix}file; then
9227 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9228 if test -n "$file_magic_test_file"; then
9229 case $deplibs_check_method in
9231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9234 $EGREP "$file_magic_regex" > /dev/null; then
9239 *** Warning: the command libtool uses to detect shared libraries,
9240 *** $file_magic_cmd, produces output that libtool cannot recognize.
9241 *** The result is that libtool may fail to recognize shared libraries
9242 *** as such. This will affect the creation of libtool libraries that
9243 *** depend on shared libraries, but programs linked with such libtool
9244 *** libraries will work regardless of this problem. Nevertheless, you
9245 *** may want to report the problem to your system manager and/or to
9246 *** bug-libtool@gnu.org
9256 MAGIC_CMD="$lt_save_MAGIC_CMD"
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if test -n "$MAGIC_CMD"; then
9263 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9264 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9266 { echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6; }
9274 if test -z "$lt_cv_path_MAGIC_CMD"; then
9275 if test -n "$ac_tool_prefix"; then
9276 { echo "$as_me:$LINENO: checking for file" >&5
9277 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9278 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9286 lt_save_MAGIC_CMD="$MAGIC_CMD"
9287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9289 for ac_dir in $ac_dummy; do
9291 test -z "$ac_dir" && ac_dir=.
9292 if test -f $ac_dir/file; then
9293 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9294 if test -n "$file_magic_test_file"; then
9295 case $deplibs_check_method in
9297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9300 $EGREP "$file_magic_regex" > /dev/null; then
9305 *** Warning: the command libtool uses to detect shared libraries,
9306 *** $file_magic_cmd, produces output that libtool cannot recognize.
9307 *** The result is that libtool may fail to recognize shared libraries
9308 *** as such. This will affect the creation of libtool libraries that
9309 *** depend on shared libraries, but programs linked with such libtool
9310 *** libraries will work regardless of this problem. Nevertheless, you
9311 *** may want to report the problem to your system manager and/or to
9312 *** bug-libtool@gnu.org
9322 MAGIC_CMD="$lt_save_MAGIC_CMD"
9327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9328 if test -n "$MAGIC_CMD"; then
9329 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9330 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9332 { echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6; }
9346 # Use C for the default configuration in the libtool script
9350 ac_cpp='$CPP $CPPFLAGS'
9351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356 # Source file extension for C test sources.
9359 # Object file extension for compiled C test sources.
9363 # Code to be used in simple compile tests
9364 lt_simple_compile_test_code="int some_variable = 0;"
9366 # Code to be used in simple link tests
9367 lt_simple_link_test_code='int main(){return(0);}'
9375 # If no C compiler was specified, use CC.
9378 # If no C compiler flags were specified, use CFLAGS.
9379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9381 # Allow CC to be a program name with arguments.
9384 # Save the default compiler, since it gets overwritten when the other
9385 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9386 compiler_DEFAULT=$CC
9388 # save warnings/boilerplate of simple test code
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_compiler_boilerplate=`cat conftest.err`
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_linker_boilerplate=`cat conftest.err`
9403 ## There is no encapsulation within the following macros, do not change
9404 ## the running order or otherwise move them around unless you know exactly
9405 ## what you are doing...
9406 if test -n "$compiler"; then
9408 lt_prog_compiler_no_builtin_flag=
9410 if test "$GCC" = yes; then
9411 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9413 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9414 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9415 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 lt_cv_prog_compiler_rtti_exceptions=no
9419 ac_outfile=conftest.$ac_objext
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421 lt_compiler_flag="-fno-rtti -fno-exceptions"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 # The option is referenced via a variable to avoid confusing sed.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>conftest.err)
9434 cat conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s "$ac_outfile"; then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings other than the usual output.
9439 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_rtti_exceptions=yes
9448 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9449 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9451 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9464 lt_prog_compiler_wl=
9465 lt_prog_compiler_pic=
9466 lt_prog_compiler_static=
9468 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9471 if test "$GCC" = yes; then
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_static='-static'
9477 # All AIX code is PIC.
9478 if test "$host_cpu" = ia64; then
9479 # AIX 5 now supports IA64 processor
9480 lt_prog_compiler_static='-Bstatic'
9487 # see comment about AmigaOS4 .so support
9488 lt_prog_compiler_pic='-fPIC'
9491 # FIXME: we need at least 68020 code to build shared libraries, but
9492 # adding the `-m68020' flag to GCC prevents building anything better,
9494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9500 # PIC is the default for these OSes.
9503 mingw* | cygwin* | pw32* | os2* | cegcc*)
9504 # This hack is so that the source file can tell whether it is being
9505 # built for inclusion in a dll (and should export symbols for example).
9506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9507 # (--disable-auto-import) libraries
9508 lt_prog_compiler_pic='-DDLL_EXPORT'
9511 darwin* | rhapsody*)
9512 # PIC is the default on this platform
9513 # Common symbols not allowed in MH_DYLIB files
9514 lt_prog_compiler_pic='-fno-common'
9518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9520 # sets the default TLS model and affects inlining.
9526 lt_prog_compiler_pic='-fPIC'
9532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9533 # Instead, we relocate shared libraries at runtime.
9537 # Just because we use GCC doesn't mean we suddenly get shared libraries
9538 # on systems that don't support them.
9539 lt_prog_compiler_can_build_shared=no
9544 # QNX uses GNU C++, but need to define -shared option too, otherwise
9546 lt_prog_compiler_pic='-fPIC -shared'
9550 if test -d /usr/nec; then
9551 lt_prog_compiler_pic=-Kconform_pic
9556 lt_prog_compiler_pic='-fPIC'
9560 # PORTME Check for flag to pass linker flags through the system compiler.
9563 lt_prog_compiler_wl='-Wl,'
9564 if test "$host_cpu" = ia64; then
9565 # AIX 5 now supports IA64 processor
9566 lt_prog_compiler_static='-Bstatic'
9568 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9572 mingw* | cygwin* | pw32* | os2* | cegcc*)
9573 # This hack is so that the source file can tell whether it is being
9574 # built for inclusion in a dll (and should export symbols for example).
9575 lt_prog_compiler_pic='-DDLL_EXPORT'
9578 hpux9* | hpux10* | hpux11*)
9579 lt_prog_compiler_wl='-Wl,'
9580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587 lt_prog_compiler_pic='+Z'
9590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9591 lt_prog_compiler_static='${wl}-a ${wl}archive'
9594 irix5* | irix6* | nonstopux*)
9595 lt_prog_compiler_wl='-Wl,'
9596 # PIC (with -KPIC) is the default.
9597 lt_prog_compiler_static='-non_shared'
9600 linux* | k*bsd*-gnu)
9601 case $cc_basename in
9602 # old Intel for x86_64 which still supported -KPIC.
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-static'
9608 # icc used to be incompatible with GCC.
9609 # ICC 10 doesn't accept -KPIC any more.
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_pic='-fPIC'
9613 lt_prog_compiler_static='-static'
9615 # Lahey Fortran 8.1.
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='--shared'
9619 lt_prog_compiler_static='--static'
9621 pgcc* | pgf77* | pgf90* | pgf95*)
9622 # Portland Group compilers (*not* the Pentium gcc compiler,
9623 # which looks to be a dead project)
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-fpic'
9626 lt_prog_compiler_static='-Bstatic'
9629 lt_prog_compiler_wl='-Wl,'
9630 # All Alpha code is PIC.
9631 lt_prog_compiler_static='-non_shared'
9634 # IBM XL C 8.0/Fortran 10.1 on PPC
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-qpic'
9637 lt_prog_compiler_static='-qstaticlink'
9640 case `$CC -V 2>&1 | sed 5q` in
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9645 lt_prog_compiler_wl='-Wl,'
9648 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl=''
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9664 # QNX uses GNU C++, but need to define -shared option too, otherwise
9666 lt_prog_compiler_pic='-fPIC -shared'
9669 osf3* | osf4* | osf5*)
9670 lt_prog_compiler_wl='-Wl,'
9671 # All OSF/1 code is PIC.
9672 lt_prog_compiler_static='-non_shared'
9676 lt_prog_compiler_static='-non_shared'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-Bstatic'
9682 case $cc_basename in
9684 lt_prog_compiler_wl='-Qoption ld ';;
9686 lt_prog_compiler_wl='-Wl,';;
9691 lt_prog_compiler_wl='-Qoption ld '
9692 lt_prog_compiler_pic='-PIC'
9693 lt_prog_compiler_static='-Bstatic'
9696 sysv4 | sysv4.2uw2* | sysv4.3*)
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-KPIC'
9699 lt_prog_compiler_static='-Bstatic'
9703 if test -d /usr/nec ;then
9704 lt_prog_compiler_pic='-Kconform_pic'
9705 lt_prog_compiler_static='-Bstatic'
9709 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-KPIC'
9712 lt_prog_compiler_static='-Bstatic'
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_can_build_shared=no
9721 lt_prog_compiler_pic='-pic'
9722 lt_prog_compiler_static='-Bstatic'
9726 lt_prog_compiler_can_build_shared=no
9732 # For platforms which do not support PIC, -DPIC is meaningless:
9734 lt_prog_compiler_pic=
9737 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9749 # Check to make sure the PIC flag actually works.
9751 if test -n "$lt_prog_compiler_pic"; then
9752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9754 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 lt_cv_prog_compiler_pic_works=no
9758 ac_outfile=conftest.$ac_objext
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9761 # Insert the option either (1) after the last *FLAGS variable, or
9762 # (2) before a word containing "conftest.", or (3) at the end.
9763 # Note that $ac_compile itself does not contain backslashes and begins
9764 # with a dollar sign (not a hyphen), so the echo should work correctly.
9765 # The option is referenced via a variable to avoid confusing sed.
9766 lt_compile=`echo "$ac_compile" | $SED \
9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9769 -e 's:$: $lt_compiler_flag:'`
9770 (eval echo "\"\$as_me:9770: $lt_compile\"" >&5)
9771 (eval "$lt_compile" 2>conftest.err)
9773 cat conftest.err >&5
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 if (exit $ac_status) && test -s "$ac_outfile"; then
9776 # The compiler can only warn and ignore the option if not recognized
9777 # So say no if there are warnings other than the usual output.
9778 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler_pic_works=yes
9787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9788 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9790 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9791 case $lt_prog_compiler_pic in
9793 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9796 lt_prog_compiler_pic=
9797 lt_prog_compiler_can_build_shared=no
9808 # Check to make sure the static flag actually works.
9810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9813 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 lt_cv_prog_compiler_static_works=no
9817 save_LDFLAGS="$LDFLAGS"
9818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9821 # The linker can only warn and ignore the option if not recognized
9822 # So say no if there are warnings
9823 if test -s conftest.err; then
9824 # Append any errors to the config.log.
9825 cat conftest.err 1>&5
9826 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828 if diff conftest.exp conftest.er2 >/dev/null; then
9829 lt_cv_prog_compiler_static_works=yes
9832 lt_cv_prog_compiler_static_works=yes
9836 LDFLAGS="$save_LDFLAGS"
9839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9840 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9842 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845 lt_prog_compiler_static=
9854 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 lt_cv_prog_compiler_c_o=no
9860 $RM -r conftest 2>/dev/null
9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="-o out/conftest2.$ac_objext"
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 lt_compile=`echo "$ac_compile" | $SED \
9872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874 -e 's:$: $lt_compiler_flag:'`
9875 (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876 (eval "$lt_compile" 2>out/conftest.err)
9878 cat out/conftest.err >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings
9884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_c_o=yes
9892 # SGI C++ compiler will create directory out/ii_files/ for
9893 # template instantiation
9894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895 $RM out/* && rmdir out
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9910 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9911 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 lt_cv_prog_compiler_c_o=no
9915 $RM -r conftest 2>/dev/null
9919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9921 lt_compiler_flag="-o out/conftest2.$ac_objext"
9922 # Insert the option either (1) after the last *FLAGS variable, or
9923 # (2) before a word containing "conftest.", or (3) at the end.
9924 # Note that $ac_compile itself does not contain backslashes and begins
9925 # with a dollar sign (not a hyphen), so the echo should work correctly.
9926 lt_compile=`echo "$ac_compile" | $SED \
9927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9929 -e 's:$: $lt_compiler_flag:'`
9930 (eval echo "\"\$as_me:9930: $lt_compile\"" >&5)
9931 (eval "$lt_compile" 2>out/conftest.err)
9933 cat out/conftest.err >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9937 # The compiler can only warn and ignore the option if not recognized
9938 # So say no if there are warnings
9939 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9942 lt_cv_prog_compiler_c_o=yes
9947 # SGI C++ compiler will create directory out/ii_files/ for
9948 # template instantiation
9949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9950 $RM out/* && rmdir out
9956 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9957 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9962 hard_links="nottested"
9963 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9964 # do not overwrite the value of need_locks provided by the user
9965 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971 ln conftest.a conftest.b 2>&5 || hard_links=no
9972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973 { echo "$as_me:$LINENO: result: $hard_links" >&5
9974 echo "${ECHO_T}$hard_links" >&6; }
9975 if test "$hard_links" = no; then
9976 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9989 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9993 allow_undefined_flag=
9994 always_export_symbols=no
9996 archive_expsym_cmds=
9997 compiler_needs_object=no
9998 enable_shared_with_static_runtimes=no
9999 export_dynamic_flag_spec=
10000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10001 hardcode_automatic=no
10003 hardcode_direct_absolute=no
10004 hardcode_libdir_flag_spec=
10005 hardcode_libdir_flag_spec_ld=
10006 hardcode_libdir_separator=
10007 hardcode_minus_L=no
10008 hardcode_shlibpath_var=unsupported
10010 link_all_deplibs=unknown
10012 module_expsym_cmds=
10013 old_archive_from_new_cmds=
10014 old_archive_from_expsyms_cmds=
10015 thread_safe_flag_spec=
10016 whole_archive_flag_spec=
10017 # include_expsyms should be a list of space-separated symbols to be *always*
10018 # included in the symbol list
10020 # exclude_expsyms can be an extended regexp of symbols to exclude
10021 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10023 # as well as any symbol that contains `d'.
10024 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10026 # platforms (ab)use it in PIC code, but their linkers get confused if
10027 # the symbol is explicitly referenced. Since portable code cannot
10028 # rely on this symbol name, it's probably fine to never include it in
10029 # preloaded symbol tables.
10030 # Exclude shared library initialization/finalization symbols.
10031 extract_expsyms_cmds=
10034 cygwin* | mingw* | pw32* | cegcc*)
10035 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10036 # When not using gcc, we currently assume that we are using
10037 # Microsoft Visual C++.
10038 if test "$GCC" != yes; then
10043 # we just hope/assume this is gcc and not c89 (= MSVC++)
10052 if test "$with_gnu_ld" = yes; then
10053 # If archive_cmds runs LD, not CC, wlarc should be empty
10056 # Set some defaults for GNU ld with shared library support. These
10057 # are reset later if shared libraries are not supported. Putting them
10058 # here allows them to be overridden if necessary.
10059 runpath_var=LD_RUN_PATH
10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10061 export_dynamic_flag_spec='${wl}--export-dynamic'
10062 # ancient GNU ld didn't support --whole-archive et. al.
10063 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10064 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10066 whole_archive_flag_spec=
10068 supports_anon_versioning=no
10069 case `$LD -v 2>&1` in
10070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10073 *\ 2.11.*) ;; # other 2.11 versions
10074 *) supports_anon_versioning=yes ;;
10077 # See if GNU ld supports shared libraries.
10080 # On AIX/PPC, the GNU linker is very broken
10081 if test "$host_cpu" != ia64; then
10085 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10086 *** to be unable to reliably create shared libraries on AIX.
10087 *** Therefore, libtool is disabling shared libraries support. If you
10088 *** really care for shared libraries, you may want to modify your PATH
10089 *** so that a non-GNU linker is found, and then restart.
10098 # see comment about AmigaOS4 .so support
10099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 archive_expsym_cmds=''
10103 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)'
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 hardcode_minus_L=yes
10111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 allow_undefined_flag=unsupported
10113 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10114 # support --undefined. This deserves some investigation. FIXME
10115 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 cygwin* | mingw* | pw32* | cegcc*)
10122 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10123 # as there is no search path for DLLs.
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 allow_undefined_flag=unsupported
10126 always_export_symbols=no
10127 enable_shared_with_static_runtimes=yes
10128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10132 # If the export-symbols file already is a .def file (1st line
10133 # is EXPORTS), use it as is; otherwise, prepend...
10134 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135 cp $export_symbols $output_objdir/$soname.def;
10137 echo EXPORTS > $output_objdir/$soname.def;
10138 cat $export_symbols >> $output_objdir/$soname.def;
10140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10148 hardcode_shlibpath_var=no
10149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150 export_dynamic_flag_spec='${wl}-E'
10151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10152 # Instead, shared libraries are loaded at an image base (0x10000000 by
10153 # default) and relocated if they conflict, which is a slow very memory
10154 # consuming and fragmenting process. To avoid this, we pick a random,
10155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10158 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'
10161 gnu* | linux* | tpf* | k*bsd*-gnu)
10163 if test "$host_os" = linux-dietlibc; then
10164 case $cc_basename in
10165 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10168 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10169 && test "$tmp_diet" = no
10172 tmp_sharedflag='-shared'
10173 case $cc_basename,$host_cpu in
10174 pgcc*) # Portland Group C compiler
10175 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'
10176 tmp_addflag=' $pic_flag'
10178 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10179 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'
10180 tmp_addflag=' $pic_flag -Mnomain' ;;
10181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10182 tmp_addflag=' -i_dynamic' ;;
10183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10184 tmp_addflag=' -i_dynamic -nofor_main' ;;
10185 ifc* | ifort*) # Intel Fortran compiler
10186 tmp_addflag=' -nofor_main' ;;
10187 lf95*) # Lahey Fortran 8.1
10188 whole_archive_flag_spec=
10189 tmp_sharedflag='--shared' ;;
10190 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10191 tmp_sharedflag='-qmkshrobj'
10194 case `$CC -V 2>&1 | sed 5q` in
10195 *Sun\ C*) # Sun C 5.9
10196 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'
10197 compiler_needs_object=yes
10198 tmp_sharedflag='-G' ;;
10199 *Sun\ F*) # Sun Fortran 8.3
10200 tmp_sharedflag='-G' ;;
10202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204 if test "x$supports_anon_versioning" = xyes; then
10205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10207 echo "local: *; };" >> $output_objdir/$libname.ver~
10208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211 case $cc_basename in
10213 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10214 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10215 hardcode_libdir_flag_spec=
10216 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10217 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10218 if test "x$supports_anon_versioning" = xyes; then
10219 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10221 echo "local: *; };" >> $output_objdir/$libname.ver~
10222 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10242 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10247 *** create shared libraries on Solaris systems. Therefore, libtool
10248 *** is disabling shared libraries support. We urge you to upgrade GNU
10249 *** binutils to release 2.9.1 or newer. Another option is to modify
10250 *** your PATH or compiler configuration so that the native linker is
10251 *** used, and then restart.
10254 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10263 case `$LD -v 2>&1` in
10264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10269 *** reliably create shared libraries on SCO systems. Therefore, libtool
10270 *** is disabling shared libraries support. We urge you to upgrade GNU
10271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10272 *** your PATH or compiler configuration so that the native linker is
10273 *** used, and then restart.
10278 # For security reasons, it is highly recommended that you always
10279 # use absolute paths for naming shared libraries, and exclude the
10280 # DT_RUNPATH tag from executables and libraries. But doing so
10281 # requires that you compile everything twice, which is a pain.
10282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_direct=yes
10297 hardcode_shlibpath_var=no
10301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310 if test "$ld_shlibs" = no; then
10312 hardcode_libdir_flag_spec=
10313 export_dynamic_flag_spec=
10314 whole_archive_flag_spec=
10317 # PORTME fill in a description of your system's linker (not GNU ld)
10320 allow_undefined_flag=unsupported
10321 always_export_symbols=yes
10322 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'
10323 # Note: this linker hardcodes the directories in LIBPATH if there
10324 # are no directories specified by -L.
10325 hardcode_minus_L=yes
10326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10327 # Neither direct hardcoding nor static linking is supported with a
10329 hardcode_direct=unsupported
10334 if test "$host_cpu" = ia64; then
10335 # On IA64, the linker does run time linking by default, so we don't
10336 # have to do anything special.
10337 aix_use_runtimelinking=no
10338 exp_sym_flag='-Bexport'
10341 # If we're using GNU nm, then we don't want the "-C" option.
10342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10343 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10344 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'
10346 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'
10348 aix_use_runtimelinking=no
10350 # Test if we are trying to use run time linking or normal
10351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10352 # need to do runtime linking.
10353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10354 for ld_flag in $LDFLAGS; do
10355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10356 aix_use_runtimelinking=yes
10363 exp_sym_flag='-bexport'
10364 no_entry_flag='-bnoentry'
10367 # When large executables or shared objects are built, AIX ld can
10368 # have problems creating the table of contents. If linking a library
10369 # or program results in "error TOC overflow" add -mminimal-toc to
10370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10374 hardcode_direct=yes
10375 hardcode_direct_absolute=yes
10376 hardcode_libdir_separator=':'
10377 link_all_deplibs=yes
10378 file_list_spec='${wl}-f,'
10380 if test "$GCC" = yes; then
10381 case $host_os in aix4.[012]|aix4.[012].*)
10382 # We only want to do this on AIX 4.2 and lower, the check
10383 # below for broken collect2 doesn't work under 4.3+
10384 collect2name=`${CC} -print-prog-name=collect2`
10385 if test -f "$collect2name" &&
10386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10388 # We have reworked collect2
10391 # We have old collect2
10392 hardcode_direct=unsupported
10393 # It fails to find uninstalled libraries when the uninstalled
10394 # path is not listed in the libpath. Setting hardcode_minus_L
10395 # to unsupported forces relinking
10396 hardcode_minus_L=yes
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 hardcode_libdir_separator=
10402 shared_flag='-shared'
10403 if test "$aix_use_runtimelinking" = yes; then
10404 shared_flag="$shared_flag "'${wl}-G'
10408 if test "$host_cpu" = ia64; then
10409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10410 # chokes on -Wl,-G. The following line is correct:
10413 if test "$aix_use_runtimelinking" = yes; then
10414 shared_flag='${wl}-G'
10416 shared_flag='${wl}-bM:SRE'
10421 export_dynamic_flag_spec='${wl}-bexpall'
10422 # It seems that -bexpall does not export symbols beginning with
10423 # underscore (_), so it is better to generate a list of symbols to export.
10424 always_export_symbols=yes
10425 if test "$aix_use_runtimelinking" = yes; then
10426 # Warning - without using the other runtime loading flags (-brtl),
10427 # -berok will link without error, but may produce a broken library.
10428 allow_undefined_flag='-berok'
10429 # Determine the default libpath from the value encoded in an
10430 # empty executable.
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10465 lt_aix_libpath_sed='
10466 /Import File Strings/,/^$/ {
10472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10473 # Check for a 64-bit object if we didn't find anything.
10474 if test -z "$aix_libpath"; then
10475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10485 conftest$ac_exeext conftest.$ac_ext
10486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10489 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"
10491 if test "$host_cpu" = ia64; then
10492 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10493 allow_undefined_flag="-z nodefs"
10494 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"
10496 # Determine the default libpath from the value encoded in an
10497 # empty executable.
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10532 lt_aix_libpath_sed='
10533 /Import File Strings/,/^$/ {
10539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 # Check for a 64-bit object if we didn't find anything.
10541 if test -z "$aix_libpath"; then
10542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10556 # Warning - without using the other run time loading flags,
10557 # -berok will link without error, but may produce a broken library.
10558 no_undefined_flag=' ${wl}-bernotok'
10559 allow_undefined_flag=' ${wl}-berok'
10560 # Exported symbols can be pulled into shared objects from archives
10561 whole_archive_flag_spec='$convenience'
10562 archive_cmds_need_lc=yes
10563 # This is similar to how AIX traditionally builds its shared libraries.
10564 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'
10572 # see comment about AmigaOS4 .so support
10573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574 archive_expsym_cmds=''
10577 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)'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_minus_L=yes
10585 export_dynamic_flag_spec=-rdynamic
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 # When not using gcc, we currently assume that we are using
10590 # Microsoft Visual C++.
10591 # hardcode_libdir_flag_spec is actually meaningless, as there is
10592 # no search path for DLLs.
10593 hardcode_libdir_flag_spec=' '
10594 allow_undefined_flag=unsupported
10595 # Tell ltmain to make .lib files, not .a files.
10597 # Tell ltmain to make .dll files, not .so files.
10599 # FIXME: Setting linknames here is a bad hack.
10600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10601 # The linker will automatically build a .lib file if we build a DLL.
10602 old_archive_from_new_cmds='true'
10603 # FIXME: Should let the user specify the lib program.
10604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10605 fix_srcfile_path='`cygpath -w "$srcfile"`'
10606 enable_shared_with_static_runtimes=yes
10609 darwin* | rhapsody*)
10612 archive_cmds_need_lc=no
10614 hardcode_automatic=yes
10615 hardcode_shlibpath_var=unsupported
10616 whole_archive_flag_spec=''
10617 link_all_deplibs=yes
10618 allow_undefined_flag="$_lt_dar_allow_undefined"
10619 case $cc_basename in
10620 ifort*) _lt_dar_can_shared=yes ;;
10621 *) _lt_dar_can_shared=$GCC ;;
10623 if test "$_lt_dar_can_shared" = "yes"; then
10624 output_verbose_link_cmd=echo
10625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10627 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}"
10628 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}"
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 hardcode_shlibpath_var=no
10646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10647 # support. Future versions do this automatically, but an explicit c++rt0.o
10648 # does not break anything, and helps significantly (at the cost of a little
10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10652 hardcode_libdir_flag_spec='-R$libdir'
10653 hardcode_direct=yes
10654 hardcode_shlibpath_var=no
10657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=yes
10661 hardcode_minus_L=yes
10662 hardcode_shlibpath_var=no
10665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10666 freebsd* | dragonfly*)
10667 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10674 if test "$GCC" = yes; then
10675 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'
10677 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'
10679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10680 hardcode_libdir_separator=:
10681 hardcode_direct=yes
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 export_dynamic_flag_spec='${wl}-E'
10690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10695 if test "$with_gnu_ld" = no; then
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_flag_spec_ld='+b $libdir'
10698 hardcode_libdir_separator=:
10699 hardcode_direct=yes
10700 hardcode_direct_absolute=yes
10701 export_dynamic_flag_spec='${wl}-E'
10702 # hardcode_minus_L: Not really in the search PATH,
10703 # but as the default location of the library.
10704 hardcode_minus_L=yes
10709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734 if test "$with_gnu_ld" = no; then
10735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10736 hardcode_libdir_separator=:
10741 hardcode_shlibpath_var=no
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 export_dynamic_flag_spec='${wl}-E'
10748 # hardcode_minus_L: Not really in the search PATH,
10749 # but as the default location of the library.
10750 hardcode_minus_L=yes
10756 irix5* | irix6* | nonstopux*)
10757 if test "$GCC" = yes; then
10758 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'
10759 # Try to use the -exported_symbol ld option, if it does not
10760 # work, assume that -exports_file does not work either and
10761 # implicitly export all symbols.
10762 save_LDFLAGS="$LDFLAGS"
10763 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10764 cat >conftest.$ac_ext <<_ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext &&
10784 $as_test_x conftest$ac_exeext; then
10785 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'
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LDFLAGS="$save_LDFLAGS"
10798 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'
10799 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'
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator=:
10805 link_all_deplibs=yes
10809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10814 hardcode_libdir_flag_spec='-R$libdir'
10815 hardcode_direct=yes
10816 hardcode_shlibpath_var=no
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=yes
10822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator=:
10824 hardcode_shlibpath_var=no
10831 if test -f /usr/libexec/ld.so; then
10832 hardcode_direct=yes
10833 hardcode_shlibpath_var=no
10834 hardcode_direct_absolute=yes
10835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10839 export_dynamic_flag_spec='${wl}-E'
10842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-R$libdir'
10847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10860 allow_undefined_flag=unsupported
10861 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'
10862 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10866 if test "$GCC" = yes; then
10867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10868 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'
10870 allow_undefined_flag=' -expect_unresolved \*'
10871 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'
10873 archive_cmds_need_lc='no'
10874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10875 hardcode_libdir_separator=:
10878 osf4* | osf5*) # as osf3* with the addition of -msym flag
10879 if test "$GCC" = yes; then
10880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884 allow_undefined_flag=' -expect_unresolved \*'
10885 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'
10886 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~
10887 $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'
10889 # Both c and cxx compiler support -rpath directly
10890 hardcode_libdir_flag_spec='-rpath $libdir'
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_separator=:
10897 no_undefined_flag=' -z defs'
10898 if test "$GCC" = yes; then
10900 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10904 case `$CC -V 2>&1` in
10907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10913 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_shlibpath_var=no
10922 solaris2.[0-5] | solaris2.[0-5].*) ;;
10924 # The compiler driver will combine and reorder linker options,
10925 # but understands `-z linker_flag'. GCC discards it without `$wl',
10926 # but is careful enough not to reorder.
10927 # Supported since Solaris 2.6 (maybe 2.5.1?)
10928 if test "$GCC" = yes; then
10929 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10931 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10935 link_all_deplibs=yes
10939 if test "x$host_vendor" = xsequent; then
10940 # Use $CC to link under sequent, because it throws in some extra .o
10941 # files that make .init and .fini sections work.
10942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_direct=yes
10948 hardcode_minus_L=yes
10949 hardcode_shlibpath_var=no
10953 case $host_vendor in
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes # is this really true???
10959 ## LD is ld it makes a PLAMLIB
10960 ## CC just makes a GrossModule.
10961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10962 reload_cmds='$CC -r -o $output$reload_objs'
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10970 runpath_var='LD_RUN_PATH'
10971 hardcode_shlibpath_var=no
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_shlibpath_var=no
10977 export_dynamic_flag_spec='-Bexport'
10981 if test -d /usr/nec; then
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_shlibpath_var=no
10984 runpath_var=LD_RUN_PATH
10985 hardcode_runpath_var=yes
10990 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10991 no_undefined_flag='${wl}-z,text'
10992 archive_cmds_need_lc=no
10993 hardcode_shlibpath_var=no
10994 runpath_var='LD_RUN_PATH'
10996 if test "$GCC" = yes; then
10997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 sysv5* | sco3.2v5* | sco5v6*)
11006 # Note: We can NOT use -z defs as we might desire, because we do not
11007 # link with -lc, and that would cause any symbols used from libc to
11008 # always be unresolved, which means just about no library would
11009 # ever link correctly. If we're not using GNU ld we use -z text
11010 # though, which does catch some bad symbols but isn't as heavy-handed
11012 no_undefined_flag='${wl}-z,text'
11013 allow_undefined_flag='${wl}-z,nodefs'
11014 archive_cmds_need_lc=no
11015 hardcode_shlibpath_var=no
11016 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11017 hardcode_libdir_separator=':'
11018 link_all_deplibs=yes
11019 export_dynamic_flag_spec='${wl}-Bexport'
11020 runpath_var='LD_RUN_PATH'
11022 if test "$GCC" = yes; then
11023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_libdir_flag_spec='-L$libdir'
11034 hardcode_shlibpath_var=no
11042 if test x$host_vendor = xsni; then
11044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11045 export_dynamic_flag_spec='${wl}-Blargedynsym'
11051 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11052 echo "${ECHO_T}$ld_shlibs" >&6; }
11053 test "$ld_shlibs" = no && can_build_shared=no
11055 with_gnu_ld=$with_gnu_ld
11072 # Do we need to explicitly link libc?
11074 case "x$archive_cmds_need_lc" in
11076 # Assume -lc should be added
11077 archive_cmds_need_lc=yes
11079 if test "$enable_shared" = yes && test "$GCC" = yes; then
11080 case $archive_cmds in
11082 # FIXME: we may have to deal with multi-command sequences.
11085 # Test whether the compiler implicitly links with -lc since on some
11086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11087 # to ld, don't add -lc before -lgcc.
11088 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11089 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11094 (eval $ac_compile) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } 2>conftest.err; then
11100 libobjs=conftest.$ac_objext
11102 wl=$lt_prog_compiler_wl
11103 pic_flag=$lt_prog_compiler_pic
11109 lt_save_allow_undefined_flag=$allow_undefined_flag
11110 allow_undefined_flag=
11111 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11112 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }
11117 archive_cmds_need_lc=no
11119 archive_cmds_need_lc=yes
11121 allow_undefined_flag=$lt_save_allow_undefined_flag
11123 cat conftest.err 1>&5
11126 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11127 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11290 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11291 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11293 if test "$GCC" = yes; then
11295 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11296 *) lt_awk_arg="/^libraries:/" ;;
11298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11299 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11300 # if the path contains ";" then we assume it to be the separator
11301 # otherwise default to the standard path separator (i.e. ":") - it is
11302 # assumed that no part of a normal pathname contains ";" but that should
11303 # okay in the real world where ";" in dirpaths is itself problematic.
11304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11308 # Ok, now we have the path, separated by spaces, we can step through it
11309 # and add multilib dir if necessary.
11310 lt_tmp_lt_search_path_spec=
11311 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11312 for lt_sys_path in $lt_search_path_spec; do
11313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11316 test -d "$lt_sys_path" && \
11317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11320 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11321 BEGIN {RS=" "; FS="/|\n";} {
11324 for (lt_i = NF; lt_i > 0; lt_i--) {
11325 if ($lt_i != "" && $lt_i != ".") {
11326 if ($lt_i == "..") {
11329 if (lt_count == 0) {
11330 lt_foo="/" $lt_i lt_foo;
11337 if (lt_foo != "") { lt_freq[lt_foo]++; }
11338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11340 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11344 library_names_spec=
11345 libname_spec='lib$name'
11349 postuninstall_cmds=
11353 shlibpath_overrides_runpath=unknown
11355 dynamic_linker="$host_os ld.so"
11356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11357 need_lib_prefix=unknown
11358 hardcode_into_libs=no
11360 # when you set need_version to no, make sure it does not cause -set_version
11361 # flags to be left without arguments
11362 need_version=unknown
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11368 shlibpath_var=LIBPATH
11370 # AIX 3 has no versioning support, so we append a major version to the name.
11371 soname_spec='${libname}${release}${shared_ext}$major'
11378 hardcode_into_libs=yes
11379 if test "$host_cpu" = ia64; then
11380 # AIX 5 supports IA64
11381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11382 shlibpath_var=LD_LIBRARY_PATH
11384 # With GCC up to 2.95.x, collect2 would create an import file
11385 # for dependence libraries. The import file would start with
11386 # the line `#! .'. This would cause the generated library to
11387 # depend on `.', always an invalid library. This was fixed in
11388 # development snapshots of GCC prior to 3.0.
11390 aix4 | aix4.[01] | aix4.[01].*)
11391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11393 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11396 can_build_shared=no
11400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11401 # soname into executable. Probably we can add versioning support to
11402 # collect2, so additional links can be useful in future.
11403 if test "$aix_use_runtimelinking" = yes; then
11404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11405 # instead of lib<name>.a to let people know that these are not
11406 # typical AIX shared libraries.
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409 # We preserve .a as extension for shared libraries through AIX4.2
11410 # and later when we are not doing run time linking.
11411 library_names_spec='${libname}${release}.a $libname.a'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11414 shlibpath_var=LIBPATH
11421 # Since July 2007 AmigaOS4 officially supports .so libraries.
11422 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 library_names_spec='$libname.ixlibrary $libname.a'
11427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11428 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'
11434 library_names_spec='${libname}${shared_ext}'
11435 dynamic_linker="$host_os ld.so"
11436 shlibpath_var=LIBRARY_PATH
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11448 # the default ld.so.conf also contains /usr/contrib/lib and
11449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11450 # libtool to hard-code these into programs
11453 cygwin* | mingw* | pw32* | cegcc*)
11454 version_type=windows
11459 case $GCC,$host_os in
11460 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11461 library_names_spec='$libname.dll.a'
11462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11463 postinstall_cmds='base_file=`basename \${file}`~
11464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11465 dldir=$destdir/`dirname \$dlpath`~
11466 test -d \$dldir || mkdir -p \$dldir~
11467 $install_prog $dir/$dlname \$dldir/$dlname~
11468 chmod a+x \$dldir/$dlname~
11469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11473 dlpath=$dir/\$dldll~
11475 shlibpath_overrides_runpath=yes
11479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11481 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11484 # MinGW DLLs use traditional 'lib' prefix
11485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11488 # It is most probably a Windows format PATH printed by
11489 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11490 # path with ; separators, and with drive letters. We can handle the
11491 # drive letters (cygwin fileutils understands them), so leave them,
11492 # especially as we might pass files found there to a mingw objdump,
11493 # which wouldn't understand a cygwinified path. Ahh.
11494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11500 # pw32 DLLs use 'pw' prefix rather than 'lib'
11501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11510 dynamic_linker='Win32 ld.exe'
11511 # FIXME: first we should search . and the directory the executable is in
11515 darwin* | rhapsody*)
11516 dynamic_linker="$host_os dyld"
11517 version_type=darwin
11520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11521 soname_spec='${libname}${release}${major}$shared_ext'
11522 shlibpath_overrides_runpath=yes
11523 shlibpath_var=DYLD_LIBRARY_PATH
11524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11543 freebsd* | dragonfly*)
11544 # DragonFly does not have aout. When/if they implement a new
11545 # versioning mechanism, adjust this.
11546 if test -x /usr/bin/objformat; then
11547 objformat=`/usr/bin/objformat`
11550 freebsd[123]*) objformat=aout ;;
11551 *) objformat=elf ;;
11554 version_type=freebsd-$objformat
11555 case $version_type in
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11566 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11571 freebsd3.[01]* | freebsdelf3.[01]*)
11572 shlibpath_overrides_runpath=yes
11573 hardcode_into_libs=yes
11575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11580 *) # from 4.6 on, and DragonFly
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 hardcode_into_libs=yes
11597 hpux9* | hpux10* | hpux11*)
11598 # Give a soname corresponding to the major version so that dld.sl refuses to
11599 # link against other versions.
11606 hardcode_into_libs=yes
11607 dynamic_linker="$host_os dld.so"
11608 shlibpath_var=LD_LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 if test "X$HPUX_IA64_MODE" = X32; then
11613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 hardcode_into_libs=yes
11622 dynamic_linker="$host_os dld.sl"
11623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=SHLIB_PATH
11634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11640 postinstall_cmds='chmod 555 $lib'
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 hardcode_into_libs=yes
11655 irix5* | irix6* | nonstopux*)
11657 nonstopux*) version_type=nonstopux ;;
11659 if test "$lt_cv_prog_gnu_ld" = yes; then
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11670 irix5* | nonstopux*)
11671 libsuff= shlibsuff=
11674 case $LD in # libtool.m4 will add one of these switches to LD
11675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11676 libsuff= shlibsuff= libmagic=32-bit;;
11677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11678 libsuff=32 shlibsuff=N32 libmagic=N32;;
11679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11681 *) libsuff= shlibsuff= libmagic=never-match;;
11685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11689 hardcode_into_libs=yes
11692 # No shared lib support for Linux oldld, aout, or coff.
11693 linux*oldld* | linux*aout* | linux*coff*)
11697 # This must be Linux ELF.
11698 linux* | k*bsd*-gnu)
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=no
11707 # Some binutils ld are patched to set DT_RUNPATH
11708 save_LDFLAGS=$LDFLAGS
11709 save_libdir=$libdir
11710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_link") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest$ac_exeext &&
11744 $as_test_x conftest$ac_exeext; then
11745 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11746 shlibpath_overrides_runpath=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LDFLAGS=$save_LDFLAGS
11759 libdir=$save_libdir
11761 # This implies no fast_install, which is unacceptable.
11762 # Some rework will be needed to allow for fast_install
11763 # before this can be enabled.
11764 hardcode_into_libs=yes
11766 # Append ld.so.conf contents to the search path
11767 if test -f /etc/ld.so.conf; then
11768 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' ' '`
11769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772 # We used to test for /lib/ld.so.1 and disable shared libraries on
11773 # powerpc, because MkLinux only supported shared libraries with the
11774 # GNU dynamic linker. Since this was broken with cross compilers,
11775 # most powerpc-linux boxes support dynamic linking these days and
11776 # people can always --disable-shared, the test was removed, and we
11777 # assume the GNU/Linux dynamic linker is in use.
11778 dynamic_linker='GNU/Linux ld.so'
11785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11788 dynamic_linker='NetBSD (a.out) ld.so'
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 dynamic_linker='NetBSD ld.elf_so'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=yes
11796 hardcode_into_libs=yes
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 hardcode_into_libs=yes
11815 dynamic_linker='ldqnx.so'
11820 sys_lib_dlsearch_path_spec="/usr/lib"
11822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11824 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11825 *) need_version=no ;;
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11832 openbsd2.[89] | openbsd2.[89].*)
11833 shlibpath_overrides_runpath=no
11836 shlibpath_overrides_runpath=yes
11840 shlibpath_overrides_runpath=yes
11845 libname_spec='$name'
11848 library_names_spec='$libname${shared_ext} $libname.a'
11849 dynamic_linker='OS/2 ld.exe'
11850 shlibpath_var=LIBPATH
11853 osf3* | osf4* | osf5*)
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11877 # ldd complains unless libraries are executable
11878 postinstall_cmds='chmod +x $lib'
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 if test "$with_gnu_ld" = yes; then
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 case $host_vendor in
11900 shlibpath_overrides_runpath=no
11902 runpath_var=LD_RUN_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11917 if test -d /usr/nec ;then
11919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11920 soname_spec='$libname${shared_ext}.$major'
11921 shlibpath_var=LD_LIBRARY_PATH
11925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11926 version_type=freebsd-elf
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=yes
11933 hardcode_into_libs=yes
11934 if test "$with_gnu_ld" = yes; then
11935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11944 sys_lib_dlsearch_path_spec='/usr/lib'
11948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=no
11955 hardcode_into_libs=yes
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11970 echo "${ECHO_T}$dynamic_linker" >&6; }
11971 test "$dynamic_linker" = no && can_build_shared=no
11973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11974 if test "$GCC" = yes; then
11975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11979 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11981 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11982 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12074 if test -n "$hardcode_libdir_flag_spec" ||
12075 test -n "$runpath_var" ||
12076 test "X$hardcode_automatic" = "Xyes" ; then
12078 # We can hardcode non-existent directories.
12079 if test "$hardcode_direct" != no &&
12080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12081 # have to relink, otherwise we might link with an installed library
12082 # when we should be linking with a yet-to-be-installed one
12083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12084 test "$hardcode_minus_L" != no; then
12085 # Linking always hardcodes the temporary library directory.
12086 hardcode_action=relink
12088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12089 hardcode_action=immediate
12092 # We cannot hardcode anything, or else we can only hardcode existing
12094 hardcode_action=unsupported
12096 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12097 echo "${ECHO_T}$hardcode_action" >&6; }
12099 if test "$hardcode_action" = relink ||
12100 test "$inherit_rpath" = yes; then
12101 # Fast installation is not supported
12102 enable_fast_install=no
12103 elif test "$shlibpath_overrides_runpath" = yes ||
12104 test "$enable_shared" = no; then
12105 # Fast installation is not necessary
12106 enable_fast_install=needless
12114 if test "x$enable_dlopen" != xyes; then
12115 enable_dlopen=unknown
12116 enable_dlopen_self=unknown
12117 enable_dlopen_self_static=unknown
12124 lt_cv_dlopen="load_add_on"
12126 lt_cv_dlopen_self=yes
12129 mingw* | pw32* | cegcc*)
12130 lt_cv_dlopen="LoadLibrary"
12135 lt_cv_dlopen="dlopen"
12140 # if libdl is installed we need to link against it
12141 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 ac_check_lib_save_LIBS=$LIBS
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest$ac_exeext &&
12187 $as_test_x conftest$ac_exeext; then
12188 ac_cv_lib_dl_dlopen=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_lib_dl_dlopen=no
12196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12200 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12202 if test $ac_cv_lib_dl_dlopen = yes; then
12203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 lt_cv_dlopen="dyld"
12208 lt_cv_dlopen_self=yes
12215 { echo "$as_me:$LINENO: checking for shl_load" >&5
12216 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12217 if test "${ac_cv_func_shl_load+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228 #define shl_load innocuous_shl_load
12230 /* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char shl_load (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12236 # include <limits.h>
12238 # include <assert.h>
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined __stub_shl_load || defined __stub___shl_load
12260 return shl_load ();
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_func_shl_load=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_func_shl_load=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12294 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12295 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12296 if test $ac_cv_func_shl_load = yes; then
12297 lt_cv_dlopen="shl_load"
12299 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12300 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 ac_check_lib_save_LIBS=$LIBS
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12323 return shl_load ();
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_link") 2>conftest.er1
12337 grep -v '^ *+' conftest.er1 >conftest.err
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest$ac_exeext &&
12345 $as_test_x conftest$ac_exeext; then
12346 ac_cv_lib_dld_shl_load=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_lib_dld_shl_load=no
12354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12359 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12360 if test $ac_cv_lib_dld_shl_load = yes; then
12361 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12363 { echo "$as_me:$LINENO: checking for dlopen" >&5
12364 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_func_dlopen+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12376 #define dlopen innocuous_dlopen
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char dlopen (); below.
12380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 <limits.h> exists even on freestanding compilers. */
12384 # include <limits.h>
12386 # include <assert.h>
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined __stub_dlopen || defined __stub___dlopen
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_func_dlopen=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_func_dlopen=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12443 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12444 if test $ac_cv_func_dlopen = yes; then
12445 lt_cv_dlopen="dlopen"
12447 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12448 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_check_lib_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest$ac_exeext &&
12493 $as_test_x conftest$ac_exeext; then
12494 ac_cv_lib_dl_dlopen=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_dl_dlopen=no
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12508 if test $ac_cv_lib_dl_dlopen = yes; then
12509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12511 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12512 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12513 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lsvld $LIBS"
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && {
12554 test -z "$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 } && test -s conftest$ac_exeext &&
12557 $as_test_x conftest$ac_exeext; then
12558 ac_cv_lib_svld_dlopen=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_lib_svld_dlopen=no
12566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12571 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12572 if test $ac_cv_lib_svld_dlopen = yes; then
12573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12575 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12576 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 ac_check_lib_save_LIBS=$LIBS
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12599 return dld_link ();
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>conftest.er1
12613 grep -v '^ *+' conftest.er1 >conftest.err
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest$ac_exeext &&
12621 $as_test_x conftest$ac_exeext; then
12622 ac_cv_lib_dld_dld_link=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_cv_lib_dld_dld_link=no
12630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12636 if test $ac_cv_lib_dld_dld_link = yes; then
12637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12658 if test "x$lt_cv_dlopen" != xno; then
12664 case $lt_cv_dlopen in
12666 save_CPPFLAGS="$CPPFLAGS"
12667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12669 save_LDFLAGS="$LDFLAGS"
12670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673 LIBS="$lt_cv_dlopen_libs $LIBS"
12675 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12677 if test "${lt_cv_dlopen_self+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test "$cross_compiling" = yes; then :
12681 lt_cv_dlopen_self=cross
12683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12684 lt_status=$lt_dlunknown
12685 cat > conftest.$ac_ext <<_LT_EOF
12686 #line 12686 "configure"
12687 #include "confdefs.h"
12696 # define LT_DLGLOBAL RTLD_GLOBAL
12699 # define LT_DLGLOBAL DL_GLOBAL
12701 # define LT_DLGLOBAL 0
12705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12706 find out it does not work in some platform. */
12707 #ifndef LT_DLLAZY_OR_NOW
12709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12712 # define LT_DLLAZY_OR_NOW DL_LAZY
12715 # define LT_DLLAZY_OR_NOW RTLD_NOW
12718 # define LT_DLLAZY_OR_NOW DL_NOW
12720 # define LT_DLLAZY_OR_NOW 0
12727 void fnord() { int i=42;}
12730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12731 int status = $lt_dlunknown;
12735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12737 /* dlclose (self); */
12745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12746 (eval $ac_link) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12750 (./conftest; exit; ) >&5 2>/dev/null
12752 case x$lt_status in
12753 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12754 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12755 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758 # compilation failed
12759 lt_cv_dlopen_self=no
12766 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12767 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12769 if test "x$lt_cv_dlopen_self" = xyes; then
12770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12771 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12772 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12773 if test "${lt_cv_dlopen_self_static+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 if test "$cross_compiling" = yes; then :
12777 lt_cv_dlopen_self_static=cross
12779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12780 lt_status=$lt_dlunknown
12781 cat > conftest.$ac_ext <<_LT_EOF
12782 #line 12782 "configure"
12783 #include "confdefs.h"
12792 # define LT_DLGLOBAL RTLD_GLOBAL
12795 # define LT_DLGLOBAL DL_GLOBAL
12797 # define LT_DLGLOBAL 0
12801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12802 find out it does not work in some platform. */
12803 #ifndef LT_DLLAZY_OR_NOW
12805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12808 # define LT_DLLAZY_OR_NOW DL_LAZY
12811 # define LT_DLLAZY_OR_NOW RTLD_NOW
12814 # define LT_DLLAZY_OR_NOW DL_NOW
12816 # define LT_DLLAZY_OR_NOW 0
12823 void fnord() { int i=42;}
12826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12827 int status = $lt_dlunknown;
12831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12833 /* dlclose (self); */
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12846 (./conftest; exit; ) >&5 2>/dev/null
12848 case x$lt_status in
12849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12851 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854 # compilation failed
12855 lt_cv_dlopen_self_static=no
12862 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12863 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12866 CPPFLAGS="$save_CPPFLAGS"
12867 LDFLAGS="$save_LDFLAGS"
12872 case $lt_cv_dlopen_self in
12873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12874 *) enable_dlopen_self=unknown ;;
12877 case $lt_cv_dlopen_self_static in
12878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12879 *) enable_dlopen_self_static=unknown ;;
12901 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12902 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12903 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12904 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12905 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12906 { echo "$as_me:$LINENO: result: yes" >&5
12907 echo "${ECHO_T}yes" >&6; }
12909 # FIXME - insert some real tests, host_os isn't really good enough
12912 if test -n "$STRIP" ; then
12913 striplib="$STRIP -x"
12914 old_striplib="$STRIP -S"
12915 { echo "$as_me:$LINENO: result: yes" >&5
12916 echo "${ECHO_T}yes" >&6; }
12918 { echo "$as_me:$LINENO: result: no" >&5
12919 echo "${ECHO_T}no" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12940 # Report which library types will actually be built
12941 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12942 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12943 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12944 echo "${ECHO_T}$can_build_shared" >&6; }
12946 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12947 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12948 test "$can_build_shared" = "no" && enable_shared=no
12950 # On AIX, shared libraries and static libraries use the same namespace, and
12951 # are all built from PIC.
12954 test "$enable_shared" = yes && enable_static=no
12955 if test -n "$RANLIB"; then
12956 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12957 postinstall_cmds='$RANLIB $lib'
12962 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12963 test "$enable_shared" = yes && enable_static=no
12967 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12968 echo "${ECHO_T}$enable_shared" >&6; }
12970 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12971 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12972 # Make sure either enable_shared or enable_static is yes.
12973 test "$enable_shared" = yes || enable_static=yes
12974 { echo "$as_me:$LINENO: result: $enable_static" >&5
12975 echo "${ECHO_T}$enable_static" >&6; }
12982 ac_cpp='$CPP $CPPFLAGS'
12983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991 ac_cpp='$CXXCPP $CPPFLAGS'
12992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12996 archive_cmds_need_lc_CXX=no
12997 allow_undefined_flag_CXX=
12998 always_export_symbols_CXX=no
12999 archive_expsym_cmds_CXX=
13000 compiler_needs_object_CXX=no
13001 export_dynamic_flag_spec_CXX=
13002 hardcode_direct_CXX=no
13003 hardcode_direct_absolute_CXX=no
13004 hardcode_libdir_flag_spec_CXX=
13005 hardcode_libdir_flag_spec_ld_CXX=
13006 hardcode_libdir_separator_CXX=
13007 hardcode_minus_L_CXX=no
13008 hardcode_shlibpath_var_CXX=unsupported
13009 hardcode_automatic_CXX=no
13010 inherit_rpath_CXX=no
13012 module_expsym_cmds_CXX=
13013 link_all_deplibs_CXX=unknown
13014 old_archive_cmds_CXX=$old_archive_cmds
13015 no_undefined_flag_CXX=
13016 whole_archive_flag_spec_CXX=
13017 enable_shared_with_static_runtimes_CXX=no
13019 # Source file extension for C++ test sources.
13022 # Object file extension for compiled C++ test sources.
13026 # No sense in running all these tests if we already determined that
13027 # the CXX compiler isn't working. Some variables (like enable_shared)
13028 # are currently assumed to apply to all compilers on this platform,
13029 # and will be corrupted by setting them based on a non-working compiler.
13030 if test "$_lt_caught_CXX_error" != yes; then
13031 # Code to be used in simple compile tests
13032 lt_simple_compile_test_code="int some_variable = 0;"
13034 # Code to be used in simple link tests
13035 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044 # If no C compiler was specified, use CC.
13047 # If no C compiler flags were specified, use CFLAGS.
13048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13050 # Allow CC to be a program name with arguments.
13054 # save warnings/boilerplate of simple test code
13055 ac_outfile=conftest.$ac_objext
13056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058 _lt_compiler_boilerplate=`cat conftest.err`
13061 ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_linker_boilerplate=`cat conftest.err`
13068 # Allow CC to be a program name with arguments.
13073 lt_save_with_gnu_ld=$with_gnu_ld
13074 lt_save_path_LD=$lt_cv_path_LD
13075 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13076 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13078 $as_unset lt_cv_prog_gnu_ld
13080 if test -n "${lt_cv_path_LDCXX+set}"; then
13081 lt_cv_path_LD=$lt_cv_path_LDCXX
13083 $as_unset lt_cv_path_LD
13085 test -z "${LDCXX+set}" || LD=$LDCXX
13089 for cc_temp in $compiler""; do
13091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13097 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13100 if test -n "$compiler"; then
13101 # We don't want -fno-exception when compiling C++ code, so set the
13102 # no_builtin_flag separately
13103 if test "$GXX" = yes; then
13104 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13106 lt_prog_compiler_no_builtin_flag_CXX=
13109 if test "$GXX" = yes; then
13110 # Set up default GNU C++ configuration
13114 # Check whether --with-gnu-ld was given.
13115 if test "${with_gnu_ld+set}" = set; then
13116 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13122 if test "$GCC" = yes; then
13123 # Check if gcc -print-prog-name=ld gives a path.
13124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13128 # gcc leaves a trailing carriage return which upsets mingw
13129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13134 # Accept absolute paths.
13136 re_direlt='/[^/][^/]*/\.\./'
13137 # Canonicalize the pathname of ld
13138 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13139 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13140 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13142 test -z "$LD" && LD="$ac_prog"
13145 # If it fails, then pretend we aren't using GCC.
13149 # If it is relative, then search for the first ld in PATH.
13150 with_gnu_ld=unknown
13153 elif test "$with_gnu_ld" = yes; then
13154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13160 if test "${lt_cv_path_LD+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 if test -z "$LD"; then
13164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13165 for ac_dir in $PATH; do
13167 test -z "$ac_dir" && ac_dir=.
13168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13169 lt_cv_path_LD="$ac_dir/$ac_prog"
13170 # Check to see if the program is GNU ld. I'd rather use --version,
13171 # but apparently some variants of GNU ld only accept -v.
13172 # Break only if it was the GNU/non-GNU ld that we prefer.
13173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13174 *GNU* | *'with BFD'*)
13175 test "$with_gnu_ld" != no && break
13178 test "$with_gnu_ld" != yes && break
13185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13189 LD="$lt_cv_path_LD"
13190 if test -n "$LD"; then
13191 { echo "$as_me:$LINENO: result: $LD" >&5
13192 echo "${ECHO_T}$LD" >&6; }
13194 { echo "$as_me:$LINENO: result: no" >&5
13195 echo "${ECHO_T}no" >&6; }
13197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13199 { (exit 1); exit 1; }; }
13200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13206 case `$LD -v 2>&1 </dev/null` in
13207 *GNU* | *'with BFD'*)
13208 lt_cv_prog_gnu_ld=yes
13211 lt_cv_prog_gnu_ld=no
13215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13217 with_gnu_ld=$lt_cv_prog_gnu_ld
13225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13226 # archiving commands below assume that GNU ld is being used.
13227 if test "$with_gnu_ld" = yes; then
13228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229 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'
13231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13234 # If archive_cmds runs LD, not CC, wlarc should be empty
13235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13236 # investigate it a little bit more. (MM)
13239 # ancient GNU ld didn't support --whole-archive et. al.
13240 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13241 $GREP 'no-whole-archive' > /dev/null; then
13242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13244 whole_archive_flag_spec_CXX=
13250 # A generic and very simple default shared library creation
13251 # command for GNU C++ for the case where it uses the native
13252 # linker, instead of GNU ld. If possible, this setting should
13253 # overridden to take advantage of the native linker features on
13254 # the platform it is being used on.
13255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258 # Commands to make compiler produce verbose output that lists
13259 # what "hidden" libraries, object files and flags are used when
13260 # linking a shared library.
13261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13269 # PORTME: fill in a description of your system's C++ link characteristics
13270 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13275 # FIXME: insert proper C++ library support
13279 if test "$host_cpu" = ia64; then
13280 # On IA64, the linker does run time linking by default, so we don't
13281 # have to do anything special.
13282 aix_use_runtimelinking=no
13283 exp_sym_flag='-Bexport'
13286 aix_use_runtimelinking=no
13288 # Test if we are trying to use run time linking or normal
13289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13290 # need to do runtime linking.
13291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13292 for ld_flag in $LDFLAGS; do
13295 aix_use_runtimelinking=yes
13303 exp_sym_flag='-bexport'
13304 no_entry_flag='-bnoentry'
13307 # When large executables or shared objects are built, AIX ld can
13308 # have problems creating the table of contents. If linking a library
13309 # or program results in "error TOC overflow" add -mminimal-toc to
13310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13313 archive_cmds_CXX=''
13314 hardcode_direct_CXX=yes
13315 hardcode_direct_absolute_CXX=yes
13316 hardcode_libdir_separator_CXX=':'
13317 link_all_deplibs_CXX=yes
13318 file_list_spec_CXX='${wl}-f,'
13320 if test "$GXX" = yes; then
13321 case $host_os in aix4.[012]|aix4.[012].*)
13322 # We only want to do this on AIX 4.2 and lower, the check
13323 # below for broken collect2 doesn't work under 4.3+
13324 collect2name=`${CC} -print-prog-name=collect2`
13325 if test -f "$collect2name" &&
13326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13328 # We have reworked collect2
13331 # We have old collect2
13332 hardcode_direct_CXX=unsupported
13333 # It fails to find uninstalled libraries when the uninstalled
13334 # path is not listed in the libpath. Setting hardcode_minus_L
13335 # to unsupported forces relinking
13336 hardcode_minus_L_CXX=yes
13337 hardcode_libdir_flag_spec_CXX='-L$libdir'
13338 hardcode_libdir_separator_CXX=
13341 shared_flag='-shared'
13342 if test "$aix_use_runtimelinking" = yes; then
13343 shared_flag="$shared_flag "'${wl}-G'
13347 if test "$host_cpu" = ia64; then
13348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13349 # chokes on -Wl,-G. The following line is correct:
13352 if test "$aix_use_runtimelinking" = yes; then
13353 shared_flag='${wl}-G'
13355 shared_flag='${wl}-bM:SRE'
13360 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13361 # It seems that -bexpall does not export symbols beginning with
13362 # underscore (_), so it is better to generate a list of symbols to
13364 always_export_symbols_CXX=yes
13365 if test "$aix_use_runtimelinking" = yes; then
13366 # Warning - without using the other runtime loading flags (-brtl),
13367 # -berok will link without error, but may produce a broken library.
13368 allow_undefined_flag_CXX='-berok'
13369 # Determine the default libpath from the value encoded in an empty
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_cxx_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest$ac_exeext &&
13403 $as_test_x conftest$ac_exeext; then
13405 lt_aix_libpath_sed='
13406 /Import File Strings/,/^$/ {
13412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413 # Check for a 64-bit object if we didn't find anything.
13414 if test -z "$aix_libpath"; then
13415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13425 conftest$ac_exeext conftest.$ac_ext
13426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13430 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"
13432 if test "$host_cpu" = ia64; then
13433 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13434 allow_undefined_flag_CXX="-z nodefs"
13435 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"
13437 # Determine the default libpath from the value encoded in an
13438 # empty executable.
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_cxx_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13473 lt_aix_libpath_sed='
13474 /Import File Strings/,/^$/ {
13480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13481 # Check for a 64-bit object if we didn't find anything.
13482 if test -z "$aix_libpath"; then
13483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13493 conftest$ac_exeext conftest.$ac_ext
13494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13497 # Warning - without using the other run time loading flags,
13498 # -berok will link without error, but may produce a broken library.
13499 no_undefined_flag_CXX=' ${wl}-bernotok'
13500 allow_undefined_flag_CXX=' ${wl}-berok'
13501 # Exported symbols can be pulled into shared objects from archives
13502 whole_archive_flag_spec_CXX='$convenience'
13503 archive_cmds_need_lc_CXX=yes
13504 # This is similar to how AIX traditionally builds its shared
13506 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'
13512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13513 allow_undefined_flag_CXX=unsupported
13514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13515 # support --undefined. This deserves some investigation. FIXME
13516 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523 case $cc_basename in
13525 # FIXME: insert proper C++ library support
13531 cygwin* | mingw* | pw32* | cegcc*)
13532 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13533 # as there is no search path for DLLs.
13534 hardcode_libdir_flag_spec_CXX='-L$libdir'
13535 allow_undefined_flag_CXX=unsupported
13536 always_export_symbols_CXX=no
13537 enable_shared_with_static_runtimes_CXX=yes
13539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13540 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'
13541 # If the export-symbols file already is a .def file (1st line
13542 # is EXPORTS), use it as is; otherwise, prepend...
13543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13544 cp $export_symbols $output_objdir/$soname.def;
13546 echo EXPORTS > $output_objdir/$soname.def;
13547 cat $export_symbols >> $output_objdir/$soname.def;
13549 $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'
13554 darwin* | rhapsody*)
13557 archive_cmds_need_lc_CXX=no
13558 hardcode_direct_CXX=no
13559 hardcode_automatic_CXX=yes
13560 hardcode_shlibpath_var_CXX=unsupported
13561 whole_archive_flag_spec_CXX=''
13562 link_all_deplibs_CXX=yes
13563 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13564 case $cc_basename in
13565 ifort*) _lt_dar_can_shared=yes ;;
13566 *) _lt_dar_can_shared=$GCC ;;
13568 if test "$_lt_dar_can_shared" = "yes"; then
13569 output_verbose_link_cmd=echo
13570 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}"
13571 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13572 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}"
13573 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}"
13574 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13575 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}"
13576 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}"
13586 case $cc_basename in
13588 # FIXME: insert proper C++ library support
13592 # Green Hills C++ Compiler
13593 # FIXME: insert proper C++ library support
13597 # FIXME: insert proper C++ library support
13604 # C++ shared libraries reported to be fairly broken before
13610 archive_cmds_need_lc_CXX=no
13613 freebsd* | dragonfly*)
13614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13624 hardcode_libdir_separator_CXX=:
13625 export_dynamic_flag_spec_CXX='${wl}-E'
13626 hardcode_direct_CXX=yes
13627 hardcode_minus_L_CXX=yes # Not in the search PATH,
13628 # but as the default
13629 # location of the library.
13631 case $cc_basename in
13633 # FIXME: insert proper C++ library support
13637 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'
13638 # Commands to make compiler produce verbose output that lists
13639 # what "hidden" libraries, object files and flags are used when
13640 # linking a shared library.
13642 # There doesn't appear to be a way to prevent this compiler from
13643 # explicitly linking system object files so we need to strip them
13644 # from the output so that they don't get included in the library
13646 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'
13649 if test "$GXX" = yes; then
13650 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'
13652 # FIXME: insert proper C++ library support
13660 if test $with_gnu_ld = no; then
13661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13662 hardcode_libdir_separator_CXX=:
13668 export_dynamic_flag_spec_CXX='${wl}-E'
13674 hardcode_direct_CXX=no
13675 hardcode_shlibpath_var_CXX=no
13678 hardcode_direct_CXX=yes
13679 hardcode_direct_absolute_CXX=yes
13680 hardcode_minus_L_CXX=yes # Not in the search PATH,
13681 # but as the default
13682 # location of the library.
13686 case $cc_basename in
13688 # FIXME: insert proper C++ library support
13694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 # Commands to make compiler produce verbose output that lists
13704 # what "hidden" libraries, object files and flags are used when
13705 # linking a shared library.
13707 # There doesn't appear to be a way to prevent this compiler from
13708 # explicitly linking system object files so we need to strip them
13709 # from the output so that they don't get included in the library
13711 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'
13714 if test "$GXX" = yes; then
13715 if test $with_gnu_ld = no; then
13718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724 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'
13729 # FIXME: insert proper C++ library support
13737 hardcode_direct_CXX=no
13738 hardcode_shlibpath_var_CXX=no
13739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13740 export_dynamic_flag_spec_CXX='${wl}-E'
13741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13742 # Instead, shared libraries are loaded at an image base (0x10000000 by
13743 # default) and relocated if they conflict, which is a slow very memory
13744 # consuming and fragmenting process. To avoid this, we pick a random,
13745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13747 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'
13748 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'
13751 case $cc_basename in
13754 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'
13756 # Archives containing C++ object files must be created using
13757 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13758 # necessary to make sure instantiated templates are included
13760 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13763 if test "$GXX" = yes; then
13764 if test "$with_gnu_ld" = no; then
13765 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'
13767 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'
13770 link_all_deplibs_CXX=yes
13773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13774 hardcode_libdir_separator_CXX=:
13775 inherit_rpath_CXX=yes
13778 linux* | k*bsd*-gnu)
13779 case $cc_basename in
13781 # Kuck and Associates, Inc. (KAI) C++ Compiler
13783 # KCC will only create a shared library if the output file
13784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13785 # to its proper name (with version) after linking.
13786 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'
13787 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'
13788 # Commands to make compiler produce verbose output that lists
13789 # what "hidden" libraries, object files and flags are used when
13790 # linking a shared library.
13792 # There doesn't appear to be a way to prevent this compiler from
13793 # explicitly linking system object files so we need to strip them
13794 # from the output so that they don't get included in the library
13796 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'
13798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13801 # Archives containing C++ object files must be created using
13802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13808 # version 8.0 and above of icpc choke on multiply defined symbols
13809 # if we add $predep_objects and $postdep_objects, however 7.1 and
13810 # earlier do not add the objects themselves.
13811 case `$CC -V 2>&1` in
13813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814 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'
13816 *) # Version 8.0 or newer
13819 ia64*) tmp_idyn=' -i_dynamic';;
13821 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 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'
13825 archive_cmds_need_lc_CXX=no
13826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13828 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13831 # Portland Group C++ compiler
13833 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13834 prelink_cmds_CXX='tpldir=Template.dir~
13836 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13837 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13838 old_archive_cmds_CXX='tpldir=Template.dir~
13840 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13841 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13843 archive_cmds_CXX='tpldir=Template.dir~
13845 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13846 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13847 archive_expsym_cmds_CXX='tpldir=Template.dir~
13849 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13850 $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'
13852 *) # Version 6 will use weak symbols
13853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13854 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'
13858 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13860 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'
13864 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 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'
13867 runpath_var=LD_RUN_PATH
13868 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13869 hardcode_libdir_separator_CXX=:
13871 # Commands to make compiler produce verbose output that lists
13872 # what "hidden" libraries, object files and flags are used when
13873 # linking a shared library.
13875 # There doesn't appear to be a way to prevent this compiler from
13876 # explicitly linking system object files so we need to strip them
13877 # from the output so that they don't get included in the library
13879 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'
13882 # IBM XL 8.0 on PPC, with GNU ld
13883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13885 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 if test "x$supports_anon_versioning" = xyes; then
13887 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13889 echo "local: *; };" >> $output_objdir/$libname.ver~
13890 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13894 case `$CC -V 2>&1 | sed 5q` in
13897 no_undefined_flag_CXX=' -zdefs'
13898 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13899 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'
13900 hardcode_libdir_flag_spec_CXX='-R$libdir'
13901 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'
13902 compiler_needs_object_CXX=yes
13904 # Not sure whether something based on
13905 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13907 output_verbose_link_cmd='echo'
13909 # Archives containing C++ object files must be created using
13910 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13911 # necessary to make sure instantiated templates are included
13913 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13921 # FIXME: insert proper C++ library support
13926 # FIXME: insert proper C++ library support
13931 case $cc_basename in
13933 # FIXME: insert proper C++ library support
13937 # FIXME: insert proper C++ library support
13944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13945 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13947 hardcode_libdir_flag_spec_CXX='-R$libdir'
13948 hardcode_direct_CXX=yes
13949 hardcode_shlibpath_var_CXX=no
13951 # Workaround some broken pre-1.5 toolchains
13952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13960 # C++ shared libraries are fairly broken
13965 if test -f /usr/libexec/ld.so; then
13966 hardcode_direct_CXX=yes
13967 hardcode_shlibpath_var_CXX=no
13968 hardcode_direct_absolute_CXX=yes
13969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13972 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13973 export_dynamic_flag_spec_CXX='${wl}-E'
13974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13976 output_verbose_link_cmd=echo
13982 osf3* | osf4* | osf5*)
13983 case $cc_basename in
13985 # Kuck and Associates, Inc. (KAI) C++ Compiler
13987 # KCC will only create a shared library if the output file
13988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13989 # to its proper name (with version) after linking.
13990 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'
13992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13993 hardcode_libdir_separator_CXX=:
13995 # Archives containing C++ object files must be created using
13996 # the KAI C++ compiler.
13998 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13999 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14003 # Rational C++ 2.4.1
14004 # FIXME: insert proper C++ library support
14010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14011 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'
14012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14015 allow_undefined_flag_CXX=' -expect_unresolved \*'
14016 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'
14017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14018 echo "-hidden">> $lib.exp~
14019 $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~
14021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14025 hardcode_libdir_separator_CXX=:
14027 # Commands to make compiler produce verbose output that lists
14028 # what "hidden" libraries, object files and flags are used when
14029 # linking a shared library.
14031 # There doesn't appear to be a way to prevent this compiler from
14032 # explicitly linking system object files so we need to strip them
14033 # from the output so that they don't get included in the library
14035 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'
14038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14042 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'
14045 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'
14049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14050 hardcode_libdir_separator_CXX=:
14052 # Commands to make compiler produce verbose output that lists
14053 # what "hidden" libraries, object files and flags are used when
14054 # linking a shared library.
14055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14058 # FIXME: insert proper C++ library support
14066 # FIXME: insert proper C++ library support
14071 case $cc_basename in
14074 # FIXME: insert proper C++ library support
14079 # FIXME: insert proper C++ library support
14083 # FIXME: insert proper C++ library support
14090 case $cc_basename in
14092 # Sun C++ 4.2, 5.x and Centerline C++
14093 archive_cmds_need_lc_CXX=yes
14094 no_undefined_flag_CXX=' -zdefs'
14095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14097 $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'
14099 hardcode_libdir_flag_spec_CXX='-R$libdir'
14100 hardcode_shlibpath_var_CXX=no
14102 solaris2.[0-5] | solaris2.[0-5].*) ;;
14104 # The compiler driver will combine and reorder linker options,
14105 # but understands `-z linker_flag'.
14106 # Supported since Solaris 2.6 (maybe 2.5.1?)
14107 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14110 link_all_deplibs_CXX=yes
14112 output_verbose_link_cmd='echo'
14114 # Archives containing C++ object files must be created using
14115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14116 # necessary to make sure instantiated templates are included
14118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14121 # Green Hills C++ Compiler
14122 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14124 # The C++ compiler must be used to create the archive.
14125 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14128 # GNU C++ compiler with Solaris linker
14129 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14130 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14131 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14132 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14133 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14134 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14136 # Commands to make compiler produce verbose output that lists
14137 # what "hidden" libraries, object files and flags are used when
14138 # linking a shared library.
14139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14141 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14143 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14144 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14145 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14147 # Commands to make compiler produce verbose output that lists
14148 # what "hidden" libraries, object files and flags are used when
14149 # linking a shared library.
14150 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14155 solaris2.[0-5] | solaris2.[0-5].*) ;;
14157 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14166 no_undefined_flag_CXX='${wl}-z,text'
14167 archive_cmds_need_lc_CXX=no
14168 hardcode_shlibpath_var_CXX=no
14169 runpath_var='LD_RUN_PATH'
14171 case $cc_basename in
14173 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14178 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 sysv5* | sco3.2v5* | sco5v6*)
14184 # Note: We can NOT use -z defs as we might desire, because we do not
14185 # link with -lc, and that would cause any symbols used from libc to
14186 # always be unresolved, which means just about no library would
14187 # ever link correctly. If we're not using GNU ld we use -z text
14188 # though, which does catch some bad symbols but isn't as heavy-handed
14190 no_undefined_flag_CXX='${wl}-z,text'
14191 allow_undefined_flag_CXX='${wl}-z,nodefs'
14192 archive_cmds_need_lc_CXX=no
14193 hardcode_shlibpath_var_CXX=no
14194 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14195 hardcode_libdir_separator_CXX=':'
14196 link_all_deplibs_CXX=yes
14197 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14198 runpath_var='LD_RUN_PATH'
14200 case $cc_basename in
14202 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14207 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 case $cc_basename in
14215 # NonStop-UX NCC 3.20
14216 # FIXME: insert proper C++ library support
14220 # FIXME: insert proper C++ library support
14227 # FIXME: insert proper C++ library support
14232 # FIXME: insert proper C++ library support
14237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14239 test "$ld_shlibs_CXX" = no && can_build_shared=no
14245 ## There is no encapsulation within the following macros, do not change
14246 ## the running order or otherwise move them around unless you know exactly
14247 ## what you are doing...
14248 # Dependencies to place before and after the object being linked:
14249 predep_objects_CXX=
14250 postdep_objects_CXX=
14253 compiler_lib_search_path_CXX=
14255 cat > conftest.$ac_ext <<_LT_EOF
14259 Foo (void) { a = 0; }
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; then
14270 # Parse the compiler output and extract the necessary
14271 # objects, libraries and library flags.
14273 # Sentinel used to keep track of whether or not we are before
14274 # the conftest object file.
14275 pre_test_object_deps_done=no
14277 for p in `eval "$output_verbose_link_cmd"`; do
14281 # Some compilers place space between "-{L,R}" and the path.
14282 # Remove the space.
14283 if test $p = "-L" ||
14284 test $p = "-R"; then
14291 if test "$pre_test_object_deps_done" = no; then
14294 # Internal compiler library paths should come after those
14295 # provided the user. The postdeps already come after the
14296 # user supplied libs so there is no need to process them.
14297 if test -z "$compiler_lib_search_path_CXX"; then
14298 compiler_lib_search_path_CXX="${prev}${p}"
14300 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14303 # The "-l" case would never come before the object being
14304 # linked, so don't bother handling this case.
14307 if test -z "$postdeps_CXX"; then
14308 postdeps_CXX="${prev}${p}"
14310 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14316 # This assumes that the test object file only shows up
14317 # once in the compiler output.
14318 if test "$p" = "conftest.$objext"; then
14319 pre_test_object_deps_done=yes
14323 if test "$pre_test_object_deps_done" = no; then
14324 if test -z "$predep_objects_CXX"; then
14325 predep_objects_CXX="$p"
14327 predep_objects_CXX="$predep_objects_CXX $p"
14330 if test -z "$postdep_objects_CXX"; then
14331 postdep_objects_CXX="$p"
14333 postdep_objects_CXX="$postdep_objects_CXX $p"
14338 *) ;; # Ignore the rest.
14346 echo "libtool.m4: error: problem compiling CXX test program"
14349 $RM -f confest.$objext
14351 # PORTME: override above test on systems where it is broken
14354 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14355 # hack all around it, let's just trust "g++" to DTRT.
14356 predep_objects_CXX=
14357 postdep_objects_CXX=
14362 case `$CC -V 2>&1 | sed 5q` in
14366 # The more standards-conforming stlport4 library is
14367 # incompatible with the Cstd library. Avoid specifying
14368 # it if it's in CXXFLAGS. Ignore libCrun as
14369 # -library=stlport4 depends on it.
14370 case " $CXX $CXXFLAGS " in
14371 *" -library=stlport4 "*)
14372 solaris_use_stlport4=yes
14376 if test "$solaris_use_stlport4" != yes; then
14377 postdeps_CXX='-library=Cstd -library=Crun'
14384 case $cc_basename in
14386 # The more standards-conforming stlport4 library is
14387 # incompatible with the Cstd library. Avoid specifying
14388 # it if it's in CXXFLAGS. Ignore libCrun as
14389 # -library=stlport4 depends on it.
14390 case " $CXX $CXXFLAGS " in
14391 *" -library=stlport4 "*)
14392 solaris_use_stlport4=yes
14396 # Adding this requires a known-good setup of shared libraries for
14397 # Sun compiler versions before 5.6, else PIC objects from an old
14398 # archive will be linked into the output, leading to subtle bugs.
14399 if test "$solaris_use_stlport4" != yes; then
14400 postdeps_CXX='-library=Cstd -library=Crun'
14408 case " $postdeps_CXX " in
14409 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14411 compiler_lib_search_dirs_CXX=
14412 if test -n "${compiler_lib_search_path_CXX}"; then
14413 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14446 lt_prog_compiler_wl_CXX=
14447 lt_prog_compiler_pic_CXX=
14448 lt_prog_compiler_static_CXX=
14450 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14451 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14453 # C++ specific cases for pic, static, wl, etc.
14454 if test "$GXX" = yes; then
14455 lt_prog_compiler_wl_CXX='-Wl,'
14456 lt_prog_compiler_static_CXX='-static'
14460 # All AIX code is PIC.
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 now supports IA64 processor
14463 lt_prog_compiler_static_CXX='-Bstatic'
14470 # see comment about AmigaOS4 .so support
14471 lt_prog_compiler_pic_CXX='-fPIC'
14474 # FIXME: we need at least 68020 code to build shared libraries, but
14475 # adding the `-m68020' flag to GCC prevents building anything better,
14477 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14482 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14483 # PIC is the default for these OSes.
14485 mingw* | cygwin* | os2* | pw32* | cegcc*)
14486 # This hack is so that the source file can tell whether it is being
14487 # built for inclusion in a dll (and should export symbols for example).
14488 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14489 # (--disable-auto-import) libraries
14490 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14492 darwin* | rhapsody*)
14493 # PIC is the default on this platform
14494 # Common symbols not allowed in MH_DYLIB files
14495 lt_prog_compiler_pic_CXX='-fno-common'
14498 # DJGPP does not support shared libraries at all
14499 lt_prog_compiler_pic_CXX=
14502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14503 # Instead, we relocate shared libraries at runtime.
14506 if test -d /usr/nec; then
14507 lt_prog_compiler_pic_CXX=-Kconform_pic
14511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14513 # sets the default TLS model and affects inlining.
14518 lt_prog_compiler_pic_CXX='-fPIC'
14523 # QNX uses GNU C++, but need to define -shared option too, otherwise
14524 # it will coredump.
14525 lt_prog_compiler_pic_CXX='-fPIC -shared'
14528 lt_prog_compiler_pic_CXX='-fPIC'
14534 # All AIX code is PIC.
14535 if test "$host_cpu" = ia64; then
14536 # AIX 5 now supports IA64 processor
14537 lt_prog_compiler_static_CXX='-Bstatic'
14539 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14543 case $cc_basename in
14545 # Green Hills C++ Compiler
14546 # _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"
14551 case $cc_basename in
14553 lt_prog_compiler_pic_CXX='-KPIC'
14556 # Green Hills C++ Compiler
14557 lt_prog_compiler_pic_CXX='-pic'
14563 freebsd* | dragonfly*)
14564 # FreeBSD uses GNU C++
14566 hpux9* | hpux10* | hpux11*)
14567 case $cc_basename in
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14571 if test "$host_cpu" != ia64; then
14572 lt_prog_compiler_pic_CXX='+Z'
14576 lt_prog_compiler_wl_CXX='-Wl,'
14577 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583 lt_prog_compiler_pic_CXX='+Z'
14592 # This is c89, which is MS Visual C++ (no shared libs)
14593 # Anyone wants to do a port?
14595 irix5* | irix6* | nonstopux*)
14596 case $cc_basename in
14598 lt_prog_compiler_wl_CXX='-Wl,'
14599 lt_prog_compiler_static_CXX='-non_shared'
14600 # CC pic flag -KPIC is the default.
14606 linux* | k*bsd*-gnu)
14607 case $cc_basename in
14610 lt_prog_compiler_wl_CXX='--backend -Wl,'
14611 lt_prog_compiler_pic_CXX='-fPIC'
14614 # old Intel C++ for x86_64 which still supported -KPIC.
14615 lt_prog_compiler_wl_CXX='-Wl,'
14616 lt_prog_compiler_pic_CXX='-KPIC'
14617 lt_prog_compiler_static_CXX='-static'
14620 # Intel C++, used to be incompatible with GCC.
14621 # ICC 10 doesn't accept -KPIC any more.
14622 lt_prog_compiler_wl_CXX='-Wl,'
14623 lt_prog_compiler_pic_CXX='-fPIC'
14624 lt_prog_compiler_static_CXX='-static'
14627 # Portland Group C++ compiler
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-fpic'
14630 lt_prog_compiler_static_CXX='-Bstatic'
14634 # Make sure the PIC flag is empty. It appears that all Alpha
14635 # Linux and Compaq Tru64 Unix objects are PIC.
14636 lt_prog_compiler_pic_CXX=
14637 lt_prog_compiler_static_CXX='-non_shared'
14640 # IBM XL 8.0 on PPC
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_pic_CXX='-qpic'
14643 lt_prog_compiler_static_CXX='-qstaticlink'
14646 case `$CC -V 2>&1 | sed 5q` in
14649 lt_prog_compiler_pic_CXX='-KPIC'
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_wl_CXX='-Qoption ld '
14662 case $cc_basename in
14664 lt_prog_compiler_pic_CXX='-W c,exportall'
14673 # QNX uses GNU C++, but need to define -shared option too, otherwise
14674 # it will coredump.
14675 lt_prog_compiler_pic_CXX='-fPIC -shared'
14677 osf3* | osf4* | osf5*)
14678 case $cc_basename in
14680 lt_prog_compiler_wl_CXX='--backend -Wl,'
14683 # Rational C++ 2.4.1
14684 lt_prog_compiler_pic_CXX='-pic'
14687 # Digital/Compaq C++
14688 lt_prog_compiler_wl_CXX='-Wl,'
14689 # Make sure the PIC flag is empty. It appears that all Alpha
14690 # Linux and Compaq Tru64 Unix objects are PIC.
14691 lt_prog_compiler_pic_CXX=
14692 lt_prog_compiler_static_CXX='-non_shared'
14701 case $cc_basename in
14703 # Sun C++ 4.2, 5.x and Centerline C++
14704 lt_prog_compiler_pic_CXX='-KPIC'
14705 lt_prog_compiler_static_CXX='-Bstatic'
14706 lt_prog_compiler_wl_CXX='-Qoption ld '
14709 # Green Hills C++ Compiler
14710 lt_prog_compiler_pic_CXX='-PIC'
14717 case $cc_basename in
14720 lt_prog_compiler_pic_CXX='-pic'
14721 lt_prog_compiler_static_CXX='-Bstatic'
14725 lt_prog_compiler_pic_CXX='-pic'
14731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14732 case $cc_basename in
14734 lt_prog_compiler_wl_CXX='-Wl,'
14735 lt_prog_compiler_pic_CXX='-KPIC'
14736 lt_prog_compiler_static_CXX='-Bstatic'
14741 case $cc_basename in
14743 # NonStop-UX NCC 3.20
14744 lt_prog_compiler_pic_CXX='-KPIC'
14753 lt_prog_compiler_can_build_shared_CXX=no
14759 # For platforms which do not support PIC, -DPIC is meaningless:
14761 lt_prog_compiler_pic_CXX=
14764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14768 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14773 # Check to make sure the PIC flag actually works.
14775 if test -n "$lt_prog_compiler_pic_CXX"; then
14776 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14777 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 lt_cv_prog_compiler_pic_works_CXX=no
14782 ac_outfile=conftest.$ac_objext
14783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 # The option is referenced via a variable to avoid confusing sed.
14790 lt_compile=`echo "$ac_compile" | $SED \
14791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793 -e 's:$: $lt_compiler_flag:'`
14794 (eval echo "\"\$as_me:14794: $lt_compile\"" >&5)
14795 (eval "$lt_compile" 2>conftest.err)
14797 cat conftest.err >&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 if (exit $ac_status) && test -s "$ac_outfile"; then
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings other than the usual output.
14802 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_pic_works_CXX=yes
14811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14812 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14814 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14815 case $lt_prog_compiler_pic_CXX in
14817 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820 lt_prog_compiler_pic_CXX=
14821 lt_prog_compiler_can_build_shared_CXX=no
14829 # Check to make sure the static flag actually works.
14831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 lt_cv_prog_compiler_static_works_CXX=no
14838 save_LDFLAGS="$LDFLAGS"
14839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14842 # The linker can only warn and ignore the option if not recognized
14843 # So say no if there are warnings
14844 if test -s conftest.err; then
14845 # Append any errors to the config.log.
14846 cat conftest.err 1>&5
14847 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14849 if diff conftest.exp conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_static_works_CXX=yes
14853 lt_cv_prog_compiler_static_works_CXX=yes
14857 LDFLAGS="$save_LDFLAGS"
14860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14861 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14863 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14866 lt_prog_compiler_static_CXX=
14872 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14873 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14874 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 lt_cv_prog_compiler_c_o_CXX=no
14878 $RM -r conftest 2>/dev/null
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884 lt_compiler_flag="-o out/conftest2.$ac_objext"
14885 # Insert the option either (1) after the last *FLAGS variable, or
14886 # (2) before a word containing "conftest.", or (3) at the end.
14887 # Note that $ac_compile itself does not contain backslashes and begins
14888 # with a dollar sign (not a hyphen), so the echo should work correctly.
14889 lt_compile=`echo "$ac_compile" | $SED \
14890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14892 -e 's:$: $lt_compiler_flag:'`
14893 (eval echo "\"\$as_me:14893: $lt_compile\"" >&5)
14894 (eval "$lt_compile" 2>out/conftest.err)
14896 cat out/conftest.err >&5
14897 echo "$as_me:14897: \$? = $ac_status" >&5
14898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900 # The compiler can only warn and ignore the option if not recognized
14901 # So say no if there are warnings
14902 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14905 lt_cv_prog_compiler_c_o_CXX=yes
14910 # SGI C++ compiler will create directory out/ii_files/ for
14911 # template instantiation
14912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14913 $RM out/* && rmdir out
14919 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14920 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14926 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 lt_cv_prog_compiler_c_o_CXX=no
14930 $RM -r conftest 2>/dev/null
14934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14936 lt_compiler_flag="-o out/conftest2.$ac_objext"
14937 # Insert the option either (1) after the last *FLAGS variable, or
14938 # (2) before a word containing "conftest.", or (3) at the end.
14939 # Note that $ac_compile itself does not contain backslashes and begins
14940 # with a dollar sign (not a hyphen), so the echo should work correctly.
14941 lt_compile=`echo "$ac_compile" | $SED \
14942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14944 -e 's:$: $lt_compiler_flag:'`
14945 (eval echo "\"\$as_me:14945: $lt_compile\"" >&5)
14946 (eval "$lt_compile" 2>out/conftest.err)
14948 cat out/conftest.err >&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14952 # The compiler can only warn and ignore the option if not recognized
14953 # So say no if there are warnings
14954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14957 lt_cv_prog_compiler_c_o_CXX=yes
14962 # SGI C++ compiler will create directory out/ii_files/ for
14963 # template instantiation
14964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14965 $RM out/* && rmdir out
14971 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14972 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14977 hard_links="nottested"
14978 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14979 # do not overwrite the value of need_locks provided by the user
14980 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14986 ln conftest.a conftest.b 2>&5 || hard_links=no
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 { echo "$as_me:$LINENO: result: $hard_links" >&5
14989 echo "${ECHO_T}$hard_links" >&6; }
14990 if test "$hard_links" = no; then
14991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15007 # If we're using GNU nm, then we don't want the "-C" option.
15008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15009 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15010 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'
15012 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'
15016 export_symbols_cmds_CXX="$ltdll_cmds"
15018 cygwin* | mingw* | cegcc*)
15019 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'
15022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15025 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15027 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15028 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15029 test "$ld_shlibs_CXX" = no && can_build_shared=no
15031 with_gnu_ld_CXX=$with_gnu_ld
15039 # Do we need to explicitly link libc?
15041 case "x$archive_cmds_need_lc_CXX" in
15043 # Assume -lc should be added
15044 archive_cmds_need_lc_CXX=yes
15046 if test "$enable_shared" = yes && test "$GCC" = yes; then
15047 case $archive_cmds_CXX in
15049 # FIXME: we may have to deal with multi-command sequences.
15052 # Test whether the compiler implicitly links with -lc since on some
15053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15054 # to ld, don't add -lc before -lgcc.
15055 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15056 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } 2>conftest.err; then
15067 libobjs=conftest.$ac_objext
15069 wl=$lt_prog_compiler_wl_CXX
15070 pic_flag=$lt_prog_compiler_pic_CXX
15076 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15077 allow_undefined_flag_CXX=
15078 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15079 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }
15084 archive_cmds_need_lc_CXX=no
15086 archive_cmds_need_lc_CXX=yes
15088 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15090 cat conftest.err 1>&5
15093 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15094 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15167 library_names_spec=
15168 libname_spec='lib$name'
15172 postuninstall_cmds=
15176 shlibpath_overrides_runpath=unknown
15178 dynamic_linker="$host_os ld.so"
15179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15180 need_lib_prefix=unknown
15181 hardcode_into_libs=no
15183 # when you set need_version to no, make sure it does not cause -set_version
15184 # flags to be left without arguments
15185 need_version=unknown
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15191 shlibpath_var=LIBPATH
15193 # AIX 3 has no versioning support, so we append a major version to the name.
15194 soname_spec='${libname}${release}${shared_ext}$major'
15201 hardcode_into_libs=yes
15202 if test "$host_cpu" = ia64; then
15203 # AIX 5 supports IA64
15204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15207 # With GCC up to 2.95.x, collect2 would create an import file
15208 # for dependence libraries. The import file would start with
15209 # the line `#! .'. This would cause the generated library to
15210 # depend on `.', always an invalid library. This was fixed in
15211 # development snapshots of GCC prior to 3.0.
15213 aix4 | aix4.[01] | aix4.[01].*)
15214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15216 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15219 can_build_shared=no
15223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15224 # soname into executable. Probably we can add versioning support to
15225 # collect2, so additional links can be useful in future.
15226 if test "$aix_use_runtimelinking" = yes; then
15227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15228 # instead of lib<name>.a to let people know that these are not
15229 # typical AIX shared libraries.
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 # We preserve .a as extension for shared libraries through AIX4.2
15233 # and later when we are not doing run time linking.
15234 library_names_spec='${libname}${release}.a $libname.a'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LIBPATH
15244 # Since July 2007 AmigaOS4 officially supports .so libraries.
15245 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15257 library_names_spec='${libname}${shared_ext}'
15258 dynamic_linker="$host_os ld.so"
15259 shlibpath_var=LIBRARY_PATH
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15271 # the default ld.so.conf also contains /usr/contrib/lib and
15272 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15273 # libtool to hard-code these into programs
15276 cygwin* | mingw* | pw32* | cegcc*)
15277 version_type=windows
15282 case $GCC,$host_os in
15283 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15284 library_names_spec='$libname.dll.a'
15285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15286 postinstall_cmds='base_file=`basename \${file}`~
15287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15288 dldir=$destdir/`dirname \$dlpath`~
15289 test -d \$dldir || mkdir -p \$dldir~
15290 $install_prog $dir/$dlname \$dldir/$dlname~
15291 chmod a+x \$dldir/$dlname~
15292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15296 dlpath=$dir/\$dldll~
15298 shlibpath_overrides_runpath=yes
15302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307 # MinGW DLLs use traditional 'lib' prefix
15308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15311 # It is most probably a Windows format PATH printed by
15312 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15313 # path with ; separators, and with drive letters. We can handle the
15314 # drive letters (cygwin fileutils understands them), so leave them,
15315 # especially as we might pass files found there to a mingw objdump,
15316 # which wouldn't understand a cygwinified path. Ahh.
15317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15323 # pw32 DLLs use 'pw' prefix rather than 'lib'
15324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333 dynamic_linker='Win32 ld.exe'
15334 # FIXME: first we should search . and the directory the executable is in
15338 darwin* | rhapsody*)
15339 dynamic_linker="$host_os dyld"
15340 version_type=darwin
15343 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15344 soname_spec='${libname}${release}${major}$shared_ext'
15345 shlibpath_overrides_runpath=yes
15346 shlibpath_var=DYLD_LIBRARY_PATH
15347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15365 freebsd* | dragonfly*)
15366 # DragonFly does not have aout. When/if they implement a new
15367 # versioning mechanism, adjust this.
15368 if test -x /usr/bin/objformat; then
15369 objformat=`/usr/bin/objformat`
15372 freebsd[123]*) objformat=aout ;;
15373 *) objformat=elf ;;
15376 version_type=freebsd-$objformat
15377 case $version_type in
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15388 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15393 freebsd3.[01]* | freebsdelf3.[01]*)
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15399 shlibpath_overrides_runpath=no
15400 hardcode_into_libs=yes
15402 *) # from 4.6 on, and DragonFly
15403 shlibpath_overrides_runpath=yes
15404 hardcode_into_libs=yes
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 hardcode_into_libs=yes
15419 hpux9* | hpux10* | hpux11*)
15420 # Give a soname corresponding to the major version so that dld.sl refuses to
15421 # link against other versions.
15428 hardcode_into_libs=yes
15429 dynamic_linker="$host_os dld.so"
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 if test "X$HPUX_IA64_MODE" = X32; then
15435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443 hardcode_into_libs=yes
15444 dynamic_linker="$host_os dld.sl"
15445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454 dynamic_linker="$host_os dld.sl"
15455 shlibpath_var=SHLIB_PATH
15456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15462 postinstall_cmds='chmod 555 $lib'
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 hardcode_into_libs=yes
15477 irix5* | irix6* | nonstopux*)
15479 nonstopux*) version_type=nonstopux ;;
15481 if test "$lt_cv_prog_gnu_ld" = yes; then
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 irix5* | nonstopux*)
15493 libsuff= shlibsuff=
15496 case $LD in # libtool.m4 will add one of these switches to LD
15497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15498 libsuff= shlibsuff= libmagic=32-bit;;
15499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15500 libsuff=32 shlibsuff=N32 libmagic=N32;;
15501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15503 *) libsuff= shlibsuff= libmagic=never-match;;
15507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15508 shlibpath_overrides_runpath=no
15509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15511 hardcode_into_libs=yes
15514 # No shared lib support for Linux oldld, aout, or coff.
15515 linux*oldld* | linux*aout* | linux*coff*)
15519 # This must be Linux ELF.
15520 linux* | k*bsd*-gnu)
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=no
15529 # Some binutils ld are patched to set DT_RUNPATH
15530 save_LDFLAGS=$LDFLAGS
15531 save_libdir=$libdir
15532 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15533 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_cxx_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15568 shlibpath_overrides_runpath=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LDFLAGS=$save_LDFLAGS
15581 libdir=$save_libdir
15583 # This implies no fast_install, which is unacceptable.
15584 # Some rework will be needed to allow for fast_install
15585 # before this can be enabled.
15586 hardcode_into_libs=yes
15588 # Append ld.so.conf contents to the search path
15589 if test -f /etc/ld.so.conf; then
15590 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' ' '`
15591 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594 # We used to test for /lib/ld.so.1 and disable shared libraries on
15595 # powerpc, because MkLinux only supported shared libraries with the
15596 # GNU dynamic linker. Since this was broken with cross compilers,
15597 # most powerpc-linux boxes support dynamic linking these days and
15598 # people can always --disable-shared, the test was removed, and we
15599 # assume the GNU/Linux dynamic linker is in use.
15600 dynamic_linker='GNU/Linux ld.so'
15607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610 dynamic_linker='NetBSD (a.out) ld.so'
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 dynamic_linker='NetBSD ld.elf_so'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=yes
15618 hardcode_into_libs=yes
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=no
15636 hardcode_into_libs=yes
15637 dynamic_linker='ldqnx.so'
15642 sys_lib_dlsearch_path_spec="/usr/lib"
15644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15647 *) need_version=no ;;
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15654 openbsd2.[89] | openbsd2.[89].*)
15655 shlibpath_overrides_runpath=no
15658 shlibpath_overrides_runpath=yes
15662 shlibpath_overrides_runpath=yes
15667 libname_spec='$name'
15670 library_names_spec='$libname${shared_ext} $libname.a'
15671 dynamic_linker='OS/2 ld.exe'
15672 shlibpath_var=LIBPATH
15675 osf3* | osf4* | osf5*)
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 hardcode_into_libs=yes
15699 # ldd complains unless libraries are executable
15700 postinstall_cmds='chmod +x $lib'
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 if test "$with_gnu_ld" = yes; then
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 case $host_vendor in
15722 shlibpath_overrides_runpath=no
15724 runpath_var=LD_RUN_PATH
15732 shlibpath_overrides_runpath=no
15733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15739 if test -d /usr/nec ;then
15741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15742 soname_spec='$libname${shared_ext}.$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15748 version_type=freebsd-elf
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=yes
15755 hardcode_into_libs=yes
15756 if test "$with_gnu_ld" = yes; then
15757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15766 sys_lib_dlsearch_path_spec='/usr/lib'
15770 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=no
15777 hardcode_into_libs=yes
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15791 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15792 echo "${ECHO_T}$dynamic_linker" >&6; }
15793 test "$dynamic_linker" = no && can_build_shared=no
15795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15796 if test "$GCC" = yes; then
15797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15800 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15803 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15842 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15844 hardcode_action_CXX=
15845 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15846 test -n "$runpath_var_CXX" ||
15847 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15849 # We can hardcode non-existent directories.
15850 if test "$hardcode_direct_CXX" != no &&
15851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15852 # have to relink, otherwise we might link with an installed library
15853 # when we should be linking with a yet-to-be-installed one
15854 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15855 test "$hardcode_minus_L_CXX" != no; then
15856 # Linking always hardcodes the temporary library directory.
15857 hardcode_action_CXX=relink
15859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15860 hardcode_action_CXX=immediate
15863 # We cannot hardcode anything, or else we can only hardcode existing
15865 hardcode_action_CXX=unsupported
15867 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15868 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15870 if test "$hardcode_action_CXX" = relink ||
15871 test "$inherit_rpath_CXX" = yes; then
15872 # Fast installation is not supported
15873 enable_fast_install=no
15874 elif test "$shlibpath_overrides_runpath" = yes ||
15875 test "$enable_shared" = no; then
15876 # Fast installation is not necessary
15877 enable_fast_install=needless
15886 fi # test -n "$compiler"
15892 with_gnu_ld=$lt_save_with_gnu_ld
15893 lt_cv_path_LDCXX=$lt_cv_path_LD
15894 lt_cv_path_LD=$lt_save_path_LD
15895 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15896 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15897 fi # test "$_lt_caught_CXX_error" != yes
15900 ac_cpp='$CPP $CPPFLAGS'
15901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15917 ac_config_commands="$ac_config_commands libtool"
15922 # Only expand once:
15927 if test x$use_libtool != xno; then
15928 DEFAULT_OBJECT_TYPE=".lo"
15929 DEFAULT_ARCHIVE_TYPE=".la"
15930 DEFAULT_SHARED_OBJECT_TYPE=".la"
15931 LIBTOOL="\$(LIBTOOL)"
15932 LIBTOOL_INSTALL_TARGET="libtool-install"
15933 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15934 LIBTOOL_CLEAN_TARGET="libtool-clean"
15935 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15936 FD_PLUGIN_DIR="src/plugins/fd"
15939 DEFAULT_OBJECT_TYPE=".o"
15940 DEFAULT_ARCHIVE_TYPE=".a"
15941 DEFAULT_SHARED_OBJECT_TYPE=".so"
15942 LIBTOOL="# \$(LIBTOOL)"
15943 LIBTOOL_INSTALL_TARGET=""
15944 LIBTOOL_UNINSTALL_TARGET=""
15945 LIBTOOL_CLEAN_TARGET=""
15946 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15961 # Check whether --enable-includes was given.
15962 if test "${enable_includes+set}" = set; then
15963 enableval=$enable_includes;
15964 if test x$enableval = xyes; then
15965 install_includes=yes
15973 if test x$use_libtool != xno -a x$install_includes = xyes; then
15974 INCLUDE_INSTALL_TARGET="install-includes"
15975 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15977 INCLUDE_INSTALL_TARGET=""
15978 INCLUDE_UNINSTALL_TARGET=""
15984 { echo "$as_me:$LINENO: checking host system type" >&5
15985 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15986 if test "${ac_cv_host+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 if test "x$host_alias" = x; then
15990 ac_cv_host=$ac_cv_build
15992 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15993 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15995 { (exit 1); exit 1; }; }
15999 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16000 echo "${ECHO_T}$ac_cv_host" >&6; }
16001 case $ac_cv_host in
16003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16004 echo "$as_me: error: invalid value of canonical host" >&2;}
16005 { (exit 1); exit 1; }; };;
16008 ac_save_IFS=$IFS; IFS='-'
16014 # Remember, the first character of IFS is used to create $*,
16015 # except with old shells:
16018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16022 *cygwin* ) CYGWIN=yes;;
16026 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16032 HAVE_SUN_OS_FALSE='#'
16034 HAVE_SUN_OS_TRUE='#'
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_SUN_OS 1
16046 HAVE_SUN_OS_FALSE='#'
16048 HAVE_SUN_OS_TRUE='#'
16053 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16059 HAVE_OSF1_OS_FALSE='#'
16061 HAVE_OSF1_OS_TRUE='#'
16062 HAVE_OSF1_OS_FALSE=
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_OSF1_OS 1
16073 HAVE_OSF1_OS_FALSE='#'
16075 HAVE_OSF1_OS_TRUE='#'
16076 HAVE_OSF1_OS_FALSE=
16080 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16086 HAVE_AIX_OS_FALSE='#'
16088 HAVE_AIX_OS_TRUE='#'
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_AIX_OS 1
16100 HAVE_AIX_OS_FALSE='#'
16102 HAVE_AIX_OS_TRUE='#'
16107 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16113 HAVE_HPUX_OS_FALSE='#'
16115 HAVE_HPUX_OS_TRUE='#'
16116 HAVE_HPUX_OS_FALSE=
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_HPUX_OS 1
16127 HAVE_HPUX_OS_FALSE='#'
16129 HAVE_HPUX_OS_TRUE='#'
16130 HAVE_HPUX_OS_FALSE=
16134 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16139 HAVE_LINUX_OS_TRUE=
16140 HAVE_LINUX_OS_FALSE='#'
16142 HAVE_LINUX_OS_TRUE='#'
16143 HAVE_LINUX_OS_FALSE=
16145 cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_LINUX_OS 1
16153 HAVE_LINUX_OS_TRUE=
16154 HAVE_LINUX_OS_FALSE='#'
16156 HAVE_LINUX_OS_TRUE='#'
16157 HAVE_LINUX_OS_FALSE=
16161 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16166 HAVE_FREEBSD_OS_TRUE=
16167 HAVE_FREEBSD_OS_FALSE='#'
16169 HAVE_FREEBSD_OS_TRUE='#'
16170 HAVE_FREEBSD_OS_FALSE=
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FREEBSD_OS 1
16180 HAVE_FREEBSD_OS_TRUE=
16181 HAVE_FREEBSD_OS_FALSE='#'
16183 HAVE_FREEBSD_OS_TRUE='#'
16184 HAVE_FREEBSD_OS_FALSE=
16188 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16193 HAVE_NETBSD_OS_TRUE=
16194 HAVE_NETBSD_OS_FALSE='#'
16196 HAVE_NETBSD_OS_TRUE='#'
16197 HAVE_NETBSD_OS_FALSE=
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_NETBSD_OS 1
16207 HAVE_NETBSD_OS_TRUE=
16208 HAVE_NETBSD_OS_FALSE='#'
16210 HAVE_NETBSD_OS_TRUE='#'
16211 HAVE_NETBSD_OS_FALSE=
16215 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16220 HAVE_OPENBSD_OS_TRUE=
16221 HAVE_OPENBSD_OS_FALSE='#'
16223 HAVE_OPENBSD_OS_TRUE='#'
16224 HAVE_OPENBSD_OS_FALSE=
16226 cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_OPENBSD_OS 1
16234 HAVE_OPENBSD_OS_TRUE=
16235 HAVE_OPENBSD_OS_FALSE='#'
16237 HAVE_OPENBSD_OS_TRUE='#'
16238 HAVE_OPENBSD_OS_FALSE=
16242 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16248 HAVE_BSDI_OS_FALSE='#'
16250 HAVE_BSDI_OS_TRUE='#'
16251 HAVE_BSDI_OS_FALSE=
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_BSDI_OS 1
16262 HAVE_BSDI_OS_FALSE='#'
16264 HAVE_BSDI_OS_TRUE='#'
16265 HAVE_BSDI_OS_FALSE=
16269 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16275 HAVE_SGI_OS_FALSE='#'
16277 HAVE_SGI_OS_TRUE='#'
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SGI_OS 1
16289 HAVE_SGI_OS_FALSE='#'
16291 HAVE_SGI_OS_TRUE='#'
16296 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16302 HAVE_IRIX_OS_FALSE='#'
16304 HAVE_IRIX_OS_TRUE='#'
16305 HAVE_IRIX_OS_FALSE=
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_IRIX_OS 1
16316 HAVE_IRIX_OS_FALSE='#'
16318 HAVE_IRIX_OS_TRUE='#'
16319 HAVE_IRIX_OS_FALSE=
16323 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16328 HAVE_DARWIN_OS_TRUE=
16329 HAVE_DARWIN_OS_FALSE='#'
16331 HAVE_DARWIN_OS_TRUE='#'
16332 HAVE_DARWIN_OS_FALSE=
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_DARWIN_OS 1
16342 HAVE_DARWIN_OS_TRUE=
16343 HAVE_DARWIN_OS_FALSE='#'
16345 HAVE_DARWIN_OS_TRUE='#'
16346 HAVE_DARWIN_OS_FALSE=
16351 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16352 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16353 if test "x$DISTNAME" != "x"
16355 echo "distname set to $DISTNAME"
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16383 elif test -f /etc/SuSE-release
16386 elif test -d /etc/SuSEconfig
16389 elif test -f /etc/mandrake-release
16392 elif test -f /etc/whitebox-release
16395 elif test -f /etc/redhat-release
16398 elif test -f /etc/gentoo-release
16401 elif test -f /etc/debian_version
16404 elif test -f /etc/slackware-version
16407 elif test x$host_vendor = xapple
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 elif test -f /etc/engarde-version
16416 elif test "$CYGWIN" = yes
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.make <<\_ACEOF
16439 @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443 *@@@%%%=?*=@@@%%%*)
16444 eval ac_cv_prog_make_${ac_make}_set=yes;;
16446 eval ac_cv_prog_make_${ac_make}_set=no;;
16448 rm -f conftest.make
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451 { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457 SET_MAKE="MAKE=${MAKE-make}"
16463 if test -n "$ac_aux_dir"; then
16464 case "$ac_aux_dir" in
16465 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469 if test -z "$MKINSTALLDIRS"; then
16470 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477 # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479 enableval=$enable_nls; USE_NLS=$enableval
16484 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514 ac_executable_p="test -x"
16516 ac_executable_p="test -f"
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533 for ac_dir in $PATH; do
16535 test -z "$ac_dir" && ac_dir=.
16536 for ac_exec_ext in '' $ac_executable_extensions; do
16537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607 echo "#! /bin/sh" >conf$$.sh
16608 echo "exit 0" >>conf$$.sh
16610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626 ac_executable_p="test -x"
16628 ac_executable_p="test -f"
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 case "$XGETTEXT" in
16641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16647 test -z "$ac_dir" && ac_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679 echo "#! /bin/sh" >conf$$.sh
16680 echo "exit 0" >>conf$$.sh
16682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698 ac_executable_p="test -x"
16700 ac_executable_p="test -f"
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 case "$MSGMERGE" in
16713 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717 for ac_dir in $PATH; do
16719 test -z "$ac_dir" && ac_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16745 if test "$GMSGFMT" != ":"; then
16746 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757 if test "$XGETTEXT" != ":"; then
16758 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16762 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769 ac_config_commands="$ac_config_commands default-1"
16773 if test "X$prefix" = "XNONE"; then
16774 acl_final_prefix="$ac_default_prefix"
16776 acl_final_prefix="$prefix"
16778 if test "X$exec_prefix" = "XNONE"; then
16779 acl_final_exec_prefix='${prefix}'
16781 acl_final_exec_prefix="$exec_prefix"
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786 prefix="$acl_save_prefix"
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799 echo "#! /bin/sh" >conf$$.sh
16800 echo "exit 0" >>conf$$.sh
16802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 if test "$GCC" = yes; then
16811 # Check if gcc -print-prog-name=ld gives a path.
16812 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816 # gcc leaves a trailing carriage return which upsets mingw
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822 # Accept absolute paths.
16823 [\\/]* | [A-Za-z]:[\\/]*)
16824 re_direlt='/[^/][^/]*/\.\./'
16825 # Canonicalize the path of ld
16826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830 test -z "$LD" && LD="$ac_prog"
16833 # If it fails, then pretend we aren't using GCC.
16837 # If it is relative, then search for the first ld in PATH.
16838 with_gnu_ld=unknown
16841 elif test "$with_gnu_ld" = yes; then
16842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_path_LD+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 if test -z "$LD"; then
16852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853 for ac_dir in $PATH; do
16854 test -z "$ac_dir" && ac_dir=.
16855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856 acl_cv_path_LD="$ac_dir/$ac_prog"
16857 # Check to see if the program is GNU ld. I'd rather use --version,
16858 # but apparently some GNU ld's only accept -v.
16859 # Break only if it was the GNU/non-GNU ld that we prefer.
16860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861 *GNU* | *'with BFD'*)
16862 test "$with_gnu_ld" != no && break ;;
16864 test "$with_gnu_ld" != yes && break ;;
16870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876 { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16879 { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884 { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893 acl_cv_prog_gnu_ld=yes ;;
16895 acl_cv_prog_gnu_ld=no ;;
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16905 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914 rm -f ./conftest.sh
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921 libext="$acl_cv_libext"
16922 shlibext="$acl_cv_shlibext"
16923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925 hardcode_direct="$acl_cv_hardcode_direct"
16926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927 # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929 enableval=$enable_rpath; :
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16948 eval additional_includedir=\"$includedir\"
16949 eval additional_libdir=\"$libdir\"
16951 exec_prefix="$acl_save_exec_prefix"
16952 prefix="$acl_save_prefix"
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957 withval=$with_libiconv_prefix;
16958 if test "X$withval" = "Xno"; then
16961 if test "X$withval" = "X"; then
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16968 eval additional_includedir=\"$includedir\"
16969 eval additional_libdir=\"$libdir\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16975 additional_includedir="$withval/include"
16976 additional_libdir="$withval/lib"
16987 names_already_handled=
16988 names_next_round='iconv '
16989 while test -n "$names_next_round"; do
16990 names_this_round="$names_next_round"
16992 for name in $names_this_round; do
16994 for n in $names_already_handled; do
16995 if test "$n" = "$name"; then
16996 already_handled=yes
17000 if test -z "$already_handled"; then
17001 names_already_handled="$names_already_handled $name"
17002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003 eval value=\"\$HAVE_LIB$uppername\"
17004 if test -n "$value"; then
17005 if test "$value" = yes; then
17006 eval value=\"\$LIB$uppername\"
17007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008 eval value=\"\$LTLIB$uppername\"
17009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17018 if test $use_additional = yes; then
17019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020 found_dir="$additional_libdir"
17021 found_so="$additional_libdir/lib$name.$shlibext"
17022 if test -f "$additional_libdir/lib$name.la"; then
17023 found_la="$additional_libdir/lib$name.la"
17026 if test -f "$additional_libdir/lib$name.$libext"; then
17027 found_dir="$additional_libdir"
17028 found_a="$additional_libdir/lib$name.$libext"
17029 if test -f "$additional_libdir/lib$name.la"; then
17030 found_la="$additional_libdir/lib$name.la"
17035 if test "X$found_dir" = "X"; then
17036 for x in $LDFLAGS $LTLIBICONV; do
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17043 exec_prefix="$acl_save_exec_prefix"
17044 prefix="$acl_save_prefix"
17048 dir=`echo "X$x" | sed -e 's/^X-L//'`
17049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051 found_so="$dir/lib$name.$shlibext"
17052 if test -f "$dir/lib$name.la"; then
17053 found_la="$dir/lib$name.la"
17056 if test -f "$dir/lib$name.$libext"; then
17058 found_a="$dir/lib$name.$libext"
17059 if test -f "$dir/lib$name.la"; then
17060 found_la="$dir/lib$name.la"
17066 if test "X$found_dir" != "X"; then
17071 if test "X$found_dir" != "X"; then
17072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073 if test "X$found_so" != "X"; then
17074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078 for x in $ltrpathdirs; do
17079 if test "X$x" = "X$found_dir"; then
17084 if test -z "$haveit"; then
17085 ltrpathdirs="$ltrpathdirs $found_dir"
17087 if test "$hardcode_direct" = yes; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093 for x in $rpathdirs; do
17094 if test "X$x" = "X$found_dir"; then
17099 if test -z "$haveit"; then
17100 rpathdirs="$rpathdirs $found_dir"
17104 for x in $LDFLAGS $LIBICONV; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$found_dir"; then
17119 if test -z "$haveit"; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122 if test "$hardcode_minus_L" != no; then
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131 if test "X$found_a" != "X"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137 additional_includedir=
17138 case "$found_dir" in
17140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141 additional_includedir="$basedir/include"
17144 if test "X$additional_includedir" != "X"; then
17145 if test "X$additional_includedir" != "X/usr/include"; then
17147 if test "X$additional_includedir" = "X/usr/local/include"; then
17148 if test -n "$GCC"; then
17150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17154 if test -z "$haveit"; then
17155 for x in $CPPFLAGS $INCICONV; do
17157 acl_save_prefix="$prefix"
17158 prefix="$acl_final_prefix"
17159 acl_save_exec_prefix="$exec_prefix"
17160 exec_prefix="$acl_final_exec_prefix"
17162 exec_prefix="$acl_save_exec_prefix"
17163 prefix="$acl_save_prefix"
17165 if test "X$x" = "X-I$additional_includedir"; then
17170 if test -z "$haveit"; then
17171 if test -d "$additional_includedir"; then
17172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178 if test -n "$found_la"; then
17179 save_libdir="$libdir"
17180 case "$found_la" in
17181 */* | *\\*) . "$found_la" ;;
17182 *) . "./$found_la" ;;
17184 libdir="$save_libdir"
17185 for dep in $dependency_libs; do
17188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189 if test "X$additional_libdir" != "X/usr/lib"; then
17191 if test "X$additional_libdir" = "X/usr/local/lib"; then
17192 if test -n "$GCC"; then
17194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17198 if test -z "$haveit"; then
17200 for x in $LDFLAGS $LIBICONV; do
17202 acl_save_prefix="$prefix"
17203 prefix="$acl_final_prefix"
17204 acl_save_exec_prefix="$exec_prefix"
17205 exec_prefix="$acl_final_exec_prefix"
17207 exec_prefix="$acl_save_exec_prefix"
17208 prefix="$acl_save_prefix"
17210 if test "X$x" = "X-L$additional_libdir"; then
17215 if test -z "$haveit"; then
17216 if test -d "$additional_libdir"; then
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17221 for x in $LDFLAGS $LTLIBICONV; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17231 if test "X$x" = "X-L$additional_libdir"; then
17236 if test -z "$haveit"; then
17237 if test -d "$additional_libdir"; then
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246 if test "$enable_rpath" != no; then
17248 for x in $rpathdirs; do
17249 if test "X$x" = "X$dir"; then
17254 if test -z "$haveit"; then
17255 rpathdirs="$rpathdirs $dir"
17258 for x in $ltrpathdirs; do
17259 if test "X$x" = "X$dir"; then
17264 if test -z "$haveit"; then
17265 ltrpathdirs="$ltrpathdirs $dir"
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290 if test "X$rpathdirs" != "X"; then
17291 if test -n "$hardcode_libdir_separator"; then
17293 for found_dir in $rpathdirs; do
17294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296 acl_save_libdir="$libdir"
17298 eval flag=\"$hardcode_libdir_flag_spec\"
17299 libdir="$acl_save_libdir"
17300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302 for found_dir in $rpathdirs; do
17303 acl_save_libdir="$libdir"
17304 libdir="$found_dir"
17305 eval flag=\"$hardcode_libdir_flag_spec\"
17306 libdir="$acl_save_libdir"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17311 if test "X$ltrpathdirs" != "X"; then
17312 for found_dir in $ltrpathdirs; do
17313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17334 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 gt_save_CPPFLAGS="$CPPFLAGS"
17340 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341 gt_save_LIBS="$LIBS"
17342 LIBS="$LIBS -framework CoreFoundation"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <CFPreferences.h>
17353 CFPreferencesCopyAppValue(NULL, NULL)
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext &&
17375 $as_test_x conftest$ac_exeext; then
17376 gt_cv_func_CFPreferencesCopyAppValue=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 gt_cv_func_CFPreferencesCopyAppValue=no
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 CPPFLAGS="$gt_save_CPPFLAGS"
17387 LIBS="$gt_save_LIBS"
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17398 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 gt_save_CPPFLAGS="$CPPFLAGS"
17404 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405 gt_save_LIBS="$LIBS"
17406 LIBS="$LIBS -framework CoreFoundation"
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 #include <CFLocale.h>
17417 CFLocaleCopyCurrent();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 gt_cv_func_CFLocaleCopyCurrent=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 gt_cv_func_CFLocaleCopyCurrent=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$gt_save_CPPFLAGS"
17451 LIBS="$gt_save_LIBS"
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17463 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472 # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474 enableval=$enable_nls; USE_NLS=$enableval
17479 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17489 if test "$USE_NLS" = "yes"; then
17490 gt_use_preinstalled_gnugettext=no
17497 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 gt_cv_func_gnugettext1_libc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 gt_cv_func_gnugettext1_libc=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558 am_save_CPPFLAGS="$CPPFLAGS"
17560 for element in $INCICONV; do
17562 for x in $CPPFLAGS; do
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 am_cv_func_iconv="no, consider installing GNU libiconv"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17602 iconv_t cd = iconv_open("","");
17603 iconv(cd,NULL,NULL,NULL,NULL);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 am_cv_func_iconv=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17637 if test "$am_cv_func_iconv" != yes; then
17638 am_save_LIBS="$LIBS"
17639 LIBS="$LIBS $LIBICONV"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <stdlib.h>
17651 iconv_t cd = iconv_open("","");
17652 iconv(cd,NULL,NULL,NULL,NULL);
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 am_cv_lib_iconv=yes
17677 am_cv_func_iconv=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS="$am_save_LIBS"
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693 if test "$am_cv_func_iconv" = yes; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17700 if test "$am_cv_lib_iconv" = yes; then
17701 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17706 CPPFLAGS="$am_save_CPPFLAGS"
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17723 eval additional_includedir=\"$includedir\"
17724 eval additional_libdir=\"$libdir\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732 withval=$with_libintl_prefix;
17733 if test "X$withval" = "Xno"; then
17736 if test "X$withval" = "X"; then
17738 acl_save_prefix="$prefix"
17739 prefix="$acl_final_prefix"
17740 acl_save_exec_prefix="$exec_prefix"
17741 exec_prefix="$acl_final_exec_prefix"
17743 eval additional_includedir=\"$includedir\"
17744 eval additional_libdir=\"$libdir\"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17750 additional_includedir="$withval/include"
17751 additional_libdir="$withval/lib"
17762 names_already_handled=
17763 names_next_round='intl '
17764 while test -n "$names_next_round"; do
17765 names_this_round="$names_next_round"
17767 for name in $names_this_round; do
17769 for n in $names_already_handled; do
17770 if test "$n" = "$name"; then
17771 already_handled=yes
17775 if test -z "$already_handled"; then
17776 names_already_handled="$names_already_handled $name"
17777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778 eval value=\"\$HAVE_LIB$uppername\"
17779 if test -n "$value"; then
17780 if test "$value" = yes; then
17781 eval value=\"\$LIB$uppername\"
17782 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783 eval value=\"\$LTLIB$uppername\"
17784 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17793 if test $use_additional = yes; then
17794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795 found_dir="$additional_libdir"
17796 found_so="$additional_libdir/lib$name.$shlibext"
17797 if test -f "$additional_libdir/lib$name.la"; then
17798 found_la="$additional_libdir/lib$name.la"
17801 if test -f "$additional_libdir/lib$name.$libext"; then
17802 found_dir="$additional_libdir"
17803 found_a="$additional_libdir/lib$name.$libext"
17804 if test -f "$additional_libdir/lib$name.la"; then
17805 found_la="$additional_libdir/lib$name.la"
17810 if test "X$found_dir" = "X"; then
17811 for x in $LDFLAGS $LTLIBINTL; do
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17823 dir=`echo "X$x" | sed -e 's/^X-L//'`
17824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826 found_so="$dir/lib$name.$shlibext"
17827 if test -f "$dir/lib$name.la"; then
17828 found_la="$dir/lib$name.la"
17831 if test -f "$dir/lib$name.$libext"; then
17833 found_a="$dir/lib$name.$libext"
17834 if test -f "$dir/lib$name.la"; then
17835 found_la="$dir/lib$name.la"
17841 if test "X$found_dir" != "X"; then
17846 if test "X$found_dir" != "X"; then
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848 if test "X$found_so" != "X"; then
17849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853 for x in $ltrpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 ltrpathdirs="$ltrpathdirs $found_dir"
17862 if test "$hardcode_direct" = yes; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868 for x in $rpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17874 if test -z "$haveit"; then
17875 rpathdirs="$rpathdirs $found_dir"
17879 for x in $LDFLAGS $LIBINTL; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$found_dir"; then
17894 if test -z "$haveit"; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897 if test "$hardcode_minus_L" != no; then
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906 if test "X$found_a" != "X"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912 additional_includedir=
17913 case "$found_dir" in
17915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916 additional_includedir="$basedir/include"
17919 if test "X$additional_includedir" != "X"; then
17920 if test "X$additional_includedir" != "X/usr/include"; then
17922 if test "X$additional_includedir" = "X/usr/local/include"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17930 for x in $CPPFLAGS $INCINTL; do
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17940 if test "X$x" = "X-I$additional_includedir"; then
17945 if test -z "$haveit"; then
17946 if test -d "$additional_includedir"; then
17947 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953 if test -n "$found_la"; then
17954 save_libdir="$libdir"
17955 case "$found_la" in
17956 */* | *\\*) . "$found_la" ;;
17957 *) . "./$found_la" ;;
17959 libdir="$save_libdir"
17960 for dep in $dependency_libs; do
17963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964 if test "X$additional_libdir" != "X/usr/lib"; then
17966 if test "X$additional_libdir" = "X/usr/local/lib"; then
17967 if test -n "$GCC"; then
17969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17973 if test -z "$haveit"; then
17975 for x in $LDFLAGS $LIBINTL; do
17977 acl_save_prefix="$prefix"
17978 prefix="$acl_final_prefix"
17979 acl_save_exec_prefix="$exec_prefix"
17980 exec_prefix="$acl_final_exec_prefix"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17985 if test "X$x" = "X-L$additional_libdir"; then
17990 if test -z "$haveit"; then
17991 if test -d "$additional_libdir"; then
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17996 for x in $LDFLAGS $LTLIBINTL; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$additional_libdir"; then
18011 if test -z "$haveit"; then
18012 if test -d "$additional_libdir"; then
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021 if test "$enable_rpath" != no; then
18023 for x in $rpathdirs; do
18024 if test "X$x" = "X$dir"; then
18029 if test -z "$haveit"; then
18030 rpathdirs="$rpathdirs $dir"
18033 for x in $ltrpathdirs; do
18034 if test "X$x" = "X$dir"; then
18039 if test -z "$haveit"; then
18040 ltrpathdirs="$ltrpathdirs $dir"
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065 if test "X$rpathdirs" != "X"; then
18066 if test -n "$hardcode_libdir_separator"; then
18068 for found_dir in $rpathdirs; do
18069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071 acl_save_libdir="$libdir"
18073 eval flag=\"$hardcode_libdir_flag_spec\"
18074 libdir="$acl_save_libdir"
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077 for found_dir in $rpathdirs; do
18078 acl_save_libdir="$libdir"
18079 libdir="$found_dir"
18080 eval flag=\"$hardcode_libdir_flag_spec\"
18081 libdir="$acl_save_libdir"
18082 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18086 if test "X$ltrpathdirs" != "X"; then
18087 for found_dir in $ltrpathdirs; do
18088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18092 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 gt_save_CPPFLAGS="$CPPFLAGS"
18098 CPPFLAGS="$CPPFLAGS $INCINTL"
18099 gt_save_LIBS="$LIBS"
18100 LIBS="$LIBS $LIBINTL"
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18113 const char *_nl_expand_alias (const char *);
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 gt_cv_func_gnugettext1_libintl=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 gt_cv_func_gnugettext1_libintl=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152 LIBS="$LIBS $LIBICONV"
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18165 const char *_nl_expand_alias (const char *);
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 LIBINTL="$LIBINTL $LIBICONV"
18194 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195 gt_cv_func_gnugettext1_libintl=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 CPPFLAGS="$gt_save_CPPFLAGS"
18208 LIBS="$gt_save_LIBS"
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216 && test "$PACKAGE" != gettext-runtime \
18217 && test "$PACKAGE" != gettext-tools; }; then
18218 gt_use_preinstalled_gnugettext=yes
18227 if test -n "$INTL_MACOSX_LIBS"; then
18228 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18235 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18247 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251 if test "$USE_NLS" = "yes"; then
18252 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256 gt_source="external libintl"
18261 gt_source="included intl directory"
18263 { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18267 if test "$USE_NLS" = "yes"; then
18269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18276 for element in $INCINTL; do
18278 for x in $CPPFLAGS; do
18280 acl_save_prefix="$prefix"
18281 prefix="$acl_final_prefix"
18282 acl_save_exec_prefix="$exec_prefix"
18283 exec_prefix="$acl_final_exec_prefix"
18285 exec_prefix="$acl_save_exec_prefix"
18286 prefix="$acl_save_prefix"
18288 if test "X$x" = "X$element"; then
18293 if test -z "$haveit"; then
18294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18317 INTLLIBS="$LIBINTL"
18325 os_name=`uname -s 2>/dev/null`
18326 if test x${prefix} = xNONE ; then
18327 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18328 sysconfdir=/etc/bacula
18331 if test `eval echo ${libdir}` = NONE/lib ; then
18334 os_processor=`uname -p 2>/dev/null`
18335 case ${os_processor} in
18350 if test `eval echo ${includedir}` = NONE/include ; then
18351 includedir=/usr/include
18354 if test `eval echo ${datarootdir}` = NONE/share ; then
18355 datarootdir=/usr/share
18360 if test x${exec_prefix} = xNONE ; then
18361 exec_prefix=${prefix}
18364 sysconfdir=`eval echo ${sysconfdir}`
18365 datarootdir=`eval echo ${datarootdir}`
18366 docdir=`eval echo ${docdir}`
18367 htmldir=`eval echo ${htmldir}`
18368 libdir=`eval echo ${libdir}`
18369 includedir=`eval echo ${includedir}`
18370 localedir=`eval echo ${datarootdir}/locale`
18371 cat >>confdefs.h <<_ACEOF
18372 #define SYSCONFDIR "$sysconfdir"
18375 cat >>confdefs.h <<_ACEOF
18376 #define LOCALEDIR "$localedir"
18380 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18381 sbindir=${exec_prefix}/sbin
18383 sbindir=`eval echo ${sbindir}`
18385 if test x$mandir = x'${prefix}/man' ; then
18386 mandir=/usr/share/man
18389 if test x$htmldir = x${docdir} ; then
18390 htmldir=`eval echo ${docdir}bacula/html`
18393 if test x$docdir = x'/usr/share/doc/' ; then
18394 docdir=`eval echo ${docdir}bacula`
18398 for ac_prog in msgfmt
18400 # Extract the first word of "$ac_prog", so it can be a program name with args.
18401 set dummy $ac_prog; ac_word=$2
18402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18404 if test "${ac_cv_path_MSGFMT+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18416 test -z "$as_dir" && as_dir=.
18417 for ac_exec_ext in '' $ac_executable_extensions; do
18418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18419 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18430 MSGFMT=$ac_cv_path_MSGFMT
18431 if test -n "$MSGFMT"; then
18432 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18433 echo "${ECHO_T}$MSGFMT" >&6; }
18435 { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18440 test -n "$MSGFMT" && break
18442 test -n "$MSGFMT" || MSGFMT="no"
18444 if test "$MSGFMT" = "no"
18446 echo 'msgfmt program not found, disabling NLS !'
18448 USE_INCLUDED_LIBINTL=no
18451 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18452 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18453 if test "${ac_cv_gnu_library_2+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18463 #include <features.h>
18464 #ifdef __GNU_LIBRARY__
18465 #if (__GLIBC__ >= 2)
18471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18472 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18473 ac_cv_gnu_library_2=yes
18475 ac_cv_gnu_library_2=no
18482 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18483 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18485 GLIBC2="$ac_cv_gnu_library_2"
18488 if test -n "$ac_tool_prefix"; then
18489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18493 if test "${ac_cv_prog_RANLIB+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 if test -n "$RANLIB"; then
18497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH
18503 test -z "$as_dir" && as_dir=.
18504 for ac_exec_ext in '' $ac_executable_extensions; do
18505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18516 RANLIB=$ac_cv_prog_RANLIB
18517 if test -n "$RANLIB"; then
18518 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18519 echo "${ECHO_T}$RANLIB" >&6; }
18521 { echo "$as_me:$LINENO: result: no" >&5
18522 echo "${ECHO_T}no" >&6; }
18527 if test -z "$ac_cv_prog_RANLIB"; then
18528 ac_ct_RANLIB=$RANLIB
18529 # Extract the first word of "ranlib", so it can be a program name with args.
18530 set dummy ranlib; ac_word=$2
18531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 if test -n "$ac_ct_RANLIB"; then
18537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18546 ac_cv_prog_ac_ct_RANLIB="ranlib"
18547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18557 if test -n "$ac_ct_RANLIB"; then
18558 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18559 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18561 { echo "$as_me:$LINENO: result: no" >&5
18562 echo "${ECHO_T}no" >&6; }
18565 if test "x$ac_ct_RANLIB" = x; then
18568 case $cross_compiling:$ac_tool_warned in
18570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet. If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&5
18573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18574 whose name does not start with the host triplet. If you think this
18575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18576 ac_tool_warned=yes ;;
18578 RANLIB=$ac_ct_RANLIB
18581 RANLIB="$ac_cv_prog_RANLIB"
18585 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18586 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18587 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 ac_check_lib_save_LIBS=$LIBS
18591 LIBS="-lcposix $LIBS"
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18609 return strerror ();
18614 rm -f conftest.$ac_objext conftest$ac_exeext
18615 if { (ac_try="$ac_link"
18616 case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_link") 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest$ac_exeext &&
18631 $as_test_x conftest$ac_exeext; then
18632 ac_cv_lib_cposix_strerror=yes
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_lib_cposix_strerror=no
18640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18645 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18646 if test $ac_cv_lib_cposix_strerror = yes; then
18647 LIBS="$LIBS -lcposix"
18652 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18654 if test "${ac_cv_c_const+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18667 /* FIXME: Include the comments suggested by Paul. */
18668 #ifndef __cplusplus
18669 /* Ultrix mips cc rejects this. */
18670 typedef int charset[2];
18672 /* SunOS 4.1.1 cc rejects this. */
18673 char const *const *pcpcc;
18675 /* NEC SVR4.0.2 mips cc rejects this. */
18676 struct point {int x, y;};
18677 static struct point const zero = {0,0};
18678 /* AIX XL C 1.02.0.0 rejects this.
18679 It does not let you subtract one const X* pointer from another in
18680 an arm of an if-expression whose if-part is not a constant
18682 const char *g = "string";
18683 pcpcc = &g + (g ? g-g : 0);
18684 /* HPUX 7.0 cc rejects these. */
18686 ppc = (char**) pcpcc;
18687 pcpcc = (char const *const *) ppc;
18688 { /* SCO 3.2v4 cc rejects this. */
18690 char const *s = 0 ? (char *) 0 : (char const *) 0;
18695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18696 int x[] = {25, 17};
18697 const int *foo = &x[0];
18700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18701 typedef const int *iptr;
18705 { /* AIX XL C 1.02.0.0 rejects this saying
18706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18707 struct s { int j; const int *ap[3]; };
18708 struct s *b; b->j = 5;
18710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18711 const int foo = 10;
18712 if (!foo) return 0;
18714 return !cs[0] && !zero.x;
18721 rm -f conftest.$ac_objext
18722 if { (ac_try="$ac_compile"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_compile") 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } && {
18735 test -z "$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18737 } && test -s conftest.$ac_objext; then
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18749 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18750 if test $ac_cv_c_const = no; then
18752 cat >>confdefs.h <<\_ACEOF
18759 { echo "$as_me:$LINENO: checking for signed" >&5
18760 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18761 if test "${bh_cv_c_signed+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18779 rm -f conftest.$ac_objext
18780 if { (ac_try="$ac_compile"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_compile") 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } && {
18793 test -z "$ac_c_werror_flag" ||
18794 test ! -s conftest.err
18795 } && test -s conftest.$ac_objext; then
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18807 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18808 if test $bh_cv_c_signed = no; then
18810 cat >>confdefs.h <<\_ACEOF
18816 { echo "$as_me:$LINENO: checking for inline" >&5
18817 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18818 if test "${ac_cv_c_inline+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 for ac_kw in inline __inline__ __inline; do
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #ifndef __cplusplus
18831 static $ac_kw foo_t static_foo () {return 0; }
18832 $ac_kw foo_t foo () {return 0; }
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_compile") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest.$ac_objext; then
18853 ac_cv_c_inline=$ac_kw
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 test "$ac_cv_c_inline" != no && break
18866 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18867 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18870 case $ac_cv_c_inline in
18873 case $ac_cv_c_inline in
18875 *) ac_val=$ac_cv_c_inline;;
18877 cat >>confdefs.h <<_ACEOF
18878 #ifndef __cplusplus
18879 #define inline $ac_val
18885 { echo "$as_me:$LINENO: checking for off_t" >&5
18886 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18887 if test "${ac_cv_type_off_t+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 typedef off_t ac__type_new_;
18901 if ((ac__type_new_ *) 0)
18903 if (sizeof (ac__type_new_))
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_compile") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest.$ac_objext; then
18926 ac_cv_type_off_t=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_cv_type_off_t=no
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18937 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18938 if test $ac_cv_type_off_t = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943 #define off_t long int
18948 { echo "$as_me:$LINENO: checking for size_t" >&5
18949 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18950 if test "${ac_cv_type_size_t+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 cat >conftest.$ac_ext <<_ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 $ac_includes_default
18960 typedef size_t ac__type_new_;
18964 if ((ac__type_new_ *) 0)
18966 if (sizeof (ac__type_new_))
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest.$ac_objext; then
18989 ac_cv_type_size_t=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_type_size_t=no
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19000 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19001 if test $ac_cv_type_size_t = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define size_t unsigned int
19012 { echo "$as_me:$LINENO: checking for long long" >&5
19013 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19014 if test "${ac_cv_type_long_long+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 long long ll = 1LL; int i = 63;
19027 long long llmax = (long long) -1;
19028 return ll << i | ll >> i | llmax / ll | llmax % ll;
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 ac_cv_type_long_long=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_type_long_long=no
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19062 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19063 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19064 if test $ac_cv_type_long_long = yes; then
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE_LONG_LONG 1
19073 { echo "$as_me:$LINENO: checking for long double" >&5
19074 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19075 if test "${gt_cv_c_long_double+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 if test "$GCC" = yes; then
19079 gt_cv_c_long_double=yes
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19089 long double foo = 0.0;
19090 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19091 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19101 rm -f conftest.$ac_objext
19102 if { (ac_try="$ac_compile"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_compile") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1 >conftest.err
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest.$ac_objext; then
19118 gt_cv_c_long_double=yes
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 gt_cv_c_long_double=no
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19130 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19131 if test $gt_cv_c_long_double = yes; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_LONG_DOUBLE 1
19140 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19141 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19142 if test "${gt_cv_c_wchar_t+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <stddef.h>
19152 wchar_t foo = (wchar_t)'\0';
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest.$ac_objext; then
19178 gt_cv_c_wchar_t=yes
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19189 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19190 if test $gt_cv_c_wchar_t = yes; then
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_WCHAR_T 1
19199 { echo "$as_me:$LINENO: checking for wint_t" >&5
19200 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19201 if test "${gt_cv_c_wint_t+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 wint_t foo = (wchar_t)'\0';
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19248 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19249 if test $gt_cv_c_wint_t = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_WINT_T 1
19258 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19260 if test "${gl_cv_header_inttypes_h+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <sys/types.h>
19270 #include <inttypes.h>
19274 uintmax_t i = (uintmax_t) -1;
19279 rm -f conftest.$ac_objext
19280 if { (ac_try="$ac_compile"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_compile") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && {
19293 test -z "$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 } && test -s conftest.$ac_objext; then
19296 gl_cv_header_inttypes_h=yes
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 gl_cv_header_inttypes_h=no
19304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19307 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19308 if test $gl_cv_header_inttypes_h = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19317 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19318 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19319 if test "${gl_cv_header_stdint_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 cat >conftest.$ac_ext <<_ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 #include <sys/types.h>
19329 #include <stdint.h>
19333 uintmax_t i = (uintmax_t) -1;
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 gl_cv_header_stdint_h=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 gl_cv_header_stdint_h=no
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19366 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19367 if test $gl_cv_header_stdint_h = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define HAVE_STDINT_H_WITH_UINTMAX 1
19378 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19379 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19380 if test "${gt_cv_c_intmax_t+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19390 #include <stddef.h>
19391 #include <stdlib.h>
19392 #if HAVE_STDINT_H_WITH_UINTMAX
19393 #include <stdint.h>
19395 #if HAVE_INTTYPES_H_WITH_UINTMAX
19396 #include <inttypes.h>
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
19424 gt_cv_c_intmax_t=yes
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 gt_cv_c_intmax_t=no
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19435 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19436 if test $gt_cv_c_intmax_t = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_INTMAX_T 1
19446 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19447 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19448 if test "${gt_cv_func_printf_posix+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 if test "$cross_compiling" = yes; then
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19461 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19467 $EGREP "notposix" >/dev/null 2>&1; then
19468 gt_cv_func_printf_posix="guessing no"
19470 gt_cv_func_printf_posix="guessing yes"
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19484 #include <string.h>
19485 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19486 dollar expansion (possibly an autoconf bug). */
19487 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19488 static char buf[100];
19491 sprintf (buf, format, 33, 55);
19492 return (strcmp (buf, "55 33") != 0);
19495 rm -f conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 gt_cv_func_printf_posix=yes
19517 echo "$as_me: program exited with status $ac_status" >&5
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ( exit $ac_status )
19522 gt_cv_func_printf_posix=no
19524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19531 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19532 case $gt_cv_func_printf_posix in
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_POSIX_PRINTF 1
19542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19543 # for constant arguments. Useless!
19544 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19545 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19546 if test "${ac_cv_working_alloca_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 #include <alloca.h>
19559 char *p = (char *) alloca (2 * sizeof (int));
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest$ac_exeext &&
19582 $as_test_x conftest$ac_exeext; then
19583 ac_cv_working_alloca_h=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_working_alloca_h=no
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592 conftest$ac_exeext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19595 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19596 if test $ac_cv_working_alloca_h = yes; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_ALLOCA_H 1
19604 { echo "$as_me:$LINENO: checking for alloca" >&5
19605 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19606 if test "${ac_cv_func_alloca_works+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19616 # define alloca __builtin_alloca
19619 # include <malloc.h>
19620 # define alloca _alloca
19622 # ifdef HAVE_ALLOCA_H
19623 # include <alloca.h>
19628 # ifndef alloca /* predefined by HP cc +Olibcalls */
19639 char *p = (char *) alloca (1);
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 ac_cv_func_alloca_works=yes
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_func_alloca_works=no
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19674 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19675 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19677 if test $ac_cv_func_alloca_works = yes; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE_ALLOCA 1
19684 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19685 # that cause trouble. Some versions do not even contain alloca or
19686 # contain a buggy version. If you still want to use their alloca,
19687 # use ar to extract alloca.o from them instead of compiling alloca.c.
19689 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19691 cat >>confdefs.h <<\_ACEOF
19696 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19697 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19698 if test "${ac_cv_os_cray+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 #if defined CRAY && ! defined CRAY2
19714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19715 $EGREP "webecray" >/dev/null 2>&1; then
19723 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19724 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19725 if test $ac_cv_os_cray = yes; then
19726 for ac_func in _getb67 GETB67 getb67; do
19727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19741 #define $ac_func innocuous_$ac_func
19743 /* System header to define __stub macros and hopefully few prototypes,
19744 which can conflict with char $ac_func (); below.
19745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19746 <limits.h> exists even on freestanding compilers. */
19749 # include <limits.h>
19751 # include <assert.h>
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19763 /* The GNU C library defines this for functions which it implements
19764 to always fail with ENOSYS. Some functions are actually named
19765 something starting with __ and the normal name is an alias. */
19766 #if defined __stub_$ac_func || defined __stub___$ac_func
19773 return $ac_func ();
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 eval "$as_ac_var=yes"
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 eval "$as_ac_var=no"
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19807 ac_res=`eval echo '${'$as_ac_var'}'`
19808 { echo "$as_me:$LINENO: result: $ac_res" >&5
19809 echo "${ECHO_T}$ac_res" >&6; }
19810 if test `eval echo '${'$as_ac_var'}'` = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define CRAY_STACKSEG_END $ac_func
19822 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19823 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19824 if test "${ac_cv_c_stack_direction+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 if test "$cross_compiling" = yes; then
19828 ac_cv_c_stack_direction=0
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 $ac_includes_default
19838 find_stack_direction ()
19840 static char *addr = 0;
19845 return find_stack_direction ();
19848 return (&dummy > addr) ? 1 : -1;
19854 return find_stack_direction () < 0;
19857 rm -f conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_link") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_c_stack_direction=1
19879 echo "$as_me: program exited with status $ac_status" >&5
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ( exit $ac_status )
19884 ac_cv_c_stack_direction=-1
19886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19891 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19894 cat >>confdefs.h <<_ACEOF
19895 #define STACK_DIRECTION $ac_cv_c_stack_direction
19903 for ac_header in stdlib.h unistd.h
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_res=`eval echo '${'$as_ac_Header'}'`
19913 { echo "$as_me:$LINENO: result: $ac_res" >&5
19914 echo "${ECHO_T}$ac_res" >&6; }
19916 # Is the header compilable?
19917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 $ac_includes_default
19926 #include <$ac_header>
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 ac_header_compiler=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_header_compiler=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955 echo "${ECHO_T}$ac_header_compiler" >&6; }
19957 # Is the header present?
19958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <$ac_header>
19968 if { (ac_try="$ac_cpp conftest.$ac_ext"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } >/dev/null && {
19981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19984 ac_header_preproc=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_preproc=no
19992 rm -f conftest.err conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994 echo "${ECHO_T}$ac_header_preproc" >&6; }
19996 # So? What about this header?
19997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20003 ac_header_preproc=yes
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 eval "$as_ac_Header=\$ac_header_preproc"
20028 ac_res=`eval echo '${'$as_ac_Header'}'`
20029 { echo "$as_me:$LINENO: result: $ac_res" >&5
20030 echo "${ECHO_T}$ac_res" >&6; }
20033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20043 for ac_func in getpagesize
20045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20059 #define $ac_func innocuous_$ac_func
20061 /* System header to define __stub macros and hopefully few prototypes,
20062 which can conflict with char $ac_func (); below.
20063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064 <limits.h> exists even on freestanding compilers. */
20067 # include <limits.h>
20069 # include <assert.h>
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20081 /* The GNU C library defines this for functions which it implements
20082 to always fail with ENOSYS. Some functions are actually named
20083 something starting with __ and the normal name is an alias. */
20084 #if defined __stub_$ac_func || defined __stub___$ac_func
20091 return $ac_func ();
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_link") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1 >conftest.err
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest$ac_exeext &&
20113 $as_test_x conftest$ac_exeext; then
20114 eval "$as_ac_var=yes"
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 eval "$as_ac_var=no"
20122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20123 conftest$ac_exeext conftest.$ac_ext
20125 ac_res=`eval echo '${'$as_ac_var'}'`
20126 { echo "$as_me:$LINENO: result: $ac_res" >&5
20127 echo "${ECHO_T}$ac_res" >&6; }
20128 if test `eval echo '${'$as_ac_var'}'` = yes; then
20129 cat >>confdefs.h <<_ACEOF
20130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20136 { echo "$as_me:$LINENO: checking for working mmap" >&5
20137 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20138 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 if test "$cross_compiling" = yes; then
20142 ac_cv_func_mmap_fixed_mapped=no
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 /* malloc might have been renamed as rpl_malloc. */
20154 /* Thanks to Mike Haertel and Jim Avera for this test.
20155 Here is a matrix of mmap possibilities:
20156 mmap private not fixed
20157 mmap private fixed at somewhere currently unmapped
20158 mmap private fixed at somewhere already mapped
20159 mmap shared not fixed
20160 mmap shared fixed at somewhere currently unmapped
20161 mmap shared fixed at somewhere already mapped
20162 For private mappings, we should verify that changes cannot be read()
20163 back from the file, nor mmap's back from the file at a different
20164 address. (There have been systems where private was not correctly
20165 implemented like the infamous i386 svr4.0, and systems where the
20166 VM page cache was not coherent with the file system buffer cache
20167 like early versions of FreeBSD and possibly contemporary NetBSD.)
20168 For shared mappings, we should conversely verify that changes get
20169 propagated back to all the places they're supposed to be.
20171 Grep wants private fixed already mapped.
20172 The main things grep needs to know about mmap are:
20173 * does it exist and is it safe to write into the mmap'd area
20174 * how to use it (BSD variants) */
20177 #include <sys/mman.h>
20179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20183 /* This mess was copied from the GNU getpagesize.h. */
20184 #ifndef HAVE_GETPAGESIZE
20185 /* Assume that all systems that can run configure have sys/param.h. */
20186 # ifndef HAVE_SYS_PARAM_H
20187 # define HAVE_SYS_PARAM_H 1
20190 # ifdef _SC_PAGESIZE
20191 # define getpagesize() sysconf(_SC_PAGESIZE)
20192 # else /* no _SC_PAGESIZE */
20193 # ifdef HAVE_SYS_PARAM_H
20194 # include <sys/param.h>
20195 # ifdef EXEC_PAGESIZE
20196 # define getpagesize() EXEC_PAGESIZE
20197 # else /* no EXEC_PAGESIZE */
20199 # define getpagesize() NBPG * CLSIZE
20202 # endif /* no CLSIZE */
20203 # else /* no NBPG */
20205 # define getpagesize() NBPC
20206 # else /* no NBPC */
20208 # define getpagesize() PAGESIZE
20209 # endif /* PAGESIZE */
20210 # endif /* no NBPC */
20211 # endif /* no NBPG */
20212 # endif /* no EXEC_PAGESIZE */
20213 # else /* no HAVE_SYS_PARAM_H */
20214 # define getpagesize() 8192 /* punt totally */
20215 # endif /* no HAVE_SYS_PARAM_H */
20216 # endif /* no _SC_PAGESIZE */
20218 #endif /* no HAVE_GETPAGESIZE */
20223 char *data, *data2, *data3;
20227 pagesize = getpagesize ();
20229 /* First, make a file with some known garbage in it. */
20230 data = (char *) malloc (pagesize);
20233 for (i = 0; i < pagesize; ++i)
20234 *(data + i) = rand ();
20236 fd = creat ("conftest.mmap", 0600);
20239 if (write (fd, data, pagesize) != pagesize)
20243 /* Next, try to mmap the file at a fixed address which already has
20244 something else allocated at it. If we can, also make sure that
20245 we see the same garbage. */
20246 fd = open ("conftest.mmap", O_RDWR);
20249 data2 = (char *) malloc (2 * pagesize);
20252 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20253 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20254 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20256 for (i = 0; i < pagesize; ++i)
20257 if (*(data + i) != *(data2 + i))
20260 /* Finally, make sure that changes to the mapped area do not
20261 percolate back to the file as seen by read(). (This is a bug on
20262 some variants of i386 svr4.0.) */
20263 for (i = 0; i < pagesize; ++i)
20264 *(data2 + i) = *(data2 + i) + 1;
20265 data3 = (char *) malloc (pagesize);
20268 if (read (fd, data3, pagesize) != pagesize)
20270 for (i = 0; i < pagesize; ++i)
20271 if (*(data + i) != *(data3 + i))
20277 rm -f conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20288 { (case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_try") 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_func_mmap_fixed_mapped=yes
20299 echo "$as_me: program exited with status $ac_status" >&5
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ( exit $ac_status )
20304 ac_cv_func_mmap_fixed_mapped=no
20306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20312 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20313 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_MMAP 1
20320 rm -f conftest.mmap
20323 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20324 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20325 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 #include <features.h>
20336 #ifdef __GNU_LIBRARY__
20337 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20344 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20345 ac_cv_gnu_library_2_1=yes
20347 ac_cv_gnu_library_2_1=no
20354 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20355 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20357 GLIBC21="$ac_cv_gnu_library_2_1"
20362 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20363 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20364 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 if test "$cross_compiling" = yes; then
20370 # Guess based on the CPU.
20371 case "$host_cpu" in
20372 alpha* | i3456786 | m68k | s390*)
20373 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20375 gt_cv_int_divbyzero_sigfpe="guessing no";;
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 #include <stdlib.h>
20387 #include <signal.h>
20391 sigfpe_handler (int sig)
20393 sigfpe_handler (sig) int sig;
20396 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20397 exit (sig != SIGFPE);
20407 signal (SIGFPE, sigfpe_handler);
20408 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20409 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20410 signal (SIGTRAP, sigfpe_handler);
20412 /* Linux/SPARC yields signal SIGILL. */
20413 #if defined (__sparc__) && defined (__linux__)
20414 signal (SIGILL, sigfpe_handler);
20423 rm -f conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 gt_cv_int_divbyzero_sigfpe=yes
20445 echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ( exit $ac_status )
20450 gt_cv_int_divbyzero_sigfpe=no
20452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20458 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20459 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20460 case "$gt_cv_int_divbyzero_sigfpe" in
20465 cat >>confdefs.h <<_ACEOF
20466 #define INTDIV0_RAISES_SIGFPE $value
20471 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20472 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20473 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 unsigned long long ull = 1ULL; int i = 63;
20486 unsigned long long ullmax = (unsigned long long) -1;
20487 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_link") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest$ac_exeext &&
20509 $as_test_x conftest$ac_exeext; then
20510 ac_cv_type_unsigned_long_long=yes
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_cv_type_unsigned_long_long=no
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519 conftest$ac_exeext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20522 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20523 if test $ac_cv_type_unsigned_long_long = yes; then
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE_UNSIGNED_LONG_LONG 1
20534 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20536 test $ac_cv_type_unsigned_long_long = yes \
20537 && ac_type='unsigned long long' \
20538 || ac_type='unsigned long'
20540 cat >>confdefs.h <<_ACEOF
20541 #define uintmax_t $ac_type
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_UINTMAX_T 1
20553 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20554 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20555 if test "${gt_cv_header_inttypes_h+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #include <sys/types.h>
20566 #include <inttypes.h>
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_compile") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest.$ac_objext; then
20592 gt_cv_header_inttypes_h=yes
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 gt_cv_header_inttypes_h=no
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20604 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20605 if test $gt_cv_header_inttypes_h = yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_INTTYPES_H 1
20615 if test $gt_cv_header_inttypes_h = yes; then
20616 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20617 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20618 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 #include <inttypes.h>
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 gt_cv_inttypes_pri_broken=no
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 gt_cv_inttypes_pri_broken=yes
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20670 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20672 if test "$gt_cv_inttypes_pri_broken" = yes; then
20674 cat >>confdefs.h <<_ACEOF
20675 #define PRI_MACROS_BROKEN 1
20682 for ac_header in stdint.h
20684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692 { echo "$as_me:$LINENO: result: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20695 # Is the header compilable?
20696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 $ac_includes_default
20705 #include <$ac_header>
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_compile") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest.$ac_objext; then
20724 ac_header_compiler=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_header_compiler=no
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20734 echo "${ECHO_T}$ac_header_compiler" >&6; }
20736 # Is the header present?
20737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 #include <$ac_header>
20747 if { (ac_try="$ac_cpp conftest.$ac_ext"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } >/dev/null && {
20760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20763 ac_header_preproc=yes
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_header_preproc=no
20771 rm -f conftest.err conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6; }
20775 # So? What about this header?
20776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20782 ac_header_preproc=yes
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 eval "$as_ac_Header=\$ac_header_preproc"
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808 { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20821 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20822 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20831 #include <limits.h>
20833 #include <stdint.h>
20840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20841 $EGREP "Found it" >/dev/null 2>&1; then
20846 if test -z "$result"; then
20847 if test "$cross_compiling" = yes; then
20848 # Depending upon the size, compute the lo and hi bounds.
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <stddef.h>
20859 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <stddef.h>
20895 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20902 rm -f conftest.$ac_objext
20903 if { (ac_try="$ac_compile"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_compile") 2>conftest.er1
20911 grep -v '^ *+' conftest.er1 >conftest.err
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } && {
20916 test -z "$ac_c_werror_flag" ||
20917 test ! -s conftest.err
20918 } && test -s conftest.$ac_objext; then
20919 ac_hi=$ac_mid; break
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_lo=`expr $ac_mid + 1`
20925 if test $ac_lo -le $ac_mid; then
20929 ac_mid=`expr 2 '*' $ac_mid + 1`
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 #include <stddef.h>
20948 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_compile") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest.$ac_objext; then
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 #include <stddef.h>
20984 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest.$ac_objext; then
21008 ac_lo=$ac_mid; break
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 ac_hi=`expr '(' $ac_mid ')' - 1`
21014 if test $ac_mid -le $ac_hi; then
21018 ac_mid=`expr 2 '*' $ac_mid`
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 # Binary search between lo and hi bounds.
21035 while test "x$ac_lo" != "x$ac_hi"; do
21036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <stddef.h>
21047 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest.$ac_objext; then
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_lo=`expr '(' $ac_mid ')' + 1`
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 ?*) res_hi=$ac_lo;;
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 static long int longval () { return ~(size_t)0 / 10; }
21094 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21096 #include <stdlib.h>
21101 FILE *f = fopen ("conftest.val", "w");
21104 if ((~(size_t)0 / 10) < 0)
21106 long int i = longval ();
21107 if (i != (~(size_t)0 / 10))
21109 fprintf (f, "%ld\n", i);
21113 unsigned long int i = ulongval ();
21114 if (i != (~(size_t)0 / 10))
21116 fprintf (f, "%lu\n", i);
21118 return ferror (f) || fclose (f) != 0;
21124 rm -f conftest$ac_exeext
21125 if { (ac_try="$ac_link"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_link") 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21135 { (case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_try") 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 res_hi=`cat conftest.val`
21146 echo "$as_me: program exited with status $ac_status" >&5
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ( exit $ac_status )
21153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 if test "$cross_compiling" = yes; then
21158 # Depending upon the size, compute the lo and hi bounds.
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21169 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_compile") 2>conftest.er1
21185 grep -v '^ *+' conftest.er1 >conftest.err
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } && {
21190 test -z "$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 } && test -s conftest.$ac_objext; then
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <stddef.h>
21205 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21221 grep -v '^ *+' conftest.er1 >conftest.err
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.$ac_objext; then
21229 ac_hi=$ac_mid; break
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_lo=`expr $ac_mid + 1`
21235 if test $ac_lo -le $ac_mid; then
21239 ac_mid=`expr 2 '*' $ac_mid + 1`
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <stddef.h>
21258 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <stddef.h>
21294 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21301 rm -f conftest.$ac_objext
21302 if { (ac_try="$ac_compile"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_compile") 2>conftest.er1
21310 grep -v '^ *+' conftest.er1 >conftest.err
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } && {
21315 test -z "$ac_c_werror_flag" ||
21316 test ! -s conftest.err
21317 } && test -s conftest.$ac_objext; then
21318 ac_lo=$ac_mid; break
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_hi=`expr '(' $ac_mid ')' - 1`
21324 if test $ac_mid -le $ac_hi; then
21328 ac_mid=`expr 2 '*' $ac_mid`
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 # Binary search between lo and hi bounds.
21345 while test "x$ac_lo" != "x$ac_hi"; do
21346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 #include <stddef.h>
21357 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_compile") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest.$ac_objext; then
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_lo=`expr '(' $ac_mid ')' + 1`
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 ?*) res_lo=$ac_lo;;
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <stddef.h>
21403 static long int longval () { return ~(size_t)0 % 10; }
21404 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21406 #include <stdlib.h>
21411 FILE *f = fopen ("conftest.val", "w");
21414 if ((~(size_t)0 % 10) < 0)
21416 long int i = longval ();
21417 if (i != (~(size_t)0 % 10))
21419 fprintf (f, "%ld\n", i);
21423 unsigned long int i = ulongval ();
21424 if (i != (~(size_t)0 % 10))
21426 fprintf (f, "%lu\n", i);
21428 return ferror (f) || fclose (f) != 0;
21434 rm -f conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_link") 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445 { (case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_try") 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 res_lo=`cat conftest.val`
21456 echo "$as_me: program exited with status $ac_status" >&5
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ( exit $ac_status )
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21467 if test "$cross_compiling" = yes; then
21468 # Depending upon the size, compute the lo and hi bounds.
21469 cat >conftest.$ac_ext <<_ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <stddef.h>
21479 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21486 rm -f conftest.$ac_objext
21487 if { (ac_try="$ac_compile"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_compile") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest.$ac_objext; then
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #include <stddef.h>
21515 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21522 rm -f conftest.$ac_objext
21523 if { (ac_try="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_compile") 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest.$ac_objext; then
21539 ac_hi=$ac_mid; break
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_lo=`expr $ac_mid + 1`
21545 if test $ac_lo -le $ac_mid; then
21549 ac_mid=`expr 2 '*' $ac_mid + 1`
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <stddef.h>
21568 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_compile") 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } && {
21589 test -z "$ac_c_werror_flag" ||
21590 test ! -s conftest.err
21591 } && test -s conftest.$ac_objext; then
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <stddef.h>
21604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21628 ac_lo=$ac_mid; break
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_hi=`expr '(' $ac_mid ')' - 1`
21634 if test $ac_mid -le $ac_hi; then
21638 ac_mid=`expr 2 '*' $ac_mid`
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 # Binary search between lo and hi bounds.
21655 while test "x$ac_lo" != "x$ac_hi"; do
21656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <stddef.h>
21667 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_lo=`expr '(' $ac_mid ')' + 1`
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 ?*) fits_in_uint=$ac_lo;;
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <stddef.h>
21713 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21714 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21716 #include <stdlib.h>
21721 FILE *f = fopen ("conftest.val", "w");
21724 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21726 long int i = longval ();
21727 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21729 fprintf (f, "%ld\n", i);
21733 unsigned long int i = ulongval ();
21734 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21736 fprintf (f, "%lu\n", i);
21738 return ferror (f) || fclose (f) != 0;
21744 rm -f conftest$ac_exeext
21745 if { (ac_try="$ac_link"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_link") 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755 { (case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_try") 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 fits_in_uint=`cat conftest.val`
21766 echo "$as_me: program exited with status $ac_status" >&5
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ( exit $ac_status )
21773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 if test "$fits_in_uint" = 1; then
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <stddef.h>
21786 extern unsigned long foo;
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 if test -z "$result"; then
21824 if test "$fits_in_uint" = 1; then
21825 result="$res_hi$res_lo"U
21827 result="$res_hi$res_lo"UL
21830 result='~(size_t)0'
21833 { echo "$as_me:$LINENO: result: $result" >&5
21834 echo "${ECHO_T}$result" >&6; }
21835 if test "$result" != yes; then
21837 cat >>confdefs.h <<_ACEOF
21838 #define SIZE_MAX $result
21847 for ac_header in stdint.h
21849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 ac_res=`eval echo '${'$as_ac_Header'}'`
21857 { echo "$as_me:$LINENO: result: $ac_res" >&5
21858 echo "${ECHO_T}$ac_res" >&6; }
21860 # Is the header compilable?
21861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 $ac_includes_default
21870 #include <$ac_header>
21872 rm -f conftest.$ac_objext
21873 if { (ac_try="$ac_compile"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_compile") 2>conftest.er1
21881 grep -v '^ *+' conftest.er1 >conftest.err
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } && {
21886 test -z "$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21888 } && test -s conftest.$ac_objext; then
21889 ac_header_compiler=yes
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ac_header_compiler=no
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21899 echo "${ECHO_T}$ac_header_compiler" >&6; }
21901 # Is the header present?
21902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include <$ac_header>
21912 if { (ac_try="$ac_cpp conftest.$ac_ext"
21913 case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } >/dev/null && {
21925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21928 ac_header_preproc=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_header_preproc=no
21936 rm -f conftest.err conftest.$ac_ext
21937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21938 echo "${ECHO_T}$ac_header_preproc" >&6; }
21940 # So? What about this header?
21941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21947 ac_header_preproc=yes
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 eval "$as_ac_Header=\$ac_header_preproc"
21972 ac_res=`eval echo '${'$as_ac_Header'}'`
21973 { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21978 cat >>confdefs.h <<_ACEOF
21979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21993 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21994 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21995 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 $ac_includes_default
22005 typedef ptrdiff_t ac__type_new_;
22009 if ((ac__type_new_ *) 0)
22011 if (sizeof (ac__type_new_))
22017 rm -f conftest.$ac_objext
22018 if { (ac_try="$ac_compile"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_compile") 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && {
22031 test -z "$ac_c_werror_flag" ||
22032 test ! -s conftest.err
22033 } && test -s conftest.$ac_objext; then
22034 ac_cv_type_ptrdiff_t=yes
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22039 ac_cv_type_ptrdiff_t=no
22042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22045 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22046 if test $ac_cv_type_ptrdiff_t = yes; then
22050 cat >>confdefs.h <<\_ACEOF
22051 #define ptrdiff_t long
22067 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22068 stdlib.h string.h unistd.h sys/param.h
22070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 ac_res=`eval echo '${'$as_ac_Header'}'`
22078 { echo "$as_me:$LINENO: result: $ac_res" >&5
22079 echo "${ECHO_T}$ac_res" >&6; }
22081 # Is the header compilable?
22082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 $ac_includes_default
22091 #include <$ac_header>
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_header_compiler=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_header_compiler=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22120 echo "${ECHO_T}$ac_header_compiler" >&6; }
22122 # Is the header present?
22123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 #include <$ac_header>
22133 if { (ac_try="$ac_cpp conftest.$ac_ext"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } >/dev/null && {
22146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22149 ac_header_preproc=yes
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_header_preproc=no
22157 rm -f conftest.err conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22159 echo "${ECHO_T}$ac_header_preproc" >&6; }
22161 # So? What about this header?
22162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22168 ac_header_preproc=yes
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 eval "$as_ac_Header=\$ac_header_preproc"
22193 ac_res=`eval echo '${'$as_ac_Header'}'`
22194 { echo "$as_me:$LINENO: result: $ac_res" >&5
22195 echo "${ECHO_T}$ac_res" >&6; }
22198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22199 cat >>confdefs.h <<_ACEOF
22200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22230 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22231 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22232 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22249 #define $ac_func innocuous_$ac_func
22251 /* System header to define __stub macros and hopefully few prototypes,
22252 which can conflict with char $ac_func (); below.
22253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254 <limits.h> exists even on freestanding compilers. */
22257 # include <limits.h>
22259 # include <assert.h>
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22271 /* The GNU C library defines this for functions which it implements
22272 to always fail with ENOSYS. Some functions are actually named
22273 something starting with __ and the normal name is an alias. */
22274 #if defined __stub_$ac_func || defined __stub___$ac_func
22281 return $ac_func ();
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (ac_try="$ac_link"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_link") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest$ac_exeext &&
22303 $as_test_x conftest$ac_exeext; then
22304 eval "$as_ac_var=yes"
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 eval "$as_ac_var=no"
22312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22313 conftest$ac_exeext conftest.$ac_ext
22315 ac_res=`eval echo '${'$as_ac_var'}'`
22316 { echo "$as_me:$LINENO: result: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22318 if test `eval echo '${'$as_ac_var'}'` = yes; then
22319 cat >>confdefs.h <<_ACEOF
22320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22329 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22330 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22345 char *p = (char *) _snprintf;
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_cv_have_decl__snprintf=yes
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_cv_have_decl__snprintf=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22380 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22381 if test $ac_cv_have_decl__snprintf = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_DECL__SNPRINTF $gt_value
22393 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22394 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22395 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22410 char *p = (char *) _snwprintf;
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_have_decl__snwprintf=yes
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_have_decl__snwprintf=no
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22445 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22446 if test $ac_cv_have_decl__snwprintf = yes; then
22452 cat >>confdefs.h <<_ACEOF
22453 #define HAVE_DECL__SNWPRINTF $gt_value
22459 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22460 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22461 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22475 #ifndef feof_unlocked
22476 char *p = (char *) feof_unlocked;
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 ac_cv_have_decl_feof_unlocked=yes
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_cv_have_decl_feof_unlocked=no
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22511 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22512 if test $ac_cv_have_decl_feof_unlocked = yes; then
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22524 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22525 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22526 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22540 #ifndef fgets_unlocked
22541 char *p = (char *) fgets_unlocked;
22548 rm -f conftest.$ac_objext
22549 if { (ac_try="$ac_compile"
22550 case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22557 grep -v '^ *+' conftest.er1 >conftest.err
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_cv_have_decl_fgets_unlocked=yes
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ac_cv_have_decl_fgets_unlocked=no
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22576 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22577 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22589 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22590 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22591 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22605 #ifndef getc_unlocked
22606 char *p = (char *) getc_unlocked;
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_have_decl_getc_unlocked=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_cv_have_decl_getc_unlocked=no
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22641 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22642 if test $ac_cv_have_decl_getc_unlocked = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22654 case $gt_cv_func_printf_posix in
22655 *yes) HAVE_POSIX_PRINTF=1 ;;
22656 *) HAVE_POSIX_PRINTF=0 ;;
22659 if test "$ac_cv_func_asprintf" = yes; then
22665 if test "$ac_cv_func_snprintf" = yes; then
22671 if test "$ac_cv_func_wprintf" = yes; then
22683 am_save_CPPFLAGS="$CPPFLAGS"
22685 for element in $INCICONV; do
22687 for x in $CPPFLAGS; do
22689 acl_save_prefix="$prefix"
22690 prefix="$acl_final_prefix"
22691 acl_save_exec_prefix="$exec_prefix"
22692 exec_prefix="$acl_final_exec_prefix"
22694 exec_prefix="$acl_save_exec_prefix"
22695 prefix="$acl_save_prefix"
22697 if test "X$x" = "X$element"; then
22702 if test -z "$haveit"; then
22703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22708 { echo "$as_me:$LINENO: checking for iconv" >&5
22709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22710 if test "${am_cv_func_iconv+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 am_cv_func_iconv="no, consider installing GNU libiconv"
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 #include <stdlib.h>
22727 iconv_t cd = iconv_open("","");
22728 iconv(cd,NULL,NULL,NULL,NULL);
22734 rm -f conftest.$ac_objext conftest$ac_exeext
22735 if { (ac_try="$ac_link"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_link") 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest$ac_exeext &&
22751 $as_test_x conftest$ac_exeext; then
22752 am_cv_func_iconv=yes
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22761 conftest$ac_exeext conftest.$ac_ext
22762 if test "$am_cv_func_iconv" != yes; then
22763 am_save_LIBS="$LIBS"
22764 LIBS="$LIBS $LIBICONV"
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <stdlib.h>
22776 iconv_t cd = iconv_open("","");
22777 iconv(cd,NULL,NULL,NULL,NULL);
22783 rm -f conftest.$ac_objext conftest$ac_exeext
22784 if { (ac_try="$ac_link"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 am_cv_lib_iconv=yes
22802 am_cv_func_iconv=yes
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811 conftest$ac_exeext conftest.$ac_ext
22812 LIBS="$am_save_LIBS"
22816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22818 if test "$am_cv_func_iconv" = yes; then
22820 cat >>confdefs.h <<\_ACEOF
22821 #define HAVE_ICONV 1
22825 if test "$am_cv_lib_iconv" = yes; then
22826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22829 echo "${ECHO_T}$LIBICONV" >&6; }
22831 CPPFLAGS="$am_save_CPPFLAGS"
22838 if test "$am_cv_func_iconv" = yes; then
22839 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22841 if test "${am_cv_proto_iconv+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 cat >conftest.$ac_ext <<_ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h. */
22852 #include <stdlib.h>
22858 #if defined(__STDC__) || defined(__cplusplus)
22859 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.$ac_objext; then
22889 am_cv_proto_iconv_arg1=""
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 am_cv_proto_iconv_arg1="const"
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 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);"
22901 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22902 { echo "$as_me:$LINENO: result: ${ac_t:-
22903 }$am_cv_proto_iconv" >&5
22904 echo "${ECHO_T}${ac_t:-
22905 }$am_cv_proto_iconv" >&6; }
22907 cat >>confdefs.h <<_ACEOF
22908 #define ICONV_CONST $am_cv_proto_iconv_arg1
22914 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22916 if test "${am_cv_langinfo_codeset+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 #include <langinfo.h>
22929 char* cs = nl_langinfo(CODESET);
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (ac_try="$ac_link"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_link") 2>conftest.er1
22943 grep -v '^ *+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest$ac_exeext &&
22951 $as_test_x conftest$ac_exeext; then
22952 am_cv_langinfo_codeset=yes
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 am_cv_langinfo_codeset=no
22960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22961 conftest$ac_exeext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22965 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22966 if test $am_cv_langinfo_codeset = yes; then
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_LANGINFO_CODESET 1
22974 if test $ac_cv_header_locale_h = yes; then
22976 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22978 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <locale.h>
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 gt_cv_val_LC_MESSAGES=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 gt_cv_val_LC_MESSAGES=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23026 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23027 if test $gt_cv_val_LC_MESSAGES = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_LC_MESSAGES 1
23037 if test -n "$INTL_MACOSX_LIBS"; then
23038 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23041 for ac_prog in bison
23043 # Extract the first word of "$ac_prog", so it can be a program name with args.
23044 set dummy $ac_prog; ac_word=$2
23045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23047 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 if test -n "$INTLBISON"; then
23051 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23054 for as_dir in $PATH
23057 test -z "$as_dir" && as_dir=.
23058 for ac_exec_ext in '' $ac_executable_extensions; do
23059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23060 ac_cv_prog_INTLBISON="$ac_prog"
23061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23070 INTLBISON=$ac_cv_prog_INTLBISON
23071 if test -n "$INTLBISON"; then
23072 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23073 echo "${ECHO_T}$INTLBISON" >&6; }
23075 { echo "$as_me:$LINENO: result: no" >&5
23076 echo "${ECHO_T}no" >&6; }
23080 test -n "$INTLBISON" && break
23083 if test -z "$INTLBISON"; then
23086 { echo "$as_me:$LINENO: checking version of bison" >&5
23087 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23088 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23089 case $ac_prog_version in
23090 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23091 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23092 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23093 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23095 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23096 echo "${ECHO_T}$ac_prog_version" >&6; }
23098 if test $ac_verc_fail = yes; then
23117 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23118 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23119 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 gt_save_CPPFLAGS="$CPPFLAGS"
23123 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23124 gt_save_LIBS="$LIBS"
23125 LIBS="$LIBS -framework CoreFoundation"
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 #include <CFPreferences.h>
23136 CFPreferencesCopyAppValue(NULL, NULL)
23141 rm -f conftest.$ac_objext conftest$ac_exeext
23142 if { (ac_try="$ac_link"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_link") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest$ac_exeext &&
23158 $as_test_x conftest$ac_exeext; then
23159 gt_cv_func_CFPreferencesCopyAppValue=yes
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 gt_cv_func_CFPreferencesCopyAppValue=no
23167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23168 conftest$ac_exeext conftest.$ac_ext
23169 CPPFLAGS="$gt_save_CPPFLAGS"
23170 LIBS="$gt_save_LIBS"
23172 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23173 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23174 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23181 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23182 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23183 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 gt_save_CPPFLAGS="$CPPFLAGS"
23187 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23188 gt_save_LIBS="$LIBS"
23189 LIBS="$LIBS -framework CoreFoundation"
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 #include <CFLocale.h>
23200 CFLocaleCopyCurrent();
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_link") 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest$ac_exeext &&
23222 $as_test_x conftest$ac_exeext; then
23223 gt_cv_func_CFLocaleCopyCurrent=yes
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 gt_cv_func_CFLocaleCopyCurrent=no
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232 conftest$ac_exeext conftest.$ac_ext
23233 CPPFLAGS="$gt_save_CPPFLAGS"
23234 LIBS="$gt_save_LIBS"
23236 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23237 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23238 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_CFLOCALECOPYCURRENT 1
23246 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23247 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23253 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23254 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23255 # Check whether --enable-nls was given.
23256 if test "${enable_nls+set}" = set; then
23257 enableval=$enable_nls; USE_NLS=$enableval
23262 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23263 echo "${ECHO_T}$USE_NLS" >&6; }
23268 BUILD_INCLUDED_LIBINTL=no
23269 USE_INCLUDED_LIBINTL=no
23275 if test "$USE_NLS" = "yes"; then
23276 gt_use_preinstalled_gnugettext=no
23278 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23279 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23281 # Check whether --with-included-gettext was given.
23282 if test "${with_included_gettext+set}" = set; then
23283 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23285 nls_cv_force_use_gnu_gettext=no
23288 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23289 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23291 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23292 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23299 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23300 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23301 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 #include <libintl.h>
23311 extern int _nl_msg_cat_cntr;
23312 extern int *_nl_domain_bindings;
23316 bindtextdomain ("", "");
23317 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest$ac_exeext &&
23339 $as_test_x conftest$ac_exeext; then
23340 gt_cv_func_gnugettext1_libc=yes
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 gt_cv_func_gnugettext1_libc=no
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext conftest.$ac_ext
23351 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23352 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23354 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23360 acl_save_prefix="$prefix"
23361 prefix="$acl_final_prefix"
23362 acl_save_exec_prefix="$exec_prefix"
23363 exec_prefix="$acl_final_exec_prefix"
23365 eval additional_includedir=\"$includedir\"
23366 eval additional_libdir=\"$libdir\"
23368 exec_prefix="$acl_save_exec_prefix"
23369 prefix="$acl_save_prefix"
23372 # Check whether --with-libintl-prefix was given.
23373 if test "${with_libintl_prefix+set}" = set; then
23374 withval=$with_libintl_prefix;
23375 if test "X$withval" = "Xno"; then
23378 if test "X$withval" = "X"; then
23380 acl_save_prefix="$prefix"
23381 prefix="$acl_final_prefix"
23382 acl_save_exec_prefix="$exec_prefix"
23383 exec_prefix="$acl_final_exec_prefix"
23385 eval additional_includedir=\"$includedir\"
23386 eval additional_libdir=\"$libdir\"
23388 exec_prefix="$acl_save_exec_prefix"
23389 prefix="$acl_save_prefix"
23392 additional_includedir="$withval/include"
23393 additional_libdir="$withval/lib"
23404 names_already_handled=
23405 names_next_round='intl '
23406 while test -n "$names_next_round"; do
23407 names_this_round="$names_next_round"
23409 for name in $names_this_round; do
23411 for n in $names_already_handled; do
23412 if test "$n" = "$name"; then
23413 already_handled=yes
23417 if test -z "$already_handled"; then
23418 names_already_handled="$names_already_handled $name"
23419 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23420 eval value=\"\$HAVE_LIB$uppername\"
23421 if test -n "$value"; then
23422 if test "$value" = yes; then
23423 eval value=\"\$LIB$uppername\"
23424 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23425 eval value=\"\$LTLIB$uppername\"
23426 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23435 if test $use_additional = yes; then
23436 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23437 found_dir="$additional_libdir"
23438 found_so="$additional_libdir/lib$name.$shlibext"
23439 if test -f "$additional_libdir/lib$name.la"; then
23440 found_la="$additional_libdir/lib$name.la"
23443 if test -f "$additional_libdir/lib$name.$libext"; then
23444 found_dir="$additional_libdir"
23445 found_a="$additional_libdir/lib$name.$libext"
23446 if test -f "$additional_libdir/lib$name.la"; then
23447 found_la="$additional_libdir/lib$name.la"
23452 if test "X$found_dir" = "X"; then
23453 for x in $LDFLAGS $LTLIBINTL; do
23455 acl_save_prefix="$prefix"
23456 prefix="$acl_final_prefix"
23457 acl_save_exec_prefix="$exec_prefix"
23458 exec_prefix="$acl_final_exec_prefix"
23460 exec_prefix="$acl_save_exec_prefix"
23461 prefix="$acl_save_prefix"
23465 dir=`echo "X$x" | sed -e 's/^X-L//'`
23466 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23468 found_so="$dir/lib$name.$shlibext"
23469 if test -f "$dir/lib$name.la"; then
23470 found_la="$dir/lib$name.la"
23473 if test -f "$dir/lib$name.$libext"; then
23475 found_a="$dir/lib$name.$libext"
23476 if test -f "$dir/lib$name.la"; then
23477 found_la="$dir/lib$name.la"
23483 if test "X$found_dir" != "X"; then
23488 if test "X$found_dir" != "X"; then
23489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23490 if test "X$found_so" != "X"; then
23491 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23495 for x in $ltrpathdirs; do
23496 if test "X$x" = "X$found_dir"; then
23501 if test -z "$haveit"; then
23502 ltrpathdirs="$ltrpathdirs $found_dir"
23504 if test "$hardcode_direct" = yes; then
23505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23510 for x in $rpathdirs; do
23511 if test "X$x" = "X$found_dir"; then
23516 if test -z "$haveit"; then
23517 rpathdirs="$rpathdirs $found_dir"
23521 for x in $LDFLAGS $LIBINTL; do
23523 acl_save_prefix="$prefix"
23524 prefix="$acl_final_prefix"
23525 acl_save_exec_prefix="$exec_prefix"
23526 exec_prefix="$acl_final_exec_prefix"
23528 exec_prefix="$acl_save_exec_prefix"
23529 prefix="$acl_save_prefix"
23531 if test "X$x" = "X-L$found_dir"; then
23536 if test -z "$haveit"; then
23537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23539 if test "$hardcode_minus_L" != no; then
23540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23548 if test "X$found_a" != "X"; then
23549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23554 additional_includedir=
23555 case "$found_dir" in
23557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23558 additional_includedir="$basedir/include"
23561 if test "X$additional_includedir" != "X"; then
23562 if test "X$additional_includedir" != "X/usr/include"; then
23564 if test "X$additional_includedir" = "X/usr/local/include"; then
23565 if test -n "$GCC"; then
23567 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23571 if test -z "$haveit"; then
23572 for x in $CPPFLAGS $INCINTL; do
23574 acl_save_prefix="$prefix"
23575 prefix="$acl_final_prefix"
23576 acl_save_exec_prefix="$exec_prefix"
23577 exec_prefix="$acl_final_exec_prefix"
23579 exec_prefix="$acl_save_exec_prefix"
23580 prefix="$acl_save_prefix"
23582 if test "X$x" = "X-I$additional_includedir"; then
23587 if test -z "$haveit"; then
23588 if test -d "$additional_includedir"; then
23589 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23595 if test -n "$found_la"; then
23596 save_libdir="$libdir"
23597 case "$found_la" in
23598 */* | *\\*) . "$found_la" ;;
23599 *) . "./$found_la" ;;
23601 libdir="$save_libdir"
23602 for dep in $dependency_libs; do
23605 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23606 if test "X$additional_libdir" != "X/usr/lib"; then
23608 if test "X$additional_libdir" = "X/usr/local/lib"; then
23609 if test -n "$GCC"; then
23611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23615 if test -z "$haveit"; then
23617 for x in $LDFLAGS $LIBINTL; do
23619 acl_save_prefix="$prefix"
23620 prefix="$acl_final_prefix"
23621 acl_save_exec_prefix="$exec_prefix"
23622 exec_prefix="$acl_final_exec_prefix"
23624 exec_prefix="$acl_save_exec_prefix"
23625 prefix="$acl_save_prefix"
23627 if test "X$x" = "X-L$additional_libdir"; then
23632 if test -z "$haveit"; then
23633 if test -d "$additional_libdir"; then
23634 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23638 for x in $LDFLAGS $LTLIBINTL; do
23640 acl_save_prefix="$prefix"
23641 prefix="$acl_final_prefix"
23642 acl_save_exec_prefix="$exec_prefix"
23643 exec_prefix="$acl_final_exec_prefix"
23645 exec_prefix="$acl_save_exec_prefix"
23646 prefix="$acl_save_prefix"
23648 if test "X$x" = "X-L$additional_libdir"; then
23653 if test -z "$haveit"; then
23654 if test -d "$additional_libdir"; then
23655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23662 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23663 if test "$enable_rpath" != no; then
23665 for x in $rpathdirs; do
23666 if test "X$x" = "X$dir"; then
23671 if test -z "$haveit"; then
23672 rpathdirs="$rpathdirs $dir"
23675 for x in $ltrpathdirs; do
23676 if test "X$x" = "X$dir"; then
23681 if test -z "$haveit"; then
23682 ltrpathdirs="$ltrpathdirs $dir"
23687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23690 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23693 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23694 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23700 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23707 if test "X$rpathdirs" != "X"; then
23708 if test -n "$hardcode_libdir_separator"; then
23710 for found_dir in $rpathdirs; do
23711 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23713 acl_save_libdir="$libdir"
23715 eval flag=\"$hardcode_libdir_flag_spec\"
23716 libdir="$acl_save_libdir"
23717 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23719 for found_dir in $rpathdirs; do
23720 acl_save_libdir="$libdir"
23721 libdir="$found_dir"
23722 eval flag=\"$hardcode_libdir_flag_spec\"
23723 libdir="$acl_save_libdir"
23724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23728 if test "X$ltrpathdirs" != "X"; then
23729 for found_dir in $ltrpathdirs; do
23730 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23734 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23735 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23736 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 gt_save_CPPFLAGS="$CPPFLAGS"
23740 CPPFLAGS="$CPPFLAGS $INCINTL"
23741 gt_save_LIBS="$LIBS"
23742 LIBS="$LIBS $LIBINTL"
23743 cat >conftest.$ac_ext <<_ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <libintl.h>
23750 extern int _nl_msg_cat_cntr;
23755 const char *_nl_expand_alias (const char *);
23759 bindtextdomain ("", "");
23760 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23765 rm -f conftest.$ac_objext conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_link") 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest$ac_exeext &&
23782 $as_test_x conftest$ac_exeext; then
23783 gt_cv_func_gnugettext1_libintl=yes
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 gt_cv_func_gnugettext1_libintl=no
23791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23792 conftest$ac_exeext conftest.$ac_ext
23793 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23794 LIBS="$LIBS $LIBICONV"
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 #include <libintl.h>
23802 extern int _nl_msg_cat_cntr;
23807 const char *_nl_expand_alias (const char *);
23811 bindtextdomain ("", "");
23812 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821 *) ac_try_echo=$ac_try;;
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824 (eval "$ac_link") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest$ac_exeext &&
23834 $as_test_x conftest$ac_exeext; then
23835 LIBINTL="$LIBINTL $LIBICONV"
23836 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23837 gt_cv_func_gnugettext1_libintl=yes
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847 conftest$ac_exeext conftest.$ac_ext
23849 CPPFLAGS="$gt_save_CPPFLAGS"
23850 LIBS="$gt_save_LIBS"
23852 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23853 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23856 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23857 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23858 && test "$PACKAGE" != gettext-runtime \
23859 && test "$PACKAGE" != gettext-tools; }; then
23860 gt_use_preinstalled_gnugettext=yes
23868 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23869 nls_cv_use_gnu_gettext=yes
23873 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23874 BUILD_INCLUDED_LIBINTL=yes
23875 USE_INCLUDED_LIBINTL=yes
23876 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23877 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23878 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23882 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23883 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888 if test -n "$INTL_MACOSX_LIBS"; then
23889 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23890 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23891 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23892 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23896 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23897 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define ENABLE_NLS 1
23908 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23909 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23910 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23911 echo "${ECHO_T}$USE_NLS" >&6; }
23912 if test "$USE_NLS" = "yes"; then
23913 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23914 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23915 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23916 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23917 gt_source="external libintl"
23922 gt_source="included intl directory"
23924 { echo "$as_me:$LINENO: result: $gt_source" >&5
23925 echo "${ECHO_T}$gt_source" >&6; }
23928 if test "$USE_NLS" = "yes"; then
23930 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23931 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23932 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23933 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23934 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23935 echo "${ECHO_T}$LIBINTL" >&6; }
23937 for element in $INCINTL; do
23939 for x in $CPPFLAGS; do
23941 acl_save_prefix="$prefix"
23942 prefix="$acl_final_prefix"
23943 acl_save_exec_prefix="$exec_prefix"
23944 exec_prefix="$acl_final_exec_prefix"
23946 exec_prefix="$acl_save_exec_prefix"
23947 prefix="$acl_save_prefix"
23949 if test "X$x" = "X$element"; then
23954 if test -z "$haveit"; then
23955 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_GETTEXT 1
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_DCGETTEXT 1
23977 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23978 BUILD_INCLUDED_LIBINTL=yes
23985 nls_cv_header_intl=
23986 nls_cv_header_libgt=
23998 if test "$USE_INCLUDED_LIBINTL" = yes; then
23999 INTLOBJS="\$(GETTOBJS)"
24003 INTL_LIBTOOL_SUFFIX_PREFIX=
24007 INTLLIBS="$LIBINTL"
24019 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; }; }
24113 # Check whether --enable-bwx-console was given.
24114 if test "${enable_bwx_console+set}" = set; then
24115 enableval=$enable_bwx_console;
24116 if test x$enableval = xyes; then
24117 support_wx_console=yes
24125 if test x$support_wx_console = xyes; then
24126 abc=`$WXCONFIG $WXFLAGS --cppflags`
24128 if test $pkg = 0; then
24129 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24130 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24131 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24135 WX_DIR="src/wx-console"
24138 echo "wx-config program not found. bwx-console disabled."
24140 support_wx_console=no
24145 # Check whether --enable-tray-monitor was given.
24146 if test "${enable_tray_monitor+set}" = set; then
24147 enableval=$enable_tray_monitor;
24148 if test x$enableval = xyes; then
24149 support_tray_monitor=yes
24157 if test x$support_tray_monitor = xyes; then
24158 abc=`$PKGCONFIG --exists gtk+-2.0`
24160 if test $pkg = 0; then
24161 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24162 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24165 TRAY_MONITOR_DIR=src/tray-monitor
24166 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24168 if test $pkg = 0; then
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_GTK_2_4 1
24179 # Check whether --enable-smartalloc was given.
24180 if test "${enable_smartalloc+set}" = set; then
24181 enableval=$enable_smartalloc;
24182 if test x$enableval = xno; then
24183 support_smartalloc=no
24190 if test x$support_smartalloc = xyes; then
24192 cat >>confdefs.h <<\_ACEOF
24193 #define SMARTALLOC 1
24198 # Check whether --enable-lockmgr was given.
24199 if test "${enable_lockmgr+set}" = set; then
24200 enableval=$enable_lockmgr;
24201 if test x$enableval = xyes; then
24202 support_lockmgr=yes
24209 if test x$support_lockmgr = xyes; then
24211 cat >>confdefs.h <<\_ACEOF
24212 #define _USE_LOCKMGR 1
24218 # Check whether --enable-static-tools was given.
24219 if test "${enable_static_tools+set}" = set; then
24220 enableval=$enable_static_tools;
24221 if test x$enableval = xyes; then
24222 if test x$use_libtool = xyes; then
24223 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24224 please rerun configure with --disable-libtool" >&5
24225 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24226 please rerun configure with --disable-libtool" >&2;}
24227 { (exit 1); exit 1; }; }
24229 support_static_tools=yes
24237 if test x$support_static_tools = xyes; then
24238 TTOOL_LDFLAGS="-static"
24242 # Check whether --enable-static-fd was given.
24243 if test "${enable_static_fd+set}" = set; then
24244 enableval=$enable_static_fd;
24245 if test x$enableval = xyes; then
24246 if test x$use_libtool = xyes; then
24247 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24248 please rerun configure with --disable-libtool" >&5
24249 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24250 please rerun configure with --disable-libtool" >&2;}
24251 { (exit 1); exit 1; }; }
24253 support_static_fd=yes
24261 if test x$support_static_fd = xyes; then
24262 STATIC_FD="static-bacula-fd"
24266 # Check whether --enable-static-sd was given.
24267 if test "${enable_static_sd+set}" = set; then
24268 enableval=$enable_static_sd;
24269 if test x$enableval = xyes; then
24270 if test x$use_libtool = xyes; then
24271 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24272 please rerun configure with --disable-libtool" >&5
24273 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24274 please rerun configure with --disable-libtool" >&2;}
24275 { (exit 1); exit 1; }; }
24277 support_static_sd=yes
24285 if test x$support_static_sd = xyes; then
24286 STATIC_SD="static-bacula-sd"
24290 # Check whether --enable-static-dir was given.
24291 if test "${enable_static_dir+set}" = set; then
24292 enableval=$enable_static_dir;
24293 if test x$enableval = xyes; then
24294 if test x$use_libtool = xyes; then
24295 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24296 please rerun configure with --disable-libtool" >&5
24297 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24298 please rerun configure with --disable-libtool" >&2;}
24299 { (exit 1); exit 1; }; }
24301 support_static_dir=yes
24309 if test x$support_static_dir = xyes; then
24310 STATIC_DIR="static-bacula-dir"
24314 # Check whether --enable-static-cons was given.
24315 if test "${enable_static_cons+set}" = set; then
24316 enableval=$enable_static_cons;
24317 if test x$enableval = xyes; then
24318 if test x$use_libtool = xyes; then
24319 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24320 please rerun configure with --disable-libtool" >&5
24321 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24322 please rerun configure with --disable-libtool" >&2;}
24323 { (exit 1); exit 1; }; }
24325 support_static_cons=yes
24335 if test x$support_static_cons = xyes; then
24336 STATIC_CONS="static-bconsole"
24337 STATIC_GNOME_CONS="static-bgnome-console"
24338 STATIC_WX_CONS="static-bwx-console"
24344 # Check whether --enable-client-only was given.
24345 if test "${enable_client_only+set}" = set; then
24346 enableval=$enable_client_only;
24347 if test x$enableval = xyes; then
24348 build_client_only=yes
24356 if test x$build_client_only = xno; then
24363 # Check whether --enable-build-dird was given.
24364 if test "${enable_build_dird+set}" = set; then
24365 enableval=$enable_build_dird;
24366 if test x$enableval = xno; then
24373 if test x$build_dird = xyes; then
24374 DIRD_DIR="src/dird"
24375 DIR_TOOLS="DIRTOOLS"
24378 DIR_TOOLS="NODIRTOOLS"
24383 # Check whether --enable-build-stored was given.
24384 if test "${enable_build_stored+set}" = set; then
24385 enableval=$enable_build_stored;
24386 if test x$enableval = xno; then
24393 if test x$build_stored = xyes; then
24394 STORED_DIR="src/stored"
24400 # Check whether --enable-conio was given.
24401 if test "${enable_conio+set}" = set; then
24402 enableval=$enable_conio;
24403 if test x$enableval = xno; then
24413 # Check whether --enable-ipv6 was given.
24414 if test "${enable_ipv6+set}" = set; then
24415 enableval=$enable_ipv6;
24416 if test x$enableval = xno; then
24424 if test x$support_ipv6 = xyes; then
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24431 #include <sys/types.h>
24432 #include <sys/socket.h>
24433 #include <netinet/in.h>
24437 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_link") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest$ac_exeext &&
24459 $as_test_x conftest$ac_exeext; then
24462 echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24469 conftest$ac_exeext conftest.$ac_ext
24472 if test x$support_ipv6 = xyes; then
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_IPV6 1
24481 if test x$support_conio = xyes; then
24482 if test "${ac_cv_header_termcap_h+set}" = set; then
24483 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24484 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24485 if test "${ac_cv_header_termcap_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24489 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24493 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <termcap.h>
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24520 ac_header_compiler=yes
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_header_compiler=no
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24530 echo "${ECHO_T}$ac_header_compiler" >&6; }
24532 # Is the header present?
24533 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24534 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <termcap.h>
24543 if { (ac_try="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24559 ac_header_preproc=yes
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_header_preproc=no
24567 rm -f conftest.err conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24569 echo "${ECHO_T}$ac_header_preproc" >&6; }
24571 # So? What about this header?
24572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24575 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24577 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24578 ac_header_preproc=yes
24581 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24582 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24584 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24586 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24588 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24590 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24592 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24596 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24597 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24598 if test "${ac_cv_header_termcap_h+set}" = set; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24601 ac_cv_header_termcap_h=$ac_header_preproc
24603 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24604 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24607 if test $ac_cv_header_termcap_h = yes; then
24608 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24609 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24610 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-ltermcap $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24622 /* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_link") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && {
24651 test -z "$ac_c_werror_flag" ||
24652 test ! -s conftest.err
24653 } && test -s conftest$ac_exeext &&
24654 $as_test_x conftest$ac_exeext; then
24655 ac_cv_lib_termcap_tgetent=yes
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_cv_lib_termcap_tgetent=no
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24667 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24668 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24669 if test $ac_cv_lib_termcap_tgetent = yes; then
24670 CONS_LIBS="-ltermcap"
24674 support_readline=no
24676 cat >>confdefs.h <<\_ACEOF
24677 #define HAVE_CONIO 1
24682 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24683 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24684 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 ac_check_lib_save_LIBS=$LIBS
24688 LIBS="-lncurses $LIBS"
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24696 /* Override any GCC internal prototype to avoid an error.
24697 Use char because int might match the return type of a GCC
24698 builtin and then its argument prototype would still apply. */
24711 rm -f conftest.$ac_objext conftest$ac_exeext
24712 if { (ac_try="$ac_link"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_link") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest$ac_exeext &&
24728 $as_test_x conftest$ac_exeext; then
24729 ac_cv_lib_ncurses_tgetent=yes
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ac_cv_lib_ncurses_tgetent=no
24737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24738 conftest$ac_exeext conftest.$ac_ext
24739 LIBS=$ac_check_lib_save_LIBS
24741 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24742 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24743 if test $ac_cv_lib_ncurses_tgetent = yes; then
24744 CONS_LIBS="-lncurses"
24748 support_readline=no
24750 cat >>confdefs.h <<\_ACEOF
24751 #define HAVE_CONIO 1
24764 for ac_header in curses.h
24766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 ac_res=`eval echo '${'$as_ac_Header'}'`
24774 { echo "$as_me:$LINENO: result: $ac_res" >&5
24775 echo "${ECHO_T}$ac_res" >&6; }
24777 # Is the header compilable?
24778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24780 cat >conftest.$ac_ext <<_ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24787 #include <$ac_header>
24789 rm -f conftest.$ac_objext
24790 if { (ac_try="$ac_compile"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_compile") 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } && {
24803 test -z "$ac_c_werror_flag" ||
24804 test ! -s conftest.err
24805 } && test -s conftest.$ac_objext; then
24806 ac_header_compiler=yes
24808 echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24811 ac_header_compiler=no
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24816 echo "${ECHO_T}$ac_header_compiler" >&6; }
24818 # Is the header present?
24819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24827 #include <$ac_header>
24829 if { (ac_try="$ac_cpp conftest.$ac_ext"
24830 case "(($ac_try" in
24831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832 *) ac_try_echo=$ac_try;;
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } >/dev/null && {
24842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24843 test ! -s conftest.err
24845 ac_header_preproc=yes
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ac_header_preproc=no
24853 rm -f conftest.err conftest.$ac_ext
24854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24855 echo "${ECHO_T}$ac_header_preproc" >&6; }
24857 # So? What about this header?
24858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24864 ac_header_preproc=yes
24867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 eval "$as_ac_Header=\$ac_header_preproc"
24889 ac_res=`eval echo '${'$as_ac_Header'}'`
24890 { echo "$as_me:$LINENO: result: $ac_res" >&5
24891 echo "${ECHO_T}$ac_res" >&6; }
24894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24903 { echo "$as_me:$LINENO: checking for term.h" >&5
24904 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24905 if test "${ac_cv_header_term_h+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24915 #include <curses.h>
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 ac_cv_header_term_h=yes
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_cv_header_term_h=no
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24949 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24950 if test $ac_cv_header_term_h = yes; then
24951 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24952 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24953 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24954 echo $ECHO_N "(cached) $ECHO_C" >&6
24956 ac_check_lib_save_LIBS=$LIBS
24957 LIBS="-lcurses $LIBS"
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24965 /* Override any GCC internal prototype to avoid an error.
24966 Use char because int might match the return type of a GCC
24967 builtin and then its argument prototype would still apply. */
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
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_link") 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_exeext &&
24997 $as_test_x conftest$ac_exeext; then
24998 ac_cv_lib_curses_tgetent=yes
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_cv_lib_curses_tgetent=no
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007 conftest$ac_exeext conftest.$ac_ext
25008 LIBS=$ac_check_lib_save_LIBS
25010 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25011 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25012 if test $ac_cv_lib_curses_tgetent = yes; then
25013 CONS_LIBS="-lcurses"
25017 support_readline=no
25019 cat >>confdefs.h <<\_ACEOF
25020 #define HAVE_CONIO 1
25028 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25039 # Check whether --enable-readline was given.
25040 if test "${enable_readline+set}" = set; then
25041 enableval=$enable_readline;
25042 if test x$enableval = xno; then
25043 support_readline=no
25052 if test x$support_readline = xyes; then
25054 # Check whether --with-readline was given.
25055 if test "${with_readline+set}" = set; then
25056 withval=$with_readline;
25057 case "$with_readline" in
25062 if test -f ${with_readline}/readline.h; then
25063 CONS_INC="-I${with_readline}"
25064 CONS_LDFLAGS="-L$with_readline"
25065 elif test -f ${with_readline}/include/readline/readline.h; then
25066 CONS_INC="-I${with_readline}/include/readline"
25067 CONS_LDFLAGS="-L${with_readline}/lib"
25068 with_readline="${with_readline}/include/readline"
25070 with_readline="/usr/include/readline"
25073 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25075 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 ac_res=`eval echo '${'$as_ac_Header'}'`
25081 { echo "$as_me:$LINENO: result: $ac_res" >&5
25082 echo "${ECHO_T}$ac_res" >&6; }
25084 # Is the header compilable?
25085 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25086 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 $ac_includes_default
25094 #include <${with_readline}/readline.h>
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_compile") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && {
25110 test -z "$ac_c_werror_flag" ||
25111 test ! -s conftest.err
25112 } && test -s conftest.$ac_objext; then
25113 ac_header_compiler=yes
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_header_compiler=no
25121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25123 echo "${ECHO_T}$ac_header_compiler" >&6; }
25125 # Is the header present?
25126 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25127 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25128 cat >conftest.$ac_ext <<_ACEOF
25131 cat confdefs.h >>conftest.$ac_ext
25132 cat >>conftest.$ac_ext <<_ACEOF
25133 /* end confdefs.h. */
25134 #include <${with_readline}/readline.h>
25136 if { (ac_try="$ac_cpp conftest.$ac_ext"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } >/dev/null && {
25149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25150 test ! -s conftest.err
25152 ac_header_preproc=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_header_preproc=no
25160 rm -f conftest.err conftest.$ac_ext
25161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25162 echo "${ECHO_T}$ac_header_preproc" >&6; }
25164 # So? What about this header?
25165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25167 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25168 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25169 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25170 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25171 ac_header_preproc=yes
25174 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25175 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25177 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25179 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25184 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25189 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 eval "$as_ac_Header=\$ac_header_preproc"
25196 ac_res=`eval echo '${'$as_ac_Header'}'`
25197 { echo "$as_me:$LINENO: result: $ac_res" >&5
25198 echo "${ECHO_T}$ac_res" >&6; }
25201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25204 cat >>confdefs.h <<\_ACEOF
25205 #define HAVE_READLINE 1
25208 CONS_LIBS="-lreadline -lhistory -ltermcap"
25214 echo "readline.h not found. readline turned off ..."
25226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25227 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25228 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25229 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25232 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25233 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25235 # Is the header compilable?
25236 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25237 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244 $ac_includes_default
25245 #include </usr/include/readline/readline.h>
25247 rm -f conftest.$ac_objext
25248 if { (ac_try="$ac_compile"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25264 ac_header_compiler=yes
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 ac_header_compiler=no
25272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25274 echo "${ECHO_T}$ac_header_compiler" >&6; }
25276 # Is the header present?
25277 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25278 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25285 #include </usr/include/readline/readline.h>
25287 if { (ac_try="$ac_cpp conftest.$ac_ext"
25288 case "(($ac_try" in
25289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290 *) ac_try_echo=$ac_try;;
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } >/dev/null && {
25300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25301 test ! -s conftest.err
25303 ac_header_preproc=yes
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_header_preproc=no
25311 rm -f conftest.err conftest.$ac_ext
25312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25313 echo "${ECHO_T}$ac_header_preproc" >&6; }
25315 # So? What about this header?
25316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25318 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25319 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25320 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25321 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25322 ac_header_preproc=yes
25325 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25330 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25340 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25341 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25342 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25347 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25348 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25351 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25354 cat >>confdefs.h <<\_ACEOF
25355 #define HAVE_READLINE 1
25359 CONS_INC="-I/usr/include/readline"
25360 CONS_LIBS="-lreadline -ltermcap"
25364 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25366 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25369 echo $ECHO_N "(cached) $ECHO_C" >&6
25371 ac_res=`eval echo '${'$as_ac_Header'}'`
25372 { echo "$as_me:$LINENO: result: $ac_res" >&5
25373 echo "${ECHO_T}$ac_res" >&6; }
25375 # Is the header compilable?
25376 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25377 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25385 #include <${TOP_DIR}/depkgs/readline/readline.h>
25387 rm -f conftest.$ac_objext
25388 if { (ac_try="$ac_compile"
25389 case "(($ac_try" in
25390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391 *) ac_try_echo=$ac_try;;
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394 (eval "$ac_compile") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && {
25401 test -z "$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25403 } && test -s conftest.$ac_objext; then
25404 ac_header_compiler=yes
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_header_compiler=no
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25414 echo "${ECHO_T}$ac_header_compiler" >&6; }
25416 # Is the header present?
25417 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25418 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 #include <${TOP_DIR}/depkgs/readline/readline.h>
25427 if { (ac_try="$ac_cpp conftest.$ac_ext"
25428 case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } >/dev/null && {
25440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25443 ac_header_preproc=yes
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ac_header_preproc=no
25451 rm -f conftest.err conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25453 echo "${ECHO_T}$ac_header_preproc" >&6; }
25455 # So? What about this header?
25456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25458 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25459 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25460 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25461 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25462 ac_header_preproc=yes
25465 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25466 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25467 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25480 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25481 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25485 eval "$as_ac_Header=\$ac_header_preproc"
25487 ac_res=`eval echo '${'$as_ac_Header'}'`
25488 { echo "$as_me:$LINENO: result: $ac_res" >&5
25489 echo "${ECHO_T}$ac_res" >&6; }
25492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25495 cat >>confdefs.h <<\_ACEOF
25496 #define HAVE_READLINE 1
25500 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25501 CONS_LIBS="-lreadline -lhistory -ltermcap"
25502 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25503 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25508 echo "readline.h not found. readline turned off ..."
25535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25537 if test "${ac_cv_header_stat_broken+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 #include <sys/types.h>
25547 #include <sys/stat.h>
25549 #if defined S_ISBLK && defined S_IFDIR
25550 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25553 #if defined S_ISBLK && defined S_IFCHR
25554 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25557 #if defined S_ISLNK && defined S_IFREG
25558 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25561 #if defined S_ISSOCK && defined S_IFREG
25562 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_compile") 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest.$ac_objext; then
25583 ac_cv_header_stat_broken=no
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_cv_header_stat_broken=yes
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25594 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25595 if test $ac_cv_header_stat_broken = yes; then
25597 cat >>confdefs.h <<\_ACEOF
25598 #define STAT_MACROS_BROKEN 1
25608 ac_header_dirent=no
25609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25610 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25611 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25612 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <sys/types.h>
25634 rm -f conftest.$ac_objext
25635 if { (ac_try="$ac_compile"
25636 case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 eval "$as_ac_Header=yes"
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25656 eval "$as_ac_Header=no"
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 ac_res=`eval echo '${'$as_ac_Header'}'`
25662 { echo "$as_me:$LINENO: result: $ac_res" >&5
25663 echo "${ECHO_T}$ac_res" >&6; }
25664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25665 cat >>confdefs.h <<_ACEOF
25666 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25669 ac_header_dirent=$ac_hdr; break
25673 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25674 if test $ac_header_dirent = dirent.h; then
25675 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25677 if test "${ac_cv_search_opendir+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25680 ac_func_search_save_LIBS=$LIBS
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25688 /* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25703 for ac_lib in '' dir; do
25704 if test -z "$ac_lib"; then
25705 ac_res="none required"
25708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (ac_try="$ac_link"
25712 case "(($ac_try" in
25713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717 (eval "$ac_link") 2>conftest.er1
25719 grep -v '^ *+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } && {
25724 test -z "$ac_c_werror_flag" ||
25725 test ! -s conftest.err
25726 } && test -s conftest$ac_exeext &&
25727 $as_test_x conftest$ac_exeext; then
25728 ac_cv_search_opendir=$ac_res
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25738 if test "${ac_cv_search_opendir+set}" = set; then
25742 if test "${ac_cv_search_opendir+set}" = set; then
25745 ac_cv_search_opendir=no
25747 rm conftest.$ac_ext
25748 LIBS=$ac_func_search_save_LIBS
25750 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25751 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25752 ac_res=$ac_cv_search_opendir
25753 if test "$ac_res" != no; then
25754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25759 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25760 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25761 if test "${ac_cv_search_opendir+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 ac_func_search_save_LIBS=$LIBS
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25772 /* Override any GCC internal prototype to avoid an error.
25773 Use char because int might match the return type of a GCC
25774 builtin and then its argument prototype would still apply. */
25787 for ac_lib in '' x; do
25788 if test -z "$ac_lib"; then
25789 ac_res="none required"
25792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25794 rm -f conftest.$ac_objext conftest$ac_exeext
25795 if { (ac_try="$ac_link"
25796 case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_link") 2>conftest.er1
25803 grep -v '^ *+' conftest.er1 >conftest.err
25805 cat conftest.err >&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); } && {
25808 test -z "$ac_c_werror_flag" ||
25809 test ! -s conftest.err
25810 } && test -s conftest$ac_exeext &&
25811 $as_test_x conftest$ac_exeext; then
25812 ac_cv_search_opendir=$ac_res
25814 echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25822 if test "${ac_cv_search_opendir+set}" = set; then
25826 if test "${ac_cv_search_opendir+set}" = set; then
25829 ac_cv_search_opendir=no
25831 rm conftest.$ac_ext
25832 LIBS=$ac_func_search_save_LIBS
25834 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25835 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25836 ac_res=$ac_cv_search_opendir
25837 if test "$ac_res" != no; then
25838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25851 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 cat >conftest.$ac_ext <<_ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h. */
25865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25867 #define $ac_func innocuous_$ac_func
25869 /* System header to define __stub macros and hopefully few prototypes,
25870 which can conflict with char $ac_func (); below.
25871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25872 <limits.h> exists even on freestanding compilers. */
25875 # include <limits.h>
25877 # include <assert.h>
25882 /* Override any GCC internal prototype to avoid an error.
25883 Use char because int might match the return type of a GCC
25884 builtin and then its argument prototype would still apply. */
25889 /* The GNU C library defines this for functions which it implements
25890 to always fail with ENOSYS. Some functions are actually named
25891 something starting with __ and the normal name is an alias. */
25892 #if defined __stub_$ac_func || defined __stub___$ac_func
25899 return $ac_func ();
25904 rm -f conftest.$ac_objext conftest$ac_exeext
25905 if { (ac_try="$ac_link"
25906 case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911 (eval "$ac_link") 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest$ac_exeext &&
25921 $as_test_x conftest$ac_exeext; then
25922 eval "$as_ac_var=yes"
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25927 eval "$as_ac_var=no"
25930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25931 conftest$ac_exeext conftest.$ac_ext
25933 ac_res=`eval echo '${'$as_ac_var'}'`
25934 { echo "$as_me:$LINENO: result: $ac_res" >&5
25935 echo "${ECHO_T}$ac_res" >&6; }
25936 if test `eval echo '${'$as_ac_var'}'` = yes; then
25937 cat >>confdefs.h <<_ACEOF
25938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25946 for ac_func in nanosleep nl_langinfo
25948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25962 #define $ac_func innocuous_$ac_func
25964 /* System header to define __stub macros and hopefully few prototypes,
25965 which can conflict with char $ac_func (); below.
25966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25967 <limits.h> exists even on freestanding compilers. */
25970 # include <limits.h>
25972 # include <assert.h>
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25984 /* The GNU C library defines this for functions which it implements
25985 to always fail with ENOSYS. Some functions are actually named
25986 something starting with __ and the normal name is an alias. */
25987 #if defined __stub_$ac_func || defined __stub___$ac_func
25994 return $ac_func ();
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest$ac_exeext &&
26016 $as_test_x conftest$ac_exeext; then
26017 eval "$as_ac_var=yes"
26019 echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26022 eval "$as_ac_var=no"
26025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26026 conftest$ac_exeext conftest.$ac_ext
26028 ac_res=`eval echo '${'$as_ac_var'}'`
26029 { echo "$as_me:$LINENO: result: $ac_res" >&5
26030 echo "${ECHO_T}$ac_res" >&6; }
26031 if test `eval echo '${'$as_ac_var'}'` = yes; then
26032 cat >>confdefs.h <<_ACEOF
26033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26040 for ac_header in varargs.h
26042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 ac_res=`eval echo '${'$as_ac_Header'}'`
26050 { echo "$as_me:$LINENO: result: $ac_res" >&5
26051 echo "${ECHO_T}$ac_res" >&6; }
26053 # Is the header compilable?
26054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 $ac_includes_default
26063 #include <$ac_header>
26065 rm -f conftest.$ac_objext
26066 if { (ac_try="$ac_compile"
26067 case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
26082 ac_header_compiler=yes
26084 echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26087 ac_header_compiler=no
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26092 echo "${ECHO_T}$ac_header_compiler" >&6; }
26094 # Is the header present?
26095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26097 cat >conftest.$ac_ext <<_ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26103 #include <$ac_header>
26105 if { (ac_try="$ac_cpp conftest.$ac_ext"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26113 grep -v '^ *+' conftest.er1 >conftest.err
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } >/dev/null && {
26118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26121 ac_header_preproc=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_header_preproc=no
26129 rm -f conftest.err conftest.$ac_ext
26130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26131 echo "${ECHO_T}$ac_header_preproc" >&6; }
26133 # So? What about this header?
26134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26140 ac_header_preproc=yes
26143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 eval "$as_ac_Header=\$ac_header_preproc"
26165 ac_res=`eval echo '${'$as_ac_Header'}'`
26166 { echo "$as_me:$LINENO: result: $ac_res" >&5
26167 echo "${ECHO_T}$ac_res" >&6; }
26170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26171 cat >>confdefs.h <<_ACEOF
26172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26181 { echo "$as_me:$LINENO: checking for Python support" >&5
26182 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26184 # Check whether --with-python was given.
26185 if test "${with_python+set}" = set; then
26186 withval=$with_python;
26189 if test "$withval" != "no"; then
26190 if test "$withval" = "yes"; then
26191 if test -e /usr/bin/python-config ; then
26192 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26193 PYTHON_LIBS=`/usr/bin/python-config --libs`
26195 for python_root in /usr /usr/local /usr/sfw; do
26196 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26197 if test -f $python_root/include/${ver}/Python.h; then
26198 PYTHON_INCDIR=-I$python_root/include/${ver}
26199 if test -d $python_root/lib64/${ver}/config; then
26200 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26202 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26209 if test x$PYTHON_INCDIR = x; then
26210 if test -f $prefix/include/Python.h; then
26211 PYTHON_INCDIR=-I$prefix/include
26212 if test -d $prefix/lib64/config; then
26213 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26215 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26218 { echo "$as_me:$LINENO: result: no" >&5
26219 echo "${ECHO_T}no" >&6; }
26220 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26221 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26222 { (exit 1); exit 1; }; }
26227 if test -e $withval/bin/python-config ; then
26228 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26229 PYTHON_LIBS=`$withval/bin/python-config --libs`
26230 elif test -f $withval/Python.h; then
26231 PYTHON_INCDIR=-I$withval
26232 PYTHON_LIBS="-L$withval/config -lpython"
26233 elif test -f $withval/include/Python.h; then
26234 PYTHON_INCDIR=-I$withval/include
26235 if test -d $withval/lib64/config; then
26236 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26238 PYTHON_LIBS="-L$withval/lib/config -lpython"
26240 elif test -f $withval/include/python/Python.h; then
26241 PYTHON_INCDIR=-I$withval/include/python
26242 if test -d $withval/lib64/python/config; then
26243 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26245 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26248 { echo "$as_me:$LINENO: result: no" >&5
26249 echo "${ECHO_T}no" >&6; }
26250 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26251 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26252 { (exit 1); exit 1; }; }
26256 cat >>confdefs.h <<\_ACEOF
26257 #define HAVE_PYTHON 1
26260 { echo "$as_me:$LINENO: result: yes" >&5
26261 echo "${ECHO_T}yes" >&6; }
26263 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26264 echo "$as_me: checking for more Python libs" >&6;}
26265 saved_LIBS="$LIBS"; LIBS=
26266 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26267 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26268 if test "${ac_cv_search_shm_open+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 ac_func_search_save_LIBS=$LIBS
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26279 /* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26289 return shm_open ();
26294 for ac_lib in '' rt; do
26295 if test -z "$ac_lib"; then
26296 ac_res="none required"
26299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_link") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest$ac_exeext &&
26318 $as_test_x conftest$ac_exeext; then
26319 ac_cv_search_shm_open=$ac_res
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26329 if test "${ac_cv_search_shm_open+set}" = set; then
26333 if test "${ac_cv_search_shm_open+set}" = set; then
26336 ac_cv_search_shm_open=no
26338 rm conftest.$ac_ext
26339 LIBS=$ac_func_search_save_LIBS
26341 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26342 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26343 ac_res=$ac_cv_search_shm_open
26344 if test "$ac_res" != no; then
26345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26350 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26351 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26352 if test "${ac_cv_lib_util_openpty+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26355 ac_check_lib_save_LIBS=$LIBS
26356 LIBS="-lutil $LIBS"
26357 cat >conftest.$ac_ext <<_ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26364 /* Override any GCC internal prototype to avoid an error.
26365 Use char because int might match the return type of a GCC
26366 builtin and then its argument prototype would still apply. */
26379 rm -f conftest.$ac_objext conftest$ac_exeext
26380 if { (ac_try="$ac_link"
26381 case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_link") 2>conftest.er1
26388 grep -v '^ *+' conftest.er1 >conftest.err
26390 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && {
26393 test -z "$ac_c_werror_flag" ||
26394 test ! -s conftest.err
26395 } && test -s conftest$ac_exeext &&
26396 $as_test_x conftest$ac_exeext; then
26397 ac_cv_lib_util_openpty=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_cv_lib_util_openpty=no
26405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26406 conftest$ac_exeext conftest.$ac_ext
26407 LIBS=$ac_check_lib_save_LIBS
26409 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26410 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26411 if test $ac_cv_lib_util_openpty = yes; then
26412 cat >>confdefs.h <<_ACEOF
26413 #define HAVE_LIBUTIL 1
26416 LIBS="-lutil $LIBS"
26420 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26423 { echo "$as_me:$LINENO: result: no" >&5
26424 echo "${ECHO_T}no" >&6; }
26429 { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26438 { echo "$as_me:$LINENO: checking for socket" >&5
26439 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26440 if test "${ac_cv_func_socket+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26449 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26451 #define socket innocuous_socket
26453 /* System header to define __stub macros and hopefully few prototypes,
26454 which can conflict with char socket (); below.
26455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26456 <limits.h> exists even on freestanding compilers. */
26459 # include <limits.h>
26461 # include <assert.h>
26466 /* Override any GCC internal prototype to avoid an error.
26467 Use char because int might match the return type of a GCC
26468 builtin and then its argument prototype would still apply. */
26473 /* The GNU C library defines this for functions which it implements
26474 to always fail with ENOSYS. Some functions are actually named
26475 something starting with __ and the normal name is an alias. */
26476 #if defined __stub_socket || defined __stub___socket
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (ac_try="$ac_link"
26490 case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_link") 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } && {
26502 test -z "$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26504 } && test -s conftest$ac_exeext &&
26505 $as_test_x conftest$ac_exeext; then
26506 ac_cv_func_socket=yes
26508 echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26511 ac_cv_func_socket=no
26514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26515 conftest$ac_exeext conftest.$ac_ext
26517 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26518 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26519 if test $ac_cv_func_socket = yes; then
26520 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26521 echo "${ECHO_T}using libc's socket" >&6; }
26524 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26525 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26526 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26529 ac_check_lib_save_LIBS=$LIBS
26530 LIBS="-lxnet $LIBS"
26531 cat >conftest.$ac_ext <<_ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26538 /* Override any GCC internal prototype to avoid an error.
26539 Use char because int might match the return type of a GCC
26540 builtin and then its argument prototype would still apply. */
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (ac_try="$ac_link"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560 (eval "$ac_link") 2>conftest.er1
26562 grep -v '^ *+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } && {
26567 test -z "$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26569 } && test -s conftest$ac_exeext &&
26570 $as_test_x conftest$ac_exeext; then
26571 ac_cv_lib_xnet_socket=yes
26573 echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 ac_cv_lib_xnet_socket=no
26579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26580 conftest$ac_exeext conftest.$ac_ext
26581 LIBS=$ac_check_lib_save_LIBS
26583 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26584 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26585 if test $ac_cv_lib_xnet_socket = yes; then
26586 cat >>confdefs.h <<_ACEOF
26587 #define HAVE_LIBXNET 1
26590 LIBS="-lxnet $LIBS"
26595 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26596 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26597 if test "${ac_cv_lib_socket_socket+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lsocket $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26609 /* Override any GCC internal prototype to avoid an error.
26610 Use char because int might match the return type of a GCC
26611 builtin and then its argument prototype would still apply. */
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_link") 2>conftest.er1
26633 grep -v '^ *+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest$ac_exeext &&
26641 $as_test_x conftest$ac_exeext; then
26642 ac_cv_lib_socket_socket=yes
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 ac_cv_lib_socket_socket=no
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651 conftest$ac_exeext conftest.$ac_ext
26652 LIBS=$ac_check_lib_save_LIBS
26654 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26655 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26656 if test $ac_cv_lib_socket_socket = yes; then
26657 cat >>confdefs.h <<_ACEOF
26658 #define HAVE_LIBSOCKET 1
26661 LIBS="-lsocket $LIBS"
26666 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26667 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26668 if test "${ac_cv_lib_inet_socket+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-linet $LIBS"
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26680 /* Override any GCC internal prototype to avoid an error.
26681 Use char because int might match the return type of a GCC
26682 builtin and then its argument prototype would still apply. */
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699 *) ac_try_echo=$ac_try;;
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702 (eval "$ac_link") 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } && {
26709 test -z "$ac_c_werror_flag" ||
26710 test ! -s conftest.err
26711 } && test -s conftest$ac_exeext &&
26712 $as_test_x conftest$ac_exeext; then
26713 ac_cv_lib_inet_socket=yes
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 ac_cv_lib_inet_socket=no
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722 conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26725 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26726 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26727 if test $ac_cv_lib_inet_socket = yes; then
26728 cat >>confdefs.h <<_ACEOF
26729 #define HAVE_LIBINET 1
26732 LIBS="-linet $LIBS"
26742 # Check whether --with-tcp-wrappers was given.
26743 if test "${with_tcp_wrappers+set}" = set; then
26744 withval=$with_tcp_wrappers;
26745 if test "x$withval" != "xno" ; then
26747 LIBS="$saved_LIBS -lwrap"
26748 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26749 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26750 if test "${ac_cv_search_nanosleep+set}" = set; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 ac_func_search_save_LIBS=$LIBS
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26761 /* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26771 return nanosleep ();
26776 for ac_lib in '' rt; do
26777 if test -z "$ac_lib"; then
26778 ac_res="none required"
26781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (ac_try="$ac_link"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_link") 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && {
26797 test -z "$ac_c_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest$ac_exeext &&
26800 $as_test_x conftest$ac_exeext; then
26801 ac_cv_search_nanosleep=$ac_res
26803 echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26811 if test "${ac_cv_search_nanosleep+set}" = set; then
26815 if test "${ac_cv_search_nanosleep+set}" = set; then
26818 ac_cv_search_nanosleep=no
26820 rm conftest.$ac_ext
26821 LIBS=$ac_func_search_save_LIBS
26823 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26824 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26825 ac_res=$ac_cv_search_nanosleep
26826 if test "$ac_res" != no; then
26827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26831 { echo "$as_me:$LINENO: checking for libwrap" >&5
26832 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26833 cat >conftest.$ac_ext <<_ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26840 #include <sys/types.h>
26842 int deny_severity = 0;
26843 int allow_severity = 0;
26844 struct request_info *req;
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_link") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest$ac_exeext &&
26873 $as_test_x conftest$ac_exeext; then
26875 { echo "$as_me:$LINENO: result: yes" >&5
26876 echo "${ECHO_T}yes" >&6; }
26878 cat >>confdefs.h <<\_ACEOF
26879 #define HAVE_LIBWRAP 1
26887 echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26891 LIBS="$saved_LIBS -lwrap -lnsl"
26892 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26900 #include <sys/types.h>
26902 int deny_severity = 0;
26903 int allow_severity = 0;
26904 struct request_info *req;
26916 rm -f conftest.$ac_objext conftest$ac_exeext
26917 if { (ac_try="$ac_link"
26918 case "(($ac_try" in
26919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26920 *) ac_try_echo=$ac_try;;
26922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26923 (eval "$ac_link") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1 >conftest.err
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && {
26930 test -z "$ac_c_werror_flag" ||
26931 test ! -s conftest.err
26932 } && test -s conftest$ac_exeext &&
26933 $as_test_x conftest$ac_exeext; then
26935 { echo "$as_me:$LINENO: result: yes" >&5
26936 echo "${ECHO_T}yes" >&6; }
26938 cat >>confdefs.h <<\_ACEOF
26939 #define HAVE_LIBWRAP 1
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26951 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26952 echo "$as_me: error: *** libwrap missing" >&2;}
26953 { (exit 1); exit 1; }; }
26958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26959 conftest$ac_exeext conftest.$ac_ext
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965 conftest$ac_exeext conftest.$ac_ext
26972 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26973 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26975 # Check whether --with-openssl was given.
26976 if test "${with_openssl+set}" = set; then
26977 withval=$with_openssl;
26978 with_openssl_directory=${withval}
26984 if test "x$with_openssl_directory" != "xno"; then
26985 OPENSSL_LIBS="-lssl -lcrypto"
26988 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26990 # Make sure the $with_openssl_directory also makes sense
26992 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26993 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26994 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26998 saved_LIBS="${LIBS}"
26999 saved_CFLAGS="${CFLAGS}"
27000 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27001 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27010 #include <openssl/ssl.h>
27016 CRYPTO_set_id_callback(NULL);
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (ac_try="$ac_link"
27024 case "(($ac_try" in
27025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27026 *) ac_try_echo=$ac_try;;
27028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27029 (eval "$ac_link") 2>conftest.er1
27031 grep -v '^ *+' conftest.er1 >conftest.err
27033 cat conftest.err >&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } && {
27036 test -z "$ac_c_werror_flag" ||
27037 test ! -s conftest.err
27038 } && test -s conftest$ac_exeext &&
27039 $as_test_x conftest$ac_exeext; then
27042 support_crypto="yes"
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27050 support_crypto="no"
27055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27056 conftest$ac_exeext conftest.$ac_ext
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27065 #include <openssl/evp.h>
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } && {
27091 test -z "$ac_c_werror_flag" ||
27092 test ! -s conftest.err
27093 } && test -s conftest$ac_exeext &&
27094 $as_test_x conftest$ac_exeext; then
27096 ac_cv_openssl_sha2="yes"
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27103 ac_cv_openssl_sha2="no"
27108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27109 conftest$ac_exeext conftest.$ac_ext
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27118 #include <openssl/evp.h>
27130 rm -f conftest.$ac_objext conftest$ac_exeext
27131 if { (ac_try="$ac_link"
27132 case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_link") 2>conftest.er1
27139 grep -v '^ *+' conftest.er1 >conftest.err
27141 cat conftest.err >&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } && {
27144 test -z "$ac_c_werror_flag" ||
27145 test ! -s conftest.err
27146 } && test -s conftest$ac_exeext &&
27147 $as_test_x conftest$ac_exeext; then
27149 ac_cv_openssl_export="no"
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_cv_openssl_export="yes"
27161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27162 conftest$ac_exeext conftest.$ac_ext
27164 LIBS="${saved_LIBS}"
27165 CFLAGS="${saved_CFLAGS}"
27167 if test "$support_tls" = "yes"; then
27169 cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_OPENSSL 1
27174 cat >>confdefs.h <<\_ACEOF
27179 cat >>confdefs.h <<\_ACEOF
27180 #define HAVE_CRYPTO 1
27185 if test "$ac_cv_openssl_sha2" = "yes"; then
27187 cat >>confdefs.h <<\_ACEOF
27188 #define HAVE_SHA2 1
27193 if test "$ac_cv_openssl_export" = "yes"; then
27195 cat >>confdefs.h <<\_ACEOF
27196 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27202 support_crypto="no"
27207 if test "$support_tls" = "no"; then
27211 if test "$support_crypto" = "no"; then
27216 { echo "$as_me:$LINENO: result: $support_tls" >&5
27217 echo "${ECHO_T}$support_tls" >&6; }
27221 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27222 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27223 if test "${ac_cv_search_dlopen+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 ac_func_search_save_LIBS=$LIBS
27227 cat >conftest.$ac_ext <<_ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27234 /* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27249 for ac_lib in '' dl; do
27250 if test -z "$ac_lib"; then
27251 ac_res="none required"
27254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27256 rm -f conftest.$ac_objext conftest$ac_exeext
27257 if { (ac_try="$ac_link"
27258 case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_link") 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } && {
27270 test -z "$ac_c_werror_flag" ||
27271 test ! -s conftest.err
27272 } && test -s conftest$ac_exeext &&
27273 $as_test_x conftest$ac_exeext; then
27274 ac_cv_search_dlopen=$ac_res
27276 echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27284 if test "${ac_cv_search_dlopen+set}" = set; then
27288 if test "${ac_cv_search_dlopen+set}" = set; then
27291 ac_cv_search_dlopen=no
27293 rm conftest.$ac_ext
27294 LIBS=$ac_func_search_save_LIBS
27296 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27297 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27298 ac_res=$ac_cv_search_dlopen
27299 if test "$ac_res" != no; then
27300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27305 working_dir=`eval echo ${prefix}/var/bacula/working`
27307 # Check whether --with-working-dir was given.
27308 if test "${with_working_dir+set}" = set; then
27309 withval=$with_working_dir;
27310 if test "x$withval" != "xno" ; then
27311 working_dir=$withval
27322 # Check whether --with-archivedir was given.
27323 if test "${with_archivedir+set}" = set; then
27324 withval=$with_archivedir;
27325 if test "x$withval" != "xno" ; then
27326 archivedir=$withval
27335 basename=`hostname`
27337 # Check whether --with-basename was given.
27338 if test "${with_basename+set}" = set; then
27339 withval=$with_basename;
27340 if test "x$withval" != "xno" ; then
27350 hostname=`uname -n | cut -d '.' -f 1`
27351 if test x${hostname} = x ; then
27352 hostname="localhost"
27355 # Check whether --with-hostname was given.
27356 if test "${with_hostname+set}" = set; then
27357 withval=$with_hostname;
27358 if test "x$withval" != "xno" ; then
27369 scriptdir=`eval echo ${sysconfdir}`
27371 # Check whether --with-scriptdir was given.
27372 if test "${with_scriptdir+set}" = set; then
27373 withval=$with_scriptdir;
27374 if test "x$withval" != "xno" ; then
27387 # Check whether --with-bsrdir was given.
27388 if test "${with_bsrdir+set}" = set; then
27389 withval=$with_bsrdir;
27390 if test "x$withval" != "xno" ; then
27402 # Check whether --with-logdir was given.
27403 if test "${with_logdir+set}" = set; then
27404 withval=$with_logdir;
27405 if test "x$withval" != "xno" ; then
27416 # ------------------------------------------
27417 # Where to place plugindir (plugin files)
27418 # ------------------------------------------
27419 plugindir=`eval echo ${libdir}`
27421 # Check whether --with-plugindir was given.
27422 if test "${with_plugindir+set}" = set; then
27423 withval=$with_plugindir;
27424 if test "x$withval" != "xno" ; then
27434 dump_email=root@localhost
27436 # Check whether --with-dump-email was given.
27437 if test "${with_dump_email+set}" = set; then
27438 withval=$with_dump_email;
27439 if test "x$withval" != "xno" ; then
27440 dump_email=$withval
27449 job_email=root@localhost
27451 # Check whether --with-job-email was given.
27452 if test "${with_job_email+set}" = set; then
27453 withval=$with_job_email;
27454 if test "x$withval" != "xno" ; then
27464 smtp_host=localhost
27466 # Check whether --with-smtp_host was given.
27467 if test "${with_smtp_host+set}" = set; then
27468 withval=$with_smtp_host;
27469 if test "x$withval" != "xno" ; then
27481 # Check whether --with-pid-dir was given.
27482 if test "${with_pid_dir+set}" = set; then
27483 withval=$with_pid_dir;
27484 if test "x$withval" != "xno" ; then
27492 cat >>confdefs.h <<_ACEOF
27493 #define _PATH_BACULA_PIDDIR "$piddir"
27498 subsysdir=/var/run/subsys
27499 if test -d /var/run/subsys; then
27500 subsysdir=/var/run/subsys
27501 elif test -d /var/lock/subsys; then
27502 subsysdir=/var/lock/subsys
27504 subsysdir=/var/run/subsys
27507 # Check whether --with-subsys-dir was given.
27508 if test "${with_subsys_dir+set}" = set; then
27509 withval=$with_subsys_dir;
27510 if test "x$withval" != "xno" ; then
27522 # Check whether --with-baseport was given.
27523 if test "${with_baseport+set}" = set; then
27524 withval=$with_baseport;
27525 if test "x$withval" != "xno" ; then
27534 dir_port=`expr $baseport`
27535 fd_port=`expr $baseport + 1`
27536 sd_port=`expr $fd_port + 1`
27544 # Check whether --with-dir-password was given.
27545 if test "${with_dir_password+set}" = set; then
27546 withval=$with_dir_password;
27547 if test "x$withval" != "xno" ; then
27548 dir_password=$withval
27555 if test "x$dir_password" = "x" ; then
27556 if test "x$OPENSSL" = "xnone" ; then
27557 key=`autoconf/randpass 33`
27559 key=`openssl rand -base64 33`
27566 # Check whether --with-fd-password was given.
27567 if test "${with_fd_password+set}" = set; then
27568 withval=$with_fd_password;
27569 if test "x$withval" != "xno" ; then
27570 fd_password=$withval
27577 if test "x$fd_password" = "x" ; then
27578 if test "x$OPENSSL" = "xnone" ; then
27579 key=`autoconf/randpass 37`
27581 key=`openssl rand -base64 33`
27588 # Check whether --with-sd-password was given.
27589 if test "${with_sd_password+set}" = set; then
27590 withval=$with_sd_password;
27591 if test "x$withval" != "xno" ; then
27592 sd_password=$withval
27599 if test "x$sd_password" = "x" ; then
27600 if test "x$OPENSSL" = "xnone" ; then
27601 key=`autoconf/randpass 41`
27603 key=`openssl rand -base64 33`
27610 # Check whether --with-mon-dir-password was given.
27611 if test "${with_mon_dir_password+set}" = set; then
27612 withval=$with_mon_dir_password;
27613 if test "x$withval" != "xno" ; then
27614 mon_dir_password=$withval
27621 if test "x$mon_dir_password" = "x" ; then
27622 if test "x$OPENSSL" = "xnone" ; then
27623 key=`autoconf/randpass 33`
27625 key=`openssl rand -base64 33`
27627 mon_dir_password=$key
27632 # Check whether --with-mon-fd-password was given.
27633 if test "${with_mon_fd_password+set}" = set; then
27634 withval=$with_mon_fd_password;
27635 if test "x$withval" != "xno" ; then
27636 mon_fd_password=$withval
27643 if test "x$mon_fd_password" = "x" ; then
27644 if test "x$OPENSSL" = "xnone" ; then
27645 key=`autoconf/randpass 37`
27647 key=`openssl rand -base64 33`
27649 mon_fd_password=$key
27654 # Check whether --with-mon-sd-password was given.
27655 if test "${with_mon_sd_password+set}" = set; then
27656 withval=$with_mon_sd_password;
27657 if test "x$withval" != "xno" ; then
27658 mon_sd_password=$withval
27665 if test "x$mon_sd_password" = "x" ; then
27666 if test "x$OPENSSL" = "xnone" ; then
27667 key=`autoconf/randpass 41`
27669 key=`openssl rand -base64 33`
27671 mon_sd_password=$key
27683 # Check whether --with-db_name was given.
27684 if test "${with_db_name+set}" = set; then
27685 withval=$with_db_name;
27686 if test "x$withval" != "x" ; then
27697 # Check whether --with-db_user was given.
27698 if test "${with_db_user+set}" = set; then
27699 withval=$with_db_user;
27700 if test "x$withval" != "x" ; then
27711 # Check whether --with-db_password was given.
27712 if test "${with_db_password+set}" = set; then
27713 withval=$with_db_password;
27714 if test "x$withval" != "x" ; then
27715 db_password=$withval
27725 # Check whether --with-db_port was given.
27726 if test "${with_db_port+set}" = set; then
27727 withval=$with_db_port;
27728 if test "x$withval" != "x" ; then
27738 # Handle users and groups for each daemon
27742 # Check whether --with-dir_user was given.
27743 if test "${with_dir_user+set}" = set; then
27744 withval=$with_dir_user;
27745 if test "x$withval" != "x" ; then
27755 # Check whether --with-dir_group was given.
27756 if test "${with_dir_group+set}" = set; then
27757 withval=$with_dir_group;
27758 if test "x$withval" != "x" ; then
27768 # Check whether --with-sd_user was given.
27769 if test "${with_sd_user+set}" = set; then
27770 withval=$with_sd_user;
27771 if test "x$withval" != "x" ; then
27781 # Check whether --with-sd_group was given.
27782 if test "${with_sd_group+set}" = set; then
27783 withval=$with_sd_group;
27784 if test "x$withval" != "x" ; then
27794 # Check whether --with-fd_user was given.
27795 if test "${with_fd_user+set}" = set; then
27796 withval=$with_fd_user;
27797 if test "x$withval" != "x" ; then
27807 # Check whether --with-fd_group was given.
27808 if test "${with_fd_group+set}" = set; then
27809 withval=$with_fd_group;
27810 if test "x$withval" != "x" ; then
27827 # Check whether --with-sbin-perm was given.
27828 if test "${with_sbin_perm+set}" = set; then
27829 withval=$with_sbin_perm;
27830 if test "x$withval" != "x" ; then
27843 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27844 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27846 # Check whether --with-postgresql was given.
27847 if test "${with_postgresql+set}" = set; then
27848 withval=$with_postgresql;
27849 if test "$withval" != "no"; then
27850 if test "$db_found" = "yes"; then
27851 { echo "$as_me:$LINENO: result: error" >&5
27852 echo "${ECHO_T}error" >&6; }
27853 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27854 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27855 { (exit 1); exit 1; }; };
27857 if test "$withval" = "yes"; then
27858 PG_CONFIG=`which pg_config`
27859 if test -n "$PG_CONFIG";then
27860 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27861 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27862 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27863 elif test -f /usr/local/include/libpq-fe.h; then
27864 POSTGRESQL_INCDIR=/usr/local/include
27865 if test -d /usr/local/lib64; then
27866 POSTGRESQL_LIBDIR=/usr/local/lib64
27868 POSTGRESQL_LIBDIR=/usr/local/lib
27870 POSTGRESQL_BINDIR=/usr/local/bin
27871 elif test -f /usr/include/libpq-fe.h; then
27872 POSTGRESQL_INCDIR=/usr/include
27873 if test -d /usr/lib64; then
27874 POSTGRESQL_LIBDIR=/usr/lib64
27876 POSTGRESQL_LIBDIR=/usr/lib
27878 POSTGRESQL_BINDIR=/usr/bin
27879 elif test -f /usr/include/pgsql/libpq-fe.h; then
27880 POSTGRESQL_INCDIR=/usr/include/pgsql
27881 if test -d /usr/lib64/pgsql; then
27882 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27884 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27886 POSTGRESQL_BINDIR=/usr/bin
27887 elif test -f /usr/include/postgresql/libpq-fe.h; then
27888 POSTGRESQL_INCDIR=/usr/include/postgresql
27889 if test -d /usr/lib64/postgresql; then
27890 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27892 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27894 POSTGRESQL_BINDIR=/usr/bin
27896 { echo "$as_me:$LINENO: result: no" >&5
27897 echo "${ECHO_T}no" >&6; }
27898 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27899 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27900 { (exit 1); exit 1; }; }
27902 elif test -f $withval/include/libpq-fe.h; then
27903 POSTGRESQL_INCDIR=$withval/include
27904 POSTGRESQL_LIBDIR=$withval/lib
27905 POSTGRESQL_BINDIR=$withval/bin
27906 elif test -f $withval/include/postgresql/libpq-fe.h; then
27907 POSTGRESQL_INCDIR=$withval/include/postgresql
27908 if test -d $withval/lib64; then
27909 POSTGRESQL_LIBDIR=$withval/lib64
27911 POSTGRESQL_LIBDIR=$withval/lib
27913 POSTGRESQL_BINDIR=$withval/bin
27915 { echo "$as_me:$LINENO: result: no" >&5
27916 echo "${ECHO_T}no" >&6; }
27917 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27918 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27919 { (exit 1); exit 1; }; }
27921 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27922 { echo "$as_me:$LINENO: checking for crypt" >&5
27923 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27924 if test "${ac_cv_func_crypt+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27935 #define crypt innocuous_crypt
27937 /* System header to define __stub macros and hopefully few prototypes,
27938 which can conflict with char crypt (); below.
27939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27940 <limits.h> exists even on freestanding compilers. */
27943 # include <limits.h>
27945 # include <assert.h>
27950 /* Override any GCC internal prototype to avoid an error.
27951 Use char because int might match the return type of a GCC
27952 builtin and then its argument prototype would still apply. */
27957 /* The GNU C library defines this for functions which it implements
27958 to always fail with ENOSYS. Some functions are actually named
27959 something starting with __ and the normal name is an alias. */
27960 #if defined __stub_crypt || defined __stub___crypt
27972 rm -f conftest.$ac_objext conftest$ac_exeext
27973 if { (ac_try="$ac_link"
27974 case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_link") 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } && {
27986 test -z "$ac_c_werror_flag" ||
27987 test ! -s conftest.err
27988 } && test -s conftest$ac_exeext &&
27989 $as_test_x conftest$ac_exeext; then
27990 ac_cv_func_crypt=yes
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 ac_cv_func_crypt=no
27998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27999 conftest$ac_exeext conftest.$ac_ext
28001 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28002 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28003 if test $ac_cv_func_crypt = yes; then
28006 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28007 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28008 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 ac_check_lib_save_LIBS=$LIBS
28012 LIBS="-lcrypt $LIBS"
28013 cat >conftest.$ac_ext <<_ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h. */
28020 /* Override any GCC internal prototype to avoid an error.
28021 Use char because int might match the return type of a GCC
28022 builtin and then its argument prototype would still apply. */
28035 rm -f conftest.$ac_objext conftest$ac_exeext
28036 if { (ac_try="$ac_link"
28037 case "(($ac_try" in
28038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039 *) ac_try_echo=$ac_try;;
28041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28042 (eval "$ac_link") 2>conftest.er1
28044 grep -v '^ *+' conftest.er1 >conftest.err
28046 cat conftest.err >&5
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); } && {
28049 test -z "$ac_c_werror_flag" ||
28050 test ! -s conftest.err
28051 } && test -s conftest$ac_exeext &&
28052 $as_test_x conftest$ac_exeext; then
28053 ac_cv_lib_crypt_crypt=yes
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28058 ac_cv_lib_crypt_crypt=no
28061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28062 conftest$ac_exeext conftest.$ac_ext
28063 LIBS=$ac_check_lib_save_LIBS
28065 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28066 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28067 if test $ac_cv_lib_crypt_crypt = yes; then
28068 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28073 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28074 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28075 SQL_BINDIR=$POSTGRESQL_BINDIR
28076 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28078 cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_POSTGRESQL 1
28082 { echo "$as_me:$LINENO: result: yes" >&5
28083 echo "${ECHO_T}yes" >&6; }
28085 support_postgresql=yes
28089 { echo "$as_me:$LINENO: result: no" >&5
28090 echo "${ECHO_T}no" >&6; }
28095 { echo "$as_me:$LINENO: result: no" >&5
28096 echo "${ECHO_T}no" >&6; }
28108 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28109 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28111 # Check whether --with-mysql was given.
28112 if test "${with_mysql+set}" = set; then
28113 withval=$with_mysql;
28114 if test "$withval" != "no"; then
28115 if test "$withval" = "yes"; then
28116 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28117 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28118 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28119 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28120 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28122 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28124 MYSQL_BINDIR=/usr/local/mysql/bin
28125 elif test -f /usr/include/mysql/mysql.h; then
28126 MYSQL_INCDIR=/usr/include/mysql
28127 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28128 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28129 MYSQL_LIBDIR=/usr/lib64/mysql
28130 elif test -f /usr/lib64/libmysqlclient_r.a \
28131 -o -f /usr/lib64/libmysqlclient_r.so; then
28132 MYSQL_LIBDIR=/usr/lib64
28133 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28134 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28135 MYSQL_LIBDIR=/usr/lib/mysql
28137 MYSQL_LIBDIR=/usr/lib
28139 MYSQL_BINDIR=/usr/bin
28140 elif test -f /usr/include/mysql.h; then
28141 MYSQL_INCDIR=/usr/include
28142 if test -f /usr/lib64/libmysqlclient_r.a \
28143 -o -f /usr/lib64/libmysqlclient_r.so; then
28144 MYSQL_LIBDIR=/usr/lib64
28146 MYSQL_LIBDIR=/usr/lib
28148 MYSQL_BINDIR=/usr/bin
28149 elif test -f /usr/local/include/mysql/mysql.h; then
28150 MYSQL_INCDIR=/usr/local/include/mysql
28151 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28152 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28153 MYSQL_LIBDIR=/usr/local/lib64/mysql
28155 MYSQL_LIBDIR=/usr/local/lib/mysql
28157 MYSQL_BINDIR=/usr/local/bin
28158 elif test -f /usr/local/include/mysql.h; then
28159 MYSQL_INCDIR=/usr/local/include
28160 if test -f /usr/local/lib64/libmysqlclient_r.a \
28161 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28162 MYSQL_LIBDIR=/usr/local/lib64
28164 MYSQL_LIBDIR=/usr/local/lib
28166 MYSQL_BINDIR=/usr/local/bin
28168 { echo "$as_me:$LINENO: result: no" >&5
28169 echo "${ECHO_T}no" >&6; }
28170 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28171 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28172 { (exit 1); exit 1; }; }
28175 if test -f $withval/include/mysql/mysql.h; then
28176 MYSQL_INCDIR=$withval/include/mysql
28177 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28178 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28179 MYSQL_LIBDIR=$withval/lib64/mysql
28180 elif test -f $withval/lib64/libmysqlclient_r.a \
28181 -o -f $withval/lib64/libmysqlclient_r.so; then
28182 MYSQL_LIBDIR=$withval/lib64
28183 elif test -f $withval/lib/libmysqlclient_r.a \
28184 -o -f $withval/lib/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=$withval/lib
28187 MYSQL_LIBDIR=$withval/lib/mysql
28189 MYSQL_BINDIR=$withval/bin
28190 elif test -f $withval/include/mysql.h; then
28191 MYSQL_INCDIR=$withval/include
28192 if test -f $withval/lib64/libmysqlclient_r.a \
28193 -o -f $withval/lib64/libmysqlclient_r.so; then
28194 MYSQL_LIBDIR=$withval/lib64
28196 MYSQL_LIBDIR=$withval/lib
28198 MYSQL_BINDIR=$withval/bin
28200 { echo "$as_me:$LINENO: result: no" >&5
28201 echo "${ECHO_T}no" >&6; }
28202 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28203 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28204 { (exit 1); exit 1; }; }
28207 SQL_INCLUDE=-I$MYSQL_INCDIR
28208 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28209 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28210 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28211 cat >>confdefs.h <<\_ACEOF
28212 #define HAVE_THREAD_SAFE_MYSQL 1
28216 SQL_BINDIR=$MYSQL_BINDIR
28217 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_MYSQL 1
28224 { echo "$as_me:$LINENO: result: yes" >&5
28225 echo "${ECHO_T}yes" >&6; }
28232 { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28241 # Check whether --with-embedded-mysql was given.
28242 if test "${with_embedded_mysql+set}" = set; then
28243 withval=$with_embedded_mysql;
28244 if test "$withval" != "no"; then
28245 if test "$withval" = "yes"; then
28246 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28247 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28248 if test -d /usr/local/mysql/lib64/mysql; then
28249 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28251 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28253 MYSQL_BINDIR=/usr/local/mysql/bin
28254 elif test -f /usr/include/mysql/mysql.h; then
28255 MYSQL_INCDIR=/usr/include/mysql
28256 if test -d /usr/lib64/mysql; then
28257 MYSQL_LIBDIR=/usr/lib64/mysql
28259 MYSQL_LIBDIR=/usr/lib/mysql
28261 MYSQL_BINDIR=/usr/bin
28262 elif test -f /usr/include/mysql.h; then
28263 MYSQL_INCDIR=/usr/include
28264 if test -d /usr/lib64; then
28265 MYSQL_LIBDIR=/usr/lib64
28267 MYSQL_LIBDIR=/usr/lib
28269 MYSQL_BINDIR=/usr/bin
28270 elif test -f /usr/local/include/mysql/mysql.h; then
28271 MYSQL_INCDIR=/usr/local/include/mysql
28272 if test -d /usr/local/lib64/mysql; then
28273 MYSQL_LIBDIR=/usr/local/lib64/mysql
28275 MYSQL_LIBDIR=/usr/local/lib/mysql
28277 MYSQL_BINDIR=/usr/local/bin
28278 elif test -f /usr/local/include/mysql.h; then
28279 MYSQL_INCDIR=/usr/local/include
28280 if test -d /usr/local/lib64; then
28281 MYSQL_LIBDIR=/usr/local/lib64
28283 MYSQL_LIBDIR=/usr/local/lib
28285 MYSQL_BINDIR=/usr/local/bin
28287 { echo "$as_me:$LINENO: result: no" >&5
28288 echo "${ECHO_T}no" >&6; }
28289 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28290 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28291 { (exit 1); exit 1; }; }
28294 if test -f $withval/include/mysql/mysql.h; then
28295 MYSQL_INCDIR=$withval/include/mysql
28296 if test -d $withval/lib64/mysql; then
28297 MYSQL_LIBDIR=$withval/lib64/mysql
28299 MYSQL_LIBDIR=$withval/lib/mysql
28301 MYSQL_BINDIR=$withval/bin
28302 elif test -f $withval/include/mysql.h; then
28303 MYSQL_INCDIR=$withval/include
28304 if test -d $withval/lib64; then
28305 MYSQL_LIBDIR=$withval/lib64
28307 MYSQL_LIBDIR=$withval/lib
28309 MYSQL_BINDIR=$withval/bin
28311 { echo "$as_me:$LINENO: result: no" >&5
28312 echo "${ECHO_T}no" >&6; }
28313 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28314 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28315 { (exit 1); exit 1; }; }
28318 SQL_INCLUDE=-I$MYSQL_INCDIR
28319 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28320 SQL_BINDIR=$MYSQL_BINDIR
28321 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_MYSQL 1
28327 cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_EMBEDDED_MYSQL 1
28331 { echo "$as_me:$LINENO: result: yes" >&5
28332 echo "${ECHO_T}yes" >&6; }
28339 { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28356 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28357 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28359 # Check whether --with-ingres was given.
28360 if test "${with_ingres+set}" = set; then
28361 withval=$with_ingres;
28362 if test "$withval" != "no"; then
28363 if test "$withval" = "yes"; then
28364 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28365 INGRES_INCDIR=${II_SYSTEM}/files
28366 INGRES_LIBDIR=${II_SYSTEM}/lib
28367 INGRES_BINDIR=${II_SYSTEM}/bin
28368 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28369 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28370 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28371 INGRES_BINDIR=${II_SYSTEM}/bin
28373 { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28375 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28376 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28377 { (exit 1); exit 1; }; }
28380 if test -f $withval/files/eqdefc.h; then
28381 INGRES_INCDIR=$withval/files
28382 INGRES_LIBDIR=$withval/lib
28383 INGRES_BINDIR=$withval/bin
28385 { echo "$as_me:$LINENO: result: no" >&5
28386 echo "${ECHO_T}no" >&6; }
28387 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28388 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28389 { (exit 1); exit 1; }; }
28392 SQL_INCLUDE=-I$INGRES_INCDIR
28393 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28394 SQL_BINDIR=$INGRES_BINDIR
28395 SQL_LIB=$INGRES_LIBDIR/libingres.a
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_INGRES 1
28401 { echo "$as_me:$LINENO: result: yes" >&5
28402 echo "${ECHO_T}yes" >&6; }
28409 { echo "$as_me:$LINENO: result: no" >&5
28410 echo "${ECHO_T}no" >&6; }
28415 { echo "$as_me:$LINENO: result: no" >&5
28416 echo "${ECHO_T}no" >&6; }
28428 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28429 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28431 # Check whether --with-sqlite3 was given.
28432 if test "${with_sqlite3+set}" = set; then
28433 withval=$with_sqlite3;
28434 if test "$withval" != "no"; then
28435 if test "$withval" = "yes"; then
28436 if test -f /usr/local/include/sqlite3.h; then
28437 SQLITE_INCDIR=/usr/local/include
28438 if test -d /usr/local/lib64; then
28439 SQLITE_LIBDIR=/usr/local/lib64
28441 SQLITE_LIBDIR=/usr/local/lib
28443 SQLITE_BINDIR=/usr/local/bin
28444 elif test -f /usr/include/sqlite3.h; then
28445 SQLITE_INCDIR=/usr/include
28446 if test -d /usr/lib64; then
28447 SQLITE_LIBDIR=/usr/lib64
28449 SQLITE_LIBDIR=/usr/lib
28451 SQLITE_BINDIR=/usr/bin
28452 elif test -f $prefix/include/sqlite3.h; then
28453 SQLITE_INCDIR=$prefix/include
28454 if test -d $prefix/lib64; then
28455 SQLITE_LIBDIR=$prefix/lib64
28457 SQLITE_LIBDIR=$prefix/lib
28459 SQLITE_BINDIR=$prefix/bin
28461 { echo "$as_me:$LINENO: result: no" >&5
28462 echo "${ECHO_T}no" >&6; }
28463 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28464 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28465 { (exit 1); exit 1; }; }
28468 if test -f $withval/sqlite3.h; then
28469 SQLITE_INCDIR=$withval
28470 SQLITE_LIBDIR=$withval
28471 SQLITE_BINDIR=$withval
28472 elif test -f $withval/include/sqlite3.h; then
28473 SQLITE_INCDIR=$withval/include
28474 if test -d $withval/lib64; then
28475 SQLITE_LIBDIR=$withval/lib64
28477 SQLITE_LIBDIR=$withval/lib
28479 SQLITE_BINDIR=$withval/bin
28481 { echo "$as_me:$LINENO: result: no" >&5
28482 echo "${ECHO_T}no" >&6; }
28483 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28484 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28485 { (exit 1); exit 1; }; }
28488 SQL_INCLUDE=-I$SQLITE_INCDIR
28489 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28490 SQL_BINDIR=$SQLITE_BINDIR
28491 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28493 cat >>confdefs.h <<\_ACEOF
28494 #define HAVE_SQLITE3 1
28497 { echo "$as_me:$LINENO: result: yes" >&5
28498 echo "${ECHO_T}yes" >&6; }
28500 support_sqlite3=yes
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28511 { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28522 # BA_CHECK_SQLITE_DB
28526 { echo "$as_me:$LINENO: checking for DBI support" >&5
28527 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28529 # Check whether --with-dbi was given.
28530 if test "${with_dbi+set}" = set; then
28532 if test "$withval" != "no"; then
28533 if test "$withval" = "yes"; then
28534 if test -f /usr/local/include/dbi/dbi.h; then
28535 DBI_INCDIR=/usr/local/dbi/include
28536 if test -d /usr/local/lib64; then
28537 DBI_LIBDIR=/usr/local/lib64
28539 DBI_LIBDIR=/usr/local/lib
28541 DBI_BINDIR=/usr/local/bin
28542 elif test -f /usr/include/dbi/dbi.h; then
28543 DBI_INCDIR=/usr/include
28544 if test -d /usr/lib64; then
28545 DBI_LIBDIR=/usr/lib64
28547 DBI_LIBDIR=/usr/lib
28549 DBI_BINDIR=/usr/bin
28550 elif test -f $prefix/include/dbi/dbi.h; then
28551 DBI_INCDIR=$prefix/include
28552 if test -d $prefix/lib64; then
28553 DBI_LIBDIR=$prefix/lib64
28555 DBI_LIBDIR=$prefix/lib
28557 DBI_BINDIR=$prefix/bin
28559 { echo "$as_me:$LINENO: result: no" >&5
28560 echo "${ECHO_T}no" >&6; }
28561 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28562 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28563 { (exit 1); exit 1; }; }
28565 if test -d /usr/local/lib/dbd; then
28566 DRIVERDIR=/usr/local/lib/dbd
28567 if test -d /usr/local/lib64/dbd; then
28568 DRIVERDIR=/usr/local/lib64/dbd
28570 DRIVERDIR=/usr/local/lib/dbd
28572 elif test -d /usr/lib/dbd; then
28573 DRIVERDIR=/usr/lib/dbd
28574 if test -d /usr/lib64/dbd; then
28575 DRIVERDIR=/usr/lib64/dbd
28577 DRIVERDIR=/usr/lib/dbd
28579 elif test -d $prefix/lib/dbd; then
28580 if test -d $prefix/lib64/dbd; then
28581 DRIVERDIR=$prefix/lib64/dbd
28583 DRIVERDIR=$prefix/lib/dbd
28585 elif test -d /usr/local/lib64/dbd; then
28586 DRIVERDIR=/usr/local/lib64/dbd
28587 elif test -d /usr/lib64/dbd; then
28588 DRIVERDIR=/usr/lib64/dbd
28589 elif test -d $prefix/lib64/dbd; then
28590 DRIVERDIR=$prefix/lib64/dbd
28592 { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28595 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28596 { (exit 1); exit 1; }; }
28599 if test -f $withval/dbi.h; then
28600 DBI_INCDIR=$withval
28601 DBI_LIBDIR=$withval
28602 DBI_BINDIR=$withval
28603 elif test -f $withval/include/dbi/dbi.h; then
28604 DBI_INCDIR=$withval/include
28605 if test -d $withval/lib64; then
28606 DBI_LIBDIR=$withval/lib64
28608 DBI_LIBDIR=$withval/lib
28610 DBI_BINDIR=$withval/bin
28612 { echo "$as_me:$LINENO: result: no" >&5
28613 echo "${ECHO_T}no" >&6; }
28614 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28615 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28616 { (exit 1); exit 1; }; }
28618 if test -d $withval/dbd; then
28619 DRIVERDIR=$withval/dbd
28620 elif test -d $withval/lib/; then
28621 if test -d $withval/lib64/dbd; then
28622 DRIVERDIR=$withval/lib64/dbd
28624 DRIVERDIR=$withval/lib/dbd
28626 elif test -d $withval/lib64/dbd; then
28627 DRIVERDIR=$withval/lib64/dbd
28629 { echo "$as_me:$LINENO: result: no" >&5
28630 echo "${ECHO_T}no" >&6; }
28631 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28632 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28633 { (exit 1); exit 1; }; }
28636 SQL_INCLUDE=-I$DBI_INCDIR
28637 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28638 SQL_BINDIR=$DBI_BINDIR
28639 SQL_LIB=$DBI_LIBDIR/libdbi.a
28640 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28643 cat >>confdefs.h <<\_ACEOF
28647 { echo "$as_me:$LINENO: result: yes" >&5
28648 echo "${ECHO_T}yes" >&6; }
28656 { echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6; }
28662 { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28678 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28679 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28681 # Check whether --with-dbi-driver was given.
28682 if test "${with_dbi_driver+set}" = set; then
28683 withval=$with_dbi_driver;
28684 if test "$withval" != "no"; then
28688 if test -f /usr/local/mysql/bin/mysql; then
28689 SQL_BINDIR=/usr/local/mysql/bin
28690 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28691 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28692 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28694 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28696 elif test -f /usr/bin/mysql; then
28697 SQL_BINDIR=/usr/bin
28698 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28699 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28700 SQL_LIBDIR=/usr/lib64/mysql
28701 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28702 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28703 SQL_LIBDIR=/usr/lib/mysql
28705 SQL_LIBDIR=/usr/lib
28707 elif test -f /usr/local/bin/mysql; then
28708 SQL_BINDIR=/usr/local/bin
28709 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28710 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28711 SQL_LIBDIR=/usr/local/lib64/mysql
28712 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28713 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28714 SQL_LIBDIR=/usr/local/lib/mysql
28716 SQL_LIBDIR=/usr/local/lib
28718 elif test -f $withval/bin/mysql; then
28719 SQL_BINDIR=$withval/bin
28720 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28721 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28722 SQL_LIBDIR=$withval/lib64/mysql
28723 elif test -f $withval/lib64/libmysqlclient_r.a \
28724 -o -f $withval/lib64/libmysqlclient_r.so; then
28725 SQL_LIBDIR=$withval/lib64
28726 elif test -f $withval/lib/libmysqlclient_r.a \
28727 -o -f $withval/lib/libmysqlclient_r.so; then
28728 SQL_LIBDIR=$withval/lib/
28730 SQL_LIBDIR=$withval/lib/mysql
28733 { echo "$as_me:$LINENO: result: no" >&5
28734 echo "${ECHO_T}no" >&6; }
28735 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28736 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28737 { (exit 1); exit 1; }; }
28739 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28740 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28742 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28746 db_prog="postgresql"
28747 PG_CONFIG=`which pg_config`
28748 if test -n "$PG_CONFIG"; then
28749 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28750 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28751 elif test -f /usr/local/bin/psql; then
28752 SQL_BINDIR=/usr/local/bin
28753 if test -d /usr/local/lib64; then
28754 SQL_LIBDIR=/usr/local/lib64
28756 SQL_LIBDIR=/usr/local/lib
28758 elif test -f /usr/bin/psql; then
28759 SQL_BINDIR=/usr/local/bin
28760 if test -d /usr/lib64/postgresql; then
28761 SQL_LIBDIR=/usr/lib64/postgresql
28762 elif test -d /usr/lib/postgresql; then
28763 SQL_LIBDIR=/usr/lib/postgresql
28764 elif test -d /usr/lib64; then
28765 SQL_LIBDIR=/usr/lib64
28767 SQL_LIBDIR=/usr/lib
28769 elif test -f $withval/bin/psql; then
28770 SQL_BINDIR=$withval/bin
28771 if test -d $withval/lib64; then
28772 SQL_LIBDIR=$withval/lib64
28774 SQL_LIBDIR=$withval/lib
28777 { echo "$as_me:$LINENO: result: no" >&5
28778 echo "${ECHO_T}no" >&6; }
28779 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28780 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28781 { (exit 1); exit 1; }; }
28783 if test -f $SQL_LIBDIR/libpq.so; then
28784 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28786 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28791 if test -f /usr/local/bin/sqlite; then
28792 SQL_BINDIR=/usr/local/bin
28793 if test -d /usr/local/lib64; then
28794 SQL_LIBDIR=/usr/local/lib64
28796 SQL_LIBDIR=/usr/local/lib
28798 elif test -f /usr/bin/sqlite; then
28799 SQL_BINDIR=/usr/bin
28800 if test -d /usr/lib64; then
28801 SQL_LIBDIR=/usr/lib64
28803 SQL_LIBDIR=/usr/lib
28805 elif test -f $withval/bin/sqlite; then
28806 SQL_BINDIR=$withval/bin
28807 if test -d $withval/lib64; then
28808 SQL_LIBDIR=$withval/lib64
28810 SQL_LIBDIR=$withval/lib
28813 { echo "$as_me:$LINENO: result: no" >&5
28814 echo "${ECHO_T}no" >&6; }
28815 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28816 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28817 { (exit 1); exit 1; }; }
28819 if test -f $SQL_LIBDIR/libsqlite.so; then
28820 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28822 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28827 if test -f /usr/local/bin/sqlite3; then
28828 SQL_BINDIR=/usr/local/bin
28829 if test -d /usr/local/lib64; then
28830 SQL_LIBDIR=/usr/local/lib64
28832 SQL_LIBDIR=/usr/local/lib
28834 elif test -f /usr/bin/sqlite3; then
28835 SQL_BINDIR=/usr/bin
28836 if test -d /usr/lib64; then
28837 SQL_LIBDIR=/usr/lib64
28839 SQL_LIBDIR=/usr/lib
28841 elif test -f $withval/bin/sqlite3; then
28842 SQL_BINDIR=$withval/bin
28843 if test -d $withval/lib64; then
28844 SQL_LIBDIR=$withval/lib64
28846 SQL_LIBDIR=$withval/lib
28849 { echo "$as_me:$LINENO: result: no" >&5
28850 echo "${ECHO_T}no" >&6; }
28851 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28852 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28853 { (exit 1); exit 1; }; }
28855 if test -f $SQL_LIBDIR/libsqlite3.so; then
28856 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28858 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28862 { echo "$as_me:$LINENO: result: no" >&5
28863 echo "${ECHO_T}no" >&6; }
28864 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28865 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28866 { (exit 1); exit 1; }; }
28870 { echo "$as_me:$LINENO: result: yes" >&5
28871 echo "${ECHO_T}yes" >&6; }
28874 { echo "$as_me:$LINENO: result: no" >&5
28875 echo "${ECHO_T}no" >&6; }
28880 { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28894 support_batch_insert=no
28895 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28897 if test $pkg = 0; then
28898 support_batch_insert=yes
28899 # Check whether --enable-batch-insert was given.
28900 if test "${enable_batch_insert+set}" = set; then
28901 enableval=$enable_batch_insert;
28902 if test x$enableval = xno; then
28903 support_batch_insert=no
28905 support_batch_insert=yes
28913 if test x$DB_TYPE = xpostgresql; then
28914 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28915 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28916 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_check_lib_save_LIBS=$LIBS
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28928 /* Override any GCC internal prototype to avoid an error.
28929 Use char because int might match the return type of a GCC
28930 builtin and then its argument prototype would still apply. */
28934 char PQisthreadsafe ();
28938 return PQisthreadsafe ();
28943 rm -f conftest.$ac_objext conftest$ac_exeext
28944 if { (ac_try="$ac_link"
28945 case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_link") 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } && {
28957 test -z "$ac_c_werror_flag" ||
28958 test ! -s conftest.err
28959 } && test -s conftest$ac_exeext &&
28960 $as_test_x conftest$ac_exeext; then
28961 ac_cv_lib_pq_PQisthreadsafe=yes
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ac_cv_lib_pq_PQisthreadsafe=no
28969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28970 conftest$ac_exeext conftest.$ac_ext
28971 LIBS=$ac_check_lib_save_LIBS
28973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28974 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28975 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_PQISTHREADSAFE 1
28983 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28984 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28985 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 ac_check_lib_save_LIBS=$LIBS
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28997 /* Override any GCC internal prototype to avoid an error.
28998 Use char because int might match the return type of a GCC
28999 builtin and then its argument prototype would still apply. */
29003 char PQputCopyData ();
29007 return PQputCopyData ();
29012 rm -f conftest.$ac_objext conftest$ac_exeext
29013 if { (ac_try="$ac_link"
29014 case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_link") 2>conftest.er1
29021 grep -v '^ *+' conftest.er1 >conftest.err
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } && {
29026 test -z "$ac_c_werror_flag" ||
29027 test ! -s conftest.err
29028 } && test -s conftest$ac_exeext &&
29029 $as_test_x conftest$ac_exeext; then
29030 ac_cv_lib_pq_PQputCopyData=yes
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29035 ac_cv_lib_pq_PQputCopyData=no
29038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29039 conftest$ac_exeext conftest.$ac_ext
29040 LIBS=$ac_check_lib_save_LIBS
29042 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29043 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29044 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_PQ_COPY 1
29052 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29054 support_batch_insert=no
29058 if test x$DB_TYPE = xdbi; then
29062 if test $DB_PROG = postgresql; then
29063 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29064 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29065 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 ac_check_lib_save_LIBS=$LIBS
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29077 /* Override any GCC internal prototype to avoid an error.
29078 Use char because int might match the return type of a GCC
29079 builtin and then its argument prototype would still apply. */
29083 char PQisthreadsafe ();
29087 return PQisthreadsafe ();
29092 rm -f conftest.$ac_objext conftest$ac_exeext
29093 if { (ac_try="$ac_link"
29094 case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_link") 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } && {
29106 test -z "$ac_c_werror_flag" ||
29107 test ! -s conftest.err
29108 } && test -s conftest$ac_exeext &&
29109 $as_test_x conftest$ac_exeext; then
29110 ac_cv_lib_pq_PQisthreadsafe=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_lib_pq_PQisthreadsafe=no
29118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29119 conftest$ac_exeext conftest.$ac_ext
29120 LIBS=$ac_check_lib_save_LIBS
29122 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29123 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29124 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29125 cat >>confdefs.h <<\_ACEOF
29126 #define HAVE_PQISTHREADSAFE 1
29131 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29132 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29133 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29134 echo $ECHO_N "(cached) $ECHO_C" >&6
29136 ac_check_lib_save_LIBS=$LIBS
29138 cat >conftest.$ac_ext <<_ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29145 /* Override any GCC internal prototype to avoid an error.
29146 Use char because int might match the return type of a GCC
29147 builtin and then its argument prototype would still apply. */
29151 char PQputCopyData ();
29155 return PQputCopyData ();
29160 rm -f conftest.$ac_objext conftest$ac_exeext
29161 if { (ac_try="$ac_link"
29162 case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_link") 2>conftest.er1
29169 grep -v '^ *+' conftest.er1 >conftest.err
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } && {
29174 test -z "$ac_c_werror_flag" ||
29175 test ! -s conftest.err
29176 } && test -s conftest$ac_exeext &&
29177 $as_test_x conftest$ac_exeext; then
29178 ac_cv_lib_pq_PQputCopyData=yes
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_cv_lib_pq_PQputCopyData=no
29186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29187 conftest$ac_exeext conftest.$ac_ext
29188 LIBS=$ac_check_lib_save_LIBS
29190 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29191 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29192 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29193 cat >>confdefs.h <<\_ACEOF
29194 #define HAVE_PQ_COPY 1
29199 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29203 if test $DB_PROG = mysql; then
29204 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29208 if test $DB_PROG = sqlite3; then
29209 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29213 if test $pkg = 0; then
29214 # Check whether --enable-batch-insert was given.
29215 if test "${enable_batch_insert+set}" = set; then
29216 enableval=$enable_batch_insert;
29217 if test x$enableval = xno; then
29218 support_batch_insert=no
29220 support_batch_insert=yes
29233 if test $support_batch_insert = yes ; then
29235 cat >>confdefs.h <<\_ACEOF
29236 #define HAVE_BATCH_FILE_INSERT 1
29241 cat >>confdefs.h <<\_ACEOF
29242 #define PROTOTYPES 1
29246 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29247 if test -z "$CCOPTS"; then
29248 CCOPTS='-g -O2 -Wall'
29255 largefile_support="no"
29257 # Check whether --enable-largefile was given.
29258 if test "${enable_largefile+set}" = set; then
29259 enableval=$enable_largefile;
29262 if test "$enable_largefile" != no; then
29263 if test -n "$ac_tool_prefix"; then
29264 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29265 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29268 if test "${ac_cv_prog_GETCONF+set}" = set; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29271 if test -n "$GETCONF"; then
29272 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275 for as_dir in $PATH
29278 test -z "$as_dir" && as_dir=.
29279 for ac_exec_ext in '' $ac_executable_extensions; do
29280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29291 GETCONF=$ac_cv_prog_GETCONF
29292 if test -n "$GETCONF"; then
29293 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29294 echo "${ECHO_T}$GETCONF" >&6; }
29296 { echo "$as_me:$LINENO: result: no" >&5
29297 echo "${ECHO_T}no" >&6; }
29302 if test -z "$ac_cv_prog_GETCONF"; then
29303 ac_ct_GETCONF=$GETCONF
29304 # Extract the first word of "getconf", so it can be a program name with args.
29305 set dummy getconf; ac_word=$2
29306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29308 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29311 if test -n "$ac_ct_GETCONF"; then
29312 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29315 for as_dir in $PATH
29318 test -z "$as_dir" && as_dir=.
29319 for ac_exec_ext in '' $ac_executable_extensions; do
29320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29321 ac_cv_prog_ac_ct_GETCONF="getconf"
29322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29331 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29332 if test -n "$ac_ct_GETCONF"; then
29333 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29334 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29336 { echo "$as_me:$LINENO: result: no" >&5
29337 echo "${ECHO_T}no" >&6; }
29340 if test "x$ac_ct_GETCONF" = x; then
29343 case $cross_compiling:$ac_tool_warned in
29345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29346 whose name does not start with the host triplet. If you think this
29347 configuration is useful to you, please write to autoconf@gnu.org." >&5
29348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29349 whose name does not start with the host triplet. If you think this
29350 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29351 ac_tool_warned=yes ;;
29353 GETCONF=$ac_ct_GETCONF
29356 GETCONF="$ac_cv_prog_GETCONF"
29359 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29360 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29361 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29365 ac_cv_sys_largefile_CFLAGS=no
29367 # IRIX 6.2 and later require cc -n32.
29368 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29369 if test "$GCC" != yes; then
29370 ac_cv_sys_largefile_CFLAGS=-n32
29373 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29374 cat >conftest.$ac_ext <<_ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h. */
29389 rm -f conftest.$ac_objext conftest$ac_exeext
29390 if { (ac_try="$ac_link"
29391 case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_link") 2>conftest.er1
29398 grep -v '^ *+' conftest.er1 >conftest.err
29400 cat conftest.err >&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } && {
29403 test -z "$ac_c_werror_flag" ||
29404 test ! -s conftest.err
29405 } && test -s conftest$ac_exeext &&
29406 $as_test_x conftest$ac_exeext; then
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_cv_sys_largefile_CFLAGS=no
29415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29416 conftest$ac_exeext conftest.$ac_ext
29421 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29422 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29423 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29424 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29425 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29428 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29429 ac_cv_sys_largefile_LDFLAGS=no
29433 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29434 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29435 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29436 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29437 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29440 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29441 ac_cv_sys_largefile_LIBS=no
29445 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29446 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29448 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29451 -D_FILE_OFFSET_BITS=*) ;;
29452 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29453 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29458 case "$CPPFLAGS" in
29459 '') CPPFLAGS="$ac_flag" ;;
29460 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29468 '') CFLAGS="$ac_flag" ;;
29469 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29474 case "$ac_cv_sys_largefile_LDFLAGS" in
29478 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29479 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29482 case "$ac_cv_sys_largefile_LIBS" in
29486 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29487 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29490 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29491 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29492 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29493 echo $ECHO_N "(cached) $ECHO_C" >&6
29495 ac_cv_sys_file_offset_bits=no
29496 ac_cv_sys_file_offset_bits=64
29497 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29499 -D_FILE_OFFSET_BITS)
29500 ac_cv_sys_file_offset_bits=1 ;;
29501 -D_FILE_OFFSET_BITS=*)
29502 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29507 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29508 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29509 if test "$ac_cv_sys_file_offset_bits" != no; then
29511 cat >>confdefs.h <<_ACEOF
29512 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29516 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29517 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29518 if test "${ac_cv_sys_largefile_source+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29521 ac_cv_sys_largefile_source=no
29522 ac_cv_sys_largefile_source=1
29523 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29525 -D_LARGEFILE_SOURCE)
29526 ac_cv_sys_largefile_source=1 ;;
29527 -D_LARGEFILE_SOURCE=*)
29528 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29533 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29534 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29535 if test "$ac_cv_sys_largefile_source" != no; then
29537 cat >>confdefs.h <<_ACEOF
29538 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29542 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29543 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29544 if test "${ac_cv_sys_large_files+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 ac_cv_sys_large_files=no
29548 ac_cv_sys_large_files=1
29549 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29552 ac_cv_sys_large_files=1 ;;
29554 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29559 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29561 if test "$ac_cv_sys_large_files" != no; then
29563 cat >>confdefs.h <<_ACEOF
29564 #define _LARGE_FILES $ac_cv_sys_large_files
29571 { echo "$as_me:$LINENO: checking for X" >&5
29572 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29575 # Check whether --with-x was given.
29576 if test "${with_x+set}" = set; then
29580 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29581 if test "x$with_x" = xno; then
29582 # The user explicitly disabled X.
29585 case $x_includes,$x_libraries in #(
29586 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29587 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29588 { (exit 1); exit 1; }; };; #(
29589 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 # One or both of the vars are not set, and there is no cached value.
29593 ac_x_includes=no ac_x_libraries=no
29594 rm -f -r conftest.dir
29595 if mkdir conftest.dir; then
29597 cat >Imakefile <<'_ACEOF'
29599 @echo incroot='${INCROOT}'
29601 @echo usrlibdir='${USRLIBDIR}'
29603 @echo libdir='${LIBDIR}'
29605 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29606 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29607 for ac_var in incroot usrlibdir libdir; do
29608 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29610 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29611 for ac_extension in a so sl; do
29612 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29613 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29614 ac_im_usrlibdir=$ac_im_libdir; break
29617 # Screen out bogus values from the imake configuration. They are
29618 # bogus both because they are the default anyway, and because
29619 # using them would break gcc on systems where it needs fixed includes.
29620 case $ac_im_incroot in
29621 /usr/include) ac_x_includes= ;;
29622 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29624 case $ac_im_usrlibdir in
29625 /usr/lib | /lib) ;;
29626 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29630 rm -f -r conftest.dir
29633 # Standard set of common directories for X headers.
29634 # Check X11 before X11Rn because it is often a symlink to the current release.
29646 /usr/local/X11/include
29647 /usr/local/X11R6/include
29648 /usr/local/X11R5/include
29649 /usr/local/X11R4/include
29651 /usr/local/include/X11
29652 /usr/local/include/X11R6
29653 /usr/local/include/X11R5
29654 /usr/local/include/X11R4
29658 /usr/XFree86/include/X11
29662 /usr/unsupported/include
29663 /usr/athena/include
29664 /usr/local/x11r5/include
29665 /usr/lpp/Xamples/include
29667 /usr/openwin/include
29668 /usr/openwin/share/include'
29670 if test "$ac_x_includes" = no; then
29671 # Guess where to find include files, by looking for Xlib.h.
29672 # First, try using that file with no special directory specified.
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29679 #include <X11/Xlib.h>
29681 if { (ac_try="$ac_cpp conftest.$ac_ext"
29682 case "(($ac_try" in
29683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29689 grep -v '^ *+' conftest.er1 >conftest.err
29691 cat conftest.err >&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } >/dev/null && {
29694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29695 test ! -s conftest.err
29697 # We can compile using X headers with no special include directory.
29700 echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29703 for ac_dir in $ac_x_header_dirs; do
29704 if test -r "$ac_dir/X11/Xlib.h"; then
29705 ac_x_includes=$ac_dir
29711 rm -f conftest.err conftest.$ac_ext
29712 fi # $ac_x_includes = no
29714 if test "$ac_x_libraries" = no; then
29715 # Check for the libraries.
29716 # See if we find them without any special options.
29717 # Don't add to $LIBS permanently.
29720 cat >conftest.$ac_ext <<_ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h. */
29726 #include <X11/Xlib.h>
29735 rm -f conftest.$ac_objext conftest$ac_exeext
29736 if { (ac_try="$ac_link"
29737 case "(($ac_try" in
29738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739 *) ac_try_echo=$ac_try;;
29741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29742 (eval "$ac_link") 2>conftest.er1
29744 grep -v '^ *+' conftest.er1 >conftest.err
29746 cat conftest.err >&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); } && {
29749 test -z "$ac_c_werror_flag" ||
29750 test ! -s conftest.err
29751 } && test -s conftest$ac_exeext &&
29752 $as_test_x conftest$ac_exeext; then
29754 # We can link X programs with no special library path.
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29761 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29763 # Don't even attempt the hair of trying to link an X program!
29764 for ac_extension in a so sl; do
29765 if test -r "$ac_dir/libX11.$ac_extension"; then
29766 ac_x_libraries=$ac_dir
29773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29774 conftest$ac_exeext conftest.$ac_ext
29775 fi # $ac_x_libraries = no
29777 case $ac_x_includes,$ac_x_libraries in #(
29778 no,* | *,no | *\'*)
29779 # Didn't find X, or a directory has "'" in its name.
29780 ac_cv_have_x="have_x=no";; #(
29782 # Record where we found X for the cache.
29783 ac_cv_have_x="have_x=yes\
29784 ac_x_includes='$ac_x_includes'\
29785 ac_x_libraries='$ac_x_libraries'"
29791 eval "$ac_cv_have_x"
29794 if test "$have_x" != yes; then
29795 { echo "$as_me:$LINENO: result: $have_x" >&5
29796 echo "${ECHO_T}$have_x" >&6; }
29799 # If each of the values was on the command line, it overrides each guess.
29800 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29801 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29802 # Update the cache value to reflect the command line values.
29803 ac_cv_have_x="have_x=yes\
29804 ac_x_includes='$x_includes'\
29805 ac_x_libraries='$x_libraries'"
29806 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29807 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29810 if test "$no_x" = yes; then
29811 # Not all programs may use this symbol, but it does not hurt to define it.
29813 cat >>confdefs.h <<\_ACEOF
29814 #define X_DISPLAY_MISSING 1
29817 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29819 if test -n "$x_includes"; then
29820 X_CFLAGS="$X_CFLAGS -I$x_includes"
29823 # It would also be nice to do this for all -L options, not just this one.
29824 if test -n "$x_libraries"; then
29825 X_LIBS="$X_LIBS -L$x_libraries"
29826 # For Solaris; some versions of Sun CC require a space after -R and
29827 # others require no space. Words are not sufficient . . . .
29828 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29829 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29830 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29831 ac_xsave_c_werror_flag=$ac_c_werror_flag
29832 ac_c_werror_flag=yes
29833 cat >conftest.$ac_ext <<_ACEOF
29836 cat confdefs.h >>conftest.$ac_ext
29837 cat >>conftest.$ac_ext <<_ACEOF
29838 /* end confdefs.h. */
29848 rm -f conftest.$ac_objext conftest$ac_exeext
29849 if { (ac_try="$ac_link"
29850 case "(($ac_try" in
29851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852 *) ac_try_echo=$ac_try;;
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855 (eval "$ac_link") 2>conftest.er1
29857 grep -v '^ *+' conftest.er1 >conftest.err
29859 cat conftest.err >&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } && {
29862 test -z "$ac_c_werror_flag" ||
29863 test ! -s conftest.err
29864 } && test -s conftest$ac_exeext &&
29865 $as_test_x conftest$ac_exeext; then
29866 { echo "$as_me:$LINENO: result: no" >&5
29867 echo "${ECHO_T}no" >&6; }
29868 X_LIBS="$X_LIBS -R$x_libraries"
29870 echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29873 LIBS="$ac_xsave_LIBS -R $x_libraries"
29874 cat >conftest.$ac_ext <<_ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h. */
29889 rm -f conftest.$ac_objext conftest$ac_exeext
29890 if { (ac_try="$ac_link"
29891 case "(($ac_try" in
29892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29893 *) ac_try_echo=$ac_try;;
29895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29896 (eval "$ac_link") 2>conftest.er1
29898 grep -v '^ *+' conftest.er1 >conftest.err
29900 cat conftest.err >&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } && {
29903 test -z "$ac_c_werror_flag" ||
29904 test ! -s conftest.err
29905 } && test -s conftest$ac_exeext &&
29906 $as_test_x conftest$ac_exeext; then
29907 { echo "$as_me:$LINENO: result: yes" >&5
29908 echo "${ECHO_T}yes" >&6; }
29909 X_LIBS="$X_LIBS -R $x_libraries"
29911 echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29914 { echo "$as_me:$LINENO: result: neither works" >&5
29915 echo "${ECHO_T}neither works" >&6; }
29918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29919 conftest$ac_exeext conftest.$ac_ext
29922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29923 conftest$ac_exeext conftest.$ac_ext
29924 ac_c_werror_flag=$ac_xsave_c_werror_flag
29925 LIBS=$ac_xsave_LIBS
29928 # Check for system-dependent libraries X programs must link with.
29929 # Do this before checking for the system-independent R6 libraries
29930 # (-lICE), since we may need -lsocket or whatever for X linking.
29932 if test "$ISC" = yes; then
29933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29935 # Martyn Johnson says this is needed for Ultrix, if the X
29936 # libraries were built with DECnet support. And Karl Berry says
29937 # the Alpha needs dnet_stub (dnet does not exist).
29938 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29939 cat >conftest.$ac_ext <<_ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29946 /* Override any GCC internal prototype to avoid an error.
29947 Use char because int might match the return type of a GCC
29948 builtin and then its argument prototype would still apply. */
29952 char XOpenDisplay ();
29956 return XOpenDisplay ();
29961 rm -f conftest.$ac_objext conftest$ac_exeext
29962 if { (ac_try="$ac_link"
29963 case "(($ac_try" in
29964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965 *) ac_try_echo=$ac_try;;
29967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968 (eval "$ac_link") 2>conftest.er1
29970 grep -v '^ *+' conftest.er1 >conftest.err
29972 cat conftest.err >&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } && {
29975 test -z "$ac_c_werror_flag" ||
29976 test ! -s conftest.err
29977 } && test -s conftest$ac_exeext &&
29978 $as_test_x conftest$ac_exeext; then
29981 echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29984 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29985 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29986 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29987 echo $ECHO_N "(cached) $ECHO_C" >&6
29989 ac_check_lib_save_LIBS=$LIBS
29990 LIBS="-ldnet $LIBS"
29991 cat >conftest.$ac_ext <<_ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h. */
29998 /* Override any GCC internal prototype to avoid an error.
29999 Use char because int might match the return type of a GCC
30000 builtin and then its argument prototype would still apply. */
30008 return dnet_ntoa ();
30013 rm -f conftest.$ac_objext conftest$ac_exeext
30014 if { (ac_try="$ac_link"
30015 case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_link") 2>conftest.er1
30022 grep -v '^ *+' conftest.er1 >conftest.err
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } && {
30027 test -z "$ac_c_werror_flag" ||
30028 test ! -s conftest.err
30029 } && test -s conftest$ac_exeext &&
30030 $as_test_x conftest$ac_exeext; then
30031 ac_cv_lib_dnet_dnet_ntoa=yes
30033 echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30036 ac_cv_lib_dnet_dnet_ntoa=no
30039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30040 conftest$ac_exeext conftest.$ac_ext
30041 LIBS=$ac_check_lib_save_LIBS
30043 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30044 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30046 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30049 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30050 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30051 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30052 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30053 echo $ECHO_N "(cached) $ECHO_C" >&6
30055 ac_check_lib_save_LIBS=$LIBS
30056 LIBS="-ldnet_stub $LIBS"
30057 cat >conftest.$ac_ext <<_ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h. */
30064 /* Override any GCC internal prototype to avoid an error.
30065 Use char because int might match the return type of a GCC
30066 builtin and then its argument prototype would still apply. */
30074 return dnet_ntoa ();
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (ac_try="$ac_link"
30081 case "(($ac_try" in
30082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083 *) ac_try_echo=$ac_try;;
30085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30086 (eval "$ac_link") 2>conftest.er1
30088 grep -v '^ *+' conftest.er1 >conftest.err
30090 cat conftest.err >&5
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); } && {
30093 test -z "$ac_c_werror_flag" ||
30094 test ! -s conftest.err
30095 } && test -s conftest$ac_exeext &&
30096 $as_test_x conftest$ac_exeext; then
30097 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30099 echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.$ac_ext >&5
30102 ac_cv_lib_dnet_stub_dnet_ntoa=no
30105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30106 conftest$ac_exeext conftest.$ac_ext
30107 LIBS=$ac_check_lib_save_LIBS
30109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30110 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30111 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30119 conftest$ac_exeext conftest.$ac_ext
30120 LIBS="$ac_xsave_LIBS"
30122 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30123 # to get the SysV transport functions.
30124 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30126 # The nsl library prevents programs from opening the X display
30127 # on Irix 5.2, according to T.E. Dickey.
30128 # The functions gethostbyname, getservbyname, and inet_addr are
30129 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30130 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30131 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30132 if test "${ac_cv_func_gethostbyname+set}" = set; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 cat >conftest.$ac_ext <<_ACEOF
30138 cat confdefs.h >>conftest.$ac_ext
30139 cat >>conftest.$ac_ext <<_ACEOF
30140 /* end confdefs.h. */
30141 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30143 #define gethostbyname innocuous_gethostbyname
30145 /* System header to define __stub macros and hopefully few prototypes,
30146 which can conflict with char gethostbyname (); below.
30147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30148 <limits.h> exists even on freestanding compilers. */
30151 # include <limits.h>
30153 # include <assert.h>
30156 #undef gethostbyname
30158 /* Override any GCC internal prototype to avoid an error.
30159 Use char because int might match the return type of a GCC
30160 builtin and then its argument prototype would still apply. */
30164 char gethostbyname ();
30165 /* The GNU C library defines this for functions which it implements
30166 to always fail with ENOSYS. Some functions are actually named
30167 something starting with __ and the normal name is an alias. */
30168 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30175 return gethostbyname ();
30180 rm -f conftest.$ac_objext conftest$ac_exeext
30181 if { (ac_try="$ac_link"
30182 case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_link") 2>conftest.er1
30189 grep -v '^ *+' conftest.er1 >conftest.err
30191 cat conftest.err >&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); } && {
30194 test -z "$ac_c_werror_flag" ||
30195 test ! -s conftest.err
30196 } && test -s conftest$ac_exeext &&
30197 $as_test_x conftest$ac_exeext; then
30198 ac_cv_func_gethostbyname=yes
30200 echo "$as_me: failed program was:" >&5
30201 sed 's/^/| /' conftest.$ac_ext >&5
30203 ac_cv_func_gethostbyname=no
30206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30207 conftest$ac_exeext conftest.$ac_ext
30209 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30210 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30212 if test $ac_cv_func_gethostbyname = no; then
30213 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30214 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30215 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 ac_check_lib_save_LIBS=$LIBS
30220 cat >conftest.$ac_ext <<_ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h. */
30227 /* Override any GCC internal prototype to avoid an error.
30228 Use char because int might match the return type of a GCC
30229 builtin and then its argument prototype would still apply. */
30233 char gethostbyname ();
30237 return gethostbyname ();
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (ac_try="$ac_link"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_link") 2>conftest.er1
30251 grep -v '^ *+' conftest.er1 >conftest.err
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } && {
30256 test -z "$ac_c_werror_flag" ||
30257 test ! -s conftest.err
30258 } && test -s conftest$ac_exeext &&
30259 $as_test_x conftest$ac_exeext; then
30260 ac_cv_lib_nsl_gethostbyname=yes
30262 echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30265 ac_cv_lib_nsl_gethostbyname=no
30268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30269 conftest$ac_exeext conftest.$ac_ext
30270 LIBS=$ac_check_lib_save_LIBS
30272 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30273 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30274 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30278 if test $ac_cv_lib_nsl_gethostbyname = no; then
30279 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30280 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30281 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30284 ac_check_lib_save_LIBS=$LIBS
30286 cat >conftest.$ac_ext <<_ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h. */
30293 /* Override any GCC internal prototype to avoid an error.
30294 Use char because int might match the return type of a GCC
30295 builtin and then its argument prototype would still apply. */
30299 char gethostbyname ();
30303 return gethostbyname ();
30308 rm -f conftest.$ac_objext conftest$ac_exeext
30309 if { (ac_try="$ac_link"
30310 case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_link") 2>conftest.er1
30317 grep -v '^ *+' conftest.er1 >conftest.err
30319 cat conftest.err >&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } && {
30322 test -z "$ac_c_werror_flag" ||
30323 test ! -s conftest.err
30324 } && test -s conftest$ac_exeext &&
30325 $as_test_x conftest$ac_exeext; then
30326 ac_cv_lib_bsd_gethostbyname=yes
30328 echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30331 ac_cv_lib_bsd_gethostbyname=no
30334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30335 conftest$ac_exeext conftest.$ac_ext
30336 LIBS=$ac_check_lib_save_LIBS
30338 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30339 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30340 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30347 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30348 # socket/setsockopt and other routines are undefined under SCO ODT
30349 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30350 # on later versions), says Simon Leinen: it contains gethostby*
30351 # variants that don't use the name server (or something). -lsocket
30352 # must be given before -lnsl if both are needed. We assume that
30353 # if connect needs -lnsl, so does gethostbyname.
30354 { echo "$as_me:$LINENO: checking for connect" >&5
30355 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30356 if test "${ac_cv_func_connect+set}" = set; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30359 cat >conftest.$ac_ext <<_ACEOF
30362 cat confdefs.h >>conftest.$ac_ext
30363 cat >>conftest.$ac_ext <<_ACEOF
30364 /* end confdefs.h. */
30365 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30367 #define connect innocuous_connect
30369 /* System header to define __stub macros and hopefully few prototypes,
30370 which can conflict with char connect (); below.
30371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30372 <limits.h> exists even on freestanding compilers. */
30375 # include <limits.h>
30377 # include <assert.h>
30382 /* Override any GCC internal prototype to avoid an error.
30383 Use char because int might match the return type of a GCC
30384 builtin and then its argument prototype would still apply. */
30389 /* The GNU C library defines this for functions which it implements
30390 to always fail with ENOSYS. Some functions are actually named
30391 something starting with __ and the normal name is an alias. */
30392 #if defined __stub_connect || defined __stub___connect
30404 rm -f conftest.$ac_objext conftest$ac_exeext
30405 if { (ac_try="$ac_link"
30406 case "(($ac_try" in
30407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30408 *) ac_try_echo=$ac_try;;
30410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30411 (eval "$ac_link") 2>conftest.er1
30413 grep -v '^ *+' conftest.er1 >conftest.err
30415 cat conftest.err >&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); } && {
30418 test -z "$ac_c_werror_flag" ||
30419 test ! -s conftest.err
30420 } && test -s conftest$ac_exeext &&
30421 $as_test_x conftest$ac_exeext; then
30422 ac_cv_func_connect=yes
30424 echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30427 ac_cv_func_connect=no
30430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30431 conftest$ac_exeext conftest.$ac_ext
30433 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30434 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30436 if test $ac_cv_func_connect = no; then
30437 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30438 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30439 if test "${ac_cv_lib_socket_connect+set}" = set; then
30440 echo $ECHO_N "(cached) $ECHO_C" >&6
30442 ac_check_lib_save_LIBS=$LIBS
30443 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30444 cat >conftest.$ac_ext <<_ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h. */
30451 /* Override any GCC internal prototype to avoid an error.
30452 Use char because int might match the return type of a GCC
30453 builtin and then its argument prototype would still apply. */
30466 rm -f conftest.$ac_objext conftest$ac_exeext
30467 if { (ac_try="$ac_link"
30468 case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_link") 2>conftest.er1
30475 grep -v '^ *+' conftest.er1 >conftest.err
30477 cat conftest.err >&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } && {
30480 test -z "$ac_c_werror_flag" ||
30481 test ! -s conftest.err
30482 } && test -s conftest$ac_exeext &&
30483 $as_test_x conftest$ac_exeext; then
30484 ac_cv_lib_socket_connect=yes
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ac_cv_lib_socket_connect=no
30492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30493 conftest$ac_exeext conftest.$ac_ext
30494 LIBS=$ac_check_lib_save_LIBS
30496 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30497 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30498 if test $ac_cv_lib_socket_connect = yes; then
30499 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30504 # Guillermo Gomez says -lposix is necessary on A/UX.
30505 { echo "$as_me:$LINENO: checking for remove" >&5
30506 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30507 if test "${ac_cv_func_remove+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30510 cat >conftest.$ac_ext <<_ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30518 #define remove innocuous_remove
30520 /* System header to define __stub macros and hopefully few prototypes,
30521 which can conflict with char remove (); below.
30522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30523 <limits.h> exists even on freestanding compilers. */
30526 # include <limits.h>
30528 # include <assert.h>
30533 /* Override any GCC internal prototype to avoid an error.
30534 Use char because int might match the return type of a GCC
30535 builtin and then its argument prototype would still apply. */
30540 /* The GNU C library defines this for functions which it implements
30541 to always fail with ENOSYS. Some functions are actually named
30542 something starting with __ and the normal name is an alias. */
30543 #if defined __stub_remove || defined __stub___remove
30555 rm -f conftest.$ac_objext conftest$ac_exeext
30556 if { (ac_try="$ac_link"
30557 case "(($ac_try" in
30558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559 *) ac_try_echo=$ac_try;;
30561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562 (eval "$ac_link") 2>conftest.er1
30564 grep -v '^ *+' conftest.er1 >conftest.err
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } && {
30569 test -z "$ac_c_werror_flag" ||
30570 test ! -s conftest.err
30571 } && test -s conftest$ac_exeext &&
30572 $as_test_x conftest$ac_exeext; then
30573 ac_cv_func_remove=yes
30575 echo "$as_me: failed program was:" >&5
30576 sed 's/^/| /' conftest.$ac_ext >&5
30578 ac_cv_func_remove=no
30581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30582 conftest$ac_exeext conftest.$ac_ext
30584 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30585 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30587 if test $ac_cv_func_remove = no; then
30588 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30589 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30590 if test "${ac_cv_lib_posix_remove+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30593 ac_check_lib_save_LIBS=$LIBS
30594 LIBS="-lposix $LIBS"
30595 cat >conftest.$ac_ext <<_ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h. */
30602 /* Override any GCC internal prototype to avoid an error.
30603 Use char because int might match the return type of a GCC
30604 builtin and then its argument prototype would still apply. */
30617 rm -f conftest.$ac_objext conftest$ac_exeext
30618 if { (ac_try="$ac_link"
30619 case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_link") 2>conftest.er1
30626 grep -v '^ *+' conftest.er1 >conftest.err
30628 cat conftest.err >&5
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } && {
30631 test -z "$ac_c_werror_flag" ||
30632 test ! -s conftest.err
30633 } && test -s conftest$ac_exeext &&
30634 $as_test_x conftest$ac_exeext; then
30635 ac_cv_lib_posix_remove=yes
30637 echo "$as_me: failed program was:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30640 ac_cv_lib_posix_remove=no
30643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30644 conftest$ac_exeext conftest.$ac_ext
30645 LIBS=$ac_check_lib_save_LIBS
30647 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30648 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30649 if test $ac_cv_lib_posix_remove = yes; then
30650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30655 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30656 { echo "$as_me:$LINENO: checking for shmat" >&5
30657 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30658 if test "${ac_cv_func_shmat+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30661 cat >conftest.$ac_ext <<_ACEOF
30664 cat confdefs.h >>conftest.$ac_ext
30665 cat >>conftest.$ac_ext <<_ACEOF
30666 /* end confdefs.h. */
30667 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30669 #define shmat innocuous_shmat
30671 /* System header to define __stub macros and hopefully few prototypes,
30672 which can conflict with char shmat (); below.
30673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30674 <limits.h> exists even on freestanding compilers. */
30677 # include <limits.h>
30679 # include <assert.h>
30684 /* Override any GCC internal prototype to avoid an error.
30685 Use char because int might match the return type of a GCC
30686 builtin and then its argument prototype would still apply. */
30691 /* The GNU C library defines this for functions which it implements
30692 to always fail with ENOSYS. Some functions are actually named
30693 something starting with __ and the normal name is an alias. */
30694 #if defined __stub_shmat || defined __stub___shmat
30706 rm -f conftest.$ac_objext conftest$ac_exeext
30707 if { (ac_try="$ac_link"
30708 case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713 (eval "$ac_link") 2>conftest.er1
30715 grep -v '^ *+' conftest.er1 >conftest.err
30717 cat conftest.err >&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } && {
30720 test -z "$ac_c_werror_flag" ||
30721 test ! -s conftest.err
30722 } && test -s conftest$ac_exeext &&
30723 $as_test_x conftest$ac_exeext; then
30724 ac_cv_func_shmat=yes
30726 echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30729 ac_cv_func_shmat=no
30732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30733 conftest$ac_exeext conftest.$ac_ext
30735 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30736 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30738 if test $ac_cv_func_shmat = no; then
30739 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30740 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30741 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30744 ac_check_lib_save_LIBS=$LIBS
30746 cat >conftest.$ac_ext <<_ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30753 /* Override any GCC internal prototype to avoid an error.
30754 Use char because int might match the return type of a GCC
30755 builtin and then its argument prototype would still apply. */
30768 rm -f conftest.$ac_objext conftest$ac_exeext
30769 if { (ac_try="$ac_link"
30770 case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_link") 2>conftest.er1
30777 grep -v '^ *+' conftest.er1 >conftest.err
30779 cat conftest.err >&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); } && {
30782 test -z "$ac_c_werror_flag" ||
30783 test ! -s conftest.err
30784 } && test -s conftest$ac_exeext &&
30785 $as_test_x conftest$ac_exeext; then
30786 ac_cv_lib_ipc_shmat=yes
30788 echo "$as_me: failed program was:" >&5
30789 sed 's/^/| /' conftest.$ac_ext >&5
30791 ac_cv_lib_ipc_shmat=no
30794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30795 conftest$ac_exeext conftest.$ac_ext
30796 LIBS=$ac_check_lib_save_LIBS
30798 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30799 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30800 if test $ac_cv_lib_ipc_shmat = yes; then
30801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30807 # Check for libraries that X11R6 Xt/Xaw programs need.
30808 ac_save_LDFLAGS=$LDFLAGS
30809 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30810 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30811 # check for ICE first), but we must link in the order -lSM -lICE or
30812 # we get undefined symbols. So assume we have SM if we have ICE.
30813 # These have to be linked with before -lX11, unlike the other
30814 # libraries we check for below, so use a different variable.
30815 # John Interrante, Karl Berry
30816 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30817 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30818 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30819 echo $ECHO_N "(cached) $ECHO_C" >&6
30821 ac_check_lib_save_LIBS=$LIBS
30822 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30823 cat >conftest.$ac_ext <<_ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h. */
30830 /* Override any GCC internal prototype to avoid an error.
30831 Use char because int might match the return type of a GCC
30832 builtin and then its argument prototype would still apply. */
30836 char IceConnectionNumber ();
30840 return IceConnectionNumber ();
30845 rm -f conftest.$ac_objext conftest$ac_exeext
30846 if { (ac_try="$ac_link"
30847 case "(($ac_try" in
30848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30849 *) ac_try_echo=$ac_try;;
30851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30852 (eval "$ac_link") 2>conftest.er1
30854 grep -v '^ *+' conftest.er1 >conftest.err
30856 cat conftest.err >&5
30857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858 (exit $ac_status); } && {
30859 test -z "$ac_c_werror_flag" ||
30860 test ! -s conftest.err
30861 } && test -s conftest$ac_exeext &&
30862 $as_test_x conftest$ac_exeext; then
30863 ac_cv_lib_ICE_IceConnectionNumber=yes
30865 echo "$as_me: failed program was:" >&5
30866 sed 's/^/| /' conftest.$ac_ext >&5
30868 ac_cv_lib_ICE_IceConnectionNumber=no
30871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30872 conftest$ac_exeext conftest.$ac_ext
30873 LIBS=$ac_check_lib_save_LIBS
30875 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30876 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30877 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30878 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30881 LDFLAGS=$ac_save_LDFLAGS
30947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30952 echo $ECHO_N "(cached) $ECHO_C" >&6
30954 ac_res=`eval echo '${'$as_ac_Header'}'`
30955 { echo "$as_me:$LINENO: result: $ac_res" >&5
30956 echo "${ECHO_T}$ac_res" >&6; }
30958 # Is the header compilable?
30959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30961 cat >conftest.$ac_ext <<_ACEOF
30964 cat confdefs.h >>conftest.$ac_ext
30965 cat >>conftest.$ac_ext <<_ACEOF
30966 /* end confdefs.h. */
30967 $ac_includes_default
30968 #include <$ac_header>
30970 rm -f conftest.$ac_objext
30971 if { (ac_try="$ac_compile"
30972 case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_compile") 2>conftest.er1
30979 grep -v '^ *+' conftest.er1 >conftest.err
30981 cat conftest.err >&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } && {
30984 test -z "$ac_c_werror_flag" ||
30985 test ! -s conftest.err
30986 } && test -s conftest.$ac_objext; then
30987 ac_header_compiler=yes
30989 echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30992 ac_header_compiler=no
30995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30997 echo "${ECHO_T}$ac_header_compiler" >&6; }
30999 # Is the header present?
31000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31008 #include <$ac_header>
31010 if { (ac_try="$ac_cpp conftest.$ac_ext"
31011 case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31018 grep -v '^ *+' conftest.er1 >conftest.err
31020 cat conftest.err >&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); } >/dev/null && {
31023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31024 test ! -s conftest.err
31026 ac_header_preproc=yes
31028 echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31031 ac_header_preproc=no
31034 rm -f conftest.err conftest.$ac_ext
31035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31036 echo "${ECHO_T}$ac_header_preproc" >&6; }
31038 # So? What about this header?
31039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31045 ac_header_preproc=yes
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31066 echo $ECHO_N "(cached) $ECHO_C" >&6
31068 eval "$as_ac_Header=\$ac_header_preproc"
31070 ac_res=`eval echo '${'$as_ac_Header'}'`
31071 { echo "$as_me:$LINENO: result: $ac_res" >&5
31072 echo "${ECHO_T}$ac_res" >&6; }
31075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31076 cat >>confdefs.h <<_ACEOF
31077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31084 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31086 if test "${ac_cv_header_stdc+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31089 cat >conftest.$ac_ext <<_ACEOF
31092 cat confdefs.h >>conftest.$ac_ext
31093 cat >>conftest.$ac_ext <<_ACEOF
31094 /* end confdefs.h. */
31095 #include <stdlib.h>
31096 #include <stdarg.h>
31097 #include <string.h>
31108 rm -f conftest.$ac_objext
31109 if { (ac_try="$ac_compile"
31110 case "(($ac_try" in
31111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112 *) ac_try_echo=$ac_try;;
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115 (eval "$ac_compile") 2>conftest.er1
31117 grep -v '^ *+' conftest.er1 >conftest.err
31119 cat conftest.err >&5
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } && {
31122 test -z "$ac_c_werror_flag" ||
31123 test ! -s conftest.err
31124 } && test -s conftest.$ac_objext; then
31125 ac_cv_header_stdc=yes
31127 echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31130 ac_cv_header_stdc=no
31133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31135 if test $ac_cv_header_stdc = yes; then
31136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31137 cat >conftest.$ac_ext <<_ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h. */
31143 #include <string.h>
31146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31147 $EGREP "memchr" >/dev/null 2>&1; then
31150 ac_cv_header_stdc=no
31156 if test $ac_cv_header_stdc = yes; then
31157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31158 cat >conftest.$ac_ext <<_ACEOF
31161 cat confdefs.h >>conftest.$ac_ext
31162 cat >>conftest.$ac_ext <<_ACEOF
31163 /* end confdefs.h. */
31164 #include <stdlib.h>
31167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31168 $EGREP "free" >/dev/null 2>&1; then
31171 ac_cv_header_stdc=no
31177 if test $ac_cv_header_stdc = yes; then
31178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31179 if test "$cross_compiling" = yes; then
31182 cat >conftest.$ac_ext <<_ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31189 #include <stdlib.h>
31190 #if ((' ' & 0x0FF) == 0x020)
31191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31194 # define ISLOWER(c) \
31195 (('a' <= (c) && (c) <= 'i') \
31196 || ('j' <= (c) && (c) <= 'r') \
31197 || ('s' <= (c) && (c) <= 'z'))
31198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31206 for (i = 0; i < 256; i++)
31207 if (XOR (islower (i), ISLOWER (i))
31208 || toupper (i) != TOUPPER (i))
31213 rm -f conftest$ac_exeext
31214 if { (ac_try="$ac_link"
31215 case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_link") 2>&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31224 { (case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_try") 2>&5
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
31235 echo "$as_me: program exited with status $ac_status" >&5
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ( exit $ac_status )
31240 ac_cv_header_stdc=no
31242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31248 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31249 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31250 if test $ac_cv_header_stdc = yes; then
31252 cat >>confdefs.h <<\_ACEOF
31253 #define STDC_HEADERS 1
31258 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31259 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31260 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31261 echo $ECHO_N "(cached) $ECHO_C" >&6
31263 cat >conftest.$ac_ext <<_ACEOF
31266 cat confdefs.h >>conftest.$ac_ext
31267 cat >>conftest.$ac_ext <<_ACEOF
31268 /* end confdefs.h. */
31269 #include <sys/types.h>
31273 return makedev(0, 0);
31278 rm -f conftest.$ac_objext conftest$ac_exeext
31279 if { (ac_try="$ac_link"
31280 case "(($ac_try" in
31281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282 *) ac_try_echo=$ac_try;;
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_link") 2>conftest.er1
31287 grep -v '^ *+' conftest.er1 >conftest.err
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } && {
31292 test -z "$ac_c_werror_flag" ||
31293 test ! -s conftest.err
31294 } && test -s conftest$ac_exeext &&
31295 $as_test_x conftest$ac_exeext; then
31296 ac_cv_header_sys_types_h_makedev=yes
31298 echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31301 ac_cv_header_sys_types_h_makedev=no
31304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31305 conftest$ac_exeext conftest.$ac_ext
31308 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31309 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31311 if test $ac_cv_header_sys_types_h_makedev = no; then
31312 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31313 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31314 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31318 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31319 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31321 # Is the header compilable?
31322 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31323 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31324 cat >conftest.$ac_ext <<_ACEOF
31327 cat confdefs.h >>conftest.$ac_ext
31328 cat >>conftest.$ac_ext <<_ACEOF
31329 /* end confdefs.h. */
31330 $ac_includes_default
31331 #include <sys/mkdev.h>
31333 rm -f conftest.$ac_objext
31334 if { (ac_try="$ac_compile"
31335 case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_compile") 2>conftest.er1
31342 grep -v '^ *+' conftest.er1 >conftest.err
31344 cat conftest.err >&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); } && {
31347 test -z "$ac_c_werror_flag" ||
31348 test ! -s conftest.err
31349 } && test -s conftest.$ac_objext; then
31350 ac_header_compiler=yes
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ac_header_compiler=no
31358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31360 echo "${ECHO_T}$ac_header_compiler" >&6; }
31362 # Is the header present?
31363 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31364 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31365 cat >conftest.$ac_ext <<_ACEOF
31368 cat confdefs.h >>conftest.$ac_ext
31369 cat >>conftest.$ac_ext <<_ACEOF
31370 /* end confdefs.h. */
31371 #include <sys/mkdev.h>
31373 if { (ac_try="$ac_cpp conftest.$ac_ext"
31374 case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31381 grep -v '^ *+' conftest.er1 >conftest.err
31383 cat conftest.err >&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); } >/dev/null && {
31386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31387 test ! -s conftest.err
31389 ac_header_preproc=yes
31391 echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31394 ac_header_preproc=no
31397 rm -f conftest.err conftest.$ac_ext
31398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31399 echo "${ECHO_T}$ac_header_preproc" >&6; }
31401 # So? What about this header?
31402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31404 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31405 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31406 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31407 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31408 ac_header_preproc=yes
31411 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31412 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31413 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31414 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31415 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31416 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31417 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31418 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31419 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31420 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31421 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31422 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31426 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31427 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31428 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31429 echo $ECHO_N "(cached) $ECHO_C" >&6
31431 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31433 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31434 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31437 if test $ac_cv_header_sys_mkdev_h = yes; then
31439 cat >>confdefs.h <<\_ACEOF
31440 #define MAJOR_IN_MKDEV 1
31447 if test $ac_cv_header_sys_mkdev_h = no; then
31448 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31449 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31450 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31451 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31452 echo $ECHO_N "(cached) $ECHO_C" >&6
31454 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31455 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31457 # Is the header compilable?
31458 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31459 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31460 cat >conftest.$ac_ext <<_ACEOF
31463 cat confdefs.h >>conftest.$ac_ext
31464 cat >>conftest.$ac_ext <<_ACEOF
31465 /* end confdefs.h. */
31466 $ac_includes_default
31467 #include <sys/sysmacros.h>
31469 rm -f conftest.$ac_objext
31470 if { (ac_try="$ac_compile"
31471 case "(($ac_try" in
31472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473 *) ac_try_echo=$ac_try;;
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476 (eval "$ac_compile") 2>conftest.er1
31478 grep -v '^ *+' conftest.er1 >conftest.err
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } && {
31483 test -z "$ac_c_werror_flag" ||
31484 test ! -s conftest.err
31485 } && test -s conftest.$ac_objext; then
31486 ac_header_compiler=yes
31488 echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31491 ac_header_compiler=no
31494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31496 echo "${ECHO_T}$ac_header_compiler" >&6; }
31498 # Is the header present?
31499 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31500 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31501 cat >conftest.$ac_ext <<_ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h. */
31507 #include <sys/sysmacros.h>
31509 if { (ac_try="$ac_cpp conftest.$ac_ext"
31510 case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31517 grep -v '^ *+' conftest.er1 >conftest.err
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } >/dev/null && {
31522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31523 test ! -s conftest.err
31525 ac_header_preproc=yes
31527 echo "$as_me: failed program was:" >&5
31528 sed 's/^/| /' conftest.$ac_ext >&5
31530 ac_header_preproc=no
31533 rm -f conftest.err conftest.$ac_ext
31534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31535 echo "${ECHO_T}$ac_header_preproc" >&6; }
31537 # So? What about this header?
31538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31540 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31541 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31542 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31543 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31544 ac_header_preproc=yes
31547 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31548 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31549 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31550 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31551 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31552 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31553 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31554 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31555 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31556 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31557 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31558 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31562 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31563 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31564 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31565 echo $ECHO_N "(cached) $ECHO_C" >&6
31567 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31569 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31570 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31573 if test $ac_cv_header_sys_sysmacros_h = yes; then
31575 cat >>confdefs.h <<\_ACEOF
31576 #define MAJOR_IN_SYSMACROS 1
31590 ac_header_dirent=no
31591 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31592 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31593 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31594 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 cat >conftest.$ac_ext <<_ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h. */
31604 #include <sys/types.h>
31616 rm -f conftest.$ac_objext
31617 if { (ac_try="$ac_compile"
31618 case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_compile") 2>conftest.er1
31625 grep -v '^ *+' conftest.er1 >conftest.err
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } && {
31630 test -z "$ac_c_werror_flag" ||
31631 test ! -s conftest.err
31632 } && test -s conftest.$ac_objext; then
31633 eval "$as_ac_Header=yes"
31635 echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31638 eval "$as_ac_Header=no"
31641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31643 ac_res=`eval echo '${'$as_ac_Header'}'`
31644 { echo "$as_me:$LINENO: result: $ac_res" >&5
31645 echo "${ECHO_T}$ac_res" >&6; }
31646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31647 cat >>confdefs.h <<_ACEOF
31648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31651 ac_header_dirent=$ac_hdr; break
31655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31656 if test $ac_header_dirent = dirent.h; then
31657 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31659 if test "${ac_cv_search_opendir+set}" = set; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31662 ac_func_search_save_LIBS=$LIBS
31663 cat >conftest.$ac_ext <<_ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31670 /* Override any GCC internal prototype to avoid an error.
31671 Use char because int might match the return type of a GCC
31672 builtin and then its argument prototype would still apply. */
31685 for ac_lib in '' dir; do
31686 if test -z "$ac_lib"; then
31687 ac_res="none required"
31690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31692 rm -f conftest.$ac_objext conftest$ac_exeext
31693 if { (ac_try="$ac_link"
31694 case "(($ac_try" in
31695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696 *) ac_try_echo=$ac_try;;
31698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31699 (eval "$ac_link") 2>conftest.er1
31701 grep -v '^ *+' conftest.er1 >conftest.err
31703 cat conftest.err >&5
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); } && {
31706 test -z "$ac_c_werror_flag" ||
31707 test ! -s conftest.err
31708 } && test -s conftest$ac_exeext &&
31709 $as_test_x conftest$ac_exeext; then
31710 ac_cv_search_opendir=$ac_res
31712 echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31720 if test "${ac_cv_search_opendir+set}" = set; then
31724 if test "${ac_cv_search_opendir+set}" = set; then
31727 ac_cv_search_opendir=no
31729 rm conftest.$ac_ext
31730 LIBS=$ac_func_search_save_LIBS
31732 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31733 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31734 ac_res=$ac_cv_search_opendir
31735 if test "$ac_res" != no; then
31736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31741 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31743 if test "${ac_cv_search_opendir+set}" = set; then
31744 echo $ECHO_N "(cached) $ECHO_C" >&6
31746 ac_func_search_save_LIBS=$LIBS
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31754 /* Override any GCC internal prototype to avoid an error.
31755 Use char because int might match the return type of a GCC
31756 builtin and then its argument prototype would still apply. */
31769 for ac_lib in '' x; do
31770 if test -z "$ac_lib"; then
31771 ac_res="none required"
31774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31776 rm -f conftest.$ac_objext conftest$ac_exeext
31777 if { (ac_try="$ac_link"
31778 case "(($ac_try" in
31779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31780 *) ac_try_echo=$ac_try;;
31782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31783 (eval "$ac_link") 2>conftest.er1
31785 grep -v '^ *+' conftest.er1 >conftest.err
31787 cat conftest.err >&5
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); } && {
31790 test -z "$ac_c_werror_flag" ||
31791 test ! -s conftest.err
31792 } && test -s conftest$ac_exeext &&
31793 $as_test_x conftest$ac_exeext; then
31794 ac_cv_search_opendir=$ac_res
31796 echo "$as_me: failed program was:" >&5
31797 sed 's/^/| /' conftest.$ac_ext >&5
31802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31804 if test "${ac_cv_search_opendir+set}" = set; then
31808 if test "${ac_cv_search_opendir+set}" = set; then
31811 ac_cv_search_opendir=no
31813 rm conftest.$ac_ext
31814 LIBS=$ac_func_search_save_LIBS
31816 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31817 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31818 ac_res=$ac_cv_search_opendir
31819 if test "$ac_res" != no; then
31820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31826 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31827 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31828 if test "${ac_cv_header_stat_broken+set}" = set; then
31829 echo $ECHO_N "(cached) $ECHO_C" >&6
31831 cat >conftest.$ac_ext <<_ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h. */
31837 #include <sys/types.h>
31838 #include <sys/stat.h>
31840 #if defined S_ISBLK && defined S_IFDIR
31841 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31844 #if defined S_ISBLK && defined S_IFCHR
31845 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31848 #if defined S_ISLNK && defined S_IFREG
31849 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31852 #if defined S_ISSOCK && defined S_IFREG
31853 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31857 rm -f conftest.$ac_objext
31858 if { (ac_try="$ac_compile"
31859 case "(($ac_try" in
31860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861 *) ac_try_echo=$ac_try;;
31863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31864 (eval "$ac_compile") 2>conftest.er1
31866 grep -v '^ *+' conftest.er1 >conftest.err
31868 cat conftest.err >&5
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); } && {
31871 test -z "$ac_c_werror_flag" ||
31872 test ! -s conftest.err
31873 } && test -s conftest.$ac_objext; then
31874 ac_cv_header_stat_broken=no
31876 echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31879 ac_cv_header_stat_broken=yes
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31884 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31885 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31886 if test $ac_cv_header_stat_broken = yes; then
31888 cat >>confdefs.h <<\_ACEOF
31889 #define STAT_MACROS_BROKEN 1
31894 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31897 echo $ECHO_N "(cached) $ECHO_C" >&6
31899 cat >conftest.$ac_ext <<_ACEOF
31902 cat confdefs.h >>conftest.$ac_ext
31903 cat >>conftest.$ac_ext <<_ACEOF
31904 /* end confdefs.h. */
31905 #include <sys/types.h>
31906 #include <sys/wait.h>
31907 #ifndef WEXITSTATUS
31908 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31911 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31919 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31924 rm -f conftest.$ac_objext
31925 if { (ac_try="$ac_compile"
31926 case "(($ac_try" in
31927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928 *) ac_try_echo=$ac_try;;
31930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931 (eval "$ac_compile") 2>conftest.er1
31933 grep -v '^ *+' conftest.er1 >conftest.err
31935 cat conftest.err >&5
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); } && {
31938 test -z "$ac_c_werror_flag" ||
31939 test ! -s conftest.err
31940 } && test -s conftest.$ac_objext; then
31941 ac_cv_header_sys_wait_h=yes
31943 echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.$ac_ext >&5
31946 ac_cv_header_sys_wait_h=no
31949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31952 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31953 if test $ac_cv_header_sys_wait_h = yes; then
31955 cat >>confdefs.h <<\_ACEOF
31956 #define HAVE_SYS_WAIT_H 1
31961 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31962 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31963 if test "${ac_cv_header_time+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31966 cat >conftest.$ac_ext <<_ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h. */
31972 #include <sys/types.h>
31973 #include <sys/time.h>
31979 if ((struct tm *) 0)
31985 rm -f conftest.$ac_objext
31986 if { (ac_try="$ac_compile"
31987 case "(($ac_try" in
31988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989 *) ac_try_echo=$ac_try;;
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992 (eval "$ac_compile") 2>conftest.er1
31994 grep -v '^ *+' conftest.er1 >conftest.err
31996 cat conftest.err >&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } && {
31999 test -z "$ac_c_werror_flag" ||
32000 test ! -s conftest.err
32001 } && test -s conftest.$ac_objext; then
32002 ac_cv_header_time=yes
32004 echo "$as_me: failed program was:" >&5
32005 sed 's/^/| /' conftest.$ac_ext >&5
32007 ac_cv_header_time=no
32010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32012 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32013 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32014 if test $ac_cv_header_time = yes; then
32016 cat >>confdefs.h <<\_ACEOF
32017 #define TIME_WITH_SYS_TIME 1
32022 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32023 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32024 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32025 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 cat >conftest.$ac_ext <<_ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h. */
32033 $ac_includes_default
32037 static struct stat ac_aggr;
32038 if (ac_aggr.st_blksize)
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_compile") 2>conftest.er1
32053 grep -v '^ *+' conftest.er1 >conftest.err
32055 cat conftest.err >&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } && {
32058 test -z "$ac_c_werror_flag" ||
32059 test ! -s conftest.err
32060 } && test -s conftest.$ac_objext; then
32061 ac_cv_member_struct_stat_st_blksize=yes
32063 echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32066 cat >conftest.$ac_ext <<_ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32072 $ac_includes_default
32076 static struct stat ac_aggr;
32077 if (sizeof ac_aggr.st_blksize)
32083 rm -f conftest.$ac_objext
32084 if { (ac_try="$ac_compile"
32085 case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_compile") 2>conftest.er1
32092 grep -v '^ *+' conftest.er1 >conftest.err
32094 cat conftest.err >&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } && {
32097 test -z "$ac_c_werror_flag" ||
32098 test ! -s conftest.err
32099 } && test -s conftest.$ac_objext; then
32100 ac_cv_member_struct_stat_st_blksize=yes
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 ac_cv_member_struct_stat_st_blksize=no
32108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32114 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32115 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32117 cat >>confdefs.h <<_ACEOF
32118 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32122 cat >>confdefs.h <<\_ACEOF
32123 #define HAVE_ST_BLKSIZE 1
32129 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32130 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32131 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32134 cat >conftest.$ac_ext <<_ACEOF
32137 cat confdefs.h >>conftest.$ac_ext
32138 cat >>conftest.$ac_ext <<_ACEOF
32139 /* end confdefs.h. */
32140 $ac_includes_default
32144 static struct stat ac_aggr;
32145 if (ac_aggr.st_blocks)
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_compile") 2>conftest.er1
32160 grep -v '^ *+' conftest.er1 >conftest.err
32162 cat conftest.err >&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } && {
32165 test -z "$ac_c_werror_flag" ||
32166 test ! -s conftest.err
32167 } && test -s conftest.$ac_objext; then
32168 ac_cv_member_struct_stat_st_blocks=yes
32170 echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32173 cat >conftest.$ac_ext <<_ACEOF
32176 cat confdefs.h >>conftest.$ac_ext
32177 cat >>conftest.$ac_ext <<_ACEOF
32178 /* end confdefs.h. */
32179 $ac_includes_default
32183 static struct stat ac_aggr;
32184 if (sizeof ac_aggr.st_blocks)
32190 rm -f conftest.$ac_objext
32191 if { (ac_try="$ac_compile"
32192 case "(($ac_try" in
32193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194 *) ac_try_echo=$ac_try;;
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197 (eval "$ac_compile") 2>conftest.er1
32199 grep -v '^ *+' conftest.er1 >conftest.err
32201 cat conftest.err >&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } && {
32204 test -z "$ac_c_werror_flag" ||
32205 test ! -s conftest.err
32206 } && test -s conftest.$ac_objext; then
32207 ac_cv_member_struct_stat_st_blocks=yes
32209 echo "$as_me: failed program was:" >&5
32210 sed 's/^/| /' conftest.$ac_ext >&5
32212 ac_cv_member_struct_stat_st_blocks=no
32215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32221 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32222 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32224 cat >>confdefs.h <<_ACEOF
32225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32229 cat >>confdefs.h <<\_ACEOF
32230 #define HAVE_ST_BLOCKS 1
32234 case " $LIBOBJS " in
32235 *" fileblocks.$ac_objext "* ) ;;
32236 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32243 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32244 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32245 if test "${ac_cv_struct_tm+set}" = set; then
32246 echo $ECHO_N "(cached) $ECHO_C" >&6
32248 cat >conftest.$ac_ext <<_ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h. */
32254 #include <sys/types.h>
32261 int *p = &tm.tm_sec;
32267 rm -f conftest.$ac_objext
32268 if { (ac_try="$ac_compile"
32269 case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_compile") 2>conftest.er1
32276 grep -v '^ *+' conftest.er1 >conftest.err
32278 cat conftest.err >&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); } && {
32281 test -z "$ac_c_werror_flag" ||
32282 test ! -s conftest.err
32283 } && test -s conftest.$ac_objext; then
32284 ac_cv_struct_tm=time.h
32286 echo "$as_me: failed program was:" >&5
32287 sed 's/^/| /' conftest.$ac_ext >&5
32289 ac_cv_struct_tm=sys/time.h
32292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32294 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32295 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32296 if test $ac_cv_struct_tm = sys/time.h; then
32298 cat >>confdefs.h <<\_ACEOF
32299 #define TM_IN_SYS_TIME 1
32304 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32305 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32306 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32307 echo $ECHO_N "(cached) $ECHO_C" >&6
32309 cat >conftest.$ac_ext <<_ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h. */
32315 #include <sys/types.h>
32316 #include <$ac_cv_struct_tm>
32322 static struct tm ac_aggr;
32323 if (ac_aggr.tm_zone)
32329 rm -f conftest.$ac_objext
32330 if { (ac_try="$ac_compile"
32331 case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32336 (eval "$ac_compile") 2>conftest.er1
32338 grep -v '^ *+' conftest.er1 >conftest.err
32340 cat conftest.err >&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); } && {
32343 test -z "$ac_c_werror_flag" ||
32344 test ! -s conftest.err
32345 } && test -s conftest.$ac_objext; then
32346 ac_cv_member_struct_tm_tm_zone=yes
32348 echo "$as_me: failed program was:" >&5
32349 sed 's/^/| /' conftest.$ac_ext >&5
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32357 #include <sys/types.h>
32358 #include <$ac_cv_struct_tm>
32364 static struct tm ac_aggr;
32365 if (sizeof ac_aggr.tm_zone)
32371 rm -f conftest.$ac_objext
32372 if { (ac_try="$ac_compile"
32373 case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_compile") 2>conftest.er1
32380 grep -v '^ *+' conftest.er1 >conftest.err
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } && {
32385 test -z "$ac_c_werror_flag" ||
32386 test ! -s conftest.err
32387 } && test -s conftest.$ac_objext; then
32388 ac_cv_member_struct_tm_tm_zone=yes
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32393 ac_cv_member_struct_tm_tm_zone=no
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32402 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32403 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32405 cat >>confdefs.h <<_ACEOF
32406 #define HAVE_STRUCT_TM_TM_ZONE 1
32412 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32414 cat >>confdefs.h <<\_ACEOF
32415 #define HAVE_TM_ZONE 1
32419 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32420 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32421 if test "${ac_cv_have_decl_tzname+set}" = set; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32424 cat >conftest.$ac_ext <<_ACEOF
32427 cat confdefs.h >>conftest.$ac_ext
32428 cat >>conftest.$ac_ext <<_ACEOF
32429 /* end confdefs.h. */
32443 rm -f conftest.$ac_objext
32444 if { (ac_try="$ac_compile"
32445 case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_compile") 2>conftest.er1
32452 grep -v '^ *+' conftest.er1 >conftest.err
32454 cat conftest.err >&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); } && {
32457 test -z "$ac_c_werror_flag" ||
32458 test ! -s conftest.err
32459 } && test -s conftest.$ac_objext; then
32460 ac_cv_have_decl_tzname=yes
32462 echo "$as_me: failed program was:" >&5
32463 sed 's/^/| /' conftest.$ac_ext >&5
32465 ac_cv_have_decl_tzname=no
32468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32471 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32472 if test $ac_cv_have_decl_tzname = yes; then
32474 cat >>confdefs.h <<_ACEOF
32475 #define HAVE_DECL_TZNAME 1
32480 cat >>confdefs.h <<_ACEOF
32481 #define HAVE_DECL_TZNAME 0
32488 { echo "$as_me:$LINENO: checking for tzname" >&5
32489 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32490 if test "${ac_cv_var_tzname+set}" = set; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 cat >conftest.$ac_ext <<_ACEOF
32496 cat confdefs.h >>conftest.$ac_ext
32497 cat >>conftest.$ac_ext <<_ACEOF
32498 /* end confdefs.h. */
32500 #if !HAVE_DECL_TZNAME
32501 extern char *tzname[];
32507 return tzname[0][0];
32512 rm -f conftest.$ac_objext conftest$ac_exeext
32513 if { (ac_try="$ac_link"
32514 case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519 (eval "$ac_link") 2>conftest.er1
32521 grep -v '^ *+' conftest.er1 >conftest.err
32523 cat conftest.err >&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } && {
32526 test -z "$ac_c_werror_flag" ||
32527 test ! -s conftest.err
32528 } && test -s conftest$ac_exeext &&
32529 $as_test_x conftest$ac_exeext; then
32530 ac_cv_var_tzname=yes
32532 echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32535 ac_cv_var_tzname=no
32538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32539 conftest$ac_exeext conftest.$ac_ext
32541 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32542 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32543 if test $ac_cv_var_tzname = yes; then
32545 cat >>confdefs.h <<\_ACEOF
32546 #define HAVE_TZNAME 1
32553 { echo "$as_me:$LINENO: checking for utime.h" >&5
32554 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32555 if test "${ba_cv_header_utime_h+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 cat >conftest.$ac_ext <<_ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h. */
32566 #include <sys/types.h>
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_compile") 2>conftest.er1
32588 grep -v '^ *+' conftest.er1 >conftest.err
32590 cat conftest.err >&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); } && {
32593 test -z "$ac_c_werror_flag" ||
32594 test ! -s conftest.err
32595 } && test -s conftest.$ac_objext; then
32597 ba_cv_header_utime_h=yes
32600 echo "$as_me: failed program was:" >&5
32601 sed 's/^/| /' conftest.$ac_ext >&5
32604 ba_cv_header_utime_h=no
32609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32613 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32614 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32615 test $ba_cv_header_utime_h = yes &&
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_UTIME_H 1
32621 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32622 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32623 if test "${ba_cv_header_socklen_t+set}" = set; then
32624 echo $ECHO_N "(cached) $ECHO_C" >&6
32627 cat >conftest.$ac_ext <<_ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h. */
32634 #include <sys/types.h>
32635 #include <sys/socket.h>
32647 rm -f conftest.$ac_objext
32648 if { (ac_try="$ac_compile"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_compile") 2>conftest.er1
32656 grep -v '^ *+' conftest.er1 >conftest.err
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } && {
32661 test -z "$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32663 } && test -s conftest.$ac_objext; then
32665 ba_cv_header_socklen_t=yes
32668 echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32672 ba_cv_header_socklen_t=no
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32681 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32682 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32683 test $ba_cv_header_socklen_t = yes &&
32684 cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_SOCKLEN_T 1
32690 ac_cpp='$CXXCPP $CPPFLAGS'
32691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32695 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32696 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32697 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32698 echo $ECHO_N "(cached) $ECHO_C" >&6
32701 cat >conftest.$ac_ext <<_ACEOF
32704 cat confdefs.h >>conftest.$ac_ext
32705 cat >>conftest.$ac_ext <<_ACEOF
32706 /* end confdefs.h. */
32708 #include <unistd.h>
32709 #include <sys/types.h>
32710 #include <sys/ioctl.h>
32716 int (*d_ioctl)(int fd, unsigned long int request, ...);
32723 rm -f conftest.$ac_objext
32724 if { (ac_try="$ac_compile"
32725 case "(($ac_try" in
32726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727 *) ac_try_echo=$ac_try;;
32729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730 (eval "$ac_compile") 2>conftest.er1
32732 grep -v '^ *+' conftest.er1 >conftest.err
32734 cat conftest.err >&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } && {
32737 test -z "$ac_cxx_werror_flag" ||
32738 test ! -s conftest.err
32739 } && test -s conftest.$ac_objext; then
32741 ba_cv_header_ioctl_req_t=yes
32744 echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32748 ba_cv_header_ioctl_req_t=no
32753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32757 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32758 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32759 test $ba_cv_header_ioctl_req_t = yes &&
32760 cat >>confdefs.h <<\_ACEOF
32761 #define HAVE_IOCTL_ULINT_REQUEST 1
32766 ac_cpp='$CPP $CPPFLAGS'
32767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32773 ac_cpp='$CXXCPP $CPPFLAGS'
32774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32778 { echo "$as_me:$LINENO: checking for typeof" >&5
32779 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32780 if test "${ba_cv_have_typeof+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32784 if test "$cross_compiling" = yes; then
32786 ba_cv_have_typeof=no
32790 cat >conftest.$ac_ext <<_ACEOF
32793 cat confdefs.h >>conftest.$ac_ext
32794 cat >>conftest.$ac_ext <<_ACEOF
32795 /* end confdefs.h. */
32797 main(){char *a = 0; a = (typeof a)a;}
32800 rm -f conftest$ac_exeext
32801 if { (ac_try="$ac_link"
32802 case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_link") 2>&5
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32811 { (case "(($ac_try" in
32812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 *) ac_try_echo=$ac_try;;
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_try") 2>&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32821 ba_cv_have_typeof=yes
32824 echo "$as_me: program exited with status $ac_status" >&5
32825 echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.$ac_ext >&5
32828 ( exit $ac_status )
32830 ba_cv_have_typeof=no
32833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32840 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32841 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32842 test $ba_cv_have_typeof = yes &&
32843 cat >>confdefs.h <<\_ACEOF
32844 #define HAVE_TYPEOF 1
32848 ac_cpp='$CPP $CPPFLAGS'
32849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32854 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32856 if test "${ac_cv_c_const+set}" = set; then
32857 echo $ECHO_N "(cached) $ECHO_C" >&6
32859 cat >conftest.$ac_ext <<_ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32869 /* FIXME: Include the comments suggested by Paul. */
32870 #ifndef __cplusplus
32871 /* Ultrix mips cc rejects this. */
32872 typedef int charset[2];
32874 /* SunOS 4.1.1 cc rejects this. */
32875 char const *const *pcpcc;
32877 /* NEC SVR4.0.2 mips cc rejects this. */
32878 struct point {int x, y;};
32879 static struct point const zero = {0,0};
32880 /* AIX XL C 1.02.0.0 rejects this.
32881 It does not let you subtract one const X* pointer from another in
32882 an arm of an if-expression whose if-part is not a constant
32884 const char *g = "string";
32885 pcpcc = &g + (g ? g-g : 0);
32886 /* HPUX 7.0 cc rejects these. */
32888 ppc = (char**) pcpcc;
32889 pcpcc = (char const *const *) ppc;
32890 { /* SCO 3.2v4 cc rejects this. */
32892 char const *s = 0 ? (char *) 0 : (char const *) 0;
32897 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32898 int x[] = {25, 17};
32899 const int *foo = &x[0];
32902 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32903 typedef const int *iptr;
32907 { /* AIX XL C 1.02.0.0 rejects this saying
32908 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32909 struct s { int j; const int *ap[3]; };
32910 struct s *b; b->j = 5;
32912 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32913 const int foo = 10;
32914 if (!foo) return 0;
32916 return !cs[0] && !zero.x;
32923 rm -f conftest.$ac_objext
32924 if { (ac_try="$ac_compile"
32925 case "(($ac_try" in
32926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32927 *) ac_try_echo=$ac_try;;
32929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32930 (eval "$ac_compile") 2>conftest.er1
32932 grep -v '^ *+' conftest.er1 >conftest.err
32934 cat conftest.err >&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); } && {
32937 test -z "$ac_c_werror_flag" ||
32938 test ! -s conftest.err
32939 } && test -s conftest.$ac_objext; then
32942 echo "$as_me: failed program was:" >&5
32943 sed 's/^/| /' conftest.$ac_ext >&5
32948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32952 if test $ac_cv_c_const = no; then
32954 cat >>confdefs.h <<\_ACEOF
32961 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32962 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32964 # The order of these tests is important.
32965 cat >conftest.$ac_ext <<_ACEOF
32968 cat confdefs.h >>conftest.$ac_ext
32969 cat >>conftest.$ac_ext <<_ACEOF
32970 /* end confdefs.h. */
32972 #include <sys/statvfs.h>
32973 #include <sys/fstyp.h>
32976 if { (ac_try="$ac_cpp conftest.$ac_ext"
32977 case "(($ac_try" in
32978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979 *) ac_try_echo=$ac_try;;
32981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32984 grep -v '^ *+' conftest.er1 >conftest.err
32986 cat conftest.err >&5
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); } >/dev/null && {
32989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32990 test ! -s conftest.err
32992 cat >>confdefs.h <<\_ACEOF
32993 #define FSTYPE_STATVFS 1
32998 echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33004 rm -f conftest.err conftest.$ac_ext
33005 if test $fstype = no; then
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33013 #include <sys/statfs.h>
33014 #include <sys/fstyp.h>
33017 if { (ac_try="$ac_cpp conftest.$ac_ext"
33018 case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33025 grep -v '^ *+' conftest.er1 >conftest.err
33027 cat conftest.err >&5
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); } >/dev/null && {
33030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33031 test ! -s conftest.err
33033 cat >>confdefs.h <<\_ACEOF
33034 #define FSTYPE_USG_STATFS 1
33039 echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33045 rm -f conftest.err conftest.$ac_ext
33047 if test $fstype = no; then
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33055 #include <sys/statfs.h>
33056 #include <sys/vmount.h>
33059 if { (ac_try="$ac_cpp conftest.$ac_ext"
33060 case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33067 grep -v '^ *+' conftest.er1 >conftest.err
33069 cat conftest.err >&5
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } >/dev/null && {
33072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33073 test ! -s conftest.err
33075 cat >>confdefs.h <<\_ACEOF
33076 #define FSTYPE_AIX_STATFS 1
33081 echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33087 rm -f conftest.err conftest.$ac_ext
33089 if test $fstype = no; then
33090 cat >conftest.$ac_ext <<_ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33097 #include <mntent.h>
33100 if { (ac_try="$ac_cpp conftest.$ac_ext"
33101 case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33108 grep -v '^ *+' conftest.er1 >conftest.err
33110 cat conftest.err >&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); } >/dev/null && {
33113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33114 test ! -s conftest.err
33116 cat >>confdefs.h <<\_ACEOF
33117 #define FSTYPE_MNTENT 1
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33128 rm -f conftest.err conftest.$ac_ext
33130 if test $fstype = no; then
33131 cat >conftest.$ac_ext <<_ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 #include <sys/mount.h>
33140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33141 $EGREP "f_type;" >/dev/null 2>&1; then
33142 cat >>confdefs.h <<\_ACEOF
33143 #define FSTYPE_STATFS 1
33150 if test $fstype = no; then
33151 cat >conftest.$ac_ext <<_ACEOF
33154 cat confdefs.h >>conftest.$ac_ext
33155 cat >>conftest.$ac_ext <<_ACEOF
33156 /* end confdefs.h. */
33158 #include <sys/mount.h>
33159 #include <sys/fs_types.h>
33162 if { (ac_try="$ac_cpp conftest.$ac_ext"
33163 case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33170 grep -v '^ *+' conftest.er1 >conftest.err
33172 cat conftest.err >&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } >/dev/null && {
33175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33176 test ! -s conftest.err
33178 cat >>confdefs.h <<\_ACEOF
33179 #define FSTYPE_GETMNT 1
33184 echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33190 rm -f conftest.err conftest.$ac_ext
33192 { echo "$as_me:$LINENO: result: $fstype" >&5
33193 echo "${ECHO_T}$fstype" >&6; }
33195 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33196 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33197 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33198 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33199 echo $ECHO_N "(cached) $ECHO_C" >&6
33201 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33202 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33204 # Is the header compilable?
33205 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33206 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33207 cat >conftest.$ac_ext <<_ACEOF
33210 cat confdefs.h >>conftest.$ac_ext
33211 cat >>conftest.$ac_ext <<_ACEOF
33212 /* end confdefs.h. */
33213 $ac_includes_default
33214 #include <sys/statvfs.h>
33216 rm -f conftest.$ac_objext
33217 if { (ac_try="$ac_compile"
33218 case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_compile") 2>conftest.er1
33225 grep -v '^ *+' conftest.er1 >conftest.err
33227 cat conftest.err >&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); } && {
33230 test -z "$ac_c_werror_flag" ||
33231 test ! -s conftest.err
33232 } && test -s conftest.$ac_objext; then
33233 ac_header_compiler=yes
33235 echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238 ac_header_compiler=no
33241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33243 echo "${ECHO_T}$ac_header_compiler" >&6; }
33245 # Is the header present?
33246 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33247 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33248 cat >conftest.$ac_ext <<_ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h. */
33254 #include <sys/statvfs.h>
33256 if { (ac_try="$ac_cpp conftest.$ac_ext"
33257 case "(($ac_try" in
33258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259 *) ac_try_echo=$ac_try;;
33261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33264 grep -v '^ *+' conftest.er1 >conftest.err
33266 cat conftest.err >&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); } >/dev/null && {
33269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33270 test ! -s conftest.err
33272 ac_header_preproc=yes
33274 echo "$as_me: failed program was:" >&5
33275 sed 's/^/| /' conftest.$ac_ext >&5
33277 ac_header_preproc=no
33280 rm -f conftest.err conftest.$ac_ext
33281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33282 echo "${ECHO_T}$ac_header_preproc" >&6; }
33284 # So? What about this header?
33285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33287 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33288 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33289 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33290 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33291 ac_header_preproc=yes
33294 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33295 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33296 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33297 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33298 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33299 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33300 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33301 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33302 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33303 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33304 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33305 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33309 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33310 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33311 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33314 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33316 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33317 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33320 if test $ac_cv_header_sys_statvfs_h = yes; then
33322 cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_SYS_STATVFS_H 1
33330 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33331 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33332 if test "${ac_cv_type_signal+set}" = set; then
33333 echo $ECHO_N "(cached) $ECHO_C" >&6
33335 cat >conftest.$ac_ext <<_ACEOF
33338 cat confdefs.h >>conftest.$ac_ext
33339 cat >>conftest.$ac_ext <<_ACEOF
33340 /* end confdefs.h. */
33341 #include <sys/types.h>
33342 #include <signal.h>
33347 return *(signal (0, 0)) (0) == 1;
33352 rm -f conftest.$ac_objext
33353 if { (ac_try="$ac_compile"
33354 case "(($ac_try" in
33355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356 *) ac_try_echo=$ac_try;;
33358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33359 (eval "$ac_compile") 2>conftest.er1
33361 grep -v '^ *+' conftest.er1 >conftest.err
33363 cat conftest.err >&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); } && {
33366 test -z "$ac_c_werror_flag" ||
33367 test ! -s conftest.err
33368 } && test -s conftest.$ac_objext; then
33369 ac_cv_type_signal=int
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33374 ac_cv_type_signal=void
33377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33379 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33380 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33382 cat >>confdefs.h <<_ACEOF
33383 #define RETSIGTYPE $ac_cv_type_signal
33388 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33389 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33390 if test "${bash_cv_signal_vintage+set}" = set; then
33391 echo $ECHO_N "(cached) $ECHO_C" >&6
33394 cat >conftest.$ac_ext <<_ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h. */
33400 #include <signal.h>
33406 struct sigaction sa;
33407 sigemptyset(&ss); sigsuspend(&ss);
33408 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33409 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33415 rm -f conftest.$ac_objext conftest$ac_exeext
33416 if { (ac_try="$ac_link"
33417 case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_link") 2>conftest.er1
33424 grep -v '^ *+' conftest.er1 >conftest.err
33426 cat conftest.err >&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } && {
33429 test -z "$ac_c_werror_flag" ||
33430 test ! -s conftest.err
33431 } && test -s conftest$ac_exeext &&
33432 $as_test_x conftest$ac_exeext; then
33433 bash_cv_signal_vintage="posix"
33435 echo "$as_me: failed program was:" >&5
33436 sed 's/^/| /' conftest.$ac_ext >&5
33439 cat >conftest.$ac_ext <<_ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h. */
33445 #include <signal.h>
33450 int mask = sigmask(SIGINT);
33451 sigsetmask(mask); sigblock(mask); sigpause(mask);
33457 rm -f conftest.$ac_objext conftest$ac_exeext
33458 if { (ac_try="$ac_link"
33459 case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_link") 2>conftest.er1
33466 grep -v '^ *+' conftest.er1 >conftest.err
33468 cat conftest.err >&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); } && {
33471 test -z "$ac_c_werror_flag" ||
33472 test ! -s conftest.err
33473 } && test -s conftest$ac_exeext &&
33474 $as_test_x conftest$ac_exeext; then
33475 bash_cv_signal_vintage="4.2bsd"
33477 echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33481 cat >conftest.$ac_ext <<_ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33488 #include <signal.h>
33489 RETSIGTYPE foo() { }
33494 int mask = sigmask(SIGINT);
33495 sigset(SIGINT, foo); sigrelse(SIGINT);
33496 sighold(SIGINT); sigpause(SIGINT);
33502 rm -f conftest.$ac_objext conftest$ac_exeext
33503 if { (ac_try="$ac_link"
33504 case "(($ac_try" in
33505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33506 *) ac_try_echo=$ac_try;;
33508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33509 (eval "$ac_link") 2>conftest.er1
33511 grep -v '^ *+' conftest.er1 >conftest.err
33513 cat conftest.err >&5
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); } && {
33516 test -z "$ac_c_werror_flag" ||
33517 test ! -s conftest.err
33518 } && test -s conftest$ac_exeext &&
33519 $as_test_x conftest$ac_exeext; then
33520 bash_cv_signal_vintage="svr3"
33522 echo "$as_me: failed program was:" >&5
33523 sed 's/^/| /' conftest.$ac_ext >&5
33525 bash_cv_signal_vintage="v7"
33529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33530 conftest$ac_exeext conftest.$ac_ext
33534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33535 conftest$ac_exeext conftest.$ac_ext
33539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33540 conftest$ac_exeext conftest.$ac_ext
33544 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33545 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33546 if test "$bash_cv_signal_vintage" = "posix"; then
33547 cat >>confdefs.h <<\_ACEOF
33548 #define HAVE_POSIX_SIGNALS 1
33551 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33552 cat >>confdefs.h <<\_ACEOF
33553 #define HAVE_BSD_SIGNALS 1
33556 elif test "$bash_cv_signal_vintage" = "svr3"; then
33557 cat >>confdefs.h <<\_ACEOF
33558 #define HAVE_USG_SIGHOLD 1
33563 { echo "$as_me:$LINENO: checking for mode_t" >&5
33564 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33565 if test "${ac_cv_type_mode_t+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33568 cat >conftest.$ac_ext <<_ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h. */
33574 $ac_includes_default
33575 typedef mode_t ac__type_new_;
33579 if ((ac__type_new_ *) 0)
33581 if (sizeof (ac__type_new_))
33587 rm -f conftest.$ac_objext
33588 if { (ac_try="$ac_compile"
33589 case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_compile") 2>conftest.er1
33596 grep -v '^ *+' conftest.er1 >conftest.err
33598 cat conftest.err >&5
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); } && {
33601 test -z "$ac_c_werror_flag" ||
33602 test ! -s conftest.err
33603 } && test -s conftest.$ac_objext; then
33604 ac_cv_type_mode_t=yes
33606 echo "$as_me: failed program was:" >&5
33607 sed 's/^/| /' conftest.$ac_ext >&5
33609 ac_cv_type_mode_t=no
33612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33614 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33615 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33616 if test $ac_cv_type_mode_t = yes; then
33620 cat >>confdefs.h <<_ACEOF
33626 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33627 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33628 if test "${ac_cv_type_uid_t+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33631 cat >conftest.$ac_ext <<_ACEOF
33634 cat confdefs.h >>conftest.$ac_ext
33635 cat >>conftest.$ac_ext <<_ACEOF
33636 /* end confdefs.h. */
33637 #include <sys/types.h>
33640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33641 $EGREP "uid_t" >/dev/null 2>&1; then
33642 ac_cv_type_uid_t=yes
33644 ac_cv_type_uid_t=no
33649 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33650 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33651 if test $ac_cv_type_uid_t = no; then
33653 cat >>confdefs.h <<\_ACEOF
33658 cat >>confdefs.h <<\_ACEOF
33664 { echo "$as_me:$LINENO: checking for size_t" >&5
33665 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33666 if test "${ac_cv_type_size_t+set}" = set; then
33667 echo $ECHO_N "(cached) $ECHO_C" >&6
33669 cat >conftest.$ac_ext <<_ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h. */
33675 $ac_includes_default
33676 typedef size_t ac__type_new_;
33680 if ((ac__type_new_ *) 0)
33682 if (sizeof (ac__type_new_))
33688 rm -f conftest.$ac_objext
33689 if { (ac_try="$ac_compile"
33690 case "(($ac_try" in
33691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33692 *) ac_try_echo=$ac_try;;
33694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33695 (eval "$ac_compile") 2>conftest.er1
33697 grep -v '^ *+' conftest.er1 >conftest.err
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } && {
33702 test -z "$ac_c_werror_flag" ||
33703 test ! -s conftest.err
33704 } && test -s conftest.$ac_objext; then
33705 ac_cv_type_size_t=yes
33707 echo "$as_me: failed program was:" >&5
33708 sed 's/^/| /' conftest.$ac_ext >&5
33710 ac_cv_type_size_t=no
33713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33715 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33716 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33717 if test $ac_cv_type_size_t = yes; then
33721 cat >>confdefs.h <<_ACEOF
33722 #define size_t unsigned int
33727 { echo "$as_me:$LINENO: checking for pid_t" >&5
33728 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33729 if test "${ac_cv_type_pid_t+set}" = set; then
33730 echo $ECHO_N "(cached) $ECHO_C" >&6
33732 cat >conftest.$ac_ext <<_ACEOF
33735 cat confdefs.h >>conftest.$ac_ext
33736 cat >>conftest.$ac_ext <<_ACEOF
33737 /* end confdefs.h. */
33738 $ac_includes_default
33739 typedef pid_t ac__type_new_;
33743 if ((ac__type_new_ *) 0)
33745 if (sizeof (ac__type_new_))
33751 rm -f conftest.$ac_objext
33752 if { (ac_try="$ac_compile"
33753 case "(($ac_try" in
33754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755 *) ac_try_echo=$ac_try;;
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758 (eval "$ac_compile") 2>conftest.er1
33760 grep -v '^ *+' conftest.er1 >conftest.err
33762 cat conftest.err >&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); } && {
33765 test -z "$ac_c_werror_flag" ||
33766 test ! -s conftest.err
33767 } && test -s conftest.$ac_objext; then
33768 ac_cv_type_pid_t=yes
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33773 ac_cv_type_pid_t=no
33776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33779 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33780 if test $ac_cv_type_pid_t = yes; then
33784 cat >>confdefs.h <<_ACEOF
33790 { echo "$as_me:$LINENO: checking for off_t" >&5
33791 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33792 if test "${ac_cv_type_off_t+set}" = set; then
33793 echo $ECHO_N "(cached) $ECHO_C" >&6
33795 cat >conftest.$ac_ext <<_ACEOF
33798 cat confdefs.h >>conftest.$ac_ext
33799 cat >>conftest.$ac_ext <<_ACEOF
33800 /* end confdefs.h. */
33801 $ac_includes_default
33802 typedef off_t ac__type_new_;
33806 if ((ac__type_new_ *) 0)
33808 if (sizeof (ac__type_new_))
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33823 grep -v '^ *+' conftest.er1 >conftest.err
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } && {
33828 test -z "$ac_c_werror_flag" ||
33829 test ! -s conftest.err
33830 } && test -s conftest.$ac_objext; then
33831 ac_cv_type_off_t=yes
33833 echo "$as_me: failed program was:" >&5
33834 sed 's/^/| /' conftest.$ac_ext >&5
33836 ac_cv_type_off_t=no
33839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33841 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33842 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33843 if test $ac_cv_type_off_t = yes; then
33847 cat >>confdefs.h <<_ACEOF
33848 #define off_t long int
33854 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33855 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33856 if test "${ac_cv_type_intptr_t+set}" = set; then
33857 echo $ECHO_N "(cached) $ECHO_C" >&6
33859 cat >conftest.$ac_ext <<_ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h. */
33865 $ac_includes_default
33866 typedef intptr_t ac__type_new_;
33870 if ((ac__type_new_ *) 0)
33872 if (sizeof (ac__type_new_))
33878 rm -f conftest.$ac_objext
33879 if { (ac_try="$ac_compile"
33880 case "(($ac_try" in
33881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33882 *) ac_try_echo=$ac_try;;
33884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33885 (eval "$ac_compile") 2>conftest.er1
33887 grep -v '^ *+' conftest.er1 >conftest.err
33889 cat conftest.err >&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); } && {
33892 test -z "$ac_c_werror_flag" ||
33893 test ! -s conftest.err
33894 } && test -s conftest.$ac_objext; then
33895 ac_cv_type_intptr_t=yes
33897 echo "$as_me: failed program was:" >&5
33898 sed 's/^/| /' conftest.$ac_ext >&5
33900 ac_cv_type_intptr_t=no
33903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33905 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33906 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33907 if test $ac_cv_type_intptr_t = yes; then
33909 cat >>confdefs.h <<\_ACEOF
33910 #define HAVE_INTPTR_T 1
33914 for ac_type in 'int' 'long int' 'long long int'; do
33915 cat >conftest.$ac_ext <<_ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33921 $ac_includes_default
33925 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33932 rm -f conftest.$ac_objext
33933 if { (ac_try="$ac_compile"
33934 case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_compile") 2>conftest.er1
33941 grep -v '^ *+' conftest.er1 >conftest.err
33943 cat conftest.err >&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } && {
33946 test -z "$ac_c_werror_flag" ||
33947 test ! -s conftest.err
33948 } && test -s conftest.$ac_objext; then
33950 cat >>confdefs.h <<_ACEOF
33951 #define intptr_t $ac_type
33956 echo "$as_me: failed program was:" >&5
33957 sed 's/^/| /' conftest.$ac_ext >&5
33962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33963 test -z "$ac_type" && break
33969 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33970 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33971 if test "${ac_cv_type_uintptr_t+set}" = set; then
33972 echo $ECHO_N "(cached) $ECHO_C" >&6
33974 cat >conftest.$ac_ext <<_ACEOF
33977 cat confdefs.h >>conftest.$ac_ext
33978 cat >>conftest.$ac_ext <<_ACEOF
33979 /* end confdefs.h. */
33980 $ac_includes_default
33981 typedef uintptr_t ac__type_new_;
33985 if ((ac__type_new_ *) 0)
33987 if (sizeof (ac__type_new_))
33993 rm -f conftest.$ac_objext
33994 if { (ac_try="$ac_compile"
33995 case "(($ac_try" in
33996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997 *) ac_try_echo=$ac_try;;
33999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000 (eval "$ac_compile") 2>conftest.er1
34002 grep -v '^ *+' conftest.er1 >conftest.err
34004 cat conftest.err >&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } && {
34007 test -z "$ac_c_werror_flag" ||
34008 test ! -s conftest.err
34009 } && test -s conftest.$ac_objext; then
34010 ac_cv_type_uintptr_t=yes
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34015 ac_cv_type_uintptr_t=no
34018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34021 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34022 if test $ac_cv_type_uintptr_t = yes; then
34024 cat >>confdefs.h <<\_ACEOF
34025 #define HAVE_UINTPTR_T 1
34029 for ac_type in 'unsigned int' 'unsigned long int' \
34030 'unsigned long long int'; do
34031 cat >conftest.$ac_ext <<_ACEOF
34034 cat confdefs.h >>conftest.$ac_ext
34035 cat >>conftest.$ac_ext <<_ACEOF
34036 /* end confdefs.h. */
34037 $ac_includes_default
34041 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34048 rm -f conftest.$ac_objext
34049 if { (ac_try="$ac_compile"
34050 case "(($ac_try" in
34051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34052 *) ac_try_echo=$ac_try;;
34054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34055 (eval "$ac_compile") 2>conftest.er1
34057 grep -v '^ *+' conftest.er1 >conftest.err
34059 cat conftest.err >&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } && {
34062 test -z "$ac_c_werror_flag" ||
34063 test ! -s conftest.err
34064 } && test -s conftest.$ac_objext; then
34066 cat >>confdefs.h <<_ACEOF
34067 #define uintptr_t $ac_type
34072 echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 test -z "$ac_type" && break
34084 { echo "$as_me:$LINENO: checking for ino_t" >&5
34085 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34086 if test "${ac_cv_type_ino_t+set}" = set; then
34087 echo $ECHO_N "(cached) $ECHO_C" >&6
34089 cat >conftest.$ac_ext <<_ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h. */
34095 $ac_includes_default
34096 typedef ino_t ac__type_new_;
34100 if ((ac__type_new_ *) 0)
34102 if (sizeof (ac__type_new_))
34108 rm -f conftest.$ac_objext
34109 if { (ac_try="$ac_compile"
34110 case "(($ac_try" in
34111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34112 *) ac_try_echo=$ac_try;;
34114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34115 (eval "$ac_compile") 2>conftest.er1
34117 grep -v '^ *+' conftest.er1 >conftest.err
34119 cat conftest.err >&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } && {
34122 test -z "$ac_c_werror_flag" ||
34123 test ! -s conftest.err
34124 } && test -s conftest.$ac_objext; then
34125 ac_cv_type_ino_t=yes
34127 echo "$as_me: failed program was:" >&5
34128 sed 's/^/| /' conftest.$ac_ext >&5
34130 ac_cv_type_ino_t=no
34133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34135 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34136 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34137 if test $ac_cv_type_ino_t = yes; then
34141 cat >>confdefs.h <<_ACEOF
34142 #define ino_t unsigned long
34147 { echo "$as_me:$LINENO: checking for dev_t" >&5
34148 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34149 if test "${ac_cv_type_dev_t+set}" = set; then
34150 echo $ECHO_N "(cached) $ECHO_C" >&6
34152 cat >conftest.$ac_ext <<_ACEOF
34155 cat confdefs.h >>conftest.$ac_ext
34156 cat >>conftest.$ac_ext <<_ACEOF
34157 /* end confdefs.h. */
34158 $ac_includes_default
34159 typedef dev_t ac__type_new_;
34163 if ((ac__type_new_ *) 0)
34165 if (sizeof (ac__type_new_))
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175 *) ac_try_echo=$ac_try;;
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_compile") 2>conftest.er1
34180 grep -v '^ *+' conftest.er1 >conftest.err
34182 cat conftest.err >&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); } && {
34185 test -z "$ac_c_werror_flag" ||
34186 test ! -s conftest.err
34187 } && test -s conftest.$ac_objext; then
34188 ac_cv_type_dev_t=yes
34190 echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34193 ac_cv_type_dev_t=no
34196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34198 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34199 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34200 if test $ac_cv_type_dev_t = yes; then
34204 cat >>confdefs.h <<_ACEOF
34205 #define dev_t unsigned long
34210 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34211 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34212 if test "${ac_cv_type_daddr_t+set}" = set; then
34213 echo $ECHO_N "(cached) $ECHO_C" >&6
34215 cat >conftest.$ac_ext <<_ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h. */
34221 $ac_includes_default
34222 typedef daddr_t ac__type_new_;
34226 if ((ac__type_new_ *) 0)
34228 if (sizeof (ac__type_new_))
34234 rm -f conftest.$ac_objext
34235 if { (ac_try="$ac_compile"
34236 case "(($ac_try" in
34237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34238 *) ac_try_echo=$ac_try;;
34240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34241 (eval "$ac_compile") 2>conftest.er1
34243 grep -v '^ *+' conftest.er1 >conftest.err
34245 cat conftest.err >&5
34246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 (exit $ac_status); } && {
34248 test -z "$ac_c_werror_flag" ||
34249 test ! -s conftest.err
34250 } && test -s conftest.$ac_objext; then
34251 ac_cv_type_daddr_t=yes
34253 echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34256 ac_cv_type_daddr_t=no
34259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34261 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34262 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34263 if test $ac_cv_type_daddr_t = yes; then
34267 cat >>confdefs.h <<_ACEOF
34268 #define daddr_t long
34273 { echo "$as_me:$LINENO: checking for major_t" >&5
34274 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34275 if test "${ac_cv_type_major_t+set}" = set; then
34276 echo $ECHO_N "(cached) $ECHO_C" >&6
34278 cat >conftest.$ac_ext <<_ACEOF
34281 cat confdefs.h >>conftest.$ac_ext
34282 cat >>conftest.$ac_ext <<_ACEOF
34283 /* end confdefs.h. */
34284 $ac_includes_default
34285 typedef major_t ac__type_new_;
34289 if ((ac__type_new_ *) 0)
34291 if (sizeof (ac__type_new_))
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34306 grep -v '^ *+' conftest.er1 >conftest.err
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } && {
34311 test -z "$ac_c_werror_flag" ||
34312 test ! -s conftest.err
34313 } && test -s conftest.$ac_objext; then
34314 ac_cv_type_major_t=yes
34316 echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34319 ac_cv_type_major_t=no
34322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34324 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34325 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34326 if test $ac_cv_type_major_t = yes; then
34330 cat >>confdefs.h <<_ACEOF
34331 #define major_t int
34336 { echo "$as_me:$LINENO: checking for minor_t" >&5
34337 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34338 if test "${ac_cv_type_minor_t+set}" = set; then
34339 echo $ECHO_N "(cached) $ECHO_C" >&6
34341 cat >conftest.$ac_ext <<_ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h. */
34347 $ac_includes_default
34348 typedef minor_t ac__type_new_;
34352 if ((ac__type_new_ *) 0)
34354 if (sizeof (ac__type_new_))
34360 rm -f conftest.$ac_objext
34361 if { (ac_try="$ac_compile"
34362 case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_compile") 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } && {
34374 test -z "$ac_c_werror_flag" ||
34375 test ! -s conftest.err
34376 } && test -s conftest.$ac_objext; then
34377 ac_cv_type_minor_t=yes
34379 echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34382 ac_cv_type_minor_t=no
34385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34387 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34388 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34389 if test $ac_cv_type_minor_t = yes; then
34393 cat >>confdefs.h <<_ACEOF
34394 #define minor_t int
34399 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34400 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34401 if test "${ac_cv_type_ssize_t+set}" = set; then
34402 echo $ECHO_N "(cached) $ECHO_C" >&6
34404 cat >conftest.$ac_ext <<_ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h. */
34410 $ac_includes_default
34411 typedef ssize_t ac__type_new_;
34415 if ((ac__type_new_ *) 0)
34417 if (sizeof (ac__type_new_))
34423 rm -f conftest.$ac_objext
34424 if { (ac_try="$ac_compile"
34425 case "(($ac_try" in
34426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34427 *) ac_try_echo=$ac_try;;
34429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34430 (eval "$ac_compile") 2>conftest.er1
34432 grep -v '^ *+' conftest.er1 >conftest.err
34434 cat conftest.err >&5
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); } && {
34437 test -z "$ac_c_werror_flag" ||
34438 test ! -s conftest.err
34439 } && test -s conftest.$ac_objext; then
34440 ac_cv_type_ssize_t=yes
34442 echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34445 ac_cv_type_ssize_t=no
34448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34450 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34451 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34452 if test $ac_cv_type_ssize_t = yes; then
34456 cat >>confdefs.h <<_ACEOF
34457 #define ssize_t int
34462 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34463 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34464 if test "${ac_cv_member_struct_stat_st_blocks+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. */
34473 $ac_includes_default
34477 static struct stat ac_aggr;
34478 if (ac_aggr.st_blocks)
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488 *) ac_try_echo=$ac_try;;
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491 (eval "$ac_compile") 2>conftest.er1
34493 grep -v '^ *+' conftest.er1 >conftest.err
34495 cat conftest.err >&5
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); } && {
34498 test -z "$ac_c_werror_flag" ||
34499 test ! -s conftest.err
34500 } && test -s conftest.$ac_objext; then
34501 ac_cv_member_struct_stat_st_blocks=yes
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 cat >conftest.$ac_ext <<_ACEOF
34509 cat confdefs.h >>conftest.$ac_ext
34510 cat >>conftest.$ac_ext <<_ACEOF
34511 /* end confdefs.h. */
34512 $ac_includes_default
34516 static struct stat ac_aggr;
34517 if (sizeof ac_aggr.st_blocks)
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527 *) ac_try_echo=$ac_try;;
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530 (eval "$ac_compile") 2>conftest.er1
34532 grep -v '^ *+' conftest.er1 >conftest.err
34534 cat conftest.err >&5
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); } && {
34537 test -z "$ac_c_werror_flag" ||
34538 test ! -s conftest.err
34539 } && test -s conftest.$ac_objext; then
34540 ac_cv_member_struct_stat_st_blocks=yes
34542 echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34545 ac_cv_member_struct_stat_st_blocks=no
34548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34554 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34555 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34557 cat >>confdefs.h <<_ACEOF
34558 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34562 cat >>confdefs.h <<\_ACEOF
34563 #define HAVE_ST_BLOCKS 1
34567 case " $LIBOBJS " in
34568 *" fileblocks.$ac_objext "* ) ;;
34569 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34576 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34577 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34578 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34581 cat >conftest.$ac_ext <<_ACEOF
34584 cat confdefs.h >>conftest.$ac_ext
34585 cat >>conftest.$ac_ext <<_ACEOF
34586 /* end confdefs.h. */
34587 $ac_includes_default
34591 static struct stat ac_aggr;
34592 if (ac_aggr.st_rdev)
34598 rm -f conftest.$ac_objext
34599 if { (ac_try="$ac_compile"
34600 case "(($ac_try" in
34601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602 *) ac_try_echo=$ac_try;;
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605 (eval "$ac_compile") 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } && {
34612 test -z "$ac_c_werror_flag" ||
34613 test ! -s conftest.err
34614 } && test -s conftest.$ac_objext; then
34615 ac_cv_member_struct_stat_st_rdev=yes
34617 echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34620 cat >conftest.$ac_ext <<_ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h. */
34626 $ac_includes_default
34630 static struct stat ac_aggr;
34631 if (sizeof ac_aggr.st_rdev)
34637 rm -f conftest.$ac_objext
34638 if { (ac_try="$ac_compile"
34639 case "(($ac_try" in
34640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641 *) ac_try_echo=$ac_try;;
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644 (eval "$ac_compile") 2>conftest.er1
34646 grep -v '^ *+' conftest.er1 >conftest.err
34648 cat conftest.err >&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); } && {
34651 test -z "$ac_c_werror_flag" ||
34652 test ! -s conftest.err
34653 } && test -s conftest.$ac_objext; then
34654 ac_cv_member_struct_stat_st_rdev=yes
34656 echo "$as_me: failed program was:" >&5
34657 sed 's/^/| /' conftest.$ac_ext >&5
34659 ac_cv_member_struct_stat_st_rdev=no
34662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34667 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34668 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34669 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34671 cat >>confdefs.h <<_ACEOF
34672 #define HAVE_STRUCT_STAT_ST_RDEV 1
34676 cat >>confdefs.h <<\_ACEOF
34677 #define HAVE_ST_RDEV 1
34683 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34685 if test "${ac_cv_struct_tm+set}" = set; then
34686 echo $ECHO_N "(cached) $ECHO_C" >&6
34688 cat >conftest.$ac_ext <<_ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h. */
34694 #include <sys/types.h>
34701 int *p = &tm.tm_sec;
34707 rm -f conftest.$ac_objext
34708 if { (ac_try="$ac_compile"
34709 case "(($ac_try" in
34710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34711 *) ac_try_echo=$ac_try;;
34713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34714 (eval "$ac_compile") 2>conftest.er1
34716 grep -v '^ *+' conftest.er1 >conftest.err
34718 cat conftest.err >&5
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); } && {
34721 test -z "$ac_c_werror_flag" ||
34722 test ! -s conftest.err
34723 } && test -s conftest.$ac_objext; then
34724 ac_cv_struct_tm=time.h
34726 echo "$as_me: failed program was:" >&5
34727 sed 's/^/| /' conftest.$ac_ext >&5
34729 ac_cv_struct_tm=sys/time.h
34732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34734 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34735 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34736 if test $ac_cv_struct_tm = sys/time.h; then
34738 cat >>confdefs.h <<\_ACEOF
34739 #define TM_IN_SYS_TIME 1
34744 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34745 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34746 if test "${ac_cv_c_const+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34749 cat >conftest.$ac_ext <<_ACEOF
34752 cat confdefs.h >>conftest.$ac_ext
34753 cat >>conftest.$ac_ext <<_ACEOF
34754 /* end confdefs.h. */
34759 /* FIXME: Include the comments suggested by Paul. */
34760 #ifndef __cplusplus
34761 /* Ultrix mips cc rejects this. */
34762 typedef int charset[2];
34764 /* SunOS 4.1.1 cc rejects this. */
34765 char const *const *pcpcc;
34767 /* NEC SVR4.0.2 mips cc rejects this. */
34768 struct point {int x, y;};
34769 static struct point const zero = {0,0};
34770 /* AIX XL C 1.02.0.0 rejects this.
34771 It does not let you subtract one const X* pointer from another in
34772 an arm of an if-expression whose if-part is not a constant
34774 const char *g = "string";
34775 pcpcc = &g + (g ? g-g : 0);
34776 /* HPUX 7.0 cc rejects these. */
34778 ppc = (char**) pcpcc;
34779 pcpcc = (char const *const *) ppc;
34780 { /* SCO 3.2v4 cc rejects this. */
34782 char const *s = 0 ? (char *) 0 : (char const *) 0;
34787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34788 int x[] = {25, 17};
34789 const int *foo = &x[0];
34792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34793 typedef const int *iptr;
34797 { /* AIX XL C 1.02.0.0 rejects this saying
34798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34799 struct s { int j; const int *ap[3]; };
34800 struct s *b; b->j = 5;
34802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34803 const int foo = 10;
34804 if (!foo) return 0;
34806 return !cs[0] && !zero.x;
34813 rm -f conftest.$ac_objext
34814 if { (ac_try="$ac_compile"
34815 case "(($ac_try" in
34816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34817 *) ac_try_echo=$ac_try;;
34819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34820 (eval "$ac_compile") 2>conftest.er1
34822 grep -v '^ *+' conftest.er1 >conftest.err
34824 cat conftest.err >&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); } && {
34827 test -z "$ac_c_werror_flag" ||
34828 test ! -s conftest.err
34829 } && test -s conftest.$ac_objext; then
34832 echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34840 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34841 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34842 if test $ac_cv_c_const = no; then
34844 cat >>confdefs.h <<\_ACEOF
34851 { echo "$as_me:$LINENO: checking for char" >&5
34852 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34853 if test "${ac_cv_type_char+set}" = set; then
34854 echo $ECHO_N "(cached) $ECHO_C" >&6
34856 cat >conftest.$ac_ext <<_ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h. */
34862 $ac_includes_default
34863 typedef char ac__type_new_;
34867 if ((ac__type_new_ *) 0)
34869 if (sizeof (ac__type_new_))
34875 rm -f conftest.$ac_objext
34876 if { (ac_try="$ac_compile"
34877 case "(($ac_try" in
34878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34879 *) ac_try_echo=$ac_try;;
34881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34882 (eval "$ac_compile") 2>conftest.er1
34884 grep -v '^ *+' conftest.er1 >conftest.err
34886 cat conftest.err >&5
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } && {
34889 test -z "$ac_c_werror_flag" ||
34890 test ! -s conftest.err
34891 } && test -s conftest.$ac_objext; then
34892 ac_cv_type_char=yes
34894 echo "$as_me: failed program was:" >&5
34895 sed 's/^/| /' conftest.$ac_ext >&5
34900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34902 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34903 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34905 # The cast to long int works around a bug in the HP C Compiler
34906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34908 # This bug is HP SR number 8606223364.
34909 { echo "$as_me:$LINENO: checking size of char" >&5
34910 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34911 if test "${ac_cv_sizeof_char+set}" = set; then
34912 echo $ECHO_N "(cached) $ECHO_C" >&6
34914 if test "$cross_compiling" = yes; then
34915 # Depending upon the size, compute the lo and hi bounds.
34916 cat >conftest.$ac_ext <<_ACEOF
34919 cat confdefs.h >>conftest.$ac_ext
34920 cat >>conftest.$ac_ext <<_ACEOF
34921 /* end confdefs.h. */
34922 $ac_includes_default
34923 typedef char ac__type_sizeof_;
34927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34934 rm -f conftest.$ac_objext
34935 if { (ac_try="$ac_compile"
34936 case "(($ac_try" in
34937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34938 *) ac_try_echo=$ac_try;;
34940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34941 (eval "$ac_compile") 2>conftest.er1
34943 grep -v '^ *+' conftest.er1 >conftest.err
34945 cat conftest.err >&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); } && {
34948 test -z "$ac_c_werror_flag" ||
34949 test ! -s conftest.err
34950 } && test -s conftest.$ac_objext; then
34953 cat >conftest.$ac_ext <<_ACEOF
34956 cat confdefs.h >>conftest.$ac_ext
34957 cat >>conftest.$ac_ext <<_ACEOF
34958 /* end confdefs.h. */
34959 $ac_includes_default
34960 typedef char ac__type_sizeof_;
34964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34971 rm -f conftest.$ac_objext
34972 if { (ac_try="$ac_compile"
34973 case "(($ac_try" in
34974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34975 *) ac_try_echo=$ac_try;;
34977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34978 (eval "$ac_compile") 2>conftest.er1
34980 grep -v '^ *+' conftest.er1 >conftest.err
34982 cat conftest.err >&5
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); } && {
34985 test -z "$ac_c_werror_flag" ||
34986 test ! -s conftest.err
34987 } && test -s conftest.$ac_objext; then
34988 ac_hi=$ac_mid; break
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34993 ac_lo=`expr $ac_mid + 1`
34994 if test $ac_lo -le $ac_mid; then
34998 ac_mid=`expr 2 '*' $ac_mid + 1`
35001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35004 echo "$as_me: failed program was:" >&5
35005 sed 's/^/| /' conftest.$ac_ext >&5
35007 cat >conftest.$ac_ext <<_ACEOF
35010 cat confdefs.h >>conftest.$ac_ext
35011 cat >>conftest.$ac_ext <<_ACEOF
35012 /* end confdefs.h. */
35013 $ac_includes_default
35014 typedef char ac__type_sizeof_;
35018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35025 rm -f conftest.$ac_objext
35026 if { (ac_try="$ac_compile"
35027 case "(($ac_try" in
35028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35029 *) ac_try_echo=$ac_try;;
35031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35032 (eval "$ac_compile") 2>conftest.er1
35034 grep -v '^ *+' conftest.er1 >conftest.err
35036 cat conftest.err >&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); } && {
35039 test -z "$ac_c_werror_flag" ||
35040 test ! -s conftest.err
35041 } && test -s conftest.$ac_objext; then
35044 cat >conftest.$ac_ext <<_ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h. */
35050 $ac_includes_default
35051 typedef char ac__type_sizeof_;
35055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35062 rm -f conftest.$ac_objext
35063 if { (ac_try="$ac_compile"
35064 case "(($ac_try" in
35065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066 *) ac_try_echo=$ac_try;;
35068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069 (eval "$ac_compile") 2>conftest.er1
35071 grep -v '^ *+' conftest.er1 >conftest.err
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } && {
35076 test -z "$ac_c_werror_flag" ||
35077 test ! -s conftest.err
35078 } && test -s conftest.$ac_objext; then
35079 ac_lo=$ac_mid; break
35081 echo "$as_me: failed program was:" >&5
35082 sed 's/^/| /' conftest.$ac_ext >&5
35084 ac_hi=`expr '(' $ac_mid ')' - 1`
35085 if test $ac_mid -le $ac_hi; then
35089 ac_mid=`expr 2 '*' $ac_mid`
35092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35095 echo "$as_me: failed program was:" >&5
35096 sed 's/^/| /' conftest.$ac_ext >&5
35101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35105 # Binary search between lo and hi bounds.
35106 while test "x$ac_lo" != "x$ac_hi"; do
35107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35108 cat >conftest.$ac_ext <<_ACEOF
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h. */
35114 $ac_includes_default
35115 typedef char ac__type_sizeof_;
35119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35126 rm -f conftest.$ac_objext
35127 if { (ac_try="$ac_compile"
35128 case "(($ac_try" in
35129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35130 *) ac_try_echo=$ac_try;;
35132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35133 (eval "$ac_compile") 2>conftest.er1
35135 grep -v '^ *+' conftest.er1 >conftest.err
35137 cat conftest.err >&5
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); } && {
35140 test -z "$ac_c_werror_flag" ||
35141 test ! -s conftest.err
35142 } && test -s conftest.$ac_objext; then
35145 echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35148 ac_lo=`expr '(' $ac_mid ')' + 1`
35151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35154 ?*) ac_cv_sizeof_char=$ac_lo;;
35155 '') if test "$ac_cv_type_char" = yes; then
35156 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35157 See \`config.log' for more details." >&5
35158 echo "$as_me: error: cannot compute sizeof (char)
35159 See \`config.log' for more details." >&2;}
35160 { (exit 77); exit 77; }; }
35162 ac_cv_sizeof_char=0
35166 cat >conftest.$ac_ext <<_ACEOF
35169 cat confdefs.h >>conftest.$ac_ext
35170 cat >>conftest.$ac_ext <<_ACEOF
35171 /* end confdefs.h. */
35172 $ac_includes_default
35173 typedef char ac__type_sizeof_;
35174 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35175 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35177 #include <stdlib.h>
35182 FILE *f = fopen ("conftest.val", "w");
35185 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35187 long int i = longval ();
35188 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35190 fprintf (f, "%ld\n", i);
35194 unsigned long int i = ulongval ();
35195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35197 fprintf (f, "%lu\n", i);
35199 return ferror (f) || fclose (f) != 0;
35205 rm -f conftest$ac_exeext
35206 if { (ac_try="$ac_link"
35207 case "(($ac_try" in
35208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35209 *) ac_try_echo=$ac_try;;
35211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35212 (eval "$ac_link") 2>&5
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35216 { (case "(($ac_try" in
35217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35218 *) ac_try_echo=$ac_try;;
35220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221 (eval "$ac_try") 2>&5
35223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224 (exit $ac_status); }; }; then
35225 ac_cv_sizeof_char=`cat conftest.val`
35227 echo "$as_me: program exited with status $ac_status" >&5
35228 echo "$as_me: failed program was:" >&5
35229 sed 's/^/| /' conftest.$ac_ext >&5
35231 ( exit $ac_status )
35232 if test "$ac_cv_type_char" = yes; then
35233 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35234 See \`config.log' for more details." >&5
35235 echo "$as_me: error: cannot compute sizeof (char)
35236 See \`config.log' for more details." >&2;}
35237 { (exit 77); exit 77; }; }
35239 ac_cv_sizeof_char=0
35242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35246 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35247 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35251 cat >>confdefs.h <<_ACEOF
35252 #define SIZEOF_CHAR $ac_cv_sizeof_char
35256 { echo "$as_me:$LINENO: checking for short int" >&5
35257 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35258 if test "${ac_cv_type_short_int+set}" = set; then
35259 echo $ECHO_N "(cached) $ECHO_C" >&6
35261 cat >conftest.$ac_ext <<_ACEOF
35264 cat confdefs.h >>conftest.$ac_ext
35265 cat >>conftest.$ac_ext <<_ACEOF
35266 /* end confdefs.h. */
35267 $ac_includes_default
35268 typedef short int ac__type_new_;
35272 if ((ac__type_new_ *) 0)
35274 if (sizeof (ac__type_new_))
35280 rm -f conftest.$ac_objext
35281 if { (ac_try="$ac_compile"
35282 case "(($ac_try" in
35283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35284 *) ac_try_echo=$ac_try;;
35286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35287 (eval "$ac_compile") 2>conftest.er1
35289 grep -v '^ *+' conftest.er1 >conftest.err
35291 cat conftest.err >&5
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); } && {
35294 test -z "$ac_c_werror_flag" ||
35295 test ! -s conftest.err
35296 } && test -s conftest.$ac_objext; then
35297 ac_cv_type_short_int=yes
35299 echo "$as_me: failed program was:" >&5
35300 sed 's/^/| /' conftest.$ac_ext >&5
35302 ac_cv_type_short_int=no
35305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35308 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35310 # The cast to long int works around a bug in the HP C Compiler
35311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35313 # This bug is HP SR number 8606223364.
35314 { echo "$as_me:$LINENO: checking size of short int" >&5
35315 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35316 if test "${ac_cv_sizeof_short_int+set}" = set; then
35317 echo $ECHO_N "(cached) $ECHO_C" >&6
35319 if test "$cross_compiling" = yes; then
35320 # Depending upon the size, compute the lo and hi bounds.
35321 cat >conftest.$ac_ext <<_ACEOF
35324 cat confdefs.h >>conftest.$ac_ext
35325 cat >>conftest.$ac_ext <<_ACEOF
35326 /* end confdefs.h. */
35327 $ac_includes_default
35328 typedef short int ac__type_sizeof_;
35332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35339 rm -f conftest.$ac_objext
35340 if { (ac_try="$ac_compile"
35341 case "(($ac_try" in
35342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343 *) ac_try_echo=$ac_try;;
35345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35346 (eval "$ac_compile") 2>conftest.er1
35348 grep -v '^ *+' conftest.er1 >conftest.err
35350 cat conftest.err >&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } && {
35353 test -z "$ac_c_werror_flag" ||
35354 test ! -s conftest.err
35355 } && test -s conftest.$ac_objext; then
35358 cat >conftest.$ac_ext <<_ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h. */
35364 $ac_includes_default
35365 typedef short int ac__type_sizeof_;
35369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35376 rm -f conftest.$ac_objext
35377 if { (ac_try="$ac_compile"
35378 case "(($ac_try" in
35379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35380 *) ac_try_echo=$ac_try;;
35382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35383 (eval "$ac_compile") 2>conftest.er1
35385 grep -v '^ *+' conftest.er1 >conftest.err
35387 cat conftest.err >&5
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); } && {
35390 test -z "$ac_c_werror_flag" ||
35391 test ! -s conftest.err
35392 } && test -s conftest.$ac_objext; then
35393 ac_hi=$ac_mid; break
35395 echo "$as_me: failed program was:" >&5
35396 sed 's/^/| /' conftest.$ac_ext >&5
35398 ac_lo=`expr $ac_mid + 1`
35399 if test $ac_lo -le $ac_mid; then
35403 ac_mid=`expr 2 '*' $ac_mid + 1`
35406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35409 echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.$ac_ext >&5
35412 cat >conftest.$ac_ext <<_ACEOF
35415 cat confdefs.h >>conftest.$ac_ext
35416 cat >>conftest.$ac_ext <<_ACEOF
35417 /* end confdefs.h. */
35418 $ac_includes_default
35419 typedef short int ac__type_sizeof_;
35423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35430 rm -f conftest.$ac_objext
35431 if { (ac_try="$ac_compile"
35432 case "(($ac_try" in
35433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35434 *) ac_try_echo=$ac_try;;
35436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35437 (eval "$ac_compile") 2>conftest.er1
35439 grep -v '^ *+' conftest.er1 >conftest.err
35441 cat conftest.err >&5
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); } && {
35444 test -z "$ac_c_werror_flag" ||
35445 test ! -s conftest.err
35446 } && test -s conftest.$ac_objext; then
35449 cat >conftest.$ac_ext <<_ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h. */
35455 $ac_includes_default
35456 typedef short int ac__type_sizeof_;
35460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35467 rm -f conftest.$ac_objext
35468 if { (ac_try="$ac_compile"
35469 case "(($ac_try" in
35470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35471 *) ac_try_echo=$ac_try;;
35473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35474 (eval "$ac_compile") 2>conftest.er1
35476 grep -v '^ *+' conftest.er1 >conftest.err
35478 cat conftest.err >&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); } && {
35481 test -z "$ac_c_werror_flag" ||
35482 test ! -s conftest.err
35483 } && test -s conftest.$ac_objext; then
35484 ac_lo=$ac_mid; break
35486 echo "$as_me: failed program was:" >&5
35487 sed 's/^/| /' conftest.$ac_ext >&5
35489 ac_hi=`expr '(' $ac_mid ')' - 1`
35490 if test $ac_mid -le $ac_hi; then
35494 ac_mid=`expr 2 '*' $ac_mid`
35497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35500 echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35510 # Binary search between lo and hi bounds.
35511 while test "x$ac_lo" != "x$ac_hi"; do
35512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35513 cat >conftest.$ac_ext <<_ACEOF
35516 cat confdefs.h >>conftest.$ac_ext
35517 cat >>conftest.$ac_ext <<_ACEOF
35518 /* end confdefs.h. */
35519 $ac_includes_default
35520 typedef short int ac__type_sizeof_;
35524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35531 rm -f conftest.$ac_objext
35532 if { (ac_try="$ac_compile"
35533 case "(($ac_try" in
35534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35535 *) ac_try_echo=$ac_try;;
35537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35538 (eval "$ac_compile") 2>conftest.er1
35540 grep -v '^ *+' conftest.er1 >conftest.err
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } && {
35545 test -z "$ac_c_werror_flag" ||
35546 test ! -s conftest.err
35547 } && test -s conftest.$ac_objext; then
35550 echo "$as_me: failed program was:" >&5
35551 sed 's/^/| /' conftest.$ac_ext >&5
35553 ac_lo=`expr '(' $ac_mid ')' + 1`
35556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35560 '') if test "$ac_cv_type_short_int" = yes; then
35561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35562 See \`config.log' for more details." >&5
35563 echo "$as_me: error: cannot compute sizeof (short int)
35564 See \`config.log' for more details." >&2;}
35565 { (exit 77); exit 77; }; }
35567 ac_cv_sizeof_short_int=0
35571 cat >conftest.$ac_ext <<_ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h. */
35577 $ac_includes_default
35578 typedef short int ac__type_sizeof_;
35579 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35580 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35582 #include <stdlib.h>
35587 FILE *f = fopen ("conftest.val", "w");
35590 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35592 long int i = longval ();
35593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35595 fprintf (f, "%ld\n", i);
35599 unsigned long int i = ulongval ();
35600 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35602 fprintf (f, "%lu\n", i);
35604 return ferror (f) || fclose (f) != 0;
35610 rm -f conftest$ac_exeext
35611 if { (ac_try="$ac_link"
35612 case "(($ac_try" in
35613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35614 *) ac_try_echo=$ac_try;;
35616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35617 (eval "$ac_link") 2>&5
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35621 { (case "(($ac_try" in
35622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35623 *) ac_try_echo=$ac_try;;
35625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35626 (eval "$ac_try") 2>&5
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; }; then
35630 ac_cv_sizeof_short_int=`cat conftest.val`
35632 echo "$as_me: program exited with status $ac_status" >&5
35633 echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35636 ( exit $ac_status )
35637 if test "$ac_cv_type_short_int" = yes; then
35638 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35639 See \`config.log' for more details." >&5
35640 echo "$as_me: error: cannot compute sizeof (short int)
35641 See \`config.log' for more details." >&2;}
35642 { (exit 77); exit 77; }; }
35644 ac_cv_sizeof_short_int=0
35647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35651 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35652 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35656 cat >>confdefs.h <<_ACEOF
35657 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35661 { echo "$as_me:$LINENO: checking for int" >&5
35662 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35663 if test "${ac_cv_type_int+set}" = set; then
35664 echo $ECHO_N "(cached) $ECHO_C" >&6
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 $ac_includes_default
35673 typedef int ac__type_new_;
35677 if ((ac__type_new_ *) 0)
35679 if (sizeof (ac__type_new_))
35685 rm -f conftest.$ac_objext
35686 if { (ac_try="$ac_compile"
35687 case "(($ac_try" in
35688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35689 *) ac_try_echo=$ac_try;;
35691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35692 (eval "$ac_compile") 2>conftest.er1
35694 grep -v '^ *+' conftest.er1 >conftest.err
35696 cat conftest.err >&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); } && {
35699 test -z "$ac_c_werror_flag" ||
35700 test ! -s conftest.err
35701 } && test -s conftest.$ac_objext; then
35704 echo "$as_me: failed program was:" >&5
35705 sed 's/^/| /' conftest.$ac_ext >&5
35710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35712 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35713 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35715 # The cast to long int works around a bug in the HP C Compiler
35716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35718 # This bug is HP SR number 8606223364.
35719 { echo "$as_me:$LINENO: checking size of int" >&5
35720 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35721 if test "${ac_cv_sizeof_int+set}" = set; then
35722 echo $ECHO_N "(cached) $ECHO_C" >&6
35724 if test "$cross_compiling" = yes; then
35725 # Depending upon the size, compute the lo and hi bounds.
35726 cat >conftest.$ac_ext <<_ACEOF
35729 cat confdefs.h >>conftest.$ac_ext
35730 cat >>conftest.$ac_ext <<_ACEOF
35731 /* end confdefs.h. */
35732 $ac_includes_default
35733 typedef int ac__type_sizeof_;
35737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35744 rm -f conftest.$ac_objext
35745 if { (ac_try="$ac_compile"
35746 case "(($ac_try" in
35747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35748 *) ac_try_echo=$ac_try;;
35750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35751 (eval "$ac_compile") 2>conftest.er1
35753 grep -v '^ *+' conftest.er1 >conftest.err
35755 cat conftest.err >&5
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); } && {
35758 test -z "$ac_c_werror_flag" ||
35759 test ! -s conftest.err
35760 } && test -s conftest.$ac_objext; then
35763 cat >conftest.$ac_ext <<_ACEOF
35766 cat confdefs.h >>conftest.$ac_ext
35767 cat >>conftest.$ac_ext <<_ACEOF
35768 /* end confdefs.h. */
35769 $ac_includes_default
35770 typedef int ac__type_sizeof_;
35774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35781 rm -f conftest.$ac_objext
35782 if { (ac_try="$ac_compile"
35783 case "(($ac_try" in
35784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35785 *) ac_try_echo=$ac_try;;
35787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35788 (eval "$ac_compile") 2>conftest.er1
35790 grep -v '^ *+' conftest.er1 >conftest.err
35792 cat conftest.err >&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } && {
35795 test -z "$ac_c_werror_flag" ||
35796 test ! -s conftest.err
35797 } && test -s conftest.$ac_objext; then
35798 ac_hi=$ac_mid; break
35800 echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35803 ac_lo=`expr $ac_mid + 1`
35804 if test $ac_lo -le $ac_mid; then
35808 ac_mid=`expr 2 '*' $ac_mid + 1`
35811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35814 echo "$as_me: failed program was:" >&5
35815 sed 's/^/| /' conftest.$ac_ext >&5
35817 cat >conftest.$ac_ext <<_ACEOF
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h. */
35823 $ac_includes_default
35824 typedef int ac__type_sizeof_;
35828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35835 rm -f conftest.$ac_objext
35836 if { (ac_try="$ac_compile"
35837 case "(($ac_try" in
35838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35839 *) ac_try_echo=$ac_try;;
35841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35842 (eval "$ac_compile") 2>conftest.er1
35844 grep -v '^ *+' conftest.er1 >conftest.err
35846 cat conftest.err >&5
35847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848 (exit $ac_status); } && {
35849 test -z "$ac_c_werror_flag" ||
35850 test ! -s conftest.err
35851 } && test -s conftest.$ac_objext; then
35854 cat >conftest.$ac_ext <<_ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35860 $ac_includes_default
35861 typedef int ac__type_sizeof_;
35865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35872 rm -f conftest.$ac_objext
35873 if { (ac_try="$ac_compile"
35874 case "(($ac_try" in
35875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876 *) ac_try_echo=$ac_try;;
35878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35879 (eval "$ac_compile") 2>conftest.er1
35881 grep -v '^ *+' conftest.er1 >conftest.err
35883 cat conftest.err >&5
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } && {
35886 test -z "$ac_c_werror_flag" ||
35887 test ! -s conftest.err
35888 } && test -s conftest.$ac_objext; then
35889 ac_lo=$ac_mid; break
35891 echo "$as_me: failed program was:" >&5
35892 sed 's/^/| /' conftest.$ac_ext >&5
35894 ac_hi=`expr '(' $ac_mid ')' - 1`
35895 if test $ac_mid -le $ac_hi; then
35899 ac_mid=`expr 2 '*' $ac_mid`
35902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35905 echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35915 # Binary search between lo and hi bounds.
35916 while test "x$ac_lo" != "x$ac_hi"; do
35917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35918 cat >conftest.$ac_ext <<_ACEOF
35921 cat confdefs.h >>conftest.$ac_ext
35922 cat >>conftest.$ac_ext <<_ACEOF
35923 /* end confdefs.h. */
35924 $ac_includes_default
35925 typedef int ac__type_sizeof_;
35929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35936 rm -f conftest.$ac_objext
35937 if { (ac_try="$ac_compile"
35938 case "(($ac_try" in
35939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35940 *) ac_try_echo=$ac_try;;
35942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35943 (eval "$ac_compile") 2>conftest.er1
35945 grep -v '^ *+' conftest.er1 >conftest.err
35947 cat conftest.err >&5
35948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949 (exit $ac_status); } && {
35950 test -z "$ac_c_werror_flag" ||
35951 test ! -s conftest.err
35952 } && test -s conftest.$ac_objext; then
35955 echo "$as_me: failed program was:" >&5
35956 sed 's/^/| /' conftest.$ac_ext >&5
35958 ac_lo=`expr '(' $ac_mid ')' + 1`
35961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35964 ?*) ac_cv_sizeof_int=$ac_lo;;
35965 '') if test "$ac_cv_type_int" = yes; then
35966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35967 See \`config.log' for more details." >&5
35968 echo "$as_me: error: cannot compute sizeof (int)
35969 See \`config.log' for more details." >&2;}
35970 { (exit 77); exit 77; }; }
35976 cat >conftest.$ac_ext <<_ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35982 $ac_includes_default
35983 typedef int ac__type_sizeof_;
35984 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35985 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35987 #include <stdlib.h>
35992 FILE *f = fopen ("conftest.val", "w");
35995 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35997 long int i = longval ();
35998 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36000 fprintf (f, "%ld\n", i);
36004 unsigned long int i = ulongval ();
36005 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36007 fprintf (f, "%lu\n", i);
36009 return ferror (f) || fclose (f) != 0;
36015 rm -f conftest$ac_exeext
36016 if { (ac_try="$ac_link"
36017 case "(($ac_try" in
36018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36019 *) ac_try_echo=$ac_try;;
36021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36022 (eval "$ac_link") 2>&5
36024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36026 { (case "(($ac_try" in
36027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36028 *) ac_try_echo=$ac_try;;
36030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36031 (eval "$ac_try") 2>&5
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; }; then
36035 ac_cv_sizeof_int=`cat conftest.val`
36037 echo "$as_me: program exited with status $ac_status" >&5
36038 echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36041 ( exit $ac_status )
36042 if test "$ac_cv_type_int" = yes; then
36043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36044 See \`config.log' for more details." >&5
36045 echo "$as_me: error: cannot compute sizeof (int)
36046 See \`config.log' for more details." >&2;}
36047 { (exit 77); exit 77; }; }
36052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36056 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36057 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36061 cat >>confdefs.h <<_ACEOF
36062 #define SIZEOF_INT $ac_cv_sizeof_int
36066 { echo "$as_me:$LINENO: checking for long int" >&5
36067 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36068 if test "${ac_cv_type_long_int+set}" = set; then
36069 echo $ECHO_N "(cached) $ECHO_C" >&6
36071 cat >conftest.$ac_ext <<_ACEOF
36074 cat confdefs.h >>conftest.$ac_ext
36075 cat >>conftest.$ac_ext <<_ACEOF
36076 /* end confdefs.h. */
36077 $ac_includes_default
36078 typedef long int ac__type_new_;
36082 if ((ac__type_new_ *) 0)
36084 if (sizeof (ac__type_new_))
36090 rm -f conftest.$ac_objext
36091 if { (ac_try="$ac_compile"
36092 case "(($ac_try" in
36093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36094 *) ac_try_echo=$ac_try;;
36096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36097 (eval "$ac_compile") 2>conftest.er1
36099 grep -v '^ *+' conftest.er1 >conftest.err
36101 cat conftest.err >&5
36102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); } && {
36104 test -z "$ac_c_werror_flag" ||
36105 test ! -s conftest.err
36106 } && test -s conftest.$ac_objext; then
36107 ac_cv_type_long_int=yes
36109 echo "$as_me: failed program was:" >&5
36110 sed 's/^/| /' conftest.$ac_ext >&5
36112 ac_cv_type_long_int=no
36115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36117 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36118 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36120 # The cast to long int works around a bug in the HP C Compiler
36121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36123 # This bug is HP SR number 8606223364.
36124 { echo "$as_me:$LINENO: checking size of long int" >&5
36125 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36126 if test "${ac_cv_sizeof_long_int+set}" = set; then
36127 echo $ECHO_N "(cached) $ECHO_C" >&6
36129 if test "$cross_compiling" = yes; then
36130 # Depending upon the size, compute the lo and hi bounds.
36131 cat >conftest.$ac_ext <<_ACEOF
36134 cat confdefs.h >>conftest.$ac_ext
36135 cat >>conftest.$ac_ext <<_ACEOF
36136 /* end confdefs.h. */
36137 $ac_includes_default
36138 typedef long int ac__type_sizeof_;
36142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36149 rm -f conftest.$ac_objext
36150 if { (ac_try="$ac_compile"
36151 case "(($ac_try" in
36152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153 *) ac_try_echo=$ac_try;;
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156 (eval "$ac_compile") 2>conftest.er1
36158 grep -v '^ *+' conftest.er1 >conftest.err
36160 cat conftest.err >&5
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); } && {
36163 test -z "$ac_c_werror_flag" ||
36164 test ! -s conftest.err
36165 } && test -s conftest.$ac_objext; then
36168 cat >conftest.$ac_ext <<_ACEOF
36171 cat confdefs.h >>conftest.$ac_ext
36172 cat >>conftest.$ac_ext <<_ACEOF
36173 /* end confdefs.h. */
36174 $ac_includes_default
36175 typedef long int ac__type_sizeof_;
36179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36186 rm -f conftest.$ac_objext
36187 if { (ac_try="$ac_compile"
36188 case "(($ac_try" in
36189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36190 *) ac_try_echo=$ac_try;;
36192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36193 (eval "$ac_compile") 2>conftest.er1
36195 grep -v '^ *+' conftest.er1 >conftest.err
36197 cat conftest.err >&5
36198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); } && {
36200 test -z "$ac_c_werror_flag" ||
36201 test ! -s conftest.err
36202 } && test -s conftest.$ac_objext; then
36203 ac_hi=$ac_mid; break
36205 echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36208 ac_lo=`expr $ac_mid + 1`
36209 if test $ac_lo -le $ac_mid; then
36213 ac_mid=`expr 2 '*' $ac_mid + 1`
36216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36219 echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36222 cat >conftest.$ac_ext <<_ACEOF
36225 cat confdefs.h >>conftest.$ac_ext
36226 cat >>conftest.$ac_ext <<_ACEOF
36227 /* end confdefs.h. */
36228 $ac_includes_default
36229 typedef long int ac__type_sizeof_;
36233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36240 rm -f conftest.$ac_objext
36241 if { (ac_try="$ac_compile"
36242 case "(($ac_try" in
36243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244 *) ac_try_echo=$ac_try;;
36246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247 (eval "$ac_compile") 2>conftest.er1
36249 grep -v '^ *+' conftest.er1 >conftest.err
36251 cat conftest.err >&5
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); } && {
36254 test -z "$ac_c_werror_flag" ||
36255 test ! -s conftest.err
36256 } && test -s conftest.$ac_objext; then
36259 cat >conftest.$ac_ext <<_ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h. */
36265 $ac_includes_default
36266 typedef long int ac__type_sizeof_;
36270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36277 rm -f conftest.$ac_objext
36278 if { (ac_try="$ac_compile"
36279 case "(($ac_try" in
36280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36281 *) ac_try_echo=$ac_try;;
36283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36284 (eval "$ac_compile") 2>conftest.er1
36286 grep -v '^ *+' conftest.er1 >conftest.err
36288 cat conftest.err >&5
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); } && {
36291 test -z "$ac_c_werror_flag" ||
36292 test ! -s conftest.err
36293 } && test -s conftest.$ac_objext; then
36294 ac_lo=$ac_mid; break
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36299 ac_hi=`expr '(' $ac_mid ')' - 1`
36300 if test $ac_mid -le $ac_hi; then
36304 ac_mid=`expr 2 '*' $ac_mid`
36307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36310 echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36320 # Binary search between lo and hi bounds.
36321 while test "x$ac_lo" != "x$ac_hi"; do
36322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36323 cat >conftest.$ac_ext <<_ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h. */
36329 $ac_includes_default
36330 typedef long int ac__type_sizeof_;
36334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36341 rm -f conftest.$ac_objext
36342 if { (ac_try="$ac_compile"
36343 case "(($ac_try" in
36344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345 *) ac_try_echo=$ac_try;;
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348 (eval "$ac_compile") 2>conftest.er1
36350 grep -v '^ *+' conftest.er1 >conftest.err
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } && {
36355 test -z "$ac_c_werror_flag" ||
36356 test ! -s conftest.err
36357 } && test -s conftest.$ac_objext; then
36360 echo "$as_me: failed program was:" >&5
36361 sed 's/^/| /' conftest.$ac_ext >&5
36363 ac_lo=`expr '(' $ac_mid ')' + 1`
36366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36369 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36370 '') if test "$ac_cv_type_long_int" = yes; then
36371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36372 See \`config.log' for more details." >&5
36373 echo "$as_me: error: cannot compute sizeof (long int)
36374 See \`config.log' for more details." >&2;}
36375 { (exit 77); exit 77; }; }
36377 ac_cv_sizeof_long_int=0
36381 cat >conftest.$ac_ext <<_ACEOF
36384 cat confdefs.h >>conftest.$ac_ext
36385 cat >>conftest.$ac_ext <<_ACEOF
36386 /* end confdefs.h. */
36387 $ac_includes_default
36388 typedef long int ac__type_sizeof_;
36389 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36390 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36392 #include <stdlib.h>
36397 FILE *f = fopen ("conftest.val", "w");
36400 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36402 long int i = longval ();
36403 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36405 fprintf (f, "%ld\n", i);
36409 unsigned long int i = ulongval ();
36410 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36412 fprintf (f, "%lu\n", i);
36414 return ferror (f) || fclose (f) != 0;
36420 rm -f conftest$ac_exeext
36421 if { (ac_try="$ac_link"
36422 case "(($ac_try" in
36423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424 *) ac_try_echo=$ac_try;;
36426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36427 (eval "$ac_link") 2>&5
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36431 { (case "(($ac_try" in
36432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36433 *) ac_try_echo=$ac_try;;
36435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36436 (eval "$ac_try") 2>&5
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; }; then
36440 ac_cv_sizeof_long_int=`cat conftest.val`
36442 echo "$as_me: program exited with status $ac_status" >&5
36443 echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.$ac_ext >&5
36446 ( exit $ac_status )
36447 if test "$ac_cv_type_long_int" = yes; then
36448 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36449 See \`config.log' for more details." >&5
36450 echo "$as_me: error: cannot compute sizeof (long int)
36451 See \`config.log' for more details." >&2;}
36452 { (exit 77); exit 77; }; }
36454 ac_cv_sizeof_long_int=0
36457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36461 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36462 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36466 cat >>confdefs.h <<_ACEOF
36467 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36471 { echo "$as_me:$LINENO: checking for long long int" >&5
36472 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36473 if test "${ac_cv_type_long_long_int+set}" = set; then
36474 echo $ECHO_N "(cached) $ECHO_C" >&6
36476 cat >conftest.$ac_ext <<_ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h. */
36482 $ac_includes_default
36483 typedef long long int ac__type_new_;
36487 if ((ac__type_new_ *) 0)
36489 if (sizeof (ac__type_new_))
36495 rm -f conftest.$ac_objext
36496 if { (ac_try="$ac_compile"
36497 case "(($ac_try" in
36498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36499 *) ac_try_echo=$ac_try;;
36501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36502 (eval "$ac_compile") 2>conftest.er1
36504 grep -v '^ *+' conftest.er1 >conftest.err
36506 cat conftest.err >&5
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); } && {
36509 test -z "$ac_c_werror_flag" ||
36510 test ! -s conftest.err
36511 } && test -s conftest.$ac_objext; then
36512 ac_cv_type_long_long_int=yes
36514 echo "$as_me: failed program was:" >&5
36515 sed 's/^/| /' conftest.$ac_ext >&5
36517 ac_cv_type_long_long_int=no
36520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36522 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36523 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36525 # The cast to long int works around a bug in the HP C Compiler
36526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36528 # This bug is HP SR number 8606223364.
36529 { echo "$as_me:$LINENO: checking size of long long int" >&5
36530 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36531 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36532 echo $ECHO_N "(cached) $ECHO_C" >&6
36534 if test "$cross_compiling" = yes; then
36535 # Depending upon the size, compute the lo and hi bounds.
36536 cat >conftest.$ac_ext <<_ACEOF
36539 cat confdefs.h >>conftest.$ac_ext
36540 cat >>conftest.$ac_ext <<_ACEOF
36541 /* end confdefs.h. */
36542 $ac_includes_default
36543 typedef long long int ac__type_sizeof_;
36547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36554 rm -f conftest.$ac_objext
36555 if { (ac_try="$ac_compile"
36556 case "(($ac_try" in
36557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558 *) ac_try_echo=$ac_try;;
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561 (eval "$ac_compile") 2>conftest.er1
36563 grep -v '^ *+' conftest.er1 >conftest.err
36565 cat conftest.err >&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); } && {
36568 test -z "$ac_c_werror_flag" ||
36569 test ! -s conftest.err
36570 } && test -s conftest.$ac_objext; then
36573 cat >conftest.$ac_ext <<_ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h. */
36579 $ac_includes_default
36580 typedef long long int ac__type_sizeof_;
36584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36591 rm -f conftest.$ac_objext
36592 if { (ac_try="$ac_compile"
36593 case "(($ac_try" in
36594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36595 *) ac_try_echo=$ac_try;;
36597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36598 (eval "$ac_compile") 2>conftest.er1
36600 grep -v '^ *+' conftest.er1 >conftest.err
36602 cat conftest.err >&5
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); } && {
36605 test -z "$ac_c_werror_flag" ||
36606 test ! -s conftest.err
36607 } && test -s conftest.$ac_objext; then
36608 ac_hi=$ac_mid; break
36610 echo "$as_me: failed program was:" >&5
36611 sed 's/^/| /' conftest.$ac_ext >&5
36613 ac_lo=`expr $ac_mid + 1`
36614 if test $ac_lo -le $ac_mid; then
36618 ac_mid=`expr 2 '*' $ac_mid + 1`
36621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36624 echo "$as_me: failed program was:" >&5
36625 sed 's/^/| /' conftest.$ac_ext >&5
36627 cat >conftest.$ac_ext <<_ACEOF
36630 cat confdefs.h >>conftest.$ac_ext
36631 cat >>conftest.$ac_ext <<_ACEOF
36632 /* end confdefs.h. */
36633 $ac_includes_default
36634 typedef long long int ac__type_sizeof_;
36638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36645 rm -f conftest.$ac_objext
36646 if { (ac_try="$ac_compile"
36647 case "(($ac_try" in
36648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36649 *) ac_try_echo=$ac_try;;
36651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36652 (eval "$ac_compile") 2>conftest.er1
36654 grep -v '^ *+' conftest.er1 >conftest.err
36656 cat conftest.err >&5
36657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658 (exit $ac_status); } && {
36659 test -z "$ac_c_werror_flag" ||
36660 test ! -s conftest.err
36661 } && test -s conftest.$ac_objext; then
36664 cat >conftest.$ac_ext <<_ACEOF
36667 cat confdefs.h >>conftest.$ac_ext
36668 cat >>conftest.$ac_ext <<_ACEOF
36669 /* end confdefs.h. */
36670 $ac_includes_default
36671 typedef long long int ac__type_sizeof_;
36675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36682 rm -f conftest.$ac_objext
36683 if { (ac_try="$ac_compile"
36684 case "(($ac_try" in
36685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36686 *) ac_try_echo=$ac_try;;
36688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36689 (eval "$ac_compile") 2>conftest.er1
36691 grep -v '^ *+' conftest.er1 >conftest.err
36693 cat conftest.err >&5
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); } && {
36696 test -z "$ac_c_werror_flag" ||
36697 test ! -s conftest.err
36698 } && test -s conftest.$ac_objext; then
36699 ac_lo=$ac_mid; break
36701 echo "$as_me: failed program was:" >&5
36702 sed 's/^/| /' conftest.$ac_ext >&5
36704 ac_hi=`expr '(' $ac_mid ')' - 1`
36705 if test $ac_mid -le $ac_hi; then
36709 ac_mid=`expr 2 '*' $ac_mid`
36712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36715 echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36725 # Binary search between lo and hi bounds.
36726 while test "x$ac_lo" != "x$ac_hi"; do
36727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36728 cat >conftest.$ac_ext <<_ACEOF
36731 cat confdefs.h >>conftest.$ac_ext
36732 cat >>conftest.$ac_ext <<_ACEOF
36733 /* end confdefs.h. */
36734 $ac_includes_default
36735 typedef long long int ac__type_sizeof_;
36739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36746 rm -f conftest.$ac_objext
36747 if { (ac_try="$ac_compile"
36748 case "(($ac_try" in
36749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36750 *) ac_try_echo=$ac_try;;
36752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36753 (eval "$ac_compile") 2>conftest.er1
36755 grep -v '^ *+' conftest.er1 >conftest.err
36757 cat conftest.err >&5
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && {
36760 test -z "$ac_c_werror_flag" ||
36761 test ! -s conftest.err
36762 } && test -s conftest.$ac_objext; then
36765 echo "$as_me: failed program was:" >&5
36766 sed 's/^/| /' conftest.$ac_ext >&5
36768 ac_lo=`expr '(' $ac_mid ')' + 1`
36771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36774 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36775 '') if test "$ac_cv_type_long_long_int" = yes; then
36776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36777 See \`config.log' for more details." >&5
36778 echo "$as_me: error: cannot compute sizeof (long long int)
36779 See \`config.log' for more details." >&2;}
36780 { (exit 77); exit 77; }; }
36782 ac_cv_sizeof_long_long_int=0
36786 cat >conftest.$ac_ext <<_ACEOF
36789 cat confdefs.h >>conftest.$ac_ext
36790 cat >>conftest.$ac_ext <<_ACEOF
36791 /* end confdefs.h. */
36792 $ac_includes_default
36793 typedef long long int ac__type_sizeof_;
36794 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36795 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36797 #include <stdlib.h>
36802 FILE *f = fopen ("conftest.val", "w");
36805 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36807 long int i = longval ();
36808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36810 fprintf (f, "%ld\n", i);
36814 unsigned long int i = ulongval ();
36815 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36817 fprintf (f, "%lu\n", i);
36819 return ferror (f) || fclose (f) != 0;
36825 rm -f conftest$ac_exeext
36826 if { (ac_try="$ac_link"
36827 case "(($ac_try" in
36828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36829 *) ac_try_echo=$ac_try;;
36831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36832 (eval "$ac_link") 2>&5
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36836 { (case "(($ac_try" in
36837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36838 *) ac_try_echo=$ac_try;;
36840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36841 (eval "$ac_try") 2>&5
36843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844 (exit $ac_status); }; }; then
36845 ac_cv_sizeof_long_long_int=`cat conftest.val`
36847 echo "$as_me: program exited with status $ac_status" >&5
36848 echo "$as_me: failed program was:" >&5
36849 sed 's/^/| /' conftest.$ac_ext >&5
36851 ( exit $ac_status )
36852 if test "$ac_cv_type_long_long_int" = yes; then
36853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36854 See \`config.log' for more details." >&5
36855 echo "$as_me: error: cannot compute sizeof (long long int)
36856 See \`config.log' for more details." >&2;}
36857 { (exit 77); exit 77; }; }
36859 ac_cv_sizeof_long_long_int=0
36862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36867 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36871 cat >>confdefs.h <<_ACEOF
36872 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36876 { echo "$as_me:$LINENO: checking for int *" >&5
36877 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36878 if test "${ac_cv_type_int_p+set}" = set; then
36879 echo $ECHO_N "(cached) $ECHO_C" >&6
36881 cat >conftest.$ac_ext <<_ACEOF
36884 cat confdefs.h >>conftest.$ac_ext
36885 cat >>conftest.$ac_ext <<_ACEOF
36886 /* end confdefs.h. */
36887 $ac_includes_default
36888 typedef int * ac__type_new_;
36892 if ((ac__type_new_ *) 0)
36894 if (sizeof (ac__type_new_))
36900 rm -f conftest.$ac_objext
36901 if { (ac_try="$ac_compile"
36902 case "(($ac_try" in
36903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36904 *) ac_try_echo=$ac_try;;
36906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36907 (eval "$ac_compile") 2>conftest.er1
36909 grep -v '^ *+' conftest.er1 >conftest.err
36911 cat conftest.err >&5
36912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913 (exit $ac_status); } && {
36914 test -z "$ac_c_werror_flag" ||
36915 test ! -s conftest.err
36916 } && test -s conftest.$ac_objext; then
36917 ac_cv_type_int_p=yes
36919 echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36922 ac_cv_type_int_p=no
36925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36927 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36928 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36930 # The cast to long int works around a bug in the HP C Compiler
36931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36933 # This bug is HP SR number 8606223364.
36934 { echo "$as_me:$LINENO: checking size of int *" >&5
36935 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36936 if test "${ac_cv_sizeof_int_p+set}" = set; then
36937 echo $ECHO_N "(cached) $ECHO_C" >&6
36939 if test "$cross_compiling" = yes; then
36940 # Depending upon the size, compute the lo and hi bounds.
36941 cat >conftest.$ac_ext <<_ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 $ac_includes_default
36948 typedef int * ac__type_sizeof_;
36952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36959 rm -f conftest.$ac_objext
36960 if { (ac_try="$ac_compile"
36961 case "(($ac_try" in
36962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36963 *) ac_try_echo=$ac_try;;
36965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36966 (eval "$ac_compile") 2>conftest.er1
36968 grep -v '^ *+' conftest.er1 >conftest.err
36970 cat conftest.err >&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); } && {
36973 test -z "$ac_c_werror_flag" ||
36974 test ! -s conftest.err
36975 } && test -s conftest.$ac_objext; then
36978 cat >conftest.$ac_ext <<_ACEOF
36981 cat confdefs.h >>conftest.$ac_ext
36982 cat >>conftest.$ac_ext <<_ACEOF
36983 /* end confdefs.h. */
36984 $ac_includes_default
36985 typedef int * ac__type_sizeof_;
36989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36996 rm -f conftest.$ac_objext
36997 if { (ac_try="$ac_compile"
36998 case "(($ac_try" in
36999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37000 *) ac_try_echo=$ac_try;;
37002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37003 (eval "$ac_compile") 2>conftest.er1
37005 grep -v '^ *+' conftest.er1 >conftest.err
37007 cat conftest.err >&5
37008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); } && {
37010 test -z "$ac_c_werror_flag" ||
37011 test ! -s conftest.err
37012 } && test -s conftest.$ac_objext; then
37013 ac_hi=$ac_mid; break
37015 echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37018 ac_lo=`expr $ac_mid + 1`
37019 if test $ac_lo -le $ac_mid; then
37023 ac_mid=`expr 2 '*' $ac_mid + 1`
37026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37029 echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37032 cat >conftest.$ac_ext <<_ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h. */
37038 $ac_includes_default
37039 typedef int * ac__type_sizeof_;
37043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37050 rm -f conftest.$ac_objext
37051 if { (ac_try="$ac_compile"
37052 case "(($ac_try" in
37053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37054 *) ac_try_echo=$ac_try;;
37056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37057 (eval "$ac_compile") 2>conftest.er1
37059 grep -v '^ *+' conftest.er1 >conftest.err
37061 cat conftest.err >&5
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } && {
37064 test -z "$ac_c_werror_flag" ||
37065 test ! -s conftest.err
37066 } && test -s conftest.$ac_objext; then
37069 cat >conftest.$ac_ext <<_ACEOF
37072 cat confdefs.h >>conftest.$ac_ext
37073 cat >>conftest.$ac_ext <<_ACEOF
37074 /* end confdefs.h. */
37075 $ac_includes_default
37076 typedef int * ac__type_sizeof_;
37080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37087 rm -f conftest.$ac_objext
37088 if { (ac_try="$ac_compile"
37089 case "(($ac_try" in
37090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37091 *) ac_try_echo=$ac_try;;
37093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37094 (eval "$ac_compile") 2>conftest.er1
37096 grep -v '^ *+' conftest.er1 >conftest.err
37098 cat conftest.err >&5
37099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100 (exit $ac_status); } && {
37101 test -z "$ac_c_werror_flag" ||
37102 test ! -s conftest.err
37103 } && test -s conftest.$ac_objext; then
37104 ac_lo=$ac_mid; break
37106 echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37109 ac_hi=`expr '(' $ac_mid ')' - 1`
37110 if test $ac_mid -le $ac_hi; then
37114 ac_mid=`expr 2 '*' $ac_mid`
37117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37120 echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130 # Binary search between lo and hi bounds.
37131 while test "x$ac_lo" != "x$ac_hi"; do
37132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37133 cat >conftest.$ac_ext <<_ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h. */
37139 $ac_includes_default
37140 typedef int * ac__type_sizeof_;
37144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37151 rm -f conftest.$ac_objext
37152 if { (ac_try="$ac_compile"
37153 case "(($ac_try" in
37154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37155 *) ac_try_echo=$ac_try;;
37157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37158 (eval "$ac_compile") 2>conftest.er1
37160 grep -v '^ *+' conftest.er1 >conftest.err
37162 cat conftest.err >&5
37163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); } && {
37165 test -z "$ac_c_werror_flag" ||
37166 test ! -s conftest.err
37167 } && test -s conftest.$ac_objext; then
37170 echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37173 ac_lo=`expr '(' $ac_mid ')' + 1`
37176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37180 '') if test "$ac_cv_type_int_p" = yes; then
37181 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37182 See \`config.log' for more details." >&5
37183 echo "$as_me: error: cannot compute sizeof (int *)
37184 See \`config.log' for more details." >&2;}
37185 { (exit 77); exit 77; }; }
37187 ac_cv_sizeof_int_p=0
37191 cat >conftest.$ac_ext <<_ACEOF
37194 cat confdefs.h >>conftest.$ac_ext
37195 cat >>conftest.$ac_ext <<_ACEOF
37196 /* end confdefs.h. */
37197 $ac_includes_default
37198 typedef int * ac__type_sizeof_;
37199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37202 #include <stdlib.h>
37207 FILE *f = fopen ("conftest.val", "w");
37210 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37212 long int i = longval ();
37213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37215 fprintf (f, "%ld\n", i);
37219 unsigned long int i = ulongval ();
37220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37222 fprintf (f, "%lu\n", i);
37224 return ferror (f) || fclose (f) != 0;
37230 rm -f conftest$ac_exeext
37231 if { (ac_try="$ac_link"
37232 case "(($ac_try" in
37233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37234 *) ac_try_echo=$ac_try;;
37236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37237 (eval "$ac_link") 2>&5
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37241 { (case "(($ac_try" in
37242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37243 *) ac_try_echo=$ac_try;;
37245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37246 (eval "$ac_try") 2>&5
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; }; then
37250 ac_cv_sizeof_int_p=`cat conftest.val`
37252 echo "$as_me: program exited with status $ac_status" >&5
37253 echo "$as_me: failed program was:" >&5
37254 sed 's/^/| /' conftest.$ac_ext >&5
37256 ( exit $ac_status )
37257 if test "$ac_cv_type_int_p" = yes; then
37258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37259 See \`config.log' for more details." >&5
37260 echo "$as_me: error: cannot compute sizeof (int *)
37261 See \`config.log' for more details." >&2;}
37262 { (exit 77); exit 77; }; }
37264 ac_cv_sizeof_int_p=0
37267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37272 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37276 cat >>confdefs.h <<_ACEOF
37277 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37282 { echo "$as_me:$LINENO: checking for u_int type" >&5
37283 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37284 if test "${ac_cv_have_u_int+set}" = set; then
37285 echo $ECHO_N "(cached) $ECHO_C" >&6
37288 cat >conftest.$ac_ext <<_ACEOF
37291 cat confdefs.h >>conftest.$ac_ext
37292 cat >>conftest.$ac_ext <<_ACEOF
37293 /* end confdefs.h. */
37295 #include <sys/types.h>
37307 rm -f conftest.$ac_objext
37308 if { (ac_try="$ac_compile"
37309 case "(($ac_try" in
37310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37311 *) ac_try_echo=$ac_try;;
37313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37314 (eval "$ac_compile") 2>conftest.er1
37316 grep -v '^ *+' conftest.er1 >conftest.err
37318 cat conftest.err >&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } && {
37321 test -z "$ac_c_werror_flag" ||
37322 test ! -s conftest.err
37323 } && test -s conftest.$ac_objext; then
37325 ac_cv_have_u_int="yes"
37328 echo "$as_me: failed program was:" >&5
37329 sed 's/^/| /' conftest.$ac_ext >&5
37332 ac_cv_have_u_int="no"
37337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37341 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37342 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37343 if test "x$ac_cv_have_u_int" = "xyes" ; then
37344 cat >>confdefs.h <<\_ACEOF
37345 #define HAVE_U_INT 1
37351 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37352 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37353 if test "${ac_cv_have_intmax_t+set}" = set; then
37354 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 cat >conftest.$ac_ext <<_ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h. */
37364 #include <sys/types.h>
37376 rm -f conftest.$ac_objext
37377 if { (ac_try="$ac_compile"
37378 case "(($ac_try" in
37379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380 *) ac_try_echo=$ac_try;;
37382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37383 (eval "$ac_compile") 2>conftest.er1
37385 grep -v '^ *+' conftest.er1 >conftest.err
37387 cat conftest.err >&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } && {
37390 test -z "$ac_c_werror_flag" ||
37391 test ! -s conftest.err
37392 } && test -s conftest.$ac_objext; then
37394 ac_cv_have_intmax_t="yes"
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37401 cat >conftest.$ac_ext <<_ACEOF
37404 cat confdefs.h >>conftest.$ac_ext
37405 cat >>conftest.$ac_ext <<_ACEOF
37406 /* end confdefs.h. */
37408 #include <stdint.h>
37420 rm -f conftest.$ac_objext
37421 if { (ac_try="$ac_compile"
37422 case "(($ac_try" in
37423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37424 *) ac_try_echo=$ac_try;;
37426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37427 (eval "$ac_compile") 2>conftest.er1
37429 grep -v '^ *+' conftest.er1 >conftest.err
37431 cat conftest.err >&5
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); } && {
37434 test -z "$ac_c_werror_flag" ||
37435 test ! -s conftest.err
37436 } && test -s conftest.$ac_objext; then
37438 ac_cv_have_intmax_t="yes"
37441 echo "$as_me: failed program was:" >&5
37442 sed 's/^/| /' conftest.$ac_ext >&5
37445 ac_cv_have_intmax_t="no"
37450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37459 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37460 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37461 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37462 cat >>confdefs.h <<\_ACEOF
37463 #define HAVE_INTMAX_T 1
37469 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37470 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37471 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37472 echo $ECHO_N "(cached) $ECHO_C" >&6
37475 cat >conftest.$ac_ext <<_ACEOF
37478 cat confdefs.h >>conftest.$ac_ext
37479 cat >>conftest.$ac_ext <<_ACEOF
37480 /* end confdefs.h. */
37482 #include <sys/types.h>
37488 u_intmax_t a; a = 1;
37494 rm -f conftest.$ac_objext
37495 if { (ac_try="$ac_compile"
37496 case "(($ac_try" in
37497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37498 *) ac_try_echo=$ac_try;;
37500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37501 (eval "$ac_compile") 2>conftest.er1
37503 grep -v '^ *+' conftest.er1 >conftest.err
37505 cat conftest.err >&5
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); } && {
37508 test -z "$ac_c_werror_flag" ||
37509 test ! -s conftest.err
37510 } && test -s conftest.$ac_objext; then
37512 ac_cv_have_u_intmax_t="yes"
37515 echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37519 cat >conftest.$ac_ext <<_ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h. */
37526 #include <stdint.h>
37532 u_intmax_t a; a = 1;
37538 rm -f conftest.$ac_objext
37539 if { (ac_try="$ac_compile"
37540 case "(($ac_try" in
37541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542 *) ac_try_echo=$ac_try;;
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545 (eval "$ac_compile") 2>conftest.er1
37547 grep -v '^ *+' conftest.er1 >conftest.err
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } && {
37552 test -z "$ac_c_werror_flag" ||
37553 test ! -s conftest.err
37554 } && test -s conftest.$ac_objext; then
37556 ac_cv_have_u_intmax_t="yes"
37559 echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37563 ac_cv_have_u_intmax_t="no"
37568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37577 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37578 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37579 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37580 cat >>confdefs.h <<\_ACEOF
37581 #define HAVE_U_INTMAX_T 1
37587 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37588 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37589 if test "${ac_cv_have_intxx_t+set}" = set; then
37590 echo $ECHO_N "(cached) $ECHO_C" >&6
37593 cat >conftest.$ac_ext <<_ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h. */
37600 #include <sys/types.h>
37606 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37612 rm -f conftest.$ac_objext
37613 if { (ac_try="$ac_compile"
37614 case "(($ac_try" in
37615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37616 *) ac_try_echo=$ac_try;;
37618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37619 (eval "$ac_compile") 2>conftest.er1
37621 grep -v '^ *+' conftest.er1 >conftest.err
37623 cat conftest.err >&5
37624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625 (exit $ac_status); } && {
37626 test -z "$ac_c_werror_flag" ||
37627 test ! -s conftest.err
37628 } && test -s conftest.$ac_objext; then
37630 ac_cv_have_intxx_t="yes"
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37637 ac_cv_have_intxx_t="no"
37642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37646 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37647 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37648 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37649 cat >>confdefs.h <<\_ACEOF
37650 #define HAVE_INTXX_T 1
37656 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37657 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37658 if test "${ac_cv_have_int64_t+set}" = set; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37662 cat >conftest.$ac_ext <<_ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37669 #include <sys/types.h>
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_int64_t="yes"
37702 echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37706 ac_cv_have_int64_t="no"
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37716 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37717 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37718 cat >>confdefs.h <<\_ACEOF
37719 #define HAVE_INT64_T 1
37725 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37726 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37727 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37728 echo $ECHO_N "(cached) $ECHO_C" >&6
37731 cat >conftest.$ac_ext <<_ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h. */
37738 #include <sys/types.h>
37744 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
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 ac_cv_have_u_intxx_t="yes"
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37775 ac_cv_have_u_intxx_t="no"
37780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37784 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37785 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37786 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37787 cat >>confdefs.h <<\_ACEOF
37788 #define HAVE_U_INTXX_T 1
37794 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37795 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37796 if test "${ac_cv_have_u_int64_t+set}" = set; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37800 cat >conftest.$ac_ext <<_ACEOF
37803 cat confdefs.h >>conftest.$ac_ext
37804 cat >>conftest.$ac_ext <<_ACEOF
37805 /* end confdefs.h. */
37807 #include <sys/types.h>
37813 u_int64_t a; a = 1;
37819 rm -f conftest.$ac_objext
37820 if { (ac_try="$ac_compile"
37821 case "(($ac_try" in
37822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37823 *) ac_try_echo=$ac_try;;
37825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37826 (eval "$ac_compile") 2>conftest.er1
37828 grep -v '^ *+' conftest.er1 >conftest.err
37830 cat conftest.err >&5
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); } && {
37833 test -z "$ac_c_werror_flag" ||
37834 test ! -s conftest.err
37835 } && test -s conftest.$ac_objext; then
37837 ac_cv_have_u_int64_t="yes"
37840 echo "$as_me: failed program was:" >&5
37841 sed 's/^/| /' conftest.$ac_ext >&5
37844 ac_cv_have_u_int64_t="no"
37849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37854 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37855 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37856 cat >>confdefs.h <<\_ACEOF
37857 #define HAVE_U_INT64_T 1
37863 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37864 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37866 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37867 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37868 cat >conftest.$ac_ext <<_ACEOF
37871 cat confdefs.h >>conftest.$ac_ext
37872 cat >>conftest.$ac_ext <<_ACEOF
37873 /* end confdefs.h. */
37875 #include <sys/bitypes.h>
37881 int8_t a; int16_t b; int32_t c;
37882 u_int8_t e; u_int16_t f; u_int32_t g;
37883 a = b = c = e = f = g = 1;
37889 rm -f conftest.$ac_objext
37890 if { (ac_try="$ac_compile"
37891 case "(($ac_try" in
37892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37893 *) ac_try_echo=$ac_try;;
37895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37896 (eval "$ac_compile") 2>conftest.er1
37898 grep -v '^ *+' conftest.er1 >conftest.err
37900 cat conftest.err >&5
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); } && {
37903 test -z "$ac_c_werror_flag" ||
37904 test ! -s conftest.err
37905 } && test -s conftest.$ac_objext; then
37907 cat >>confdefs.h <<\_ACEOF
37908 #define HAVE_U_INTXX_T 1
37911 cat >>confdefs.h <<\_ACEOF
37912 #define HAVE_INTXX_T 1
37915 cat >>confdefs.h <<\_ACEOF
37916 #define HAVE_SYS_BITYPES_H 1
37919 { echo "$as_me:$LINENO: result: yes" >&5
37920 echo "${ECHO_T}yes" >&6; }
37923 echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37927 { echo "$as_me:$LINENO: result: no" >&5
37928 echo "${ECHO_T}no" >&6; }
37933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37936 if test -z "$have_u_intxx_t" ; then
37937 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37938 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37939 if test "${ac_cv_have_uintxx_t+set}" = set; then
37940 echo $ECHO_N "(cached) $ECHO_C" >&6
37943 cat >conftest.$ac_ext <<_ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h. */
37950 #include <sys/types.h>
37956 uint8_t a; uint16_t b;
37957 uint32_t c; a = b = c = 1;
37963 rm -f conftest.$ac_objext
37964 if { (ac_try="$ac_compile"
37965 case "(($ac_try" in
37966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967 *) ac_try_echo=$ac_try;;
37969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37970 (eval "$ac_compile") 2>conftest.er1
37972 grep -v '^ *+' conftest.er1 >conftest.err
37974 cat conftest.err >&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } && {
37977 test -z "$ac_c_werror_flag" ||
37978 test ! -s conftest.err
37979 } && test -s conftest.$ac_objext; then
37981 ac_cv_have_uintxx_t="yes"
37984 echo "$as_me: failed program was:" >&5
37985 sed 's/^/| /' conftest.$ac_ext >&5
37988 ac_cv_have_uintxx_t="no"
37993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37997 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37998 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37999 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38000 cat >>confdefs.h <<\_ACEOF
38001 #define HAVE_UINTXX_T 1
38007 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38008 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38010 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38011 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38012 cat >conftest.$ac_ext <<_ACEOF
38015 cat confdefs.h >>conftest.$ac_ext
38016 cat >>conftest.$ac_ext <<_ACEOF
38017 /* end confdefs.h. */
38019 #include <sys/bitypes.h>
38025 int64_t a; u_int64_t b;
38032 rm -f conftest.$ac_objext
38033 if { (ac_try="$ac_compile"
38034 case "(($ac_try" in
38035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38036 *) ac_try_echo=$ac_try;;
38038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38039 (eval "$ac_compile") 2>conftest.er1
38041 grep -v '^ *+' conftest.er1 >conftest.err
38043 cat conftest.err >&5
38044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); } && {
38046 test -z "$ac_c_werror_flag" ||
38047 test ! -s conftest.err
38048 } && test -s conftest.$ac_objext; then
38050 cat >>confdefs.h <<\_ACEOF
38051 #define HAVE_U_INT64_T 1
38054 cat >>confdefs.h <<\_ACEOF
38055 #define HAVE_INT64_T 1
38058 { echo "$as_me:$LINENO: result: yes" >&5
38059 echo "${ECHO_T}yes" >&6; }
38062 echo "$as_me: failed program was:" >&5
38063 sed 's/^/| /' conftest.$ac_ext >&5
38066 { echo "$as_me:$LINENO: result: no" >&5
38067 echo "${ECHO_T}no" >&6; }
38072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38075 if (test -z "$have_uintxx_t" && \
38076 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38078 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38079 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38080 cat >conftest.$ac_ext <<_ACEOF
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h. */
38087 #include <sys/bitypes.h>
38093 uint8_t a; uint16_t b;
38094 uint32_t c; a = b = c = 1;
38100 rm -f conftest.$ac_objext
38101 if { (ac_try="$ac_compile"
38102 case "(($ac_try" in
38103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38104 *) ac_try_echo=$ac_try;;
38106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38107 (eval "$ac_compile") 2>conftest.er1
38109 grep -v '^ *+' conftest.er1 >conftest.err
38111 cat conftest.err >&5
38112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113 (exit $ac_status); } && {
38114 test -z "$ac_c_werror_flag" ||
38115 test ! -s conftest.err
38116 } && test -s conftest.$ac_objext; then
38118 cat >>confdefs.h <<\_ACEOF
38119 #define HAVE_UINTXX_T 1
38122 { echo "$as_me:$LINENO: result: yes" >&5
38123 echo "${ECHO_T}yes" >&6; }
38126 echo "$as_me: failed program was:" >&5
38127 sed 's/^/| /' conftest.$ac_ext >&5
38130 { echo "$as_me:$LINENO: result: no" >&5
38131 echo "${ECHO_T}no" >&6; }
38136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38172 echo $ECHO_N "(cached) $ECHO_C" >&6
38174 cat >conftest.$ac_ext <<_ACEOF
38177 cat confdefs.h >>conftest.$ac_ext
38178 cat >>conftest.$ac_ext <<_ACEOF
38179 /* end confdefs.h. */
38180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38182 #define $ac_func innocuous_$ac_func
38184 /* System header to define __stub macros and hopefully few prototypes,
38185 which can conflict with char $ac_func (); below.
38186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38187 <limits.h> exists even on freestanding compilers. */
38190 # include <limits.h>
38192 # include <assert.h>
38197 /* Override any GCC internal prototype to avoid an error.
38198 Use char because int might match the return type of a GCC
38199 builtin and then its argument prototype would still apply. */
38204 /* The GNU C library defines this for functions which it implements
38205 to always fail with ENOSYS. Some functions are actually named
38206 something starting with __ and the normal name is an alias. */
38207 #if defined __stub_$ac_func || defined __stub___$ac_func
38214 return $ac_func ();
38219 rm -f conftest.$ac_objext conftest$ac_exeext
38220 if { (ac_try="$ac_link"
38221 case "(($ac_try" in
38222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38223 *) ac_try_echo=$ac_try;;
38225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38226 (eval "$ac_link") 2>conftest.er1
38228 grep -v '^ *+' conftest.er1 >conftest.err
38230 cat conftest.err >&5
38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232 (exit $ac_status); } && {
38233 test -z "$ac_c_werror_flag" ||
38234 test ! -s conftest.err
38235 } && test -s conftest$ac_exeext &&
38236 $as_test_x conftest$ac_exeext; then
38237 eval "$as_ac_var=yes"
38239 echo "$as_me: failed program was:" >&5
38240 sed 's/^/| /' conftest.$ac_ext >&5
38242 eval "$as_ac_var=no"
38245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38246 conftest$ac_exeext conftest.$ac_ext
38248 ac_res=`eval echo '${'$as_ac_var'}'`
38249 { echo "$as_me:$LINENO: result: $ac_res" >&5
38250 echo "${ECHO_T}$ac_res" >&6; }
38251 if test `eval echo '${'$as_ac_var'}'` = yes; then
38252 cat >>confdefs.h <<_ACEOF
38253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38257 echo 'configure: cannot find needed function.'; exit 1
38264 for ac_func in fchdir
38266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38270 echo $ECHO_N "(cached) $ECHO_C" >&6
38272 cat >conftest.$ac_ext <<_ACEOF
38275 cat confdefs.h >>conftest.$ac_ext
38276 cat >>conftest.$ac_ext <<_ACEOF
38277 /* end confdefs.h. */
38278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38280 #define $ac_func innocuous_$ac_func
38282 /* System header to define __stub macros and hopefully few prototypes,
38283 which can conflict with char $ac_func (); below.
38284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38285 <limits.h> exists even on freestanding compilers. */
38288 # include <limits.h>
38290 # include <assert.h>
38295 /* Override any GCC internal prototype to avoid an error.
38296 Use char because int might match the return type of a GCC
38297 builtin and then its argument prototype would still apply. */
38302 /* The GNU C library defines this for functions which it implements
38303 to always fail with ENOSYS. Some functions are actually named
38304 something starting with __ and the normal name is an alias. */
38305 #if defined __stub_$ac_func || defined __stub___$ac_func
38312 return $ac_func ();
38317 rm -f conftest.$ac_objext conftest$ac_exeext
38318 if { (ac_try="$ac_link"
38319 case "(($ac_try" in
38320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38321 *) ac_try_echo=$ac_try;;
38323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38324 (eval "$ac_link") 2>conftest.er1
38326 grep -v '^ *+' conftest.er1 >conftest.err
38328 cat conftest.err >&5
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); } && {
38331 test -z "$ac_c_werror_flag" ||
38332 test ! -s conftest.err
38333 } && test -s conftest$ac_exeext &&
38334 $as_test_x conftest$ac_exeext; then
38335 eval "$as_ac_var=yes"
38337 echo "$as_me: failed program was:" >&5
38338 sed 's/^/| /' conftest.$ac_ext >&5
38340 eval "$as_ac_var=no"
38343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38344 conftest$ac_exeext conftest.$ac_ext
38346 ac_res=`eval echo '${'$as_ac_var'}'`
38347 { echo "$as_me:$LINENO: result: $ac_res" >&5
38348 echo "${ECHO_T}$ac_res" >&6; }
38349 if test `eval echo '${'$as_ac_var'}'` = yes; then
38350 cat >>confdefs.h <<_ACEOF
38351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38353 cat >>confdefs.h <<\_ACEOF
38354 #define HAVE_FCHDIR 1
38361 for ac_func in strtoll
38363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38367 echo $ECHO_N "(cached) $ECHO_C" >&6
38369 cat >conftest.$ac_ext <<_ACEOF
38372 cat confdefs.h >>conftest.$ac_ext
38373 cat >>conftest.$ac_ext <<_ACEOF
38374 /* end confdefs.h. */
38375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38377 #define $ac_func innocuous_$ac_func
38379 /* System header to define __stub macros and hopefully few prototypes,
38380 which can conflict with char $ac_func (); below.
38381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38382 <limits.h> exists even on freestanding compilers. */
38385 # include <limits.h>
38387 # include <assert.h>
38392 /* Override any GCC internal prototype to avoid an error.
38393 Use char because int might match the return type of a GCC
38394 builtin and then its argument prototype would still apply. */
38399 /* The GNU C library defines this for functions which it implements
38400 to always fail with ENOSYS. Some functions are actually named
38401 something starting with __ and the normal name is an alias. */
38402 #if defined __stub_$ac_func || defined __stub___$ac_func
38409 return $ac_func ();
38414 rm -f conftest.$ac_objext conftest$ac_exeext
38415 if { (ac_try="$ac_link"
38416 case "(($ac_try" in
38417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38418 *) ac_try_echo=$ac_try;;
38420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38421 (eval "$ac_link") 2>conftest.er1
38423 grep -v '^ *+' conftest.er1 >conftest.err
38425 cat conftest.err >&5
38426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427 (exit $ac_status); } && {
38428 test -z "$ac_c_werror_flag" ||
38429 test ! -s conftest.err
38430 } && test -s conftest$ac_exeext &&
38431 $as_test_x conftest$ac_exeext; then
38432 eval "$as_ac_var=yes"
38434 echo "$as_me: failed program was:" >&5
38435 sed 's/^/| /' conftest.$ac_ext >&5
38437 eval "$as_ac_var=no"
38440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38441 conftest$ac_exeext conftest.$ac_ext
38443 ac_res=`eval echo '${'$as_ac_var'}'`
38444 { echo "$as_me:$LINENO: result: $ac_res" >&5
38445 echo "${ECHO_T}$ac_res" >&6; }
38446 if test `eval echo '${'$as_ac_var'}'` = yes; then
38447 cat >>confdefs.h <<_ACEOF
38448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38450 cat >>confdefs.h <<\_ACEOF
38451 #define HAVE_STRTOLL 1
38458 for ac_func in posix_fadvise
38460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38464 echo $ECHO_N "(cached) $ECHO_C" >&6
38466 cat >conftest.$ac_ext <<_ACEOF
38469 cat confdefs.h >>conftest.$ac_ext
38470 cat >>conftest.$ac_ext <<_ACEOF
38471 /* end confdefs.h. */
38472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38474 #define $ac_func innocuous_$ac_func
38476 /* System header to define __stub macros and hopefully few prototypes,
38477 which can conflict with char $ac_func (); below.
38478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38479 <limits.h> exists even on freestanding compilers. */
38482 # include <limits.h>
38484 # include <assert.h>
38489 /* Override any GCC internal prototype to avoid an error.
38490 Use char because int might match the return type of a GCC
38491 builtin and then its argument prototype would still apply. */
38496 /* The GNU C library defines this for functions which it implements
38497 to always fail with ENOSYS. Some functions are actually named
38498 something starting with __ and the normal name is an alias. */
38499 #if defined __stub_$ac_func || defined __stub___$ac_func
38506 return $ac_func ();
38511 rm -f conftest.$ac_objext conftest$ac_exeext
38512 if { (ac_try="$ac_link"
38513 case "(($ac_try" in
38514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38515 *) ac_try_echo=$ac_try;;
38517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38518 (eval "$ac_link") 2>conftest.er1
38520 grep -v '^ *+' conftest.er1 >conftest.err
38522 cat conftest.err >&5
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); } && {
38525 test -z "$ac_c_werror_flag" ||
38526 test ! -s conftest.err
38527 } && test -s conftest$ac_exeext &&
38528 $as_test_x conftest$ac_exeext; then
38529 eval "$as_ac_var=yes"
38531 echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38534 eval "$as_ac_var=no"
38537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38538 conftest$ac_exeext conftest.$ac_ext
38540 ac_res=`eval echo '${'$as_ac_var'}'`
38541 { echo "$as_me:$LINENO: result: $ac_res" >&5
38542 echo "${ECHO_T}$ac_res" >&6; }
38543 if test `eval echo '${'$as_ac_var'}'` = yes; then
38544 cat >>confdefs.h <<_ACEOF
38545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38552 for ac_func in fdatasync
38554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38560 cat >conftest.$ac_ext <<_ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h. */
38566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38568 #define $ac_func innocuous_$ac_func
38570 /* System header to define __stub macros and hopefully few prototypes,
38571 which can conflict with char $ac_func (); below.
38572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38573 <limits.h> exists even on freestanding compilers. */
38576 # include <limits.h>
38578 # include <assert.h>
38583 /* Override any GCC internal prototype to avoid an error.
38584 Use char because int might match the return type of a GCC
38585 builtin and then its argument prototype would still apply. */
38590 /* The GNU C library defines this for functions which it implements
38591 to always fail with ENOSYS. Some functions are actually named
38592 something starting with __ and the normal name is an alias. */
38593 #if defined __stub_$ac_func || defined __stub___$ac_func
38600 return $ac_func ();
38605 rm -f conftest.$ac_objext conftest$ac_exeext
38606 if { (ac_try="$ac_link"
38607 case "(($ac_try" in
38608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38609 *) ac_try_echo=$ac_try;;
38611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38612 (eval "$ac_link") 2>conftest.er1
38614 grep -v '^ *+' conftest.er1 >conftest.err
38616 cat conftest.err >&5
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); } && {
38619 test -z "$ac_c_werror_flag" ||
38620 test ! -s conftest.err
38621 } && test -s conftest$ac_exeext &&
38622 $as_test_x conftest$ac_exeext; then
38623 eval "$as_ac_var=yes"
38625 echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38628 eval "$as_ac_var=no"
38631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38632 conftest$ac_exeext conftest.$ac_ext
38634 ac_res=`eval echo '${'$as_ac_var'}'`
38635 { echo "$as_me:$LINENO: result: $ac_res" >&5
38636 echo "${ECHO_T}$ac_res" >&6; }
38637 if test `eval echo '${'$as_ac_var'}'` = yes; then
38638 cat >>confdefs.h <<_ACEOF
38639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38647 for ac_func in chflags
38649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38653 echo $ECHO_N "(cached) $ECHO_C" >&6
38655 cat >conftest.$ac_ext <<_ACEOF
38658 cat confdefs.h >>conftest.$ac_ext
38659 cat >>conftest.$ac_ext <<_ACEOF
38660 /* end confdefs.h. */
38661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38663 #define $ac_func innocuous_$ac_func
38665 /* System header to define __stub macros and hopefully few prototypes,
38666 which can conflict with char $ac_func (); below.
38667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38668 <limits.h> exists even on freestanding compilers. */
38671 # include <limits.h>
38673 # include <assert.h>
38678 /* Override any GCC internal prototype to avoid an error.
38679 Use char because int might match the return type of a GCC
38680 builtin and then its argument prototype would still apply. */
38685 /* The GNU C library defines this for functions which it implements
38686 to always fail with ENOSYS. Some functions are actually named
38687 something starting with __ and the normal name is an alias. */
38688 #if defined __stub_$ac_func || defined __stub___$ac_func
38695 return $ac_func ();
38700 rm -f conftest.$ac_objext conftest$ac_exeext
38701 if { (ac_try="$ac_link"
38702 case "(($ac_try" in
38703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38704 *) ac_try_echo=$ac_try;;
38706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38707 (eval "$ac_link") 2>conftest.er1
38709 grep -v '^ *+' conftest.er1 >conftest.err
38711 cat conftest.err >&5
38712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38713 (exit $ac_status); } && {
38714 test -z "$ac_c_werror_flag" ||
38715 test ! -s conftest.err
38716 } && test -s conftest$ac_exeext &&
38717 $as_test_x conftest$ac_exeext; then
38718 eval "$as_ac_var=yes"
38720 echo "$as_me: failed program was:" >&5
38721 sed 's/^/| /' conftest.$ac_ext >&5
38723 eval "$as_ac_var=no"
38726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38727 conftest$ac_exeext conftest.$ac_ext
38729 ac_res=`eval echo '${'$as_ac_var'}'`
38730 { echo "$as_me:$LINENO: result: $ac_res" >&5
38731 echo "${ECHO_T}$ac_res" >&6; }
38732 if test `eval echo '${'$as_ac_var'}'` = yes; then
38733 cat >>confdefs.h <<_ACEOF
38734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38745 for ac_func in snprintf vsnprintf gethostid fseeko
38747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38751 echo $ECHO_N "(cached) $ECHO_C" >&6
38753 cat >conftest.$ac_ext <<_ACEOF
38756 cat confdefs.h >>conftest.$ac_ext
38757 cat >>conftest.$ac_ext <<_ACEOF
38758 /* end confdefs.h. */
38759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38761 #define $ac_func innocuous_$ac_func
38763 /* System header to define __stub macros and hopefully few prototypes,
38764 which can conflict with char $ac_func (); below.
38765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38766 <limits.h> exists even on freestanding compilers. */
38769 # include <limits.h>
38771 # include <assert.h>
38776 /* Override any GCC internal prototype to avoid an error.
38777 Use char because int might match the return type of a GCC
38778 builtin and then its argument prototype would still apply. */
38783 /* The GNU C library defines this for functions which it implements
38784 to always fail with ENOSYS. Some functions are actually named
38785 something starting with __ and the normal name is an alias. */
38786 #if defined __stub_$ac_func || defined __stub___$ac_func
38793 return $ac_func ();
38798 rm -f conftest.$ac_objext conftest$ac_exeext
38799 if { (ac_try="$ac_link"
38800 case "(($ac_try" in
38801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38802 *) ac_try_echo=$ac_try;;
38804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38805 (eval "$ac_link") 2>conftest.er1
38807 grep -v '^ *+' conftest.er1 >conftest.err
38809 cat conftest.err >&5
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); } && {
38812 test -z "$ac_c_werror_flag" ||
38813 test ! -s conftest.err
38814 } && test -s conftest$ac_exeext &&
38815 $as_test_x conftest$ac_exeext; then
38816 eval "$as_ac_var=yes"
38818 echo "$as_me: failed program was:" >&5
38819 sed 's/^/| /' conftest.$ac_ext >&5
38821 eval "$as_ac_var=no"
38824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38825 conftest$ac_exeext conftest.$ac_ext
38827 ac_res=`eval echo '${'$as_ac_var'}'`
38828 { echo "$as_me:$LINENO: result: $ac_res" >&5
38829 echo "${ECHO_T}$ac_res" >&6; }
38830 if test `eval echo '${'$as_ac_var'}'` = yes; then
38831 cat >>confdefs.h <<_ACEOF
38832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38839 { echo "$as_me:$LINENO: checking for va_copy" >&5
38840 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38841 if test "${ba_cv_va_copy+set}" = set; then
38842 echo $ECHO_N "(cached) $ECHO_C" >&6
38845 cat >conftest.$ac_ext <<_ACEOF
38848 cat confdefs.h >>conftest.$ac_ext
38849 cat >>conftest.$ac_ext <<_ACEOF
38850 /* end confdefs.h. */
38852 #include <stdarg.h>
38853 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38854 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38860 call_use_va_copy(1,2,3)
38866 rm -f conftest.$ac_objext conftest$ac_exeext
38867 if { (ac_try="$ac_link"
38868 case "(($ac_try" in
38869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38870 *) ac_try_echo=$ac_try;;
38872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38873 (eval "$ac_link") 2>conftest.er1
38875 grep -v '^ *+' conftest.er1 >conftest.err
38877 cat conftest.err >&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); } && {
38880 test -z "$ac_c_werror_flag" ||
38881 test ! -s conftest.err
38882 } && test -s conftest$ac_exeext &&
38883 $as_test_x conftest$ac_exeext; then
38888 echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38898 conftest$ac_exeext conftest.$ac_ext
38902 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38903 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38904 test $ba_cv_va_copy = yes &&
38905 cat >>confdefs.h <<\_ACEOF
38906 #define HAVE_VA_COPY 1
38914 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38920 echo $ECHO_N "(cached) $ECHO_C" >&6
38922 cat >conftest.$ac_ext <<_ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h. */
38928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38930 #define $ac_func innocuous_$ac_func
38932 /* System header to define __stub macros and hopefully few prototypes,
38933 which can conflict with char $ac_func (); below.
38934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38935 <limits.h> exists even on freestanding compilers. */
38938 # include <limits.h>
38940 # include <assert.h>
38945 /* Override any GCC internal prototype to avoid an error.
38946 Use char because int might match the return type of a GCC
38947 builtin and then its argument prototype would still apply. */
38952 /* The GNU C library defines this for functions which it implements
38953 to always fail with ENOSYS. Some functions are actually named
38954 something starting with __ and the normal name is an alias. */
38955 #if defined __stub_$ac_func || defined __stub___$ac_func
38962 return $ac_func ();
38967 rm -f conftest.$ac_objext conftest$ac_exeext
38968 if { (ac_try="$ac_link"
38969 case "(($ac_try" in
38970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38971 *) ac_try_echo=$ac_try;;
38973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38974 (eval "$ac_link") 2>conftest.er1
38976 grep -v '^ *+' conftest.er1 >conftest.err
38978 cat conftest.err >&5
38979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); } && {
38981 test -z "$ac_c_werror_flag" ||
38982 test ! -s conftest.err
38983 } && test -s conftest$ac_exeext &&
38984 $as_test_x conftest$ac_exeext; then
38985 eval "$as_ac_var=yes"
38987 echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38990 eval "$as_ac_var=no"
38993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38994 conftest$ac_exeext conftest.$ac_ext
38996 ac_res=`eval echo '${'$as_ac_var'}'`
38997 { echo "$as_me:$LINENO: result: $ac_res" >&5
38998 echo "${ECHO_T}$ac_res" >&6; }
38999 if test `eval echo '${'$as_ac_var'}'` = yes; then
39000 cat >>confdefs.h <<_ACEOF
39001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39008 # If resolver functions are not in libc check for -lnsl or -lresolv.
39009 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39010 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39011 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39012 echo $ECHO_N "(cached) $ECHO_C" >&6
39014 cat >conftest.$ac_ext <<_ACEOF
39017 cat confdefs.h >>conftest.$ac_ext
39018 cat >>conftest.$ac_ext <<_ACEOF
39019 /* end confdefs.h. */
39020 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39022 #define gethostbyname_r innocuous_gethostbyname_r
39024 /* System header to define __stub macros and hopefully few prototypes,
39025 which can conflict with char gethostbyname_r (); below.
39026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39027 <limits.h> exists even on freestanding compilers. */
39030 # include <limits.h>
39032 # include <assert.h>
39035 #undef gethostbyname_r
39037 /* Override any GCC internal prototype to avoid an error.
39038 Use char because int might match the return type of a GCC
39039 builtin and then its argument prototype would still apply. */
39043 char gethostbyname_r ();
39044 /* The GNU C library defines this for functions which it implements
39045 to always fail with ENOSYS. Some functions are actually named
39046 something starting with __ and the normal name is an alias. */
39047 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39054 return gethostbyname_r ();
39059 rm -f conftest.$ac_objext conftest$ac_exeext
39060 if { (ac_try="$ac_link"
39061 case "(($ac_try" in
39062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39063 *) ac_try_echo=$ac_try;;
39065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39066 (eval "$ac_link") 2>conftest.er1
39068 grep -v '^ *+' conftest.er1 >conftest.err
39070 cat conftest.err >&5
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); } && {
39073 test -z "$ac_c_werror_flag" ||
39074 test ! -s conftest.err
39075 } && test -s conftest$ac_exeext &&
39076 $as_test_x conftest$ac_exeext; then
39077 ac_cv_func_gethostbyname_r=yes
39079 echo "$as_me: failed program was:" >&5
39080 sed 's/^/| /' conftest.$ac_ext >&5
39082 ac_cv_func_gethostbyname_r=no
39085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39086 conftest$ac_exeext conftest.$ac_ext
39088 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39089 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39090 if test $ac_cv_func_gethostbyname_r = yes; then
39091 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39092 echo "${ECHO_T}using libc's resolver" >&6; }
39095 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39096 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39097 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39098 echo $ECHO_N "(cached) $ECHO_C" >&6
39100 ac_check_lib_save_LIBS=$LIBS
39102 cat >conftest.$ac_ext <<_ACEOF
39105 cat confdefs.h >>conftest.$ac_ext
39106 cat >>conftest.$ac_ext <<_ACEOF
39107 /* end confdefs.h. */
39109 /* Override any GCC internal prototype to avoid an error.
39110 Use char because int might match the return type of a GCC
39111 builtin and then its argument prototype would still apply. */
39115 char gethostbyname_r ();
39119 return gethostbyname_r ();
39124 rm -f conftest.$ac_objext conftest$ac_exeext
39125 if { (ac_try="$ac_link"
39126 case "(($ac_try" in
39127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39128 *) ac_try_echo=$ac_try;;
39130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39131 (eval "$ac_link") 2>conftest.er1
39133 grep -v '^ *+' conftest.er1 >conftest.err
39135 cat conftest.err >&5
39136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39137 (exit $ac_status); } && {
39138 test -z "$ac_c_werror_flag" ||
39139 test ! -s conftest.err
39140 } && test -s conftest$ac_exeext &&
39141 $as_test_x conftest$ac_exeext; then
39142 ac_cv_lib_nsl_gethostbyname_r=yes
39144 echo "$as_me: failed program was:" >&5
39145 sed 's/^/| /' conftest.$ac_ext >&5
39147 ac_cv_lib_nsl_gethostbyname_r=no
39150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39151 conftest$ac_exeext conftest.$ac_ext
39152 LIBS=$ac_check_lib_save_LIBS
39154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39155 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39156 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39157 cat >>confdefs.h <<_ACEOF
39158 #define HAVE_LIBNSL 1
39166 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39167 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39168 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39169 echo $ECHO_N "(cached) $ECHO_C" >&6
39171 ac_check_lib_save_LIBS=$LIBS
39172 LIBS="-lresolv $LIBS"
39173 cat >conftest.$ac_ext <<_ACEOF
39176 cat confdefs.h >>conftest.$ac_ext
39177 cat >>conftest.$ac_ext <<_ACEOF
39178 /* end confdefs.h. */
39180 /* Override any GCC internal prototype to avoid an error.
39181 Use char because int might match the return type of a GCC
39182 builtin and then its argument prototype would still apply. */
39186 char gethostbyname_r ();
39190 return gethostbyname_r ();
39195 rm -f conftest.$ac_objext conftest$ac_exeext
39196 if { (ac_try="$ac_link"
39197 case "(($ac_try" in
39198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39199 *) ac_try_echo=$ac_try;;
39201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39202 (eval "$ac_link") 2>conftest.er1
39204 grep -v '^ *+' conftest.er1 >conftest.err
39206 cat conftest.err >&5
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); } && {
39209 test -z "$ac_c_werror_flag" ||
39210 test ! -s conftest.err
39211 } && test -s conftest$ac_exeext &&
39212 $as_test_x conftest$ac_exeext; then
39213 ac_cv_lib_resolv_gethostbyname_r=yes
39215 echo "$as_me: failed program was:" >&5
39216 sed 's/^/| /' conftest.$ac_ext >&5
39218 ac_cv_lib_resolv_gethostbyname_r=no
39221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39222 conftest$ac_exeext conftest.$ac_ext
39223 LIBS=$ac_check_lib_save_LIBS
39225 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39226 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39227 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39228 cat >>confdefs.h <<_ACEOF
39229 #define HAVE_LIBRESOLV 1
39232 LIBS="-lresolv $LIBS"
39240 for ac_func in inet_pton
39242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39246 echo $ECHO_N "(cached) $ECHO_C" >&6
39248 cat >conftest.$ac_ext <<_ACEOF
39251 cat confdefs.h >>conftest.$ac_ext
39252 cat >>conftest.$ac_ext <<_ACEOF
39253 /* end confdefs.h. */
39254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39256 #define $ac_func innocuous_$ac_func
39258 /* System header to define __stub macros and hopefully few prototypes,
39259 which can conflict with char $ac_func (); below.
39260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39261 <limits.h> exists even on freestanding compilers. */
39264 # include <limits.h>
39266 # include <assert.h>
39271 /* Override any GCC internal prototype to avoid an error.
39272 Use char because int might match the return type of a GCC
39273 builtin and then its argument prototype would still apply. */
39278 /* The GNU C library defines this for functions which it implements
39279 to always fail with ENOSYS. Some functions are actually named
39280 something starting with __ and the normal name is an alias. */
39281 #if defined __stub_$ac_func || defined __stub___$ac_func
39288 return $ac_func ();
39293 rm -f conftest.$ac_objext conftest$ac_exeext
39294 if { (ac_try="$ac_link"
39295 case "(($ac_try" in
39296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39297 *) ac_try_echo=$ac_try;;
39299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39300 (eval "$ac_link") 2>conftest.er1
39302 grep -v '^ *+' conftest.er1 >conftest.err
39304 cat conftest.err >&5
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); } && {
39307 test -z "$ac_c_werror_flag" ||
39308 test ! -s conftest.err
39309 } && test -s conftest$ac_exeext &&
39310 $as_test_x conftest$ac_exeext; then
39311 eval "$as_ac_var=yes"
39313 echo "$as_me: failed program was:" >&5
39314 sed 's/^/| /' conftest.$ac_ext >&5
39316 eval "$as_ac_var=no"
39319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39320 conftest$ac_exeext conftest.$ac_ext
39322 ac_res=`eval echo '${'$as_ac_var'}'`
39323 { echo "$as_me:$LINENO: result: $ac_res" >&5
39324 echo "${ECHO_T}$ac_res" >&6; }
39325 if test `eval echo '${'$as_ac_var'}'` = yes; then
39326 cat >>confdefs.h <<_ACEOF
39327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39329 cat >>confdefs.h <<\_ACEOF
39330 #define HAVE_INET_PTON 1
39337 for ac_func in inet_ntop
39339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39343 echo $ECHO_N "(cached) $ECHO_C" >&6
39345 cat >conftest.$ac_ext <<_ACEOF
39348 cat confdefs.h >>conftest.$ac_ext
39349 cat >>conftest.$ac_ext <<_ACEOF
39350 /* end confdefs.h. */
39351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39353 #define $ac_func innocuous_$ac_func
39355 /* System header to define __stub macros and hopefully few prototypes,
39356 which can conflict with char $ac_func (); below.
39357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39358 <limits.h> exists even on freestanding compilers. */
39361 # include <limits.h>
39363 # include <assert.h>
39368 /* Override any GCC internal prototype to avoid an error.
39369 Use char because int might match the return type of a GCC
39370 builtin and then its argument prototype would still apply. */
39375 /* The GNU C library defines this for functions which it implements
39376 to always fail with ENOSYS. Some functions are actually named
39377 something starting with __ and the normal name is an alias. */
39378 #if defined __stub_$ac_func || defined __stub___$ac_func
39385 return $ac_func ();
39390 rm -f conftest.$ac_objext conftest$ac_exeext
39391 if { (ac_try="$ac_link"
39392 case "(($ac_try" in
39393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39394 *) ac_try_echo=$ac_try;;
39396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39397 (eval "$ac_link") 2>conftest.er1
39399 grep -v '^ *+' conftest.er1 >conftest.err
39401 cat conftest.err >&5
39402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403 (exit $ac_status); } && {
39404 test -z "$ac_c_werror_flag" ||
39405 test ! -s conftest.err
39406 } && test -s conftest$ac_exeext &&
39407 $as_test_x conftest$ac_exeext; then
39408 eval "$as_ac_var=yes"
39410 echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39413 eval "$as_ac_var=no"
39416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39417 conftest$ac_exeext conftest.$ac_ext
39419 ac_res=`eval echo '${'$as_ac_var'}'`
39420 { echo "$as_me:$LINENO: result: $ac_res" >&5
39421 echo "${ECHO_T}$ac_res" >&6; }
39422 if test `eval echo '${'$as_ac_var'}'` = yes; then
39423 cat >>confdefs.h <<_ACEOF
39424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39426 cat >>confdefs.h <<\_ACEOF
39427 #define HAVE_INET_NTOP 1
39434 for ac_func in gethostbyname2
39436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39440 echo $ECHO_N "(cached) $ECHO_C" >&6
39442 cat >conftest.$ac_ext <<_ACEOF
39445 cat confdefs.h >>conftest.$ac_ext
39446 cat >>conftest.$ac_ext <<_ACEOF
39447 /* end confdefs.h. */
39448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39450 #define $ac_func innocuous_$ac_func
39452 /* System header to define __stub macros and hopefully few prototypes,
39453 which can conflict with char $ac_func (); below.
39454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39455 <limits.h> exists even on freestanding compilers. */
39458 # include <limits.h>
39460 # include <assert.h>
39465 /* Override any GCC internal prototype to avoid an error.
39466 Use char because int might match the return type of a GCC
39467 builtin and then its argument prototype would still apply. */
39472 /* The GNU C library defines this for functions which it implements
39473 to always fail with ENOSYS. Some functions are actually named
39474 something starting with __ and the normal name is an alias. */
39475 #if defined __stub_$ac_func || defined __stub___$ac_func
39482 return $ac_func ();
39487 rm -f conftest.$ac_objext conftest$ac_exeext
39488 if { (ac_try="$ac_link"
39489 case "(($ac_try" in
39490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39491 *) ac_try_echo=$ac_try;;
39493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39494 (eval "$ac_link") 2>conftest.er1
39496 grep -v '^ *+' conftest.er1 >conftest.err
39498 cat conftest.err >&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); } && {
39501 test -z "$ac_c_werror_flag" ||
39502 test ! -s conftest.err
39503 } && test -s conftest$ac_exeext &&
39504 $as_test_x conftest$ac_exeext; then
39505 eval "$as_ac_var=yes"
39507 echo "$as_me: failed program was:" >&5
39508 sed 's/^/| /' conftest.$ac_ext >&5
39510 eval "$as_ac_var=no"
39513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39514 conftest$ac_exeext conftest.$ac_ext
39516 ac_res=`eval echo '${'$as_ac_var'}'`
39517 { echo "$as_me:$LINENO: result: $ac_res" >&5
39518 echo "${ECHO_T}$ac_res" >&6; }
39519 if test `eval echo '${'$as_ac_var'}'` = yes; then
39520 cat >>confdefs.h <<_ACEOF
39521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39523 cat >>confdefs.h <<\_ACEOF
39524 #define HAVE_GETHOSTBYNAME2 1
39531 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39532 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39533 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39534 echo $ECHO_N "(cached) $ECHO_C" >&6
39537 cat >conftest.$ac_ext <<_ACEOF
39540 cat confdefs.h >>conftest.$ac_ext
39541 cat >>conftest.$ac_ext <<_ACEOF
39542 /* end confdefs.h. */
39544 #include <sys/socket.h>
39550 struct sockaddr s; s.sa_len;
39556 rm -f conftest.$ac_objext
39557 if { (ac_try="$ac_compile"
39558 case "(($ac_try" in
39559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39560 *) ac_try_echo=$ac_try;;
39562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39563 (eval "$ac_compile") 2>conftest.er1
39565 grep -v '^ *+' conftest.er1 >conftest.err
39567 cat conftest.err >&5
39568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39569 (exit $ac_status); } && {
39570 test -z "$ac_c_werror_flag" ||
39571 test ! -s conftest.err
39572 } && test -s conftest.$ac_objext; then
39574 ac_cv_struct_sockaddr_sa_len=yes
39577 echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39580 ac_cv_struct_sockaddr_sa_len=no
39585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39589 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39590 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39592 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39594 cat >>confdefs.h <<\_ACEOF
39595 #define HAVE_SA_LEN 1
39601 for ac_func in strftime
39603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39607 echo $ECHO_N "(cached) $ECHO_C" >&6
39609 cat >conftest.$ac_ext <<_ACEOF
39612 cat confdefs.h >>conftest.$ac_ext
39613 cat >>conftest.$ac_ext <<_ACEOF
39614 /* end confdefs.h. */
39615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39617 #define $ac_func innocuous_$ac_func
39619 /* System header to define __stub macros and hopefully few prototypes,
39620 which can conflict with char $ac_func (); below.
39621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39622 <limits.h> exists even on freestanding compilers. */
39625 # include <limits.h>
39627 # include <assert.h>
39632 /* Override any GCC internal prototype to avoid an error.
39633 Use char because int might match the return type of a GCC
39634 builtin and then its argument prototype would still apply. */
39639 /* The GNU C library defines this for functions which it implements
39640 to always fail with ENOSYS. Some functions are actually named
39641 something starting with __ and the normal name is an alias. */
39642 #if defined __stub_$ac_func || defined __stub___$ac_func
39649 return $ac_func ();
39654 rm -f conftest.$ac_objext conftest$ac_exeext
39655 if { (ac_try="$ac_link"
39656 case "(($ac_try" in
39657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39658 *) ac_try_echo=$ac_try;;
39660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39661 (eval "$ac_link") 2>conftest.er1
39663 grep -v '^ *+' conftest.er1 >conftest.err
39665 cat conftest.err >&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); } && {
39668 test -z "$ac_c_werror_flag" ||
39669 test ! -s conftest.err
39670 } && test -s conftest$ac_exeext &&
39671 $as_test_x conftest$ac_exeext; then
39672 eval "$as_ac_var=yes"
39674 echo "$as_me: failed program was:" >&5
39675 sed 's/^/| /' conftest.$ac_ext >&5
39677 eval "$as_ac_var=no"
39680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39681 conftest$ac_exeext conftest.$ac_ext
39683 ac_res=`eval echo '${'$as_ac_var'}'`
39684 { echo "$as_me:$LINENO: result: $ac_res" >&5
39685 echo "${ECHO_T}$ac_res" >&6; }
39686 if test `eval echo '${'$as_ac_var'}'` = yes; then
39687 cat >>confdefs.h <<_ACEOF
39688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39692 # strftime is in -lintl on SCO UNIX.
39693 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39694 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39695 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39696 echo $ECHO_N "(cached) $ECHO_C" >&6
39698 ac_check_lib_save_LIBS=$LIBS
39699 LIBS="-lintl $LIBS"
39700 cat >conftest.$ac_ext <<_ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h. */
39707 /* Override any GCC internal prototype to avoid an error.
39708 Use char because int might match the return type of a GCC
39709 builtin and then its argument prototype would still apply. */
39717 return strftime ();
39722 rm -f conftest.$ac_objext conftest$ac_exeext
39723 if { (ac_try="$ac_link"
39724 case "(($ac_try" in
39725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39726 *) ac_try_echo=$ac_try;;
39728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39729 (eval "$ac_link") 2>conftest.er1
39731 grep -v '^ *+' conftest.er1 >conftest.err
39733 cat conftest.err >&5
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); } && {
39736 test -z "$ac_c_werror_flag" ||
39737 test ! -s conftest.err
39738 } && test -s conftest$ac_exeext &&
39739 $as_test_x conftest$ac_exeext; then
39740 ac_cv_lib_intl_strftime=yes
39742 echo "$as_me: failed program was:" >&5
39743 sed 's/^/| /' conftest.$ac_ext >&5
39745 ac_cv_lib_intl_strftime=no
39748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39749 conftest$ac_exeext conftest.$ac_ext
39750 LIBS=$ac_check_lib_save_LIBS
39752 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39753 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39754 if test $ac_cv_lib_intl_strftime = yes; then
39755 cat >>confdefs.h <<\_ACEOF
39756 #define HAVE_STRFTIME 1
39759 LIBS="-lintl $LIBS"
39766 for ac_func in vprintf
39768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39772 echo $ECHO_N "(cached) $ECHO_C" >&6
39774 cat >conftest.$ac_ext <<_ACEOF
39777 cat confdefs.h >>conftest.$ac_ext
39778 cat >>conftest.$ac_ext <<_ACEOF
39779 /* end confdefs.h. */
39780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39782 #define $ac_func innocuous_$ac_func
39784 /* System header to define __stub macros and hopefully few prototypes,
39785 which can conflict with char $ac_func (); below.
39786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39787 <limits.h> exists even on freestanding compilers. */
39790 # include <limits.h>
39792 # include <assert.h>
39797 /* Override any GCC internal prototype to avoid an error.
39798 Use char because int might match the return type of a GCC
39799 builtin and then its argument prototype would still apply. */
39804 /* The GNU C library defines this for functions which it implements
39805 to always fail with ENOSYS. Some functions are actually named
39806 something starting with __ and the normal name is an alias. */
39807 #if defined __stub_$ac_func || defined __stub___$ac_func
39814 return $ac_func ();
39819 rm -f conftest.$ac_objext conftest$ac_exeext
39820 if { (ac_try="$ac_link"
39821 case "(($ac_try" in
39822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39823 *) ac_try_echo=$ac_try;;
39825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39826 (eval "$ac_link") 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } && {
39833 test -z "$ac_c_werror_flag" ||
39834 test ! -s conftest.err
39835 } && test -s conftest$ac_exeext &&
39836 $as_test_x conftest$ac_exeext; then
39837 eval "$as_ac_var=yes"
39839 echo "$as_me: failed program was:" >&5
39840 sed 's/^/| /' conftest.$ac_ext >&5
39842 eval "$as_ac_var=no"
39845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39846 conftest$ac_exeext conftest.$ac_ext
39848 ac_res=`eval echo '${'$as_ac_var'}'`
39849 { echo "$as_me:$LINENO: result: $ac_res" >&5
39850 echo "${ECHO_T}$ac_res" >&6; }
39851 if test `eval echo '${'$as_ac_var'}'` = yes; then
39852 cat >>confdefs.h <<_ACEOF
39853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39856 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39857 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39858 if test "${ac_cv_func__doprnt+set}" = set; then
39859 echo $ECHO_N "(cached) $ECHO_C" >&6
39861 cat >conftest.$ac_ext <<_ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h. */
39867 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39869 #define _doprnt innocuous__doprnt
39871 /* System header to define __stub macros and hopefully few prototypes,
39872 which can conflict with char _doprnt (); below.
39873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39874 <limits.h> exists even on freestanding compilers. */
39877 # include <limits.h>
39879 # include <assert.h>
39884 /* Override any GCC internal prototype to avoid an error.
39885 Use char because int might match the return type of a GCC
39886 builtin and then its argument prototype would still apply. */
39891 /* The GNU C library defines this for functions which it implements
39892 to always fail with ENOSYS. Some functions are actually named
39893 something starting with __ and the normal name is an alias. */
39894 #if defined __stub__doprnt || defined __stub____doprnt
39906 rm -f conftest.$ac_objext conftest$ac_exeext
39907 if { (ac_try="$ac_link"
39908 case "(($ac_try" in
39909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39910 *) ac_try_echo=$ac_try;;
39912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39913 (eval "$ac_link") 2>conftest.er1
39915 grep -v '^ *+' conftest.er1 >conftest.err
39917 cat conftest.err >&5
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); } && {
39920 test -z "$ac_c_werror_flag" ||
39921 test ! -s conftest.err
39922 } && test -s conftest$ac_exeext &&
39923 $as_test_x conftest$ac_exeext; then
39924 ac_cv_func__doprnt=yes
39926 echo "$as_me: failed program was:" >&5
39927 sed 's/^/| /' conftest.$ac_ext >&5
39929 ac_cv_func__doprnt=no
39932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39933 conftest$ac_exeext conftest.$ac_ext
39935 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39936 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39937 if test $ac_cv_func__doprnt = yes; then
39939 cat >>confdefs.h <<\_ACEOF
39940 #define HAVE_DOPRNT 1
39949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39950 # for constant arguments. Useless!
39951 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39953 if test "${ac_cv_working_alloca_h+set}" = set; then
39954 echo $ECHO_N "(cached) $ECHO_C" >&6
39956 cat >conftest.$ac_ext <<_ACEOF
39959 cat confdefs.h >>conftest.$ac_ext
39960 cat >>conftest.$ac_ext <<_ACEOF
39961 /* end confdefs.h. */
39962 #include <alloca.h>
39966 char *p = (char *) alloca (2 * sizeof (int));
39972 rm -f conftest.$ac_objext conftest$ac_exeext
39973 if { (ac_try="$ac_link"
39974 case "(($ac_try" in
39975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39976 *) ac_try_echo=$ac_try;;
39978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39979 (eval "$ac_link") 2>conftest.er1
39981 grep -v '^ *+' conftest.er1 >conftest.err
39983 cat conftest.err >&5
39984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985 (exit $ac_status); } && {
39986 test -z "$ac_c_werror_flag" ||
39987 test ! -s conftest.err
39988 } && test -s conftest$ac_exeext &&
39989 $as_test_x conftest$ac_exeext; then
39990 ac_cv_working_alloca_h=yes
39992 echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39995 ac_cv_working_alloca_h=no
39998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39999 conftest$ac_exeext conftest.$ac_ext
40001 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40002 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40003 if test $ac_cv_working_alloca_h = yes; then
40005 cat >>confdefs.h <<\_ACEOF
40006 #define HAVE_ALLOCA_H 1
40011 { echo "$as_me:$LINENO: checking for alloca" >&5
40012 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40013 if test "${ac_cv_func_alloca_works+set}" = set; then
40014 echo $ECHO_N "(cached) $ECHO_C" >&6
40016 cat >conftest.$ac_ext <<_ACEOF
40019 cat confdefs.h >>conftest.$ac_ext
40020 cat >>conftest.$ac_ext <<_ACEOF
40021 /* end confdefs.h. */
40023 # define alloca __builtin_alloca
40026 # include <malloc.h>
40027 # define alloca _alloca
40029 # ifdef HAVE_ALLOCA_H
40030 # include <alloca.h>
40035 # ifndef alloca /* predefined by HP cc +Olibcalls */
40046 char *p = (char *) alloca (1);
40052 rm -f conftest.$ac_objext conftest$ac_exeext
40053 if { (ac_try="$ac_link"
40054 case "(($ac_try" in
40055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40056 *) ac_try_echo=$ac_try;;
40058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40059 (eval "$ac_link") 2>conftest.er1
40061 grep -v '^ *+' conftest.er1 >conftest.err
40063 cat conftest.err >&5
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); } && {
40066 test -z "$ac_c_werror_flag" ||
40067 test ! -s conftest.err
40068 } && test -s conftest$ac_exeext &&
40069 $as_test_x conftest$ac_exeext; then
40070 ac_cv_func_alloca_works=yes
40072 echo "$as_me: failed program was:" >&5
40073 sed 's/^/| /' conftest.$ac_ext >&5
40075 ac_cv_func_alloca_works=no
40078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40079 conftest$ac_exeext conftest.$ac_ext
40081 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40084 if test $ac_cv_func_alloca_works = yes; then
40086 cat >>confdefs.h <<\_ACEOF
40087 #define HAVE_ALLOCA 1
40091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40092 # that cause trouble. Some versions do not even contain alloca or
40093 # contain a buggy version. If you still want to use their alloca,
40094 # use ar to extract alloca.o from them instead of compiling alloca.c.
40096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40098 cat >>confdefs.h <<\_ACEOF
40103 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40105 if test "${ac_cv_os_cray+set}" = set; then
40106 echo $ECHO_N "(cached) $ECHO_C" >&6
40108 cat >conftest.$ac_ext <<_ACEOF
40111 cat confdefs.h >>conftest.$ac_ext
40112 cat >>conftest.$ac_ext <<_ACEOF
40113 /* end confdefs.h. */
40114 #if defined CRAY && ! defined CRAY2
40121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40122 $EGREP "webecray" >/dev/null 2>&1; then
40130 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40131 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40132 if test $ac_cv_os_cray = yes; then
40133 for ac_func in _getb67 GETB67 getb67; do
40134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40138 echo $ECHO_N "(cached) $ECHO_C" >&6
40140 cat >conftest.$ac_ext <<_ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h. */
40146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40148 #define $ac_func innocuous_$ac_func
40150 /* System header to define __stub macros and hopefully few prototypes,
40151 which can conflict with char $ac_func (); below.
40152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40153 <limits.h> exists even on freestanding compilers. */
40156 # include <limits.h>
40158 # include <assert.h>
40163 /* Override any GCC internal prototype to avoid an error.
40164 Use char because int might match the return type of a GCC
40165 builtin and then its argument prototype would still apply. */
40170 /* The GNU C library defines this for functions which it implements
40171 to always fail with ENOSYS. Some functions are actually named
40172 something starting with __ and the normal name is an alias. */
40173 #if defined __stub_$ac_func || defined __stub___$ac_func
40180 return $ac_func ();
40185 rm -f conftest.$ac_objext conftest$ac_exeext
40186 if { (ac_try="$ac_link"
40187 case "(($ac_try" in
40188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40189 *) ac_try_echo=$ac_try;;
40191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40192 (eval "$ac_link") 2>conftest.er1
40194 grep -v '^ *+' conftest.er1 >conftest.err
40196 cat conftest.err >&5
40197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198 (exit $ac_status); } && {
40199 test -z "$ac_c_werror_flag" ||
40200 test ! -s conftest.err
40201 } && test -s conftest$ac_exeext &&
40202 $as_test_x conftest$ac_exeext; then
40203 eval "$as_ac_var=yes"
40205 echo "$as_me: failed program was:" >&5
40206 sed 's/^/| /' conftest.$ac_ext >&5
40208 eval "$as_ac_var=no"
40211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40212 conftest$ac_exeext conftest.$ac_ext
40214 ac_res=`eval echo '${'$as_ac_var'}'`
40215 { echo "$as_me:$LINENO: result: $ac_res" >&5
40216 echo "${ECHO_T}$ac_res" >&6; }
40217 if test `eval echo '${'$as_ac_var'}'` = yes; then
40219 cat >>confdefs.h <<_ACEOF
40220 #define CRAY_STACKSEG_END $ac_func
40229 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40230 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40231 if test "${ac_cv_c_stack_direction+set}" = set; then
40232 echo $ECHO_N "(cached) $ECHO_C" >&6
40234 if test "$cross_compiling" = yes; then
40235 ac_cv_c_stack_direction=0
40237 cat >conftest.$ac_ext <<_ACEOF
40240 cat confdefs.h >>conftest.$ac_ext
40241 cat >>conftest.$ac_ext <<_ACEOF
40242 /* end confdefs.h. */
40243 $ac_includes_default
40245 find_stack_direction ()
40247 static char *addr = 0;
40252 return find_stack_direction ();
40255 return (&dummy > addr) ? 1 : -1;
40261 return find_stack_direction () < 0;
40264 rm -f conftest$ac_exeext
40265 if { (ac_try="$ac_link"
40266 case "(($ac_try" in
40267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40268 *) ac_try_echo=$ac_try;;
40270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40271 (eval "$ac_link") 2>&5
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40275 { (case "(($ac_try" in
40276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40277 *) ac_try_echo=$ac_try;;
40279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40280 (eval "$ac_try") 2>&5
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); }; }; then
40284 ac_cv_c_stack_direction=1
40286 echo "$as_me: program exited with status $ac_status" >&5
40287 echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40290 ( exit $ac_status )
40291 ac_cv_c_stack_direction=-1
40293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40298 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40299 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40301 cat >>confdefs.h <<_ACEOF
40302 #define STACK_DIRECTION $ac_cv_c_stack_direction
40308 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40309 # -lseq on Dynix/PTX, -lgen on Unixware.
40310 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40311 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40312 if test "${ac_cv_search_getmntent+set}" = set; then
40313 echo $ECHO_N "(cached) $ECHO_C" >&6
40315 ac_func_search_save_LIBS=$LIBS
40316 cat >conftest.$ac_ext <<_ACEOF
40319 cat confdefs.h >>conftest.$ac_ext
40320 cat >>conftest.$ac_ext <<_ACEOF
40321 /* end confdefs.h. */
40323 /* Override any GCC internal prototype to avoid an error.
40324 Use char because int might match the return type of a GCC
40325 builtin and then its argument prototype would still apply. */
40333 return getmntent ();
40338 for ac_lib in '' sun seq gen; do
40339 if test -z "$ac_lib"; then
40340 ac_res="none required"
40343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (ac_try="$ac_link"
40347 case "(($ac_try" in
40348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40349 *) ac_try_echo=$ac_try;;
40351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40352 (eval "$ac_link") 2>conftest.er1
40354 grep -v '^ *+' conftest.er1 >conftest.err
40356 cat conftest.err >&5
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); } && {
40359 test -z "$ac_c_werror_flag" ||
40360 test ! -s conftest.err
40361 } && test -s conftest$ac_exeext &&
40362 $as_test_x conftest$ac_exeext; then
40363 ac_cv_search_getmntent=$ac_res
40365 echo "$as_me: failed program was:" >&5
40366 sed 's/^/| /' conftest.$ac_ext >&5
40371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40373 if test "${ac_cv_search_getmntent+set}" = set; then
40377 if test "${ac_cv_search_getmntent+set}" = set; then
40380 ac_cv_search_getmntent=no
40382 rm conftest.$ac_ext
40383 LIBS=$ac_func_search_save_LIBS
40385 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40386 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40387 ac_res=$ac_cv_search_getmntent
40388 if test "$ac_res" != no; then
40389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40390 ac_cv_func_getmntent=yes
40392 cat >>confdefs.h <<\_ACEOF
40393 #define HAVE_GETMNTENT 1
40397 ac_cv_func_getmntent=no
40401 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40402 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40403 if test "${ac_cv_func_closedir_void+set}" = set; then
40404 echo $ECHO_N "(cached) $ECHO_C" >&6
40406 if test "$cross_compiling" = yes; then
40407 ac_cv_func_closedir_void=yes
40409 cat >conftest.$ac_ext <<_ACEOF
40412 cat confdefs.h >>conftest.$ac_ext
40413 cat >>conftest.$ac_ext <<_ACEOF
40414 /* end confdefs.h. */
40415 $ac_includes_default
40416 #include <$ac_header_dirent>
40417 #ifndef __cplusplus
40424 return closedir (opendir (".")) != 0;
40429 rm -f conftest$ac_exeext
40430 if { (ac_try="$ac_link"
40431 case "(($ac_try" in
40432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40433 *) ac_try_echo=$ac_try;;
40435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40436 (eval "$ac_link") 2>&5
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40440 { (case "(($ac_try" in
40441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442 *) ac_try_echo=$ac_try;;
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445 (eval "$ac_try") 2>&5
40447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448 (exit $ac_status); }; }; then
40449 ac_cv_func_closedir_void=no
40451 echo "$as_me: program exited with status $ac_status" >&5
40452 echo "$as_me: failed program was:" >&5
40453 sed 's/^/| /' conftest.$ac_ext >&5
40455 ( exit $ac_status )
40456 ac_cv_func_closedir_void=yes
40458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40463 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40464 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40465 if test $ac_cv_func_closedir_void = yes; then
40467 cat >>confdefs.h <<\_ACEOF
40468 #define CLOSEDIR_VOID 1
40473 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40474 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40475 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40476 echo $ECHO_N "(cached) $ECHO_C" >&6
40478 if test "$cross_compiling" = yes; then
40479 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40480 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40481 { (exit 1); exit 1; }; }
40483 cat >conftest.$ac_ext <<_ACEOF
40486 cat confdefs.h >>conftest.$ac_ext
40487 cat >>conftest.$ac_ext <<_ACEOF
40488 /* end confdefs.h. */
40489 $ac_includes_default
40493 /* If this system has a BSD-style setpgrp which takes arguments,
40494 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40495 exit successfully. */
40496 return setpgrp (1,1) != -1;
40501 rm -f conftest$ac_exeext
40502 if { (ac_try="$ac_link"
40503 case "(($ac_try" in
40504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40505 *) ac_try_echo=$ac_try;;
40507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40508 (eval "$ac_link") 2>&5
40510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40512 { (case "(($ac_try" in
40513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40514 *) ac_try_echo=$ac_try;;
40516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40517 (eval "$ac_try") 2>&5
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); }; }; then
40521 ac_cv_func_setpgrp_void=no
40523 echo "$as_me: program exited with status $ac_status" >&5
40524 echo "$as_me: failed program was:" >&5
40525 sed 's/^/| /' conftest.$ac_ext >&5
40527 ( exit $ac_status )
40528 ac_cv_func_setpgrp_void=yes
40530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40535 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40536 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40537 if test $ac_cv_func_setpgrp_void = yes; then
40539 cat >>confdefs.h <<\_ACEOF
40540 #define SETPGRP_VOID 1
40544 # AC_FUNC_FNMATCH dnl use local version
40546 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40547 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40548 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40549 echo $ECHO_N "(cached) $ECHO_C" >&6
40551 ac_check_lib_save_LIBS=$LIBS
40552 LIBS="-lintl $LIBS"
40553 cat >conftest.$ac_ext <<_ACEOF
40556 cat confdefs.h >>conftest.$ac_ext
40557 cat >>conftest.$ac_ext <<_ACEOF
40558 /* end confdefs.h. */
40560 /* Override any GCC internal prototype to avoid an error.
40561 Use char because int might match the return type of a GCC
40562 builtin and then its argument prototype would still apply. */
40575 rm -f conftest.$ac_objext conftest$ac_exeext
40576 if { (ac_try="$ac_link"
40577 case "(($ac_try" in
40578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40579 *) ac_try_echo=$ac_try;;
40581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40582 (eval "$ac_link") 2>conftest.er1
40584 grep -v '^ *+' conftest.er1 >conftest.err
40586 cat conftest.err >&5
40587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588 (exit $ac_status); } && {
40589 test -z "$ac_c_werror_flag" ||
40590 test ! -s conftest.err
40591 } && test -s conftest$ac_exeext &&
40592 $as_test_x conftest$ac_exeext; then
40593 ac_cv_lib_intl_gettext=yes
40595 echo "$as_me: failed program was:" >&5
40596 sed 's/^/| /' conftest.$ac_ext >&5
40598 ac_cv_lib_intl_gettext=no
40601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40602 conftest$ac_exeext conftest.$ac_ext
40603 LIBS=$ac_check_lib_save_LIBS
40605 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40606 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40607 if test $ac_cv_lib_intl_gettext = yes; then
40608 LIBS="$LIBS -lintl"
40613 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40614 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40615 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40616 echo $ECHO_N "(cached) $ECHO_C" >&6
40618 ac_check_lib_save_LIBS=$LIBS
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40627 /* Override any GCC internal prototype to avoid an error.
40628 Use char because int might match the return type of a GCC
40629 builtin and then its argument prototype would still apply. */
40637 return getpwnam ();
40642 rm -f conftest.$ac_objext conftest$ac_exeext
40643 if { (ac_try="$ac_link"
40644 case "(($ac_try" in
40645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40646 *) ac_try_echo=$ac_try;;
40648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40649 (eval "$ac_link") 2>conftest.er1
40651 grep -v '^ *+' conftest.er1 >conftest.err
40653 cat conftest.err >&5
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); } && {
40656 test -z "$ac_c_werror_flag" ||
40657 test ! -s conftest.err
40658 } && test -s conftest$ac_exeext &&
40659 $as_test_x conftest$ac_exeext; then
40660 ac_cv_lib_sun_getpwnam=yes
40662 echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40665 ac_cv_lib_sun_getpwnam=no
40668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40669 conftest$ac_exeext conftest.$ac_ext
40670 LIBS=$ac_check_lib_save_LIBS
40672 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40673 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40674 if test $ac_cv_lib_sun_getpwnam = yes; then
40675 cat >>confdefs.h <<_ACEOF
40676 #define HAVE_LIBSUN 1
40685 for ac_header in zlib.h
40687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40692 echo $ECHO_N "(cached) $ECHO_C" >&6
40694 ac_res=`eval echo '${'$as_ac_Header'}'`
40695 { echo "$as_me:$LINENO: result: $ac_res" >&5
40696 echo "${ECHO_T}$ac_res" >&6; }
40698 # Is the header compilable?
40699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40701 cat >conftest.$ac_ext <<_ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h. */
40707 $ac_includes_default
40708 #include <$ac_header>
40710 rm -f conftest.$ac_objext
40711 if { (ac_try="$ac_compile"
40712 case "(($ac_try" in
40713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40714 *) ac_try_echo=$ac_try;;
40716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40717 (eval "$ac_compile") 2>conftest.er1
40719 grep -v '^ *+' conftest.er1 >conftest.err
40721 cat conftest.err >&5
40722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); } && {
40724 test -z "$ac_c_werror_flag" ||
40725 test ! -s conftest.err
40726 } && test -s conftest.$ac_objext; then
40727 ac_header_compiler=yes
40729 echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40732 ac_header_compiler=no
40735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40737 echo "${ECHO_T}$ac_header_compiler" >&6; }
40739 # Is the header present?
40740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40742 cat >conftest.$ac_ext <<_ACEOF
40745 cat confdefs.h >>conftest.$ac_ext
40746 cat >>conftest.$ac_ext <<_ACEOF
40747 /* end confdefs.h. */
40748 #include <$ac_header>
40750 if { (ac_try="$ac_cpp conftest.$ac_ext"
40751 case "(($ac_try" in
40752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40753 *) ac_try_echo=$ac_try;;
40755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40758 grep -v '^ *+' conftest.er1 >conftest.err
40760 cat conftest.err >&5
40761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762 (exit $ac_status); } >/dev/null && {
40763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40764 test ! -s conftest.err
40766 ac_header_preproc=yes
40768 echo "$as_me: failed program was:" >&5
40769 sed 's/^/| /' conftest.$ac_ext >&5
40771 ac_header_preproc=no
40774 rm -f conftest.err conftest.$ac_ext
40775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40776 echo "${ECHO_T}$ac_header_preproc" >&6; }
40778 # So? What about this header?
40779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40785 ac_header_preproc=yes
40788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40806 echo $ECHO_N "(cached) $ECHO_C" >&6
40808 eval "$as_ac_Header=\$ac_header_preproc"
40810 ac_res=`eval echo '${'$as_ac_Header'}'`
40811 { echo "$as_me:$LINENO: result: $ac_res" >&5
40812 echo "${ECHO_T}$ac_res" >&6; }
40815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40816 cat >>confdefs.h <<_ACEOF
40817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40824 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40825 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40826 if test "${ac_cv_lib_z_deflate+set}" = set; then
40827 echo $ECHO_N "(cached) $ECHO_C" >&6
40829 ac_check_lib_save_LIBS=$LIBS
40831 cat >conftest.$ac_ext <<_ACEOF
40834 cat confdefs.h >>conftest.$ac_ext
40835 cat >>conftest.$ac_ext <<_ACEOF
40836 /* end confdefs.h. */
40838 /* Override any GCC internal prototype to avoid an error.
40839 Use char because int might match the return type of a GCC
40840 builtin and then its argument prototype would still apply. */
40853 rm -f conftest.$ac_objext conftest$ac_exeext
40854 if { (ac_try="$ac_link"
40855 case "(($ac_try" in
40856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40857 *) ac_try_echo=$ac_try;;
40859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40860 (eval "$ac_link") 2>conftest.er1
40862 grep -v '^ *+' conftest.er1 >conftest.err
40864 cat conftest.err >&5
40865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40866 (exit $ac_status); } && {
40867 test -z "$ac_c_werror_flag" ||
40868 test ! -s conftest.err
40869 } && test -s conftest$ac_exeext &&
40870 $as_test_x conftest$ac_exeext; then
40871 ac_cv_lib_z_deflate=yes
40873 echo "$as_me: failed program was:" >&5
40874 sed 's/^/| /' conftest.$ac_ext >&5
40876 ac_cv_lib_z_deflate=no
40879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40880 conftest$ac_exeext conftest.$ac_ext
40881 LIBS=$ac_check_lib_save_LIBS
40883 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40884 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40885 if test $ac_cv_lib_z_deflate = yes; then
40890 if test x$FDLIBS = x-lz; then
40891 cat >>confdefs.h <<\_ACEOF
40892 #define HAVE_LIBZ 1
40899 # Check whether --enable-acl was given.
40900 if test "${enable_acl+set}" = set; then
40901 enableval=$enable_acl;
40902 if test x$enableval = xyes; then
40904 elif test x$enableval = xno; then
40913 have_extended_acl=no
40914 if test x$support_acl = xyes -o x$support_acl = xauto; then
40915 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40916 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40917 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40918 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40919 echo $ECHO_N "(cached) $ECHO_C" >&6
40921 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40922 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40924 # Is the header compilable?
40925 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40926 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40927 cat >conftest.$ac_ext <<_ACEOF
40930 cat confdefs.h >>conftest.$ac_ext
40931 cat >>conftest.$ac_ext <<_ACEOF
40932 /* end confdefs.h. */
40933 $ac_includes_default
40934 #include <sys/acl.h>
40936 rm -f conftest.$ac_objext
40937 if { (ac_try="$ac_compile"
40938 case "(($ac_try" in
40939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40940 *) ac_try_echo=$ac_try;;
40942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40943 (eval "$ac_compile") 2>conftest.er1
40945 grep -v '^ *+' conftest.er1 >conftest.err
40947 cat conftest.err >&5
40948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40949 (exit $ac_status); } && {
40950 test -z "$ac_c_werror_flag" ||
40951 test ! -s conftest.err
40952 } && test -s conftest.$ac_objext; then
40953 ac_header_compiler=yes
40955 echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40958 ac_header_compiler=no
40961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40963 echo "${ECHO_T}$ac_header_compiler" >&6; }
40965 # Is the header present?
40966 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40967 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40968 cat >conftest.$ac_ext <<_ACEOF
40971 cat confdefs.h >>conftest.$ac_ext
40972 cat >>conftest.$ac_ext <<_ACEOF
40973 /* end confdefs.h. */
40974 #include <sys/acl.h>
40976 if { (ac_try="$ac_cpp conftest.$ac_ext"
40977 case "(($ac_try" in
40978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40979 *) ac_try_echo=$ac_try;;
40981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40984 grep -v '^ *+' conftest.er1 >conftest.err
40986 cat conftest.err >&5
40987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988 (exit $ac_status); } >/dev/null && {
40989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40990 test ! -s conftest.err
40992 ac_header_preproc=yes
40994 echo "$as_me: failed program was:" >&5
40995 sed 's/^/| /' conftest.$ac_ext >&5
40997 ac_header_preproc=no
41000 rm -f conftest.err conftest.$ac_ext
41001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41002 echo "${ECHO_T}$ac_header_preproc" >&6; }
41004 # So? What about this header?
41005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41007 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41008 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41009 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41010 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41011 ac_header_preproc=yes
41014 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41015 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41016 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41017 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41018 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41019 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41020 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41021 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41022 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41023 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41024 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41025 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41029 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41030 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41031 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41032 echo $ECHO_N "(cached) $ECHO_C" >&6
41034 ac_cv_header_sys_acl_h=$ac_header_preproc
41036 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41037 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41040 if test $ac_cv_header_sys_acl_h = yes; then
41042 cat >>confdefs.h <<\_ACEOF
41043 #define HAVE_SYS_ACL_H 1
41049 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41050 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41051 if test "${ac_cv_func_acl_get_file+set}" = set; then
41052 echo $ECHO_N "(cached) $ECHO_C" >&6
41054 cat >conftest.$ac_ext <<_ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h. */
41060 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41062 #define acl_get_file innocuous_acl_get_file
41064 /* System header to define __stub macros and hopefully few prototypes,
41065 which can conflict with char acl_get_file (); below.
41066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41067 <limits.h> exists even on freestanding compilers. */
41070 # include <limits.h>
41072 # include <assert.h>
41075 #undef acl_get_file
41077 /* Override any GCC internal prototype to avoid an error.
41078 Use char because int might match the return type of a GCC
41079 builtin and then its argument prototype would still apply. */
41083 char acl_get_file ();
41084 /* The GNU C library defines this for functions which it implements
41085 to always fail with ENOSYS. Some functions are actually named
41086 something starting with __ and the normal name is an alias. */
41087 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41094 return acl_get_file ();
41099 rm -f conftest.$ac_objext conftest$ac_exeext
41100 if { (ac_try="$ac_link"
41101 case "(($ac_try" in
41102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41103 *) ac_try_echo=$ac_try;;
41105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41106 (eval "$ac_link") 2>conftest.er1
41108 grep -v '^ *+' conftest.er1 >conftest.err
41110 cat conftest.err >&5
41111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112 (exit $ac_status); } && {
41113 test -z "$ac_c_werror_flag" ||
41114 test ! -s conftest.err
41115 } && test -s conftest$ac_exeext &&
41116 $as_test_x conftest$ac_exeext; then
41117 ac_cv_func_acl_get_file=yes
41119 echo "$as_me: failed program was:" >&5
41120 sed 's/^/| /' conftest.$ac_ext >&5
41122 ac_cv_func_acl_get_file=no
41125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41126 conftest$ac_exeext conftest.$ac_ext
41128 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41129 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41130 if test $ac_cv_func_acl_get_file = yes; then
41136 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41137 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41138 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41139 echo $ECHO_N "(cached) $ECHO_C" >&6
41141 ac_check_lib_save_LIBS=$LIBS
41143 cat >conftest.$ac_ext <<_ACEOF
41146 cat confdefs.h >>conftest.$ac_ext
41147 cat >>conftest.$ac_ext <<_ACEOF
41148 /* end confdefs.h. */
41150 /* Override any GCC internal prototype to avoid an error.
41151 Use char because int might match the return type of a GCC
41152 builtin and then its argument prototype would still apply. */
41156 char acl_get_file ();
41160 return acl_get_file ();
41165 rm -f conftest.$ac_objext conftest$ac_exeext
41166 if { (ac_try="$ac_link"
41167 case "(($ac_try" in
41168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41169 *) ac_try_echo=$ac_try;;
41171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41172 (eval "$ac_link") 2>conftest.er1
41174 grep -v '^ *+' conftest.er1 >conftest.err
41176 cat conftest.err >&5
41177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); } && {
41179 test -z "$ac_c_werror_flag" ||
41180 test ! -s conftest.err
41181 } && test -s conftest$ac_exeext &&
41182 $as_test_x conftest$ac_exeext; then
41183 ac_cv_lib_acl_acl_get_file=yes
41185 echo "$as_me: failed program was:" >&5
41186 sed 's/^/| /' conftest.$ac_ext >&5
41188 ac_cv_lib_acl_acl_get_file=no
41191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41192 conftest$ac_exeext conftest.$ac_ext
41193 LIBS=$ac_check_lib_save_LIBS
41195 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41196 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41197 if test $ac_cv_lib_acl_acl_get_file = yes; then
41200 FDLIBS="-lacl $FDLIBS"
41204 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41205 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41206 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41207 echo $ECHO_N "(cached) $ECHO_C" >&6
41209 ac_check_lib_save_LIBS=$LIBS
41210 LIBS="-lpacl $LIBS"
41211 cat >conftest.$ac_ext <<_ACEOF
41214 cat confdefs.h >>conftest.$ac_ext
41215 cat >>conftest.$ac_ext <<_ACEOF
41216 /* end confdefs.h. */
41218 /* Override any GCC internal prototype to avoid an error.
41219 Use char because int might match the return type of a GCC
41220 builtin and then its argument prototype would still apply. */
41224 char acl_get_file ();
41228 return acl_get_file ();
41233 rm -f conftest.$ac_objext conftest$ac_exeext
41234 if { (ac_try="$ac_link"
41235 case "(($ac_try" in
41236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41237 *) ac_try_echo=$ac_try;;
41239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41240 (eval "$ac_link") 2>conftest.er1
41242 grep -v '^ *+' conftest.er1 >conftest.err
41244 cat conftest.err >&5
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); } && {
41247 test -z "$ac_c_werror_flag" ||
41248 test ! -s conftest.err
41249 } && test -s conftest$ac_exeext &&
41250 $as_test_x conftest$ac_exeext; then
41251 ac_cv_lib_pacl_acl_get_file=yes
41253 echo "$as_me: failed program was:" >&5
41254 sed 's/^/| /' conftest.$ac_ext >&5
41256 ac_cv_lib_pacl_acl_get_file=no
41259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41260 conftest$ac_exeext conftest.$ac_ext
41261 LIBS=$ac_check_lib_save_LIBS
41263 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41264 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41265 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41268 FDLIBS="-lpacl $FDLIBS"
41272 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41273 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41274 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41275 echo $ECHO_N "(cached) $ECHO_C" >&6
41277 ac_check_lib_save_LIBS=$LIBS
41279 cat >conftest.$ac_ext <<_ACEOF
41282 cat confdefs.h >>conftest.$ac_ext
41283 cat >>conftest.$ac_ext <<_ACEOF
41284 /* end confdefs.h. */
41286 /* Override any GCC internal prototype to avoid an error.
41287 Use char because int might match the return type of a GCC
41288 builtin and then its argument prototype would still apply. */
41296 return acltotext ();
41301 rm -f conftest.$ac_objext conftest$ac_exeext
41302 if { (ac_try="$ac_link"
41303 case "(($ac_try" in
41304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41305 *) ac_try_echo=$ac_try;;
41307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41308 (eval "$ac_link") 2>conftest.er1
41310 grep -v '^ *+' conftest.er1 >conftest.err
41312 cat conftest.err >&5
41313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41314 (exit $ac_status); } && {
41315 test -z "$ac_c_werror_flag" ||
41316 test ! -s conftest.err
41317 } && test -s conftest$ac_exeext &&
41318 $as_test_x conftest$ac_exeext; then
41319 ac_cv_lib_sec_acltotext=yes
41321 echo "$as_me: failed program was:" >&5
41322 sed 's/^/| /' conftest.$ac_ext >&5
41324 ac_cv_lib_sec_acltotext=no
41327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41328 conftest$ac_exeext conftest.$ac_ext
41329 LIBS=$ac_check_lib_save_LIBS
41331 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41332 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41333 if test $ac_cv_lib_sec_acltotext = yes; then
41336 FDLIBS="-lsec $FDLIBS"
41338 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41339 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41340 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41341 echo $ECHO_N "(cached) $ECHO_C" >&6
41343 ac_check_lib_save_LIBS=$LIBS
41345 cat >conftest.$ac_ext <<_ACEOF
41348 cat confdefs.h >>conftest.$ac_ext
41349 cat >>conftest.$ac_ext <<_ACEOF
41350 /* end confdefs.h. */
41352 /* Override any GCC internal prototype to avoid an error.
41353 Use char because int might match the return type of a GCC
41354 builtin and then its argument prototype would still apply. */
41358 char acl_totext ();
41362 return acl_totext ();
41367 rm -f conftest.$ac_objext conftest$ac_exeext
41368 if { (ac_try="$ac_link"
41369 case "(($ac_try" in
41370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41371 *) ac_try_echo=$ac_try;;
41373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41374 (eval "$ac_link") 2>conftest.er1
41376 grep -v '^ *+' conftest.er1 >conftest.err
41378 cat conftest.err >&5
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); } && {
41381 test -z "$ac_c_werror_flag" ||
41382 test ! -s conftest.err
41383 } && test -s conftest$ac_exeext &&
41384 $as_test_x conftest$ac_exeext; then
41385 ac_cv_lib_sec_acl_totext=yes
41387 echo "$as_me: failed program was:" >&5
41388 sed 's/^/| /' conftest.$ac_ext >&5
41390 ac_cv_lib_sec_acl_totext=no
41393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41394 conftest$ac_exeext conftest.$ac_ext
41395 LIBS=$ac_check_lib_save_LIBS
41397 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41398 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41399 if test $ac_cv_lib_sec_acl_totext = yes; then
41401 have_extended_acl=yes
41423 if test x$support_acl = xyes -a $have_acl != yes; then
41424 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41425 please either load the acl libraries or rerun configure without --enable-acl" >&5
41426 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41427 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41428 { (exit 1); exit 1; }; }
41430 if test $have_acl = yes; then
41432 cat >>confdefs.h <<\_ACEOF
41438 if test $have_extended_acl = yes; then
41440 cat >>confdefs.h <<\_ACEOF
41441 #define HAVE_EXTENDED_ACL 1
41449 # Check whether --enable-xattr was given.
41450 if test "${enable_xattr+set}" = set; then
41451 enableval=$enable_xattr;
41452 if test x$enableval = xyes; then
41454 elif test x$enableval = xno; then
41463 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41464 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41465 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41466 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41467 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41468 echo $ECHO_N "(cached) $ECHO_C" >&6
41470 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41471 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41473 # Is the header compilable?
41474 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41475 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41476 cat >conftest.$ac_ext <<_ACEOF
41479 cat confdefs.h >>conftest.$ac_ext
41480 cat >>conftest.$ac_ext <<_ACEOF
41481 /* end confdefs.h. */
41482 $ac_includes_default
41483 #include <sys/extattr.h>
41485 rm -f conftest.$ac_objext
41486 if { (ac_try="$ac_compile"
41487 case "(($ac_try" in
41488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41489 *) ac_try_echo=$ac_try;;
41491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41492 (eval "$ac_compile") 2>conftest.er1
41494 grep -v '^ *+' conftest.er1 >conftest.err
41496 cat conftest.err >&5
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); } && {
41499 test -z "$ac_c_werror_flag" ||
41500 test ! -s conftest.err
41501 } && test -s conftest.$ac_objext; then
41502 ac_header_compiler=yes
41504 echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41507 ac_header_compiler=no
41510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41512 echo "${ECHO_T}$ac_header_compiler" >&6; }
41514 # Is the header present?
41515 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41516 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41517 cat >conftest.$ac_ext <<_ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h. */
41523 #include <sys/extattr.h>
41525 if { (ac_try="$ac_cpp conftest.$ac_ext"
41526 case "(($ac_try" in
41527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41528 *) ac_try_echo=$ac_try;;
41530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41533 grep -v '^ *+' conftest.er1 >conftest.err
41535 cat conftest.err >&5
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); } >/dev/null && {
41538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41539 test ! -s conftest.err
41541 ac_header_preproc=yes
41543 echo "$as_me: failed program was:" >&5
41544 sed 's/^/| /' conftest.$ac_ext >&5
41546 ac_header_preproc=no
41549 rm -f conftest.err conftest.$ac_ext
41550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41551 echo "${ECHO_T}$ac_header_preproc" >&6; }
41553 # So? What about this header?
41554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41556 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41557 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41558 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41559 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41560 ac_header_preproc=yes
41563 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41564 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41565 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41566 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41567 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41568 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41569 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41570 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41571 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41572 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41573 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41574 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41578 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41579 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41580 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41581 echo $ECHO_N "(cached) $ECHO_C" >&6
41583 ac_cv_header_sys_extattr_h=$ac_header_preproc
41585 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41586 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41589 if test $ac_cv_header_sys_extattr_h = yes; then
41591 cat >>confdefs.h <<\_ACEOF
41592 #define HAVE_SYS_EXTATTR_H 1
41598 if test "${ac_cv_header_libutil_h+set}" = set; then
41599 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41600 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41601 if test "${ac_cv_header_libutil_h+set}" = set; then
41602 echo $ECHO_N "(cached) $ECHO_C" >&6
41604 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41605 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41607 # Is the header compilable?
41608 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41609 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41610 cat >conftest.$ac_ext <<_ACEOF
41613 cat confdefs.h >>conftest.$ac_ext
41614 cat >>conftest.$ac_ext <<_ACEOF
41615 /* end confdefs.h. */
41616 $ac_includes_default
41617 #include <libutil.h>
41619 rm -f conftest.$ac_objext
41620 if { (ac_try="$ac_compile"
41621 case "(($ac_try" in
41622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623 *) ac_try_echo=$ac_try;;
41625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626 (eval "$ac_compile") 2>conftest.er1
41628 grep -v '^ *+' conftest.er1 >conftest.err
41630 cat conftest.err >&5
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); } && {
41633 test -z "$ac_c_werror_flag" ||
41634 test ! -s conftest.err
41635 } && test -s conftest.$ac_objext; then
41636 ac_header_compiler=yes
41638 echo "$as_me: failed program was:" >&5
41639 sed 's/^/| /' conftest.$ac_ext >&5
41641 ac_header_compiler=no
41644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41646 echo "${ECHO_T}$ac_header_compiler" >&6; }
41648 # Is the header present?
41649 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41650 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41651 cat >conftest.$ac_ext <<_ACEOF
41654 cat confdefs.h >>conftest.$ac_ext
41655 cat >>conftest.$ac_ext <<_ACEOF
41656 /* end confdefs.h. */
41657 #include <libutil.h>
41659 if { (ac_try="$ac_cpp conftest.$ac_ext"
41660 case "(($ac_try" in
41661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41662 *) ac_try_echo=$ac_try;;
41664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41667 grep -v '^ *+' conftest.er1 >conftest.err
41669 cat conftest.err >&5
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); } >/dev/null && {
41672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41673 test ! -s conftest.err
41675 ac_header_preproc=yes
41677 echo "$as_me: failed program was:" >&5
41678 sed 's/^/| /' conftest.$ac_ext >&5
41680 ac_header_preproc=no
41683 rm -f conftest.err conftest.$ac_ext
41684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41685 echo "${ECHO_T}$ac_header_preproc" >&6; }
41687 # So? What about this header?
41688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41690 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41691 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41692 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41693 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41694 ac_header_preproc=yes
41697 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41698 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41699 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41700 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41701 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41702 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41703 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41704 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41705 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41706 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41707 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41708 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41712 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41713 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41714 if test "${ac_cv_header_libutil_h+set}" = set; then
41715 echo $ECHO_N "(cached) $ECHO_C" >&6
41717 ac_cv_header_libutil_h=$ac_header_preproc
41719 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41720 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41723 if test $ac_cv_header_libutil_h = yes; then
41725 cat >>confdefs.h <<\_ACEOF
41726 #define HAVE_LIBUTIL_H 1
41735 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41741 echo $ECHO_N "(cached) $ECHO_C" >&6
41743 cat >conftest.$ac_ext <<_ACEOF
41746 cat confdefs.h >>conftest.$ac_ext
41747 cat >>conftest.$ac_ext <<_ACEOF
41748 /* end confdefs.h. */
41749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41751 #define $ac_func innocuous_$ac_func
41753 /* System header to define __stub macros and hopefully few prototypes,
41754 which can conflict with char $ac_func (); below.
41755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41756 <limits.h> exists even on freestanding compilers. */
41759 # include <limits.h>
41761 # include <assert.h>
41766 /* Override any GCC internal prototype to avoid an error.
41767 Use char because int might match the return type of a GCC
41768 builtin and then its argument prototype would still apply. */
41773 /* The GNU C library defines this for functions which it implements
41774 to always fail with ENOSYS. Some functions are actually named
41775 something starting with __ and the normal name is an alias. */
41776 #if defined __stub_$ac_func || defined __stub___$ac_func
41783 return $ac_func ();
41788 rm -f conftest.$ac_objext conftest$ac_exeext
41789 if { (ac_try="$ac_link"
41790 case "(($ac_try" in
41791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41792 *) ac_try_echo=$ac_try;;
41794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41795 (eval "$ac_link") 2>conftest.er1
41797 grep -v '^ *+' conftest.er1 >conftest.err
41799 cat conftest.err >&5
41800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); } && {
41802 test -z "$ac_c_werror_flag" ||
41803 test ! -s conftest.err
41804 } && test -s conftest$ac_exeext &&
41805 $as_test_x conftest$ac_exeext; then
41806 eval "$as_ac_var=yes"
41808 echo "$as_me: failed program was:" >&5
41809 sed 's/^/| /' conftest.$ac_ext >&5
41811 eval "$as_ac_var=no"
41814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41815 conftest$ac_exeext conftest.$ac_ext
41817 ac_res=`eval echo '${'$as_ac_var'}'`
41818 { echo "$as_me:$LINENO: result: $ac_res" >&5
41819 echo "${ECHO_T}$ac_res" >&6; }
41820 if test `eval echo '${'$as_ac_var'}'` = yes; then
41821 cat >>confdefs.h <<_ACEOF
41822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41827 cat >>confdefs.h <<\_ACEOF
41828 #define HAVE_EXTATTR_GET_LINK 1
41832 cat >>confdefs.h <<\_ACEOF
41833 #define HAVE_EXTATTR_SET_LINK 1
41837 cat >>confdefs.h <<\_ACEOF
41838 #define HAVE_EXTATTR_LIST_LINK 1
41847 if test $have_xattr = no; then
41851 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41857 echo $ECHO_N "(cached) $ECHO_C" >&6
41859 cat >conftest.$ac_ext <<_ACEOF
41862 cat confdefs.h >>conftest.$ac_ext
41863 cat >>conftest.$ac_ext <<_ACEOF
41864 /* end confdefs.h. */
41865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41867 #define $ac_func innocuous_$ac_func
41869 /* System header to define __stub macros and hopefully few prototypes,
41870 which can conflict with char $ac_func (); below.
41871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41872 <limits.h> exists even on freestanding compilers. */
41875 # include <limits.h>
41877 # include <assert.h>
41882 /* Override any GCC internal prototype to avoid an error.
41883 Use char because int might match the return type of a GCC
41884 builtin and then its argument prototype would still apply. */
41889 /* The GNU C library defines this for functions which it implements
41890 to always fail with ENOSYS. Some functions are actually named
41891 something starting with __ and the normal name is an alias. */
41892 #if defined __stub_$ac_func || defined __stub___$ac_func
41899 return $ac_func ();
41904 rm -f conftest.$ac_objext conftest$ac_exeext
41905 if { (ac_try="$ac_link"
41906 case "(($ac_try" in
41907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41908 *) ac_try_echo=$ac_try;;
41910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41911 (eval "$ac_link") 2>conftest.er1
41913 grep -v '^ *+' conftest.er1 >conftest.err
41915 cat conftest.err >&5
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); } && {
41918 test -z "$ac_c_werror_flag" ||
41919 test ! -s conftest.err
41920 } && test -s conftest$ac_exeext &&
41921 $as_test_x conftest$ac_exeext; then
41922 eval "$as_ac_var=yes"
41924 echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41927 eval "$as_ac_var=no"
41930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41931 conftest$ac_exeext conftest.$ac_ext
41933 ac_res=`eval echo '${'$as_ac_var'}'`
41934 { echo "$as_me:$LINENO: result: $ac_res" >&5
41935 echo "${ECHO_T}$ac_res" >&6; }
41936 if test `eval echo '${'$as_ac_var'}'` = yes; then
41937 cat >>confdefs.h <<_ACEOF
41938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41943 cat >>confdefs.h <<\_ACEOF
41944 #define HAVE_EXTATTR_GET_FILE 1
41948 cat >>confdefs.h <<\_ACEOF
41949 #define HAVE_EXTATTR_SET_FILE 1
41953 cat >>confdefs.h <<\_ACEOF
41954 #define HAVE_EXTATTR_LIST_FILE 1
41964 if test $have_xattr = yes; then
41965 have_extattr_string_in_libc=no
41968 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41974 echo $ECHO_N "(cached) $ECHO_C" >&6
41976 cat >conftest.$ac_ext <<_ACEOF
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h. */
41982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41984 #define $ac_func innocuous_$ac_func
41986 /* System header to define __stub macros and hopefully few prototypes,
41987 which can conflict with char $ac_func (); below.
41988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41989 <limits.h> exists even on freestanding compilers. */
41992 # include <limits.h>
41994 # include <assert.h>
41999 /* Override any GCC internal prototype to avoid an error.
42000 Use char because int might match the return type of a GCC
42001 builtin and then its argument prototype would still apply. */
42006 /* The GNU C library defines this for functions which it implements
42007 to always fail with ENOSYS. Some functions are actually named
42008 something starting with __ and the normal name is an alias. */
42009 #if defined __stub_$ac_func || defined __stub___$ac_func
42016 return $ac_func ();
42021 rm -f conftest.$ac_objext conftest$ac_exeext
42022 if { (ac_try="$ac_link"
42023 case "(($ac_try" in
42024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42025 *) ac_try_echo=$ac_try;;
42027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42028 (eval "$ac_link") 2>conftest.er1
42030 grep -v '^ *+' conftest.er1 >conftest.err
42032 cat conftest.err >&5
42033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034 (exit $ac_status); } && {
42035 test -z "$ac_c_werror_flag" ||
42036 test ! -s conftest.err
42037 } && test -s conftest$ac_exeext &&
42038 $as_test_x conftest$ac_exeext; then
42039 eval "$as_ac_var=yes"
42041 echo "$as_me: failed program was:" >&5
42042 sed 's/^/| /' conftest.$ac_ext >&5
42044 eval "$as_ac_var=no"
42047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42048 conftest$ac_exeext conftest.$ac_ext
42050 ac_res=`eval echo '${'$as_ac_var'}'`
42051 { echo "$as_me:$LINENO: result: $ac_res" >&5
42052 echo "${ECHO_T}$ac_res" >&6; }
42053 if test `eval echo '${'$as_ac_var'}'` = yes; then
42054 cat >>confdefs.h <<_ACEOF
42055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42058 have_extattr_string_in_libc=yes
42060 cat >>confdefs.h <<\_ACEOF
42061 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42065 cat >>confdefs.h <<\_ACEOF
42066 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42075 if test $have_extattr_string_in_libc = no; then
42076 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42077 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42078 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42079 echo $ECHO_N "(cached) $ECHO_C" >&6
42081 ac_check_lib_save_LIBS=$LIBS
42082 LIBS="-lutil $LIBS"
42083 cat >conftest.$ac_ext <<_ACEOF
42086 cat confdefs.h >>conftest.$ac_ext
42087 cat >>conftest.$ac_ext <<_ACEOF
42088 /* end confdefs.h. */
42090 /* Override any GCC internal prototype to avoid an error.
42091 Use char because int might match the return type of a GCC
42092 builtin and then its argument prototype would still apply. */
42096 char extattr_namespace_to_string extattr_string_to_namespace ();
42100 return extattr_namespace_to_string extattr_string_to_namespace ();
42105 rm -f conftest.$ac_objext conftest$ac_exeext
42106 if { (ac_try="$ac_link"
42107 case "(($ac_try" in
42108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42109 *) ac_try_echo=$ac_try;;
42111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42112 (eval "$ac_link") 2>conftest.er1
42114 grep -v '^ *+' conftest.er1 >conftest.err
42116 cat conftest.err >&5
42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); } && {
42119 test -z "$ac_c_werror_flag" ||
42120 test ! -s conftest.err
42121 } && test -s conftest$ac_exeext &&
42122 $as_test_x conftest$ac_exeext; then
42123 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42125 echo "$as_me: failed program was:" >&5
42126 sed 's/^/| /' conftest.$ac_ext >&5
42128 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42132 conftest$ac_exeext conftest.$ac_ext
42133 LIBS=$ac_check_lib_save_LIBS
42135 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42136 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42137 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42140 cat >>confdefs.h <<\_ACEOF
42141 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42145 cat >>confdefs.h <<\_ACEOF
42146 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42149 FDLIBS="-lutil $FDLIBS"
42157 if test $have_xattr = no; then
42158 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42159 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42160 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42161 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42162 echo $ECHO_N "(cached) $ECHO_C" >&6
42164 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42165 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42167 # Is the header compilable?
42168 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42169 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42170 cat >conftest.$ac_ext <<_ACEOF
42173 cat confdefs.h >>conftest.$ac_ext
42174 cat >>conftest.$ac_ext <<_ACEOF
42175 /* end confdefs.h. */
42176 $ac_includes_default
42177 #include <sys/xattr.h>
42179 rm -f conftest.$ac_objext
42180 if { (ac_try="$ac_compile"
42181 case "(($ac_try" in
42182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42183 *) ac_try_echo=$ac_try;;
42185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42186 (eval "$ac_compile") 2>conftest.er1
42188 grep -v '^ *+' conftest.er1 >conftest.err
42190 cat conftest.err >&5
42191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192 (exit $ac_status); } && {
42193 test -z "$ac_c_werror_flag" ||
42194 test ! -s conftest.err
42195 } && test -s conftest.$ac_objext; then
42196 ac_header_compiler=yes
42198 echo "$as_me: failed program was:" >&5
42199 sed 's/^/| /' conftest.$ac_ext >&5
42201 ac_header_compiler=no
42204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42206 echo "${ECHO_T}$ac_header_compiler" >&6; }
42208 # Is the header present?
42209 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42210 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42211 cat >conftest.$ac_ext <<_ACEOF
42214 cat confdefs.h >>conftest.$ac_ext
42215 cat >>conftest.$ac_ext <<_ACEOF
42216 /* end confdefs.h. */
42217 #include <sys/xattr.h>
42219 if { (ac_try="$ac_cpp conftest.$ac_ext"
42220 case "(($ac_try" in
42221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42222 *) ac_try_echo=$ac_try;;
42224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42227 grep -v '^ *+' conftest.er1 >conftest.err
42229 cat conftest.err >&5
42230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42231 (exit $ac_status); } >/dev/null && {
42232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42233 test ! -s conftest.err
42235 ac_header_preproc=yes
42237 echo "$as_me: failed program was:" >&5
42238 sed 's/^/| /' conftest.$ac_ext >&5
42240 ac_header_preproc=no
42243 rm -f conftest.err conftest.$ac_ext
42244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42245 echo "${ECHO_T}$ac_header_preproc" >&6; }
42247 # So? What about this header?
42248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42250 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42251 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42252 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42253 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42254 ac_header_preproc=yes
42257 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42258 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42259 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42260 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42261 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42262 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42263 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42264 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42265 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42266 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42267 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42268 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42272 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42273 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42274 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42275 echo $ECHO_N "(cached) $ECHO_C" >&6
42277 ac_cv_header_sys_xattr_h=$ac_header_preproc
42279 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42280 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42283 if test $ac_cv_header_sys_xattr_h = yes; then
42285 cat >>confdefs.h <<\_ACEOF
42286 #define HAVE_SYS_XATTR_H 1
42295 for ac_func in llistxattr lgetxattr lsetxattr
42297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42301 echo $ECHO_N "(cached) $ECHO_C" >&6
42303 cat >conftest.$ac_ext <<_ACEOF
42306 cat confdefs.h >>conftest.$ac_ext
42307 cat >>conftest.$ac_ext <<_ACEOF
42308 /* end confdefs.h. */
42309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42311 #define $ac_func innocuous_$ac_func
42313 /* System header to define __stub macros and hopefully few prototypes,
42314 which can conflict with char $ac_func (); below.
42315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42316 <limits.h> exists even on freestanding compilers. */
42319 # include <limits.h>
42321 # include <assert.h>
42326 /* Override any GCC internal prototype to avoid an error.
42327 Use char because int might match the return type of a GCC
42328 builtin and then its argument prototype would still apply. */
42333 /* The GNU C library defines this for functions which it implements
42334 to always fail with ENOSYS. Some functions are actually named
42335 something starting with __ and the normal name is an alias. */
42336 #if defined __stub_$ac_func || defined __stub___$ac_func
42343 return $ac_func ();
42348 rm -f conftest.$ac_objext conftest$ac_exeext
42349 if { (ac_try="$ac_link"
42350 case "(($ac_try" in
42351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42352 *) ac_try_echo=$ac_try;;
42354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42355 (eval "$ac_link") 2>conftest.er1
42357 grep -v '^ *+' conftest.er1 >conftest.err
42359 cat conftest.err >&5
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); } && {
42362 test -z "$ac_c_werror_flag" ||
42363 test ! -s conftest.err
42364 } && test -s conftest$ac_exeext &&
42365 $as_test_x conftest$ac_exeext; then
42366 eval "$as_ac_var=yes"
42368 echo "$as_me: failed program was:" >&5
42369 sed 's/^/| /' conftest.$ac_ext >&5
42371 eval "$as_ac_var=no"
42374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42375 conftest$ac_exeext conftest.$ac_ext
42377 ac_res=`eval echo '${'$as_ac_var'}'`
42378 { echo "$as_me:$LINENO: result: $ac_res" >&5
42379 echo "${ECHO_T}$ac_res" >&6; }
42380 if test `eval echo '${'$as_ac_var'}'` = yes; then
42381 cat >>confdefs.h <<_ACEOF
42382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42387 cat >>confdefs.h <<\_ACEOF
42388 #define HAVE_LLISTXATTR 1
42392 cat >>confdefs.h <<\_ACEOF
42393 #define HAVE_LGETXATTR 1
42397 cat >>confdefs.h <<\_ACEOF
42398 #define HAVE_LSETXATTR 1
42407 if test $have_xattr = no; then
42411 for ac_func in listxattr getxattr setxattr
42413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42417 echo $ECHO_N "(cached) $ECHO_C" >&6
42419 cat >conftest.$ac_ext <<_ACEOF
42422 cat confdefs.h >>conftest.$ac_ext
42423 cat >>conftest.$ac_ext <<_ACEOF
42424 /* end confdefs.h. */
42425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42427 #define $ac_func innocuous_$ac_func
42429 /* System header to define __stub macros and hopefully few prototypes,
42430 which can conflict with char $ac_func (); below.
42431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42432 <limits.h> exists even on freestanding compilers. */
42435 # include <limits.h>
42437 # include <assert.h>
42442 /* Override any GCC internal prototype to avoid an error.
42443 Use char because int might match the return type of a GCC
42444 builtin and then its argument prototype would still apply. */
42449 /* The GNU C library defines this for functions which it implements
42450 to always fail with ENOSYS. Some functions are actually named
42451 something starting with __ and the normal name is an alias. */
42452 #if defined __stub_$ac_func || defined __stub___$ac_func
42459 return $ac_func ();
42464 rm -f conftest.$ac_objext conftest$ac_exeext
42465 if { (ac_try="$ac_link"
42466 case "(($ac_try" in
42467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42468 *) ac_try_echo=$ac_try;;
42470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42471 (eval "$ac_link") 2>conftest.er1
42473 grep -v '^ *+' conftest.er1 >conftest.err
42475 cat conftest.err >&5
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); } && {
42478 test -z "$ac_c_werror_flag" ||
42479 test ! -s conftest.err
42480 } && test -s conftest$ac_exeext &&
42481 $as_test_x conftest$ac_exeext; then
42482 eval "$as_ac_var=yes"
42484 echo "$as_me: failed program was:" >&5
42485 sed 's/^/| /' conftest.$ac_ext >&5
42487 eval "$as_ac_var=no"
42490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42491 conftest$ac_exeext conftest.$ac_ext
42493 ac_res=`eval echo '${'$as_ac_var'}'`
42494 { echo "$as_me:$LINENO: result: $ac_res" >&5
42495 echo "${ECHO_T}$ac_res" >&6; }
42496 if test `eval echo '${'$as_ac_var'}'` = yes; then
42497 cat >>confdefs.h <<_ACEOF
42498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42503 cat >>confdefs.h <<\_ACEOF
42504 #define HAVE_LISTXATTR 1
42508 cat >>confdefs.h <<\_ACEOF
42509 #define HAVE_GETXATTR 1
42513 cat >>confdefs.h <<\_ACEOF
42514 #define HAVE_SETXATTR 1
42525 if test $have_xattr = no; then
42526 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42527 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42528 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42529 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42530 echo $ECHO_N "(cached) $ECHO_C" >&6
42532 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42533 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42535 # Is the header compilable?
42536 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42537 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42538 cat >conftest.$ac_ext <<_ACEOF
42541 cat confdefs.h >>conftest.$ac_ext
42542 cat >>conftest.$ac_ext <<_ACEOF
42543 /* end confdefs.h. */
42544 $ac_includes_default
42545 #include <sys/attr.h>
42547 rm -f conftest.$ac_objext
42548 if { (ac_try="$ac_compile"
42549 case "(($ac_try" in
42550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551 *) ac_try_echo=$ac_try;;
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554 (eval "$ac_compile") 2>conftest.er1
42556 grep -v '^ *+' conftest.er1 >conftest.err
42558 cat conftest.err >&5
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } && {
42561 test -z "$ac_c_werror_flag" ||
42562 test ! -s conftest.err
42563 } && test -s conftest.$ac_objext; then
42564 ac_header_compiler=yes
42566 echo "$as_me: failed program was:" >&5
42567 sed 's/^/| /' conftest.$ac_ext >&5
42569 ac_header_compiler=no
42572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42574 echo "${ECHO_T}$ac_header_compiler" >&6; }
42576 # Is the header present?
42577 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42578 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42579 cat >conftest.$ac_ext <<_ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h. */
42585 #include <sys/attr.h>
42587 if { (ac_try="$ac_cpp conftest.$ac_ext"
42588 case "(($ac_try" in
42589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42590 *) ac_try_echo=$ac_try;;
42592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42595 grep -v '^ *+' conftest.er1 >conftest.err
42597 cat conftest.err >&5
42598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599 (exit $ac_status); } >/dev/null && {
42600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42601 test ! -s conftest.err
42603 ac_header_preproc=yes
42605 echo "$as_me: failed program was:" >&5
42606 sed 's/^/| /' conftest.$ac_ext >&5
42608 ac_header_preproc=no
42611 rm -f conftest.err conftest.$ac_ext
42612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42613 echo "${ECHO_T}$ac_header_preproc" >&6; }
42615 # So? What about this header?
42616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42618 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42619 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42620 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42621 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42622 ac_header_preproc=yes
42625 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42626 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42627 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42628 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42629 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42630 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42631 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42632 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42633 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42634 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42635 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42636 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42640 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42641 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42642 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42643 echo $ECHO_N "(cached) $ECHO_C" >&6
42645 ac_cv_header_sys_attr_h=$ac_header_preproc
42647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42648 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42651 if test $ac_cv_header_sys_attr_h = yes; then
42653 cat >>confdefs.h <<\_ACEOF
42654 #define HAVE_SYS_ATTR_H 1
42660 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42661 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42662 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42663 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42664 echo $ECHO_N "(cached) $ECHO_C" >&6
42666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42667 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42669 # Is the header compilable?
42670 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42671 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42672 cat >conftest.$ac_ext <<_ACEOF
42675 cat confdefs.h >>conftest.$ac_ext
42676 cat >>conftest.$ac_ext <<_ACEOF
42677 /* end confdefs.h. */
42678 $ac_includes_default
42679 #include <sys/nvpair.h>
42681 rm -f conftest.$ac_objext
42682 if { (ac_try="$ac_compile"
42683 case "(($ac_try" in
42684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42685 *) ac_try_echo=$ac_try;;
42687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42688 (eval "$ac_compile") 2>conftest.er1
42690 grep -v '^ *+' conftest.er1 >conftest.err
42692 cat conftest.err >&5
42693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694 (exit $ac_status); } && {
42695 test -z "$ac_c_werror_flag" ||
42696 test ! -s conftest.err
42697 } && test -s conftest.$ac_objext; then
42698 ac_header_compiler=yes
42700 echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42703 ac_header_compiler=no
42706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42708 echo "${ECHO_T}$ac_header_compiler" >&6; }
42710 # Is the header present?
42711 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42712 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42713 cat >conftest.$ac_ext <<_ACEOF
42716 cat confdefs.h >>conftest.$ac_ext
42717 cat >>conftest.$ac_ext <<_ACEOF
42718 /* end confdefs.h. */
42719 #include <sys/nvpair.h>
42721 if { (ac_try="$ac_cpp conftest.$ac_ext"
42722 case "(($ac_try" in
42723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42724 *) ac_try_echo=$ac_try;;
42726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42729 grep -v '^ *+' conftest.er1 >conftest.err
42731 cat conftest.err >&5
42732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42733 (exit $ac_status); } >/dev/null && {
42734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42735 test ! -s conftest.err
42737 ac_header_preproc=yes
42739 echo "$as_me: failed program was:" >&5
42740 sed 's/^/| /' conftest.$ac_ext >&5
42742 ac_header_preproc=no
42745 rm -f conftest.err conftest.$ac_ext
42746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42747 echo "${ECHO_T}$ac_header_preproc" >&6; }
42749 # So? What about this header?
42750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42752 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42753 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42754 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42755 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42756 ac_header_preproc=yes
42759 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42760 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42761 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42762 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42763 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42764 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42765 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42766 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42767 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42768 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42769 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42770 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42774 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42775 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42776 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42777 echo $ECHO_N "(cached) $ECHO_C" >&6
42779 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42782 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42785 if test $ac_cv_header_sys_nvpair_h = yes; then
42787 cat >>confdefs.h <<\_ACEOF
42788 #define HAVE_SYS_NVPAIR_H 1
42794 if test "${ac_cv_header_attr_h+set}" = set; then
42795 { echo "$as_me:$LINENO: checking for attr.h" >&5
42796 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42797 if test "${ac_cv_header_attr_h+set}" = set; then
42798 echo $ECHO_N "(cached) $ECHO_C" >&6
42800 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42801 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42803 # Is the header compilable?
42804 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42805 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42806 cat >conftest.$ac_ext <<_ACEOF
42809 cat confdefs.h >>conftest.$ac_ext
42810 cat >>conftest.$ac_ext <<_ACEOF
42811 /* end confdefs.h. */
42812 $ac_includes_default
42815 rm -f conftest.$ac_objext
42816 if { (ac_try="$ac_compile"
42817 case "(($ac_try" in
42818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42819 *) ac_try_echo=$ac_try;;
42821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42822 (eval "$ac_compile") 2>conftest.er1
42824 grep -v '^ *+' conftest.er1 >conftest.err
42826 cat conftest.err >&5
42827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828 (exit $ac_status); } && {
42829 test -z "$ac_c_werror_flag" ||
42830 test ! -s conftest.err
42831 } && test -s conftest.$ac_objext; then
42832 ac_header_compiler=yes
42834 echo "$as_me: failed program was:" >&5
42835 sed 's/^/| /' conftest.$ac_ext >&5
42837 ac_header_compiler=no
42840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42842 echo "${ECHO_T}$ac_header_compiler" >&6; }
42844 # Is the header present?
42845 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42846 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42847 cat >conftest.$ac_ext <<_ACEOF
42850 cat confdefs.h >>conftest.$ac_ext
42851 cat >>conftest.$ac_ext <<_ACEOF
42852 /* end confdefs.h. */
42855 if { (ac_try="$ac_cpp conftest.$ac_ext"
42856 case "(($ac_try" in
42857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42858 *) ac_try_echo=$ac_try;;
42860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42863 grep -v '^ *+' conftest.er1 >conftest.err
42865 cat conftest.err >&5
42866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867 (exit $ac_status); } >/dev/null && {
42868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42869 test ! -s conftest.err
42871 ac_header_preproc=yes
42873 echo "$as_me: failed program was:" >&5
42874 sed 's/^/| /' conftest.$ac_ext >&5
42876 ac_header_preproc=no
42879 rm -f conftest.err conftest.$ac_ext
42880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42881 echo "${ECHO_T}$ac_header_preproc" >&6; }
42883 # So? What about this header?
42884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42886 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42887 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42888 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42889 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42890 ac_header_preproc=yes
42893 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42894 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42895 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42896 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42897 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42898 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42899 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42900 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42901 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42902 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42903 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42904 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42908 { echo "$as_me:$LINENO: checking for attr.h" >&5
42909 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42910 if test "${ac_cv_header_attr_h+set}" = set; then
42911 echo $ECHO_N "(cached) $ECHO_C" >&6
42913 ac_cv_header_attr_h=$ac_header_preproc
42915 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42916 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42919 if test $ac_cv_header_attr_h = yes; then
42921 cat >>confdefs.h <<\_ACEOF
42922 #define HAVE_ATTR_H 1
42934 for ac_func in openat fstatat unlinkat fchownat futimesat
42936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42940 echo $ECHO_N "(cached) $ECHO_C" >&6
42942 cat >conftest.$ac_ext <<_ACEOF
42945 cat confdefs.h >>conftest.$ac_ext
42946 cat >>conftest.$ac_ext <<_ACEOF
42947 /* end confdefs.h. */
42948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42950 #define $ac_func innocuous_$ac_func
42952 /* System header to define __stub macros and hopefully few prototypes,
42953 which can conflict with char $ac_func (); below.
42954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42955 <limits.h> exists even on freestanding compilers. */
42958 # include <limits.h>
42960 # include <assert.h>
42965 /* Override any GCC internal prototype to avoid an error.
42966 Use char because int might match the return type of a GCC
42967 builtin and then its argument prototype would still apply. */
42972 /* The GNU C library defines this for functions which it implements
42973 to always fail with ENOSYS. Some functions are actually named
42974 something starting with __ and the normal name is an alias. */
42975 #if defined __stub_$ac_func || defined __stub___$ac_func
42982 return $ac_func ();
42987 rm -f conftest.$ac_objext conftest$ac_exeext
42988 if { (ac_try="$ac_link"
42989 case "(($ac_try" in
42990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42991 *) ac_try_echo=$ac_try;;
42993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42994 (eval "$ac_link") 2>conftest.er1
42996 grep -v '^ *+' conftest.er1 >conftest.err
42998 cat conftest.err >&5
42999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43000 (exit $ac_status); } && {
43001 test -z "$ac_c_werror_flag" ||
43002 test ! -s conftest.err
43003 } && test -s conftest$ac_exeext &&
43004 $as_test_x conftest$ac_exeext; then
43005 eval "$as_ac_var=yes"
43007 echo "$as_me: failed program was:" >&5
43008 sed 's/^/| /' conftest.$ac_ext >&5
43010 eval "$as_ac_var=no"
43013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43014 conftest$ac_exeext conftest.$ac_ext
43016 ac_res=`eval echo '${'$as_ac_var'}'`
43017 { echo "$as_me:$LINENO: result: $ac_res" >&5
43018 echo "${ECHO_T}$ac_res" >&6; }
43019 if test `eval echo '${'$as_ac_var'}'` = yes; then
43020 cat >>confdefs.h <<_ACEOF
43021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43026 cat >>confdefs.h <<\_ACEOF
43027 #define HAVE_OPENAT 1
43031 cat >>confdefs.h <<\_ACEOF
43032 #define HAVE_FSTATAT 1
43036 cat >>confdefs.h <<\_ACEOF
43037 #define HAVE_UNLINKAT 1
43041 cat >>confdefs.h <<\_ACEOF
43042 #define HAVE_FCHOWNAT 1
43046 cat >>confdefs.h <<\_ACEOF
43047 #define HAVE_FUTIMESAT 1
43056 if test $have_xattr = yes; then
43057 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43058 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43059 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43060 echo $ECHO_N "(cached) $ECHO_C" >&6
43062 ac_check_lib_save_LIBS=$LIBS
43063 LIBS="-lnvpair $LIBS"
43064 cat >conftest.$ac_ext <<_ACEOF
43067 cat confdefs.h >>conftest.$ac_ext
43068 cat >>conftest.$ac_ext <<_ACEOF
43069 /* end confdefs.h. */
43071 /* Override any GCC internal prototype to avoid an error.
43072 Use char because int might match the return type of a GCC
43073 builtin and then its argument prototype would still apply. */
43077 char nvlist_next_nvpair ();
43081 return nvlist_next_nvpair ();
43086 rm -f conftest.$ac_objext conftest$ac_exeext
43087 if { (ac_try="$ac_link"
43088 case "(($ac_try" in
43089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43090 *) ac_try_echo=$ac_try;;
43092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43093 (eval "$ac_link") 2>conftest.er1
43095 grep -v '^ *+' conftest.er1 >conftest.err
43097 cat conftest.err >&5
43098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43099 (exit $ac_status); } && {
43100 test -z "$ac_c_werror_flag" ||
43101 test ! -s conftest.err
43102 } && test -s conftest$ac_exeext &&
43103 $as_test_x conftest$ac_exeext; then
43104 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43106 echo "$as_me: failed program was:" >&5
43107 sed 's/^/| /' conftest.$ac_ext >&5
43109 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43113 conftest$ac_exeext conftest.$ac_ext
43114 LIBS=$ac_check_lib_save_LIBS
43116 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43117 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43118 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43121 cat >>confdefs.h <<\_ACEOF
43122 #define HAVE_NVLIST_NEXT_NVPAIR 1
43125 FDLIBS="-lnvpair $FDLIBS"
43133 if test x$support_xattr = xyes -a $have_xattr != yes; then
43134 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43135 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43136 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43137 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43138 { (exit 1); exit 1; }; }
43140 if test $have_xattr = yes; then
43142 cat >>confdefs.h <<\_ACEOF
43143 #define HAVE_XATTR 1
43151 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43152 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43153 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43154 echo $ECHO_N "(cached) $ECHO_C" >&6
43156 ac_check_lib_save_LIBS=$LIBS
43157 LIBS="-lpthread $LIBS"
43158 cat >conftest.$ac_ext <<_ACEOF
43161 cat confdefs.h >>conftest.$ac_ext
43162 cat >>conftest.$ac_ext <<_ACEOF
43163 /* end confdefs.h. */
43165 /* Override any GCC internal prototype to avoid an error.
43166 Use char because int might match the return type of a GCC
43167 builtin and then its argument prototype would still apply. */
43171 char pthread_create ();
43175 return pthread_create ();
43180 rm -f conftest.$ac_objext conftest$ac_exeext
43181 if { (ac_try="$ac_link"
43182 case "(($ac_try" in
43183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43184 *) ac_try_echo=$ac_try;;
43186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43187 (eval "$ac_link") 2>conftest.er1
43189 grep -v '^ *+' conftest.er1 >conftest.err
43191 cat conftest.err >&5
43192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193 (exit $ac_status); } && {
43194 test -z "$ac_c_werror_flag" ||
43195 test ! -s conftest.err
43196 } && test -s conftest$ac_exeext &&
43197 $as_test_x conftest$ac_exeext; then
43198 ac_cv_lib_pthread_pthread_create=yes
43200 echo "$as_me: failed program was:" >&5
43201 sed 's/^/| /' conftest.$ac_ext >&5
43203 ac_cv_lib_pthread_pthread_create=no
43206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43207 conftest$ac_exeext conftest.$ac_ext
43208 LIBS=$ac_check_lib_save_LIBS
43210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43211 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43212 if test $ac_cv_lib_pthread_pthread_create = yes; then
43213 PTHREAD_LIB="-lpthread"
43216 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43217 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43218 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43219 echo $ECHO_N "(cached) $ECHO_C" >&6
43221 ac_check_lib_save_LIBS=$LIBS
43222 LIBS="-lpthreads $LIBS"
43223 cat >conftest.$ac_ext <<_ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h. */
43230 /* Override any GCC internal prototype to avoid an error.
43231 Use char because int might match the return type of a GCC
43232 builtin and then its argument prototype would still apply. */
43236 char pthread_create ();
43240 return pthread_create ();
43245 rm -f conftest.$ac_objext conftest$ac_exeext
43246 if { (ac_try="$ac_link"
43247 case "(($ac_try" in
43248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43249 *) ac_try_echo=$ac_try;;
43251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43252 (eval "$ac_link") 2>conftest.er1
43254 grep -v '^ *+' conftest.er1 >conftest.err
43256 cat conftest.err >&5
43257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43258 (exit $ac_status); } && {
43259 test -z "$ac_c_werror_flag" ||
43260 test ! -s conftest.err
43261 } && test -s conftest$ac_exeext &&
43262 $as_test_x conftest$ac_exeext; then
43263 ac_cv_lib_pthreads_pthread_create=yes
43265 echo "$as_me: failed program was:" >&5
43266 sed 's/^/| /' conftest.$ac_ext >&5
43268 ac_cv_lib_pthreads_pthread_create=no
43271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43272 conftest$ac_exeext conftest.$ac_ext
43273 LIBS=$ac_check_lib_save_LIBS
43275 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43276 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43277 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43278 PTHREAD_LIB="-lpthreads"
43281 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43282 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43283 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43284 echo $ECHO_N "(cached) $ECHO_C" >&6
43286 ac_check_lib_save_LIBS=$LIBS
43288 cat >conftest.$ac_ext <<_ACEOF
43291 cat confdefs.h >>conftest.$ac_ext
43292 cat >>conftest.$ac_ext <<_ACEOF
43293 /* end confdefs.h. */
43295 /* Override any GCC internal prototype to avoid an error.
43296 Use char because int might match the return type of a GCC
43297 builtin and then its argument prototype would still apply. */
43301 char pthread_create ();
43305 return pthread_create ();
43310 rm -f conftest.$ac_objext conftest$ac_exeext
43311 if { (ac_try="$ac_link"
43312 case "(($ac_try" in
43313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43314 *) ac_try_echo=$ac_try;;
43316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43317 (eval "$ac_link") 2>conftest.er1
43319 grep -v '^ *+' conftest.er1 >conftest.err
43321 cat conftest.err >&5
43322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323 (exit $ac_status); } && {
43324 test -z "$ac_c_werror_flag" ||
43325 test ! -s conftest.err
43326 } && test -s conftest$ac_exeext &&
43327 $as_test_x conftest$ac_exeext; then
43328 ac_cv_lib_c_r_pthread_create=yes
43330 echo "$as_me: failed program was:" >&5
43331 sed 's/^/| /' conftest.$ac_ext >&5
43333 ac_cv_lib_c_r_pthread_create=no
43336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43337 conftest$ac_exeext conftest.$ac_ext
43338 LIBS=$ac_check_lib_save_LIBS
43340 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43341 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43342 if test $ac_cv_lib_c_r_pthread_create = yes; then
43343 PTHREAD_LIB="-lc_r"
43346 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43347 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43348 if test "${ac_cv_func_pthread_create+set}" = set; then
43349 echo $ECHO_N "(cached) $ECHO_C" >&6
43351 cat >conftest.$ac_ext <<_ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h. */
43357 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43359 #define pthread_create innocuous_pthread_create
43361 /* System header to define __stub macros and hopefully few prototypes,
43362 which can conflict with char pthread_create (); below.
43363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43364 <limits.h> exists even on freestanding compilers. */
43367 # include <limits.h>
43369 # include <assert.h>
43372 #undef pthread_create
43374 /* Override any GCC internal prototype to avoid an error.
43375 Use char because int might match the return type of a GCC
43376 builtin and then its argument prototype would still apply. */
43380 char pthread_create ();
43381 /* The GNU C library defines this for functions which it implements
43382 to always fail with ENOSYS. Some functions are actually named
43383 something starting with __ and the normal name is an alias. */
43384 #if defined __stub_pthread_create || defined __stub___pthread_create
43391 return pthread_create ();
43396 rm -f conftest.$ac_objext conftest$ac_exeext
43397 if { (ac_try="$ac_link"
43398 case "(($ac_try" in
43399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43400 *) ac_try_echo=$ac_try;;
43402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43403 (eval "$ac_link") 2>conftest.er1
43405 grep -v '^ *+' conftest.er1 >conftest.err
43407 cat conftest.err >&5
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); } && {
43410 test -z "$ac_c_werror_flag" ||
43411 test ! -s conftest.err
43412 } && test -s conftest$ac_exeext &&
43413 $as_test_x conftest$ac_exeext; then
43414 ac_cv_func_pthread_create=yes
43416 echo "$as_me: failed program was:" >&5
43417 sed 's/^/| /' conftest.$ac_ext >&5
43419 ac_cv_func_pthread_create=no
43422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43423 conftest$ac_exeext conftest.$ac_ext
43425 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43426 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43443 for ac_header in sys/prctl.h sys/capability.h
43445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43450 echo $ECHO_N "(cached) $ECHO_C" >&6
43452 ac_res=`eval echo '${'$as_ac_Header'}'`
43453 { echo "$as_me:$LINENO: result: $ac_res" >&5
43454 echo "${ECHO_T}$ac_res" >&6; }
43456 # Is the header compilable?
43457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43459 cat >conftest.$ac_ext <<_ACEOF
43462 cat confdefs.h >>conftest.$ac_ext
43463 cat >>conftest.$ac_ext <<_ACEOF
43464 /* end confdefs.h. */
43465 $ac_includes_default
43466 #include <$ac_header>
43468 rm -f conftest.$ac_objext
43469 if { (ac_try="$ac_compile"
43470 case "(($ac_try" in
43471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43472 *) ac_try_echo=$ac_try;;
43474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43475 (eval "$ac_compile") 2>conftest.er1
43477 grep -v '^ *+' conftest.er1 >conftest.err
43479 cat conftest.err >&5
43480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481 (exit $ac_status); } && {
43482 test -z "$ac_c_werror_flag" ||
43483 test ! -s conftest.err
43484 } && test -s conftest.$ac_objext; then
43485 ac_header_compiler=yes
43487 echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43490 ac_header_compiler=no
43493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43495 echo "${ECHO_T}$ac_header_compiler" >&6; }
43497 # Is the header present?
43498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43500 cat >conftest.$ac_ext <<_ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h. */
43506 #include <$ac_header>
43508 if { (ac_try="$ac_cpp conftest.$ac_ext"
43509 case "(($ac_try" in
43510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43511 *) ac_try_echo=$ac_try;;
43513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43516 grep -v '^ *+' conftest.er1 >conftest.err
43518 cat conftest.err >&5
43519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520 (exit $ac_status); } >/dev/null && {
43521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43522 test ! -s conftest.err
43524 ac_header_preproc=yes
43526 echo "$as_me: failed program was:" >&5
43527 sed 's/^/| /' conftest.$ac_ext >&5
43529 ac_header_preproc=no
43532 rm -f conftest.err conftest.$ac_ext
43533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43534 echo "${ECHO_T}$ac_header_preproc" >&6; }
43536 # So? What about this header?
43537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43543 ac_header_preproc=yes
43546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43564 echo $ECHO_N "(cached) $ECHO_C" >&6
43566 eval "$as_ac_Header=\$ac_header_preproc"
43568 ac_res=`eval echo '${'$as_ac_Header'}'`
43569 { echo "$as_me:$LINENO: result: $ac_res" >&5
43570 echo "${ECHO_T}$ac_res" >&6; }
43573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43574 cat >>confdefs.h <<_ACEOF
43575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43584 for ac_func in prctl setreuid
43586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43590 echo $ECHO_N "(cached) $ECHO_C" >&6
43592 cat >conftest.$ac_ext <<_ACEOF
43595 cat confdefs.h >>conftest.$ac_ext
43596 cat >>conftest.$ac_ext <<_ACEOF
43597 /* end confdefs.h. */
43598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43600 #define $ac_func innocuous_$ac_func
43602 /* System header to define __stub macros and hopefully few prototypes,
43603 which can conflict with char $ac_func (); below.
43604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43605 <limits.h> exists even on freestanding compilers. */
43608 # include <limits.h>
43610 # include <assert.h>
43615 /* Override any GCC internal prototype to avoid an error.
43616 Use char because int might match the return type of a GCC
43617 builtin and then its argument prototype would still apply. */
43622 /* The GNU C library defines this for functions which it implements
43623 to always fail with ENOSYS. Some functions are actually named
43624 something starting with __ and the normal name is an alias. */
43625 #if defined __stub_$ac_func || defined __stub___$ac_func
43632 return $ac_func ();
43637 rm -f conftest.$ac_objext conftest$ac_exeext
43638 if { (ac_try="$ac_link"
43639 case "(($ac_try" in
43640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43641 *) ac_try_echo=$ac_try;;
43643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43644 (eval "$ac_link") 2>conftest.er1
43646 grep -v '^ *+' conftest.er1 >conftest.err
43648 cat conftest.err >&5
43649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43650 (exit $ac_status); } && {
43651 test -z "$ac_c_werror_flag" ||
43652 test ! -s conftest.err
43653 } && test -s conftest$ac_exeext &&
43654 $as_test_x conftest$ac_exeext; then
43655 eval "$as_ac_var=yes"
43657 echo "$as_me: failed program was:" >&5
43658 sed 's/^/| /' conftest.$ac_ext >&5
43660 eval "$as_ac_var=no"
43663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43664 conftest$ac_exeext conftest.$ac_ext
43666 ac_res=`eval echo '${'$as_ac_var'}'`
43667 { echo "$as_me:$LINENO: result: $ac_res" >&5
43668 echo "${ECHO_T}$ac_res" >&6; }
43669 if test `eval echo '${'$as_ac_var'}'` = yes; then
43670 cat >>confdefs.h <<_ACEOF
43671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43677 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43678 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43679 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43680 echo $ECHO_N "(cached) $ECHO_C" >&6
43682 ac_check_lib_save_LIBS=$LIBS
43684 cat >conftest.$ac_ext <<_ACEOF
43687 cat confdefs.h >>conftest.$ac_ext
43688 cat >>conftest.$ac_ext <<_ACEOF
43689 /* end confdefs.h. */
43691 /* Override any GCC internal prototype to avoid an error.
43692 Use char because int might match the return type of a GCC
43693 builtin and then its argument prototype would still apply. */
43697 char cap_set_proc ();
43701 return cap_set_proc ();
43706 rm -f conftest.$ac_objext conftest$ac_exeext
43707 if { (ac_try="$ac_link"
43708 case "(($ac_try" in
43709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43710 *) ac_try_echo=$ac_try;;
43712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43713 (eval "$ac_link") 2>conftest.er1
43715 grep -v '^ *+' conftest.er1 >conftest.err
43717 cat conftest.err >&5
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); } && {
43720 test -z "$ac_c_werror_flag" ||
43721 test ! -s conftest.err
43722 } && test -s conftest$ac_exeext &&
43723 $as_test_x conftest$ac_exeext; then
43724 ac_cv_lib_cap_cap_set_proc=yes
43726 echo "$as_me: failed program was:" >&5
43727 sed 's/^/| /' conftest.$ac_ext >&5
43729 ac_cv_lib_cap_cap_set_proc=no
43732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43733 conftest$ac_exeext conftest.$ac_ext
43734 LIBS=$ac_check_lib_save_LIBS
43736 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43737 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43738 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43744 if test x$CAP_LIBS = x-lcap; then
43746 cat >>confdefs.h <<\_ACEOF
43747 #define HAVE_LIBCAP 1
43754 cat >>confdefs.h <<\_ACEOF
43759 CFLAGS=${CFLAGS--O}
43761 if test x$have_gcc = xyes ; then
43762 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43763 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43765 LDFLAGS=${LDFLAGS--O}
43766 DB_LIBS="${SQL_LFLAGS}"
43767 CPPFLAGS="$CPPFLAGS"
43794 PFILES="platforms/Makefile"
43799 hostname=`uname -n | cut -d '.' -f 1`
43800 if test x${hostname} = x ; then
43801 hostname="localhost"
43803 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43804 if test ! $? = 0; then
43805 hostname="localhost"
43808 case "$DISTNAME" in
43811 PSCMD="ps -e -o pid,comm"
43812 PFILES="${PFILES} \
43813 platforms/aix/Makefile"
43814 TAPEDRIVE="/dev/rmt0.1"
43818 PTHREAD_LIB="-lpthread -lexc"
43819 if test "${CC}" = "gcc" ; then
43826 TAPEDRIVE="/dev/nrmt0"
43829 DISTVER=`uname -a |awk '{print $3}'`
43830 TAPEDRIVE="/dev/nrmt0"
43831 PTHREAD_LIB="-pthread"
43832 CFLAGS="${CFLAGS} -pthread"
43833 PSCMD="ps -ax -o pid,command"
43836 PFILES="${PFILES} \
43837 platforms/bsdi/Makefile \
43838 platforms/bsdi/bacula-fd \
43839 platforms/bsdi/bacula-sd \
43840 platforms/bsdi/bacula-dir"
43841 largefile_support="yes"
43844 DISTVER=`uname -a |awk '{print $3}'`
43845 TAPEDRIVE="/dev/nrst0"
43847 WCFLAGS="-mwindows"
43848 WLDFLAGS="-mwindows"
43852 TAPEDRIVE="/dev/nst0"
43853 PSCMD="ps -e -o pid,command"
43855 PFILES="${PFILES} \
43856 platforms/darwin/Makefile"
43860 TAPEDRIVE="/dev/nst0"
43861 PSCMD="ps -e -o pid,command"
43863 PFILES="${PFILES} \
43864 platforms/osx/Makefile"
43867 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43870 DISTVER=`cat /etc/debian_version`
43871 if test -f /etc/lsb-release ; then
43873 if test "x$DISTRIB_ID" != "x" ; then
43874 DISTNAME=$DISTRIB_ID
43876 if test "x$DISTRIB_RELEASE" != "x" ; then
43877 DISTVER=$DISTRIB_RELEASE
43880 if test "$DISTNAME" = "Ubuntu" ; then
43883 TAPEDRIVE="/dev/nst0"
43884 PSCMD="ps -e -o pid,command"
43885 if test "$DISTNAME" = "ubuntu" ; then
43886 PFILES="${PFILES} \
43887 platforms/ubuntu/Makefile \
43888 platforms/ubuntu/bacula-fd \
43889 platforms/ubuntu/bacula-sd \
43890 platforms/ubuntu/bacula-dir"
43892 PFILES="${PFILES} \
43893 platforms/debian/Makefile \
43894 platforms/debian/bacula-fd \
43895 platforms/debian/bacula-sd \
43896 platforms/debian/bacula-dir"
43900 DISTVER=`uname -a |awk '{print $3}'`
43901 VER=`echo $DISTVER | cut -c 1`
43902 if test x$VER = x4 ; then
43903 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43904 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43908 TAPEDRIVE="/dev/nrsa0"
43909 PSCMD="ps -ax -o pid,command"
43910 PFILES="${PFILES} \
43911 platforms/freebsd/Makefile \
43912 platforms/freebsd/bacula-fd \
43913 platforms/freebsd/bacula-sd \
43914 platforms/freebsd/bacula-dir"
43915 largefile_support="yes"
43918 PSCMD="UNIX95=1; ps -e -o pid,comm"
43919 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43921 TAPEDRIVE="/dev/rmt/0hnb"
43922 PTHREAD_LIB="-lpthread"
43923 cat >>confdefs.h <<\_ACEOF
43924 #define _INCLUDE_LONGLONG 1
43930 TAPEDRIVE="/dev/rmt/0cbn"
43931 PSCMD="ps -e -o pid,comm"
43932 PFILES="${PFILES} \
43933 platforms/irix/Makefile \
43934 platforms/irix/bacula-fd \
43935 platforms/irix/bacula-sd \
43936 platforms/irix/bacula-dir"
43939 DISTVER=`uname -a |awk '{print $3}'`
43942 TAPEDRIVE="/dev/nrst0"
43943 PSCMD="ps -ax -o pid,command"
43944 PTHREAD_LIB="-pthread"
43945 CFLAGS="${CFLAGS} -pthread"
43948 DISTVER=`uname -a |awk '{print $3}'`
43951 TAPEDRIVE="/dev/nrst0"
43952 PSCMD="ps -ax -o pid,command"
43953 PTHREAD_LIB="-pthread"
43954 CFLAGS="${CFLAGS} -pthread"
43955 PFILES="${PFILES} \
43956 platforms/openbsd/Makefile \
43957 platforms/openbsd/bacula-fd \
43958 platforms/openbsd/bacula-sd \
43959 platforms/openbsd/bacula-dir"
43962 if test -f /etc/whitebox-release ; then
43963 f=/etc/whitebox-release
43965 f=/etc/redhat-release
43967 if test `cat $f | grep release |\
43968 cut -f 3 -d ' '`x = "Enterprise"x ; then
43969 DISTVER="Enterprise "`cat $f | grep release |\
43972 DISTVER=`cat /etc/redhat-release | grep release |\
43975 TAPEDRIVE="/dev/nst0"
43976 PSCMD="ps -e -o pid,command"
43977 PFILES="${PFILES} \
43978 platforms/redhat/Makefile \
43979 platforms/redhat/bacula-fd \
43980 platforms/redhat/bacula-sd \
43981 platforms/redhat/bacula-dir
43985 DISTVER=`cat /etc/mandrake-release | grep release |\
43987 TAPEDRIVE="/dev/nst0"
43988 PSCMD="ps -e -o pid,command"
43989 PFILES="${PFILES} \
43990 platforms/mandrake/Makefile \
43991 platforms/mandrake/bacula-fd \
43992 platforms/mandrake/bacula-sd \
43993 platforms/mandrake/bacula-dir \
43994 platforms/mandrake/bacula.spec \
43998 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43999 TAPEDRIVE="/dev/nst0"
44000 PSCMD="ps -e -o pid,command"
44001 PFILES="${PFILES} \
44002 platforms/gentoo/Makefile \
44003 platforms/gentoo/bacula-init \
44004 platforms/gentoo/bacula-fd \
44005 platforms/gentoo/bacula-sd \
44006 platforms/gentoo/bacula-dir"
44009 DISTVER=`cat /etc/slackware-version`
44010 TAPEDRIVE="/dev/nst0"
44011 PSCMD="ps -e -o pid,command"
44012 PFILES="${PFILES} \
44013 platforms/slackware/Makefile \
44014 platforms/slackware/rc.bacula-fd \
44015 platforms/slackware/rc.bacula-sd \
44016 platforms/slackware/rc.bacula-dir\
44017 platforms/slackware/functions.bacula"
44021 TAPEDRIVE="/dev/rmt/0cbn"
44022 PSCMD="ps -e -o pid,comm"
44023 PFILES="${PFILES} \
44024 platforms/solaris/Makefile \
44025 platforms/solaris/bacula-fd \
44026 platforms/solaris/bacula-sd \
44027 platforms/solaris/bacula-dir"
44028 if test x$DISTVER = x5.6 ; then
44029 cat >>confdefs.h <<\_ACEOF
44030 #define HAVE_OLD_SOCKOPT 1
44034 LIBS="$LIBS -lresolv"
44037 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44039 TAPEDRIVE="/dev/nst0"
44040 PSCMD="ps -e -o pid,command"
44041 PFILES="${PFILES} \
44042 platforms/suse/Makefile \
44043 platforms/suse/bacula-fd \
44044 platforms/suse/bacula-sd \
44045 platforms/suse/bacula-dir \
44046 platforms/suse/bacula \
44047 platforms/suse/bacula.spec"
44052 TAPEDRIVE="/dev/nst0"
44053 PSCMD="ps -e -o pid,command"
44054 PFILES="${PFILES} \
44055 platforms/suse/Makefile \
44056 platforms/suse/bacula-fd \
44057 platforms/suse/bacula-sd \
44058 platforms/suse/bacula-dir"
44062 TAPEDRIVE="/dev/nst0"
44065 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44071 LIBS="$PTHREAD_LIB $LIBS"
44073 cat >>confdefs.h <<_ACEOF
44077 cat >>confdefs.h <<_ACEOF
44088 MCOMMON=./autoconf/Make.common
44091 if test "x${subsysdir}" = "x${sbindir}" ; then
44094 echo "You have set both --sbindir and --with-subsys-dir"
44095 echo " equal to: ${subsysdir} "
44096 echo "This is not permitted. Please reconfigure."
44098 echo "Aborting configuration ..."
44104 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44106 ac_config_commands="$ac_config_commands default"
44108 cat >confcache <<\_ACEOF
44109 # This file is a shell script that caches the results of configure
44110 # tests run on this system so they can be shared between configure
44111 # scripts and configure runs, see configure's option --config-cache.
44112 # It is not useful on other systems. If it contains results you don't
44113 # want to keep, you may remove or edit it.
44115 # config.status only pays attention to the cache file if you give it
44116 # the --recheck option to rerun configure.
44118 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44119 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44120 # following values.
44124 # The following way of writing the cache mishandles newlines in values,
44125 # but we know of no workaround that is simple, portable, and efficient.
44126 # So, we kill variables containing newlines.
44127 # Ultrix sh set writes to stderr and can't be redirected directly,
44128 # and sets the high bit in the cache file unless we assign to the vars.
44130 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44131 eval ac_val=\$$ac_var
44135 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44136 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44139 _ | IFS | as_nl) ;; #(
44140 *) $as_unset $ac_var ;;
44146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44147 *${as_nl}ac_space=\ *)
44148 # `set' does not quote correctly, so add quotes (double-quote
44149 # substitution turns \\\\ into \\, and sed turns \\ into \).
44152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44155 # `set' quotes correctly as required by POSIX, so do not add quotes.
44156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44170 if test -w "$cache_file"; then
44171 test "x$cache_file" != "x/dev/null" &&
44172 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44173 echo "$as_me: updating cache $cache_file" >&6;}
44174 cat confcache >$cache_file
44176 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44177 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44183 # Let make expand exec_prefix.
44184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44186 DEFS=-DHAVE_CONFIG_H
44190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44191 # 1. Remove the extension, and $U if already installed.
44192 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44193 ac_i=`echo "$ac_i" | sed "$ac_script"`
44194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44195 # will be set to the directory where LIBOBJS objects are built.
44196 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44197 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44199 LIBOBJS=$ac_libobjs
44201 LTLIBOBJS=$ac_ltlibobjs
44205 : ${CONFIG_STATUS=./config.status}
44206 ac_clean_files_save=$ac_clean_files
44207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44210 cat >$CONFIG_STATUS <<_ACEOF
44212 # Generated by $as_me.
44213 # Run this file to recreate the current configuration.
44214 # Compiler output produced by configure, useful for debugging
44215 # configure, is in config.log if it exists.
44218 ac_cs_recheck=false
44220 SHELL=\${CONFIG_SHELL-$SHELL}
44223 cat >>$CONFIG_STATUS <<\_ACEOF
44224 ## --------------------- ##
44225 ## M4sh Initialization. ##
44226 ## --------------------- ##
44228 # Be more Bourne compatible
44229 DUALCASE=1; export DUALCASE # for MKS sh
44230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44233 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44234 # is contrary to our usage. Disable this feature.
44235 alias -g '${1+"$@"}'='"$@"'
44236 setopt NO_GLOB_SUBST
44238 case `(set -o) 2>/dev/null` in
44239 *posix*) set -o posix ;;
44248 # Avoid depending upon Character Ranges.
44249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44252 as_cr_digits='0123456789'
44253 as_cr_alnum=$as_cr_Letters$as_cr_digits
44255 # The user is always right.
44256 if test "${PATH_SEPARATOR+set}" != set; then
44257 echo "#! /bin/sh" >conf$$.sh
44258 echo "exit 0" >>conf$$.sh
44260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44268 # Support unset when possible.
44269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44277 # We need space, tab and new line, in precisely that order. Quoting is
44278 # there to prevent editors from complaining about space-tab.
44279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44280 # splitting by setting IFS to empty value.)
44285 # Find who we are. Look in the path if we contain no directory separator.
44287 *[\\/]* ) as_myself=$0 ;;
44288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44289 for as_dir in $PATH
44292 test -z "$as_dir" && as_dir=.
44293 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44299 # We did not find ourselves, most probably we were run as `sh COMMAND'
44300 # in which case we are not to be found in the path.
44301 if test "x$as_myself" = x; then
44304 if test ! -f "$as_myself"; then
44305 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44306 { (exit 1); exit 1; }
44309 # Work around bugs in pre-3.0 UWIN ksh.
44310 for as_var in ENV MAIL MAILPATH
44311 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44319 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44320 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44321 LC_TELEPHONE LC_TIME
44323 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44324 eval $as_var=C; export $as_var
44326 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44330 # Required to use basename.
44331 if expr a : '\(a\)' >/dev/null 2>&1 &&
44332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44338 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44339 as_basename=basename
44345 # Name of the executable.
44346 as_me=`$as_basename -- "$0" ||
44347 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44348 X"$0" : 'X\(//\)$' \| \
44349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44351 sed '/^.*\/\([^/][^/]*\)\/*$/{
44370 as_lineno_1=$LINENO
44371 as_lineno_2=$LINENO
44372 test "x$as_lineno_1" != "x$as_lineno_2" &&
44373 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44375 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44376 # uniformly replaced by the line number. The first 'sed' inserts a
44377 # line-number line after each line using $LINENO; the second 'sed'
44378 # does the real work. The second script uses 'N' to pair each
44379 # line-number line with the line containing $LINENO, and appends
44380 # trailing '-' during substitution so that $LINENO is not a special
44381 # case at line end.
44382 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44383 # scripts with optimization help from Paolo Bonzini. Blame Lee
44384 # E. McMahon (1931-1989) for sed's syntax. :-)
44396 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44399 ' >$as_me.lineno &&
44400 chmod +x "$as_me.lineno" ||
44401 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44402 { (exit 1); exit 1; }; }
44404 # Don't try to exec as it changes $[0], causing all sort of problems
44405 # (the dirname of $[0] is not the place where we might find the
44406 # original and so on. Autoconf is especially sensitive to this).
44407 . "./$as_me.lineno"
44408 # Exit status is that of the last command.
44413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44419 ECHO_C= ECHO_N= ECHO_T=
44420 case `echo -n x` in
44422 case `echo 'x\c'` in
44423 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44430 if expr a : '\(a\)' >/dev/null 2>&1 &&
44431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44437 rm -f conf$$ conf$$.exe conf$$.file
44438 if test -d conf$$.dir; then
44439 rm -f conf$$.dir/conf$$.file
44445 if ln -s conf$$.file conf$$ 2>/dev/null; then
44447 # ... but there are two gotchas:
44448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44450 # In both cases, we have to default to `cp -p'.
44451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44453 elif ln conf$$.file conf$$ 2>/dev/null; then
44458 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44459 rmdir conf$$.dir 2>/dev/null
44461 if mkdir -p . 2>/dev/null; then
44464 test -d ./-p && rmdir ./-p
44468 if test -x / >/dev/null 2>&1; then
44469 as_test_x='test -x'
44471 if ls -dL / >/dev/null 2>&1; then
44478 if test -d "$1"; then
44484 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44485 ???[sx]*):;;*)false;;esac;fi
44489 as_executable_p=$as_test_x
44491 # Sed expression to map a string onto a valid CPP name.
44492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44494 # Sed expression to map a string onto a valid variable name.
44495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44500 # Save the log message, to keep $[0] and so on meaningful, and to
44501 # report actual input values of CONFIG_FILES etc. instead of their
44502 # values after options handling.
44504 This file was extended by $as_me, which was
44505 generated by GNU Autoconf 2.61. Invocation command line was
44507 CONFIG_FILES = $CONFIG_FILES
44508 CONFIG_HEADERS = $CONFIG_HEADERS
44509 CONFIG_LINKS = $CONFIG_LINKS
44510 CONFIG_COMMANDS = $CONFIG_COMMANDS
44513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44518 cat >>$CONFIG_STATUS <<_ACEOF
44519 # Files that config.status was made for.
44520 config_files="$ac_config_files"
44521 config_headers="$ac_config_headers"
44522 config_commands="$ac_config_commands"
44526 cat >>$CONFIG_STATUS <<\_ACEOF
44528 \`$as_me' instantiates files from templates according to the
44529 current configuration.
44531 Usage: $0 [OPTIONS] [FILE]...
44533 -h, --help print this help, then exit
44534 -V, --version print version number and configuration settings, then exit
44535 -q, --quiet do not print progress messages
44536 -d, --debug don't remove temporary files
44537 --recheck update $as_me by reconfiguring in the same conditions
44538 --file=FILE[:TEMPLATE]
44539 instantiate the configuration file FILE
44540 --header=FILE[:TEMPLATE]
44541 instantiate the configuration header FILE
44543 Configuration files:
44546 Configuration headers:
44549 Configuration commands:
44552 Report bugs to <bug-autoconf@gnu.org>."
44555 cat >>$CONFIG_STATUS <<_ACEOF
44558 configured by $0, generated by GNU Autoconf 2.61,
44559 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44561 Copyright (C) 2006 Free Software Foundation, Inc.
44562 This config.status script is free software; the Free Software Foundation
44563 gives unlimited permission to copy, distribute and modify it."
44570 cat >>$CONFIG_STATUS <<\_ACEOF
44571 # If no file are specified by the user, then we need to provide default
44572 # value. By we need to know if files were specified by the user.
44578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44590 # Handling of the options.
44591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44593 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44594 echo "$ac_cs_version"; exit ;;
44595 --debug | --debu | --deb | --de | --d | -d )
44597 --file | --fil | --fi | --f )
44599 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44600 ac_need_defaults=false;;
44601 --header | --heade | --head | --hea )
44603 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44604 ac_need_defaults=false;;
44606 # Conflict between --help and --header
44607 { echo "$as_me: error: ambiguous option: $1
44608 Try \`$0 --help' for more information." >&2
44609 { (exit 1); exit 1; }; };;
44610 --help | --hel | -h )
44611 echo "$ac_cs_usage"; exit ;;
44612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44616 # This is an error.
44617 -*) { echo "$as_me: error: unrecognized option: $1
44618 Try \`$0 --help' for more information." >&2
44619 { (exit 1); exit 1; }; } ;;
44621 *) ac_config_targets="$ac_config_targets $1"
44622 ac_need_defaults=false ;;
44628 ac_configure_extra_args=
44630 if $ac_cs_silent; then
44632 ac_configure_extra_args="$ac_configure_extra_args --silent"
44636 cat >>$CONFIG_STATUS <<_ACEOF
44637 if \$ac_cs_recheck; then
44638 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44639 CONFIG_SHELL=$SHELL
44640 export CONFIG_SHELL
44641 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44645 cat >>$CONFIG_STATUS <<\_ACEOF
44649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44650 ## Running $as_me. ##
44656 cat >>$CONFIG_STATUS <<_ACEOF
44662 # The HP-UX ksh and POSIX shell print the target directory to stdout
44663 # if CDPATH is set.
44664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44666 sed_quote_subst='$sed_quote_subst'
44667 double_quote_subst='$double_quote_subst'
44668 delay_variable_subst='$delay_variable_subst'
44669 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44670 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44671 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44672 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44673 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44674 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44675 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44676 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44677 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44678 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44679 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44680 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44681 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44682 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44683 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44684 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44685 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44686 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44687 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44688 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44689 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44690 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44691 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44692 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44693 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44694 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44695 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44696 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44697 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44698 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44699 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44700 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44701 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44702 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44703 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44704 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44705 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44706 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44707 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44708 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44709 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44710 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44711 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44712 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44713 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"`'
44714 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"`'
44715 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44716 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44717 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44718 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44719 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44720 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44721 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44722 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44723 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44724 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44725 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44726 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44727 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44728 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44729 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44730 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44731 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44732 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44733 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44734 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44735 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44736 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44737 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44738 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44739 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44740 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44741 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44742 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44743 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44744 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44745 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44746 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44747 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44748 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44749 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44750 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44751 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44752 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44753 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44754 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44755 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44756 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44757 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44758 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44759 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44760 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44761 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44762 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44763 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44764 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44765 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44766 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44767 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44768 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44769 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44770 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44771 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44772 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44773 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44774 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44775 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44776 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44777 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44778 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44779 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44780 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44781 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44782 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44783 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44784 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44785 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44786 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44787 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44788 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44789 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44790 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44791 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44792 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44793 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44822 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44823 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44824 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44825 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44826 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44827 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44828 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44829 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44830 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44831 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44832 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44833 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44834 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44835 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44836 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44837 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44838 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44839 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44842 LTCFLAGS='$LTCFLAGS'
44843 compiler='$compiler_DEFAULT'
44845 # Quote evaled strings.
44857 deplibs_check_method \
44866 lt_cv_sys_global_symbol_pipe \
44867 lt_cv_sys_global_symbol_to_cdecl \
44868 lt_cv_sys_global_symbol_to_c_name_address \
44869 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44872 lt_prog_compiler_no_builtin_flag \
44873 lt_prog_compiler_wl \
44874 lt_prog_compiler_pic \
44875 lt_prog_compiler_static \
44876 lt_cv_prog_compiler_c_o \
44884 export_dynamic_flag_spec \
44885 whole_archive_flag_spec \
44886 compiler_needs_object \
44888 allow_undefined_flag \
44889 no_undefined_flag \
44890 hardcode_libdir_flag_spec \
44891 hardcode_libdir_flag_spec_ld \
44892 hardcode_libdir_separator \
44897 variables_saved_for_relink \
44899 library_names_spec \
44904 compiler_lib_search_dirs \
44909 compiler_lib_search_path \
44912 lt_prog_compiler_no_builtin_flag_CXX \
44913 lt_prog_compiler_wl_CXX \
44914 lt_prog_compiler_pic_CXX \
44915 lt_prog_compiler_static_CXX \
44916 lt_cv_prog_compiler_c_o_CXX \
44917 export_dynamic_flag_spec_CXX \
44918 whole_archive_flag_spec_CXX \
44919 compiler_needs_object_CXX \
44921 allow_undefined_flag_CXX \
44922 no_undefined_flag_CXX \
44923 hardcode_libdir_flag_spec_CXX \
44924 hardcode_libdir_flag_spec_ld_CXX \
44925 hardcode_libdir_separator_CXX \
44926 fix_srcfile_path_CXX \
44927 exclude_expsyms_CXX \
44928 include_expsyms_CXX \
44929 file_list_spec_CXX \
44930 compiler_lib_search_dirs_CXX \
44931 predep_objects_CXX \
44932 postdep_objects_CXX \
44935 compiler_lib_search_path_CXX; do
44936 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44937 *[\\\\\\\`\\"\\\$]*)
44938 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44941 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44946 # Double-quote double-evaled strings.
44947 for var in reload_cmds \
44948 old_postinstall_cmds \
44949 old_postuninstall_cmds \
44951 extract_expsyms_cmds \
44952 old_archive_from_new_cmds \
44953 old_archive_from_expsyms_cmds \
44955 archive_expsym_cmds \
44957 module_expsym_cmds \
44958 export_symbols_cmds \
44961 postuninstall_cmds \
44963 sys_lib_search_path_spec \
44964 sys_lib_dlsearch_path_spec \
44965 old_archive_cmds_CXX \
44966 old_archive_from_new_cmds_CXX \
44967 old_archive_from_expsyms_cmds_CXX \
44969 archive_expsym_cmds_CXX \
44971 module_expsym_cmds_CXX \
44972 export_symbols_cmds_CXX \
44973 prelink_cmds_CXX; do
44974 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44975 *[\\\\\\\`\\"\\\$]*)
44976 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44979 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44984 # Fix-up fallback echo if it was mangled by the above quoting rules.
44986 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44990 ac_aux_dir='$ac_aux_dir'
44991 xsi_shell='$xsi_shell'
44992 lt_shell_append='$lt_shell_append'
44994 # See if we are running on zsh, and set the options which allow our
44995 # commands through without removal of \ escapes INIT.
44996 if test -n "\${ZSH_VERSION+set}" ; then
44997 setopt NO_GLOB_SUBST
45003 TIMESTAMP='$TIMESTAMP'
45011 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45012 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45014 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45015 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45016 LINGUAS="${LINGUAS-%UNSET%}"
45021 cat >>$CONFIG_STATUS <<\_ACEOF
45023 # Handling of arguments.
45024 for ac_config_target in $ac_config_targets
45026 case $ac_config_target in
45027 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45029 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45030 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45031 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45032 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45033 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45034 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45035 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45036 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45037 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45038 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45039 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45040 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45041 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45042 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45043 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45044 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45045 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45046 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45047 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45048 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45049 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45050 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45051 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45052 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45053 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45054 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45055 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45056 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45057 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45058 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45059 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45060 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45061 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45062 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45063 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45064 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45065 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45066 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45067 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45068 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45069 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45070 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45071 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45072 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45073 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45074 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45075 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45076 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45077 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45078 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45079 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45080 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45081 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45082 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45083 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45084 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45085 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45086 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45087 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45088 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45089 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45090 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45091 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45092 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45093 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45094 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45095 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45096 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45097 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45098 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45099 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45100 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45101 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45102 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45103 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45104 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45105 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45106 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45107 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45108 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45109 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45110 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45111 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45112 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45113 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45114 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45115 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45116 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45117 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45118 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45119 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45120 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45121 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45122 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45123 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45124 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45125 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45126 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45127 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45128 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45129 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45130 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45131 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45132 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45133 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45134 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45135 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45136 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45137 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45138 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45139 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45140 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45141 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45142 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45143 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45144 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45147 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45148 { (exit 1); exit 1; }; };;
45153 # If the user did not use the arguments to specify the items to instantiate,
45154 # then the envvar interface is used. Set only those that are not.
45155 # We use the long form for the default assignment because of an extremely
45156 # bizarre bug on SunOS 4.1.3.
45157 if $ac_need_defaults; then
45158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45163 # Have a temporary directory for convenience. Make it in the build tree
45164 # simply because there is no reason against having it here, and in addition,
45165 # creating and moving files from /tmp can sometimes cause problems.
45166 # Hook for its removal unless debugging.
45167 # Note that there is a small window in which the directory will not be cleaned:
45168 # after its creation but before its name has been assigned to `$tmp'.
45172 trap 'exit_status=$?
45173 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45175 trap '{ (exit 1); exit 1; }' 1 2 13 15
45177 # Create a (secure) tmp directory for tmp files.
45180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45181 test -n "$tmp" && test -d "$tmp"
45184 tmp=./conf$$-$RANDOM
45185 (umask 077 && mkdir "$tmp")
45188 echo "$me: cannot create a temporary directory in ." >&2
45189 { (exit 1); exit 1; }
45193 # Set up the sed scripts for CONFIG_FILES section.
45196 # No need to generate the scripts if there are no CONFIG_FILES.
45197 # This happens for instance when ./config.status config.h
45198 if test -n "$CONFIG_FILES"; then
45202 # Create sed commands to just substitute file output variables.
45204 # Remaining file output variables are in a fragment that also has non-file
45210 for ac_last_try in false false false false false :; do
45211 cat >conf$$subs.sed <<_ACEOF
45212 SHELL!$SHELL$ac_delim
45213 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45214 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45215 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45216 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45217 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45218 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45219 exec_prefix!$exec_prefix$ac_delim
45220 prefix!$prefix$ac_delim
45221 program_transform_name!$program_transform_name$ac_delim
45222 bindir!$bindir$ac_delim
45223 sbindir!$sbindir$ac_delim
45224 libexecdir!$libexecdir$ac_delim
45225 datarootdir!$datarootdir$ac_delim
45226 datadir!$datadir$ac_delim
45227 sysconfdir!$sysconfdir$ac_delim
45228 sharedstatedir!$sharedstatedir$ac_delim
45229 localstatedir!$localstatedir$ac_delim
45230 includedir!$includedir$ac_delim
45231 oldincludedir!$oldincludedir$ac_delim
45232 docdir!$docdir$ac_delim
45233 infodir!$infodir$ac_delim
45234 htmldir!$htmldir$ac_delim
45235 dvidir!$dvidir$ac_delim
45236 pdfdir!$pdfdir$ac_delim
45237 psdir!$psdir$ac_delim
45238 libdir!$libdir$ac_delim
45239 localedir!$localedir$ac_delim
45240 mandir!$mandir$ac_delim
45241 DEFS!$DEFS$ac_delim
45242 ECHO_C!$ECHO_C$ac_delim
45243 ECHO_N!$ECHO_N$ac_delim
45244 ECHO_T!$ECHO_T$ac_delim
45245 LIBS!$LIBS$ac_delim
45246 build_alias!$build_alias$ac_delim
45247 host_alias!$host_alias$ac_delim
45248 target_alias!$target_alias$ac_delim
45249 BUILD_DIR!$BUILD_DIR$ac_delim
45250 TOP_DIR!$TOP_DIR$ac_delim
45251 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45252 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45253 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45254 TRUEPRG!$TRUEPRG$ac_delim
45255 FALSEPRG!$FALSEPRG$ac_delim
45256 VERSION!$VERSION$ac_delim
45257 DATE!$DATE$ac_delim
45258 LSMDATE!$LSMDATE$ac_delim
45259 BACULA!$BACULA$ac_delim
45260 post_host!$post_host$ac_delim
45261 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45262 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45263 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45264 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45265 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45266 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45267 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45268 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45269 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45270 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45271 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45272 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45273 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45274 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45275 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45277 CFLAGS!$CFLAGS$ac_delim
45278 LDFLAGS!$LDFLAGS$ac_delim
45279 CPPFLAGS!$CPPFLAGS$ac_delim
45280 ac_ct_CC!$ac_ct_CC$ac_delim
45281 EXEEXT!$EXEEXT$ac_delim
45282 OBJEXT!$OBJEXT$ac_delim
45284 CXXFLAGS!$CXXFLAGS$ac_delim
45285 ac_ct_CXX!$ac_ct_CXX$ac_delim
45287 GREP!$GREP$ac_delim
45288 EGREP!$EGREP$ac_delim
45289 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45290 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45291 INSTALL_DATA!$INSTALL_DATA$ac_delim
45293 REMOVE!$REMOVE$ac_delim
45296 ECHO!$ECHO$ac_delim
45300 OPENSSL!$OPENSSL$ac_delim
45303 MKISOFS!$MKISOFS$ac_delim
45304 PYTHON!$PYTHON$ac_delim
45305 GROWISOFS!$GROWISOFS$ac_delim
45308 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45310 elif $ac_last_try; then
45311 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45312 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45313 { (exit 1); exit 1; }; }
45315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45319 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45320 if test -n "$ac_eof"; then
45321 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45322 ac_eof=`expr $ac_eof + 1`
45325 cat >>$CONFIG_STATUS <<_ACEOF
45326 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45328 /^[ ]*@MCOMMON@[ ]*$/{
45334 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45335 s/^/s,@/; s/!/@,|#_!!_#|/
45338 s/'"$ac_delim"'$/,g/; t
45340 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45341 ' >>$CONFIG_STATUS <conf$$subs.sed
45342 rm -f conf$$subs.sed
45343 cat >>$CONFIG_STATUS <<_ACEOF
45349 for ac_last_try in false false false false false :; do
45350 cat >conf$$subs.sed <<_ACEOF
45351 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45352 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45353 PKGCONFIG!$PKGCONFIG$ac_delim
45354 QMAKE!$QMAKE$ac_delim
45355 GMAKE!$GMAKE$ac_delim
45356 WXCONFIG!$WXCONFIG$ac_delim
45357 WXFLAGS!$WXFLAGS$ac_delim
45358 CDRECORD!$CDRECORD$ac_delim
45359 PIDOF!$PIDOF$ac_delim
45361 ARFLAGS!$ARFLAGS$ac_delim
45362 MAKE_SHELL!$MAKE_SHELL$ac_delim
45363 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45364 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45365 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45366 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45367 LIBTOOL!$LIBTOOL$ac_delim
45368 build!$build$ac_delim
45369 build_cpu!$build_cpu$ac_delim
45370 build_vendor!$build_vendor$ac_delim
45371 build_os!$build_os$ac_delim
45372 host!$host$ac_delim
45373 host_cpu!$host_cpu$ac_delim
45374 host_vendor!$host_vendor$ac_delim
45375 host_os!$host_os$ac_delim
45376 FGREP!$FGREP$ac_delim
45378 DUMPBIN!$DUMPBIN$ac_delim
45379 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45381 LN_S!$LN_S$ac_delim
45382 OBJDUMP!$OBJDUMP$ac_delim
45383 STRIP!$STRIP$ac_delim
45384 RANLIB!$RANLIB$ac_delim
45385 lt_ECHO!$lt_ECHO$ac_delim
45386 DSYMUTIL!$DSYMUTIL$ac_delim
45387 NMEDIT!$NMEDIT$ac_delim
45388 LIPO!$LIPO$ac_delim
45389 OTOOL!$OTOOL$ac_delim
45390 OTOOL64!$OTOOL64$ac_delim
45391 CXXCPP!$CXXCPP$ac_delim
45392 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45393 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45394 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45395 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45396 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45397 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45398 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45399 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45400 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45401 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45402 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45403 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45404 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45405 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45406 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45407 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45408 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45409 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45410 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45411 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45412 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45413 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45414 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45415 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45416 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45417 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45418 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45419 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45420 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45421 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45422 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45423 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45424 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45425 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45426 SET_MAKE!$SET_MAKE$ac_delim
45427 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45428 USE_NLS!$USE_NLS$ac_delim
45429 MSGFMT!$MSGFMT$ac_delim
45430 GMSGFMT!$GMSGFMT$ac_delim
45431 XGETTEXT!$XGETTEXT$ac_delim
45432 MSGMERGE!$MSGMERGE$ac_delim
45433 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45434 LIBICONV!$LIBICONV$ac_delim
45435 LTLIBICONV!$LTLIBICONV$ac_delim
45436 INTLLIBS!$INTLLIBS$ac_delim
45437 LIBINTL!$LIBINTL$ac_delim
45438 LTLIBINTL!$LTLIBINTL$ac_delim
45439 POSUB!$POSUB$ac_delim
45440 GLIBC2!$GLIBC2$ac_delim
45441 ALLOCA!$ALLOCA$ac_delim
45442 GLIBC21!$GLIBC21$ac_delim
45443 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45444 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45445 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45446 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45447 INTLBISON!$INTLBISON$ac_delim
45450 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45452 elif $ac_last_try; then
45453 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45454 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45455 { (exit 1); exit 1; }; }
45457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45461 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45462 if test -n "$ac_eof"; then
45463 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45464 ac_eof=`expr $ac_eof + 1`
45467 cat >>$CONFIG_STATUS <<_ACEOF
45468 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45472 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45473 s/^/s,@/; s/!/@,|#_!!_#|/
45476 s/'"$ac_delim"'$/,g/; t
45478 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45479 ' >>$CONFIG_STATUS <conf$$subs.sed
45480 rm -f conf$$subs.sed
45481 cat >>$CONFIG_STATUS <<_ACEOF
45487 for ac_last_try in false false false false false :; do
45488 cat >conf$$subs.sed <<_ACEOF
45489 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45490 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45491 CATOBJEXT!$CATOBJEXT$ac_delim
45492 DATADIRNAME!$DATADIRNAME$ac_delim
45493 INSTOBJEXT!$INSTOBJEXT$ac_delim
45494 GENCAT!$GENCAT$ac_delim
45495 INTLOBJS!$INTLOBJS$ac_delim
45496 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45497 BAT_DIR!$BAT_DIR$ac_delim
45498 QWT_INC!$QWT_INC$ac_delim
45499 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45500 QWT_LIB!$QWT_LIB$ac_delim
45502 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45503 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45504 WX_DIR!$WX_DIR$ac_delim
45505 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45506 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45507 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45508 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45509 STATIC_FD!$STATIC_FD$ac_delim
45510 STATIC_SD!$STATIC_SD$ac_delim
45511 STATIC_DIR!$STATIC_DIR$ac_delim
45512 STATIC_CONS!$STATIC_CONS$ac_delim
45513 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45514 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45515 ALL_DIRS!$ALL_DIRS$ac_delim
45516 DIRD_DIR!$DIRD_DIR$ac_delim
45517 DIR_TOOLS!$DIR_TOOLS$ac_delim
45518 STORED_DIR!$STORED_DIR$ac_delim
45519 CONS_INC!$CONS_INC$ac_delim
45520 CONS_OBJ!$CONS_OBJ$ac_delim
45521 CONS_SRC!$CONS_SRC$ac_delim
45522 CONS_LIBS!$CONS_LIBS$ac_delim
45523 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45524 READLINE_SRC!$READLINE_SRC$ac_delim
45525 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45526 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45527 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45528 OPENSSL_INC!$OPENSSL_INC$ac_delim
45529 working_dir!$working_dir$ac_delim
45530 archivedir!$archivedir$ac_delim
45531 basename!$basename$ac_delim
45532 hostname!$hostname$ac_delim
45533 scriptdir!$scriptdir$ac_delim
45534 bsrdir!$bsrdir$ac_delim
45535 logdir!$logdir$ac_delim
45536 plugindir!$plugindir$ac_delim
45537 dump_email!$dump_email$ac_delim
45538 job_email!$job_email$ac_delim
45539 smtp_host!$smtp_host$ac_delim
45540 piddir!$piddir$ac_delim
45541 subsysdir!$subsysdir$ac_delim
45542 baseport!$baseport$ac_delim
45543 dir_port!$dir_port$ac_delim
45544 fd_port!$fd_port$ac_delim
45545 sd_port!$sd_port$ac_delim
45546 dir_password!$dir_password$ac_delim
45547 fd_password!$fd_password$ac_delim
45548 sd_password!$sd_password$ac_delim
45549 mon_dir_password!$mon_dir_password$ac_delim
45550 mon_fd_password!$mon_fd_password$ac_delim
45551 mon_sd_password!$mon_sd_password$ac_delim
45552 db_name!$db_name$ac_delim
45553 db_user!$db_user$ac_delim
45554 db_password!$db_password$ac_delim
45555 db_port!$db_port$ac_delim
45556 dir_user!$dir_user$ac_delim
45557 dir_group!$dir_group$ac_delim
45558 sd_user!$sd_user$ac_delim
45559 sd_group!$sd_group$ac_delim
45560 fd_user!$fd_user$ac_delim
45561 fd_group!$fd_group$ac_delim
45562 SBINPERM!$SBINPERM$ac_delim
45563 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45564 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45565 SQL_BINDIR!$SQL_BINDIR$ac_delim
45566 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45567 uncomment_dbi!$uncomment_dbi$ac_delim
45568 DB_PROG!$DB_PROG$ac_delim
45569 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45570 cats!$cats$ac_delim
45571 DB_TYPE!$DB_TYPE$ac_delim
45572 GETCONF!$GETCONF$ac_delim
45573 XMKMF!$XMKMF$ac_delim
45574 X_CFLAGS!$X_CFLAGS$ac_delim
45575 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45576 X_LIBS!$X_LIBS$ac_delim
45577 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45578 LIBOBJS!$LIBOBJS$ac_delim
45579 CAP_LIBS!$CAP_LIBS$ac_delim
45580 FDLIBS!$FDLIBS$ac_delim
45581 DEBUG!$DEBUG$ac_delim
45582 DINCLUDE!$DINCLUDE$ac_delim
45583 DLIB!$DLIB$ac_delim
45584 DB_LIBS!$DB_LIBS$ac_delim
45585 WCFLAGS!$WCFLAGS$ac_delim
45588 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45590 elif $ac_last_try; then
45591 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45593 { (exit 1); exit 1; }; }
45595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45600 if test -n "$ac_eof"; then
45601 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45602 ac_eof=`expr $ac_eof + 1`
45605 cat >>$CONFIG_STATUS <<_ACEOF
45606 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45611 s/^/s,@/; s/!/@,|#_!!_#|/
45614 s/'"$ac_delim"'$/,g/; t
45616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45617 ' >>$CONFIG_STATUS <conf$$subs.sed
45618 rm -f conf$$subs.sed
45619 cat >>$CONFIG_STATUS <<_ACEOF
45625 for ac_last_try in false false false false false :; do
45626 cat >conf$$subs.sed <<_ACEOF
45627 WLDFLAGS!$WLDFLAGS$ac_delim
45628 WRAPLIBS!$WRAPLIBS$ac_delim
45629 OBJLIST!$OBJLIST$ac_delim
45630 TAPEDRIVE!$TAPEDRIVE$ac_delim
45631 PSCMD!$PSCMD$ac_delim
45632 WIN32!$WIN32$ac_delim
45633 MACOSX!$MACOSX$ac_delim
45634 DISTNAME!$DISTNAME$ac_delim
45635 DISTVER!$DISTVER$ac_delim
45636 LTLIBOBJS!$LTLIBOBJS$ac_delim
45639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
45641 elif $ac_last_try; then
45642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45644 { (exit 1); exit 1; }; }
45646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45651 if test -n "$ac_eof"; then
45652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45653 ac_eof=`expr $ac_eof + 1`
45656 cat >>$CONFIG_STATUS <<_ACEOF
45657 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
45658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45662 s/^/s,@/; s/!/@,|#_!!_#|/
45665 s/'"$ac_delim"'$/,g/; t
45667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45668 ' >>$CONFIG_STATUS <conf$$subs.sed
45669 rm -f conf$$subs.sed
45670 cat >>$CONFIG_STATUS <<_ACEOF
45677 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45678 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45679 # trailing colons and then remove the whole line if VPATH becomes empty
45680 # (actually we leave an empty line to preserve line numbers).
45681 if test "x$srcdir" = x.; then
45682 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45683 s/:*\$(srcdir):*/:/
45684 s/:*\${srcdir}:*/:/
45686 s/^\([^=]*=[ ]*\):*/\1/
45692 cat >>$CONFIG_STATUS <<\_ACEOF
45693 fi # test -n "$CONFIG_FILES"
45696 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45699 :[FHLC]) ac_mode=$ac_tag; continue;;
45701 case $ac_mode$ac_tag in
45703 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45704 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45705 { (exit 1); exit 1; }; };;
45706 :[FH]-) ac_tag=-:-;;
45707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45724 -) ac_f="$tmp/stdin";;
45725 *) # Look for the file first in the build tree, then in the source tree
45726 # (if the path is not absolute). The absolute path cannot be DOS-style,
45727 # because $ac_f cannot contain `:'.
45731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45733 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45734 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45735 { (exit 1); exit 1; }; };;
45737 ac_file_inputs="$ac_file_inputs $ac_f"
45740 # Let's still pretend it is `configure' which instantiates (i.e., don't
45741 # use $as_me), people would be surprised to read:
45742 # /* config.h. Generated by config.status. */
45743 configure_input="Generated from "`IFS=:
45744 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45745 if test x"$ac_file" != x-; then
45746 configure_input="$ac_file. $configure_input"
45747 { echo "$as_me:$LINENO: creating $ac_file" >&5
45748 echo "$as_me: creating $ac_file" >&6;}
45752 *:-:* | *:-) cat >"$tmp/stdin";;
45757 ac_dir=`$as_dirname -- "$ac_file" ||
45758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45759 X"$ac_file" : 'X\(//\)[^/]' \| \
45760 X"$ac_file" : 'X\(//\)$' \| \
45761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45767 /^X\(\/\/\)[^/].*/{
45782 -*) as_dir=./$as_dir;;
45784 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45788 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45789 *) as_qdir=$as_dir;;
45791 as_dirs="'$as_qdir' $as_dirs"
45792 as_dir=`$as_dirname -- "$as_dir" ||
45793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45794 X"$as_dir" : 'X\(//\)[^/]' \| \
45795 X"$as_dir" : 'X\(//\)$' \| \
45796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45802 /^X\(\/\/\)[^/].*/{
45815 test -d "$as_dir" && break
45817 test -z "$as_dirs" || eval "mkdir $as_dirs"
45818 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45819 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45820 { (exit 1); exit 1; }; }; }
45824 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45826 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45827 # A ".." for each directory in $ac_dir_suffix.
45828 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45829 case $ac_top_builddir_sub in
45830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45834 ac_abs_top_builddir=$ac_pwd
45835 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45836 # for backward compatibility:
45837 ac_top_builddir=$ac_top_build_prefix
45840 .) # We are building in place.
45842 ac_top_srcdir=$ac_top_builddir_sub
45843 ac_abs_top_srcdir=$ac_pwd ;;
45844 [\\/]* | ?:[\\/]* ) # Absolute name.
45845 ac_srcdir=$srcdir$ac_dir_suffix;
45846 ac_top_srcdir=$srcdir
45847 ac_abs_top_srcdir=$srcdir ;;
45848 *) # Relative name.
45849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45850 ac_top_srcdir=$ac_top_build_prefix$srcdir
45851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45853 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45868 cat >>$CONFIG_STATUS <<\_ACEOF
45869 # If the template does not know about datarootdir, expand it.
45870 # FIXME: This hack should be removed a few years after 2.60.
45871 ac_datarootdir_hack=; ac_datarootdir_seen=
45873 case `sed -n '/datarootdir/ {
45882 ' $ac_file_inputs` in
45883 *datarootdir*) ac_datarootdir_seen=yes;;
45884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45885 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45886 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45888 cat >>$CONFIG_STATUS <<_ACEOF
45889 ac_datarootdir_hack='
45890 s&@datadir@&$datadir&g
45891 s&@docdir@&$docdir&g
45892 s&@infodir@&$infodir&g
45893 s&@localedir@&$localedir&g
45894 s&@mandir@&$mandir&g
45895 s&\\\${datarootdir}&$datarootdir&g' ;;
45899 # Neutralize VPATH when `$srcdir' = `.'.
45900 # Shell code in configure.ac might set extrasub.
45901 # FIXME: do we really want to maintain this feature?
45902 cat >>$CONFIG_STATUS <<_ACEOF
45906 cat >>$CONFIG_STATUS <<\_ACEOF
45908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45909 s&@configure_input@&$configure_input&;t t
45910 s&@top_builddir@&$ac_top_builddir_sub&;t t
45911 s&@srcdir@&$ac_srcdir&;t t
45912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45913 s&@top_srcdir@&$ac_top_srcdir&;t t
45914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45915 s&@builddir@&$ac_builddir&;t t
45916 s&@abs_builddir@&$ac_abs_builddir&;t t
45917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45918 s&@INSTALL@&$ac_INSTALL&;t t
45919 $ac_datarootdir_hack
45920 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
45922 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45923 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45925 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45926 which seems to be undefined. Please make sure it is defined." >&5
45927 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45928 which seems to be undefined. Please make sure it is defined." >&2;}
45932 -) cat "$tmp/out"; rm -f "$tmp/out";;
45933 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45942 # Transform confdefs.h into a sed script `conftest.defines', that
45943 # substitutes the proper values into config.h.in to produce config.h.
45944 rm -f conftest.defines conftest.tail
45945 # First, append a space to every undef/define line, to ease matching.
45946 echo 's/$/ /' >conftest.defines
45947 # Then, protect against being on the right side of a sed subst, or in
45948 # an unquoted here document, in config.status. If some macros were
45949 # called several times there might be several #defines for the same
45950 # symbol, which is useless. But do not sort them, since the last
45951 # AC_DEFINE must be honored.
45952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45953 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45954 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45955 # PARAMS is the parameter list in the macro definition--in most cases, it's
45956 # just an empty string.
45957 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45958 ac_dB='\\)[ (].*,\\1define\\2'
45966 s/^[ ]*#[ ]*define[ ][ ]*//
45971 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45972 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45973 ' >>conftest.defines
45975 # Remove the space that was appended to ease matching.
45976 # Then replace #undef with comments. This is necessary, for
45977 # example, in the case of _POSIX_SOURCE, which is predefined and required
45978 # on some systems where configure will not decide to define it.
45979 # (The regexp can be short, since the line contains either #define or #undef.)
45981 s,^[ #]*u.*,/* & */,' >>conftest.defines
45983 # Break up conftest.defines:
45984 ac_max_sed_lines=50
45986 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45987 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45988 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45990 ac_in='$ac_file_inputs'
45991 ac_out='"$tmp/out1"'
45992 ac_nxt='"$tmp/out2"'
45996 # Write a here document:
45997 cat >>$CONFIG_STATUS <<_ACEOF
45998 # First, check the format of the line:
45999 cat >"\$tmp/defines.sed" <<\\CEOF
46000 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46001 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46005 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46007 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46008 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46009 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46010 grep . conftest.tail >/dev/null || break
46011 rm -f conftest.defines
46012 mv conftest.tail conftest.defines
46014 rm -f conftest.defines conftest.tail
46016 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46017 cat >>$CONFIG_STATUS <<\_ACEOF
46018 if test x"$ac_file" != x-; then
46019 echo "/* $configure_input */" >"$tmp/config.h"
46020 cat "$ac_result" >>"$tmp/config.h"
46021 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46023 echo "$as_me: $ac_file is unchanged" >&6;}
46026 mv "$tmp/config.h" $ac_file
46029 echo "/* $configure_input */"
46035 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46036 echo "$as_me: executing $ac_file commands" >&6;}
46041 case $ac_file$ac_mode in
46044 # See if we are running on zsh, and set the options which allow our
46045 # commands through without removal of \ escapes.
46046 if test -n "${ZSH_VERSION+set}" ; then
46047 setopt NO_GLOB_SUBST
46050 cfgfile="${ofile}T"
46051 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46054 cat <<_LT_EOF >> "$cfgfile"
46057 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46058 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46060 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46062 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46063 # 2006, 2007, 2008 Free Software Foundation, Inc.
46064 # Written by Gordon Matzigkeit, 1996
46066 # This file is part of GNU Libtool.
46068 # GNU Libtool is free software; you can redistribute it and/or
46069 # modify it under the terms of the GNU General Public License as
46070 # published by the Free Software Foundation; either version 2 of
46071 # the License, or (at your option) any later version.
46073 # As a special exception to the GNU General Public License,
46074 # if you distribute this file as part of a program or library that
46075 # is built using GNU Libtool, you may include this file under the
46076 # same distribution terms that you use for the rest of that program.
46078 # GNU Libtool is distributed in the hope that it will be useful,
46079 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46081 # GNU General Public License for more details.
46083 # You should have received a copy of the GNU General Public License
46084 # along with GNU Libtool; see the file COPYING. If not, a copy
46085 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46086 # obtained by writing to the Free Software Foundation, Inc.,
46087 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46090 # The names of the tagged configurations supported by this script.
46091 available_tags="CXX "
46093 # ### BEGIN LIBTOOL CONFIG
46095 # Which release of libtool.m4 was used?
46096 macro_version=$macro_version
46097 macro_revision=$macro_revision
46099 # Whether or not to build shared libraries.
46100 build_libtool_libs=$enable_shared
46102 # Whether or not to build static libraries.
46103 build_old_libs=$enable_static
46105 # What type of objects to build.
46108 # Whether or not to optimize for fast installation.
46109 fast_install=$enable_fast_install
46112 host_alias=$host_alias
46116 # The build system.
46117 build_alias=$build_alias
46121 # A sed program that does not truncate output.
46124 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46125 Xsed="\$SED -e 1s/^X//"
46127 # A grep program that handles long lines.
46133 # A literal string matcher.
46136 # A BSD- or MS-compatible name lister.
46139 # Whether we need soft or hard links.
46142 # What is the maximum length of a command?
46143 max_cmd_len=$max_cmd_len
46145 # Object file suffix (normally "o").
46148 # Executable file suffix (normally "").
46151 # whether the shell understands "unset".
46154 # turn spaces into newlines.
46157 # turn newlines into spaces.
46160 # How to create reloadable object files.
46161 reload_flag=$lt_reload_flag
46162 reload_cmds=$lt_reload_cmds
46164 # An object symbol dumper.
46165 OBJDUMP=$lt_OBJDUMP
46167 # Method to check whether dependent libraries are shared objects.
46168 deplibs_check_method=$lt_deplibs_check_method
46170 # Command to use when deplibs_check_method == "file_magic".
46171 file_magic_cmd=$lt_file_magic_cmd
46175 AR_FLAGS=$lt_AR_FLAGS
46177 # A symbol stripping program.
46180 # Commands used to install an old-style archive.
46182 old_postinstall_cmds=$lt_old_postinstall_cmds
46183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46188 # LTCC compiler flags.
46189 LTCFLAGS=$lt_CFLAGS
46191 # Take the output of nm and produce a listing of raw symbols and C names.
46192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46194 # Transform the output of nm in a proper C declaration.
46195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46197 # Transform the output of nm in a C name address pair.
46198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46200 # Transform the output of nm in a C name address pair when lib prefix is needed.
46201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46203 # The name of the directory that contains temporary libtool files.
46206 # Shell to use when invoking shell scripts.
46209 # An echo program that does not interpret backslashes.
46212 # Used to examine libraries when file_magic_cmd begins with "file".
46213 MAGIC_CMD=$MAGIC_CMD
46215 # Must we lock files when doing compilation?
46216 need_locks=$lt_need_locks
46218 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46219 DSYMUTIL=$lt_DSYMUTIL
46221 # Tool to change global to local symbols on Mac OS X.
46224 # Tool to manipulate fat objects and archives on Mac OS X.
46227 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46230 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46231 OTOOL64=$lt_OTOOL64
46233 # Old archive suffix (normally "a").
46236 # Shared library suffix (normally ".so").
46237 shrext_cmds=$lt_shrext_cmds
46239 # The commands to extract the exported symbol list from a shared archive.
46240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46242 # Variables whose values should be saved in libtool wrapper scripts and
46243 # restored at link time.
46244 variables_saved_for_relink=$lt_variables_saved_for_relink
46246 # Do we need the "lib" prefix for modules?
46247 need_lib_prefix=$need_lib_prefix
46249 # Do we need a version for libraries?
46250 need_version=$need_version
46252 # Library versioning type.
46253 version_type=$version_type
46255 # Shared library runtime path variable.
46256 runpath_var=$runpath_var
46258 # Shared library path variable.
46259 shlibpath_var=$shlibpath_var
46261 # Is shlibpath searched before the hard-coded library search path?
46262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46264 # Format of library name prefix.
46265 libname_spec=$lt_libname_spec
46267 # List of archive names. First name is the real one, the rest are links.
46268 # The last name is the one that the linker finds with -lNAME
46269 library_names_spec=$lt_library_names_spec
46271 # The coded name of the library, if different from the real name.
46272 soname_spec=$lt_soname_spec
46274 # Command to use after installation of a shared archive.
46275 postinstall_cmds=$lt_postinstall_cmds
46277 # Command to use after uninstallation of a shared archive.
46278 postuninstall_cmds=$lt_postuninstall_cmds
46280 # Commands used to finish a libtool library installation in a directory.
46281 finish_cmds=$lt_finish_cmds
46283 # As "finish_cmds", except a single script fragment to be evaled but
46285 finish_eval=$lt_finish_eval
46287 # Whether we should hardcode library paths into libraries.
46288 hardcode_into_libs=$hardcode_into_libs
46290 # Compile-time system search path for libraries.
46291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46293 # Run-time system search path for libraries.
46294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46296 # Whether dlopen is supported.
46297 dlopen_support=$enable_dlopen
46299 # Whether dlopen of programs is supported.
46300 dlopen_self=$enable_dlopen_self
46302 # Whether dlopen of statically linked programs is supported.
46303 dlopen_self_static=$enable_dlopen_self_static
46305 # Commands to strip libraries.
46306 old_striplib=$lt_old_striplib
46307 striplib=$lt_striplib
46310 # The linker used to build libraries.
46313 # Commands used to build an old-style archive.
46314 old_archive_cmds=$lt_old_archive_cmds
46316 # A language specific compiler.
46319 # Is the compiler the GNU compiler?
46322 # Compiler flag to turn off builtin functions.
46323 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46325 # How to pass a linker flag through the compiler.
46326 wl=$lt_lt_prog_compiler_wl
46328 # Additional compiler flags for building library objects.
46329 pic_flag=$lt_lt_prog_compiler_pic
46331 # Compiler flag to prevent dynamic linking.
46332 link_static_flag=$lt_lt_prog_compiler_static
46334 # Does compiler simultaneously support -c and -o options?
46335 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46337 # Whether or not to add -lc for building shared libraries.
46338 build_libtool_need_lc=$archive_cmds_need_lc
46340 # Whether or not to disallow shared libs when runtime libs are static.
46341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46343 # Compiler flag to allow reflexive dlopens.
46344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46346 # Compiler flag to generate shared objects directly from archives.
46347 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46349 # Whether the compiler copes with passing no objects directly.
46350 compiler_needs_object=$lt_compiler_needs_object
46352 # Create an old-style archive from a shared archive.
46353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46355 # Create a temporary old-style archive to link instead of a shared archive.
46356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46358 # Commands used to build a shared archive.
46359 archive_cmds=$lt_archive_cmds
46360 archive_expsym_cmds=$lt_archive_expsym_cmds
46362 # Commands used to build a loadable module if different from building
46363 # a shared archive.
46364 module_cmds=$lt_module_cmds
46365 module_expsym_cmds=$lt_module_expsym_cmds
46367 # Whether we are building with GNU ld or not.
46368 with_gnu_ld=$lt_with_gnu_ld
46370 # Flag that allows shared libraries with undefined symbols to be built.
46371 allow_undefined_flag=$lt_allow_undefined_flag
46373 # Flag that enforces no undefined symbols.
46374 no_undefined_flag=$lt_no_undefined_flag
46376 # Flag to hardcode \$libdir into a binary during linking.
46377 # This must work even if \$libdir does not exist
46378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46380 # If ld is used when linking, flag to hardcode \$libdir into a binary
46381 # during linking. This must work even if \$libdir does not exist.
46382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46384 # Whether we need a single "-rpath" flag with a separated argument.
46385 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46388 # DIR into the resulting binary.
46389 hardcode_direct=$hardcode_direct
46391 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46392 # DIR into the resulting binary and the resulting library dependency is
46393 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46394 # library is relocated.
46395 hardcode_direct_absolute=$hardcode_direct_absolute
46397 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46398 # into the resulting binary.
46399 hardcode_minus_L=$hardcode_minus_L
46401 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46402 # into the resulting binary.
46403 hardcode_shlibpath_var=$hardcode_shlibpath_var
46405 # Set to "yes" if building a shared library automatically hardcodes DIR
46406 # into the library and all subsequent libraries and executables linked
46408 hardcode_automatic=$hardcode_automatic
46410 # Set to yes if linker adds runtime paths of dependent libraries
46411 # to runtime path list.
46412 inherit_rpath=$inherit_rpath
46414 # Whether libtool must link a program against all its dependency libraries.
46415 link_all_deplibs=$link_all_deplibs
46417 # Fix the shell variable \$srcfile for the compiler.
46418 fix_srcfile_path=$lt_fix_srcfile_path
46420 # Set to "yes" if exported symbols are required.
46421 always_export_symbols=$always_export_symbols
46423 # The commands to list exported symbols.
46424 export_symbols_cmds=$lt_export_symbols_cmds
46426 # Symbols that should not be listed in the preloaded symbols.
46427 exclude_expsyms=$lt_exclude_expsyms
46429 # Symbols that must always be exported.
46430 include_expsyms=$lt_include_expsyms
46432 # Commands necessary for linking programs (against libraries) with templates.
46433 prelink_cmds=$lt_prelink_cmds
46435 # Specify filename containing input files.
46436 file_list_spec=$lt_file_list_spec
46438 # How to hardcode a shared library path into an executable.
46439 hardcode_action=$hardcode_action
46441 # The directories searched by this compiler when creating a shared library.
46442 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46444 # Dependencies to place before and after the objects being linked to
46445 # create a shared library.
46446 predep_objects=$lt_predep_objects
46447 postdep_objects=$lt_postdep_objects
46448 predeps=$lt_predeps
46449 postdeps=$lt_postdeps
46451 # The library search path used internally by the compiler when linking
46452 # a shared library.
46453 compiler_lib_search_path=$lt_compiler_lib_search_path
46455 # ### END LIBTOOL CONFIG
46461 cat <<\_LT_EOF >> "$cfgfile"
46462 # AIX sometimes has problems with the GCC collect2 program. For some
46463 # reason, if we set the COLLECT_NAMES environment variable, the problems
46464 # vanish in a puff of smoke.
46465 if test "X${COLLECT_NAMES+set}" != Xset; then
46467 export COLLECT_NAMES
46474 ltmain="$ac_aux_dir/ltmain.sh"
46477 # We use sed instead of cat because bash on DJGPP gets confused if
46478 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46479 # text mode, it properly converts lines to CR/LF. This bash problem
46480 # is reportedly fixed, but why not run on old versions too?
46481 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46482 || (rm -f "$cfgfile"; exit 1)
46486 cat << \_LT_EOF >> "$cfgfile"
46488 # func_dirname file append nondir_replacement
46489 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46490 # otherwise set result to NONDIR_REPLACEMENT.
46494 */*) func_dirname_result="${1%/*}${2}" ;;
46495 * ) func_dirname_result="${3}" ;;
46499 # func_basename file
46502 func_basename_result="${1##*/}"
46505 # func_dirname_and_basename file append nondir_replacement
46506 # perform func_basename and func_dirname in a single function
46508 # dirname: Compute the dirname of FILE. If nonempty,
46509 # add APPEND to the result, otherwise set result
46510 # to NONDIR_REPLACEMENT.
46511 # value returned in "$func_dirname_result"
46512 # basename: Compute filename of FILE.
46513 # value retuned in "$func_basename_result"
46514 # Implementation must be kept synchronized with func_dirname
46515 # and func_basename. For efficiency, we do not delegate to
46516 # those functions but instead duplicate the functionality here.
46517 func_dirname_and_basename ()
46520 */*) func_dirname_result="${1%/*}${2}" ;;
46521 * ) func_dirname_result="${3}" ;;
46523 func_basename_result="${1##*/}"
46526 # func_stripname prefix suffix name
46527 # strip PREFIX and SUFFIX off of NAME.
46528 # PREFIX and SUFFIX must not contain globbing or regex special
46529 # characters, hashes, percent signs, but SUFFIX may contain a leading
46530 # dot (in which case that matches only a dot).
46533 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46534 # positional parameters, so assign one to ordinary parameter first.
46535 func_stripname_result=${3}
46536 func_stripname_result=${func_stripname_result#"${1}"}
46537 func_stripname_result=${func_stripname_result%"${2}"}
46543 func_opt_split_opt=${1%%=*}
46544 func_opt_split_arg=${1#*=}
46551 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46552 *) func_lo2o_result=${1} ;;
46556 # func_xform libobj-or-source
46559 func_xform_result=${1%.*}.lo
46562 # func_arith arithmetic-term...
46565 func_arith_result=$(( $* ))
46569 # STRING may not start with a hyphen.
46572 func_len_result=${#1}
46577 *) # Bourne compatible functions.
46578 cat << \_LT_EOF >> "$cfgfile"
46580 # func_dirname file append nondir_replacement
46581 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46582 # otherwise set result to NONDIR_REPLACEMENT.
46585 # Extract subdirectory from the argument.
46586 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46587 if test "X$func_dirname_result" = "X${1}"; then
46588 func_dirname_result="${3}"
46590 func_dirname_result="$func_dirname_result${2}"
46594 # func_basename file
46597 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46601 # func_stripname prefix suffix name
46602 # strip PREFIX and SUFFIX off of NAME.
46603 # PREFIX and SUFFIX must not contain globbing or regex special
46604 # characters, hashes, percent signs, but SUFFIX may contain a leading
46605 # dot (in which case that matches only a dot).
46606 # func_strip_suffix prefix name
46610 .*) func_stripname_result=`$ECHO "X${3}" \
46611 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46612 *) func_stripname_result=`$ECHO "X${3}" \
46613 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46618 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46619 my_sed_long_arg='1s/^-[^=]*=//'
46624 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46625 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46631 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46634 # func_xform libobj-or-source
46637 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46640 # func_arith arithmetic-term...
46643 func_arith_result=`expr "$@"`
46647 # STRING may not start with a hyphen.
46650 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46656 case $lt_shell_append in
46658 cat << \_LT_EOF >> "$cfgfile"
46660 # func_append var value
46661 # Append VALUE to the end of shell variable VAR.
46669 cat << \_LT_EOF >> "$cfgfile"
46671 # func_append var value
46672 # Append VALUE to the end of shell variable VAR.
46683 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46684 || (rm -f "$cfgfile"; exit 1)
46686 mv -f "$cfgfile" "$ofile" ||
46687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46691 cat <<_LT_EOF >> "$ofile"
46693 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46695 # The linker used to build libraries.
46698 # Commands used to build an old-style archive.
46699 old_archive_cmds=$lt_old_archive_cmds_CXX
46701 # A language specific compiler.
46702 CC=$lt_compiler_CXX
46704 # Is the compiler the GNU compiler?
46707 # Compiler flag to turn off builtin functions.
46708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46710 # How to pass a linker flag through the compiler.
46711 wl=$lt_lt_prog_compiler_wl_CXX
46713 # Additional compiler flags for building library objects.
46714 pic_flag=$lt_lt_prog_compiler_pic_CXX
46716 # Compiler flag to prevent dynamic linking.
46717 link_static_flag=$lt_lt_prog_compiler_static_CXX
46719 # Does compiler simultaneously support -c and -o options?
46720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46722 # Whether or not to add -lc for building shared libraries.
46723 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46725 # Whether or not to disallow shared libs when runtime libs are static.
46726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46728 # Compiler flag to allow reflexive dlopens.
46729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46731 # Compiler flag to generate shared objects directly from archives.
46732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46734 # Whether the compiler copes with passing no objects directly.
46735 compiler_needs_object=$lt_compiler_needs_object_CXX
46737 # Create an old-style archive from a shared archive.
46738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46740 # Create a temporary old-style archive to link instead of a shared archive.
46741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46743 # Commands used to build a shared archive.
46744 archive_cmds=$lt_archive_cmds_CXX
46745 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46747 # Commands used to build a loadable module if different from building
46748 # a shared archive.
46749 module_cmds=$lt_module_cmds_CXX
46750 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46752 # Whether we are building with GNU ld or not.
46753 with_gnu_ld=$lt_with_gnu_ld_CXX
46755 # Flag that allows shared libraries with undefined symbols to be built.
46756 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46758 # Flag that enforces no undefined symbols.
46759 no_undefined_flag=$lt_no_undefined_flag_CXX
46761 # Flag to hardcode \$libdir into a binary during linking.
46762 # This must work even if \$libdir does not exist
46763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46765 # If ld is used when linking, flag to hardcode \$libdir into a binary
46766 # during linking. This must work even if \$libdir does not exist.
46767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46769 # Whether we need a single "-rpath" flag with a separated argument.
46770 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46773 # DIR into the resulting binary.
46774 hardcode_direct=$hardcode_direct_CXX
46776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46777 # DIR into the resulting binary and the resulting library dependency is
46778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46779 # library is relocated.
46780 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46783 # into the resulting binary.
46784 hardcode_minus_L=$hardcode_minus_L_CXX
46786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46787 # into the resulting binary.
46788 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46790 # Set to "yes" if building a shared library automatically hardcodes DIR
46791 # into the library and all subsequent libraries and executables linked
46793 hardcode_automatic=$hardcode_automatic_CXX
46795 # Set to yes if linker adds runtime paths of dependent libraries
46796 # to runtime path list.
46797 inherit_rpath=$inherit_rpath_CXX
46799 # Whether libtool must link a program against all its dependency libraries.
46800 link_all_deplibs=$link_all_deplibs_CXX
46802 # Fix the shell variable \$srcfile for the compiler.
46803 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46805 # Set to "yes" if exported symbols are required.
46806 always_export_symbols=$always_export_symbols_CXX
46808 # The commands to list exported symbols.
46809 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46811 # Symbols that should not be listed in the preloaded symbols.
46812 exclude_expsyms=$lt_exclude_expsyms_CXX
46814 # Symbols that must always be exported.
46815 include_expsyms=$lt_include_expsyms_CXX
46817 # Commands necessary for linking programs (against libraries) with templates.
46818 prelink_cmds=$lt_prelink_cmds_CXX
46820 # Specify filename containing input files.
46821 file_list_spec=$lt_file_list_spec_CXX
46823 # How to hardcode a shared library path into an executable.
46824 hardcode_action=$hardcode_action_CXX
46826 # The directories searched by this compiler when creating a shared library.
46827 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46829 # Dependencies to place before and after the objects being linked to
46830 # create a shared library.
46831 predep_objects=$lt_predep_objects_CXX
46832 postdep_objects=$lt_postdep_objects_CXX
46833 predeps=$lt_predeps_CXX
46834 postdeps=$lt_postdeps_CXX
46836 # The library search path used internally by the compiler when linking
46837 # a shared library.
46838 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46840 # ### END LIBTOOL TAG CONFIG: CXX
46845 for ac_file in $CONFIG_FILES; do
46846 # Support "outfile[:infile[:infile...]]"
46848 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46850 # PO directories have a Makefile.in generated from Makefile.in.in.
46851 case "$ac_file" in */Makefile.in)
46852 # Adjust a relative srcdir.
46853 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46854 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46855 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46856 # In autoconf-2.13 it is called $ac_given_srcdir.
46857 # In autoconf-2.50 it is called $srcdir.
46858 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46859 case "$ac_given_srcdir" in
46860 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46861 /*) top_srcdir="$ac_given_srcdir" ;;
46862 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46864 # Treat a directory as a PO directory if and only if it has a
46865 # POTFILES.in file. This allows packages to have multiple PO
46866 # directories under different names or in different locations.
46867 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46868 rm -f "$ac_dir/POTFILES"
46869 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46870 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46871 POMAKEFILEDEPS="POTFILES.in"
46872 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46873 # on $ac_dir but don't depend on user-specified configuration
46875 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46876 # The LINGUAS file contains the set of available languages.
46877 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46878 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46880 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46881 # Hide the ALL_LINGUAS assigment from automake.
46882 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46883 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46885 # The set of available languages was given in configure.in.
46886 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46889 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46890 # Compute UPDATEPOFILES
46891 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46892 # Compute DUMMYPOFILES
46893 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46895 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46896 case "$ac_given_srcdir" in
46898 *) srcdirpre='$(srcdir)/' ;;
46904 for lang in $ALL_LINGUAS; do
46905 POFILES="$POFILES $srcdirpre$lang.po"
46906 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46907 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46908 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46910 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46911 # environment variable.
46913 if test -n "$ALL_LINGUAS"; then
46914 for presentlang in $ALL_LINGUAS; do
46916 if test "%UNSET%" != "$LINGUAS"; then
46917 desiredlanguages="$LINGUAS"
46919 desiredlanguages="$ALL_LINGUAS"
46921 for desiredlang in $desiredlanguages; do
46922 # Use the presentlang catalog if desiredlang is
46923 # a. equal to presentlang, or
46924 # b. a variant of presentlang (because in this case,
46925 # presentlang can be used as a fallback for messages
46926 # which are not translated in the desiredlang catalog).
46927 case "$desiredlang" in
46928 "$presentlang"*) useit=yes;;
46931 if test $useit = yes; then
46932 INST_LINGUAS="$INST_LINGUAS $presentlang"
46937 if test -n "$INST_LINGUAS"; then
46938 for lang in $INST_LINGUAS; do
46939 CATALOGS="$CATALOGS $lang.gmo"
46942 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46943 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"
46944 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46945 if test -f "$f"; then
46947 *.orig | *.bak | *~) ;;
46948 *) cat "$f" >> "$ac_dir/Makefile" ;;
46963 { (exit 0); exit 0; }
46965 chmod +x $CONFIG_STATUS
46966 ac_clean_files=$ac_clean_files_save
46969 # configure is writing to config.log, and then calls config.status.
46970 # config.status does its own redirection, appending to config.log.
46971 # Unfortunately, on DOS this fails, as config.log is still kept open
46972 # by configure, so config.status won't be able to write to it; its
46973 # output is simply discarded. So we exec the FD to /dev/null,
46974 # effectively closing config.log, so it can be properly (re)opened and
46975 # appended to by config.status. When coming back to configure, we
46976 # need to make the FD available again.
46977 if test "$no_create" != yes; then
46979 ac_config_status_args=
46980 test "$silent" = yes &&
46981 ac_config_status_args="$ac_config_status_args --quiet"
46983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46986 # would make configure fail if this is the last instruction.
46987 $ac_cs_success || { (exit 1); exit 1; }
46991 if test "${support_bat}" = "yes" ; then
46992 if test "x$QMAKE" = "xnone"; then
46993 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
46994 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
46995 { (exit 1); exit 1; }; }
47000 echo "Creating bat Makefile"
47005 ${MAKE:-make} clean
47009 if test X"$GCC" = "Xyes" ; then
47010 echo "Doing make of dependencies"
47011 ${MAKE:-make} depend
47015 chmod 755 install_conf_file build-depkgs-qt-console
47019 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47020 chmod 755 dvd-handler dvd-simulator
47021 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47025 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
47026 chmod 755 $c/update_postgresql_tables_10_to_11
47030 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
47031 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
47033 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
47034 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
47036 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
47037 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
47039 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
47040 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
47042 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
47043 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47045 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47046 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47049 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
47050 chmod 755 $c/sqlite
47053 chmod 755 src/win32/build-depkgs-mingw32
47055 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47056 largefile_support="yes"
47059 if test X"$GCC" = "Xyes" ; then
47060 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47061 if test "x${CCVERSION}" = "x" ; then
47062 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47064 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47065 if test x"${CXXVERSION}" = x ; then
47066 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47070 # clean up any old junk
47074 ${MAKE:-make} clean
47076 if test "x${db_type}" = "xInternal" ; then
47079 echo "You have not specified either --enable-client-only or one of the"
47080 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47081 echo " This is not permitted. Please reconfigure."
47083 echo "Aborting the configuration ..."
47090 Configuration on `date`:
47092 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47093 Bacula version: ${BACULA} ${VERSION} (${DATE})
47094 Source code location: ${srcdir}
47095 Install binaries: ${sbindir}
47096 Install libraries: ${libdir}
47097 Install config files: ${sysconfdir}
47098 Scripts directory: ${scriptdir}
47099 Archive directory: ${archivedir}
47100 Working directory: ${working_dir}
47101 PID directory: ${piddir}
47102 Subsys directory: ${subsysdir}
47103 Man directory: ${mandir}
47104 Data directory: ${datarootdir}
47105 Plugin directory: ${plugindir}
47106 C Compiler: ${CC} ${CCVERSION}
47107 C++ Compiler: ${CXX} ${CXXVERSION}
47108 Compiler flags: ${WCFLAGS} ${CFLAGS}
47109 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47111 Statically Linked Tools: ${support_static_tools}
47112 Statically Linked FD: ${support_static_fd}
47113 Statically Linked SD: ${support_static_sd}
47114 Statically Linked DIR: ${support_static_dir}
47115 Statically Linked CONS: ${support_static_cons}
47116 Database type: ${db_type}
47117 Database port: ${db_port}
47118 Database lib: ${DB_LIBS}
47119 Database name: ${db_name}
47120 Database user: ${db_user}
47122 Job Output Email: ${job_email}
47123 Traceback Email: ${dump_email}
47124 SMTP Host Address: ${smtp_host}
47126 Director Port: ${dir_port}
47127 File daemon Port: ${fd_port}
47128 Storage daemon Port: ${sd_port}
47130 Director User: ${dir_user}
47131 Director Group: ${dir_group}
47132 Storage Daemon User: ${sd_user}
47133 Storage DaemonGroup: ${sd_group}
47134 File Daemon User: ${fd_user}
47135 File Daemon Group: ${fd_group}
47137 SQL binaries Directory ${SQL_BINDIR}
47139 Large file support: $largefile_support
47140 Bacula conio support: ${got_conio} ${CONS_LIBS}
47141 readline support: ${got_readline} ${PRTREADLINE_SRC}
47142 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47143 TLS support: ${support_tls}
47144 Encryption support: ${support_crypto}
47145 ZLIB support: ${have_zlib}
47146 enable-smartalloc: ${support_smartalloc}
47147 enable-lockmgr: ${support_lockmgr}
47148 bat support: ${support_bat}
47149 enable-gnome: ${support_gnome} ${gnome_version}
47150 enable-bwx-console: ${support_wx_console} ${wx_version}
47151 enable-tray-monitor: ${support_tray_monitor}
47152 client-only: ${build_client_only}
47153 build-dird: ${build_dird}
47154 build-stored: ${build_stored}
47155 Plugin support: ${have_plugins}
47156 ACL support: ${have_acl}
47157 XATTR support: ${have_xattr}
47158 Python support: ${support_python} ${PYTHON_LIBS}
47159 Batch insert enabled: ${support_batch_insert}
47163 # create a small shell script useful for support with
47164 # configure options and config.out info
47165 cat > scripts/bacula_config << EOF
47168 $ $0 $ac_configure_args
47170 cat config.out >> scripts/bacula_config
47171 echo __EOC__ >> scripts/bacula_config
47172 chmod 755 scripts/bacula_config
47176 # Display a warning message if postgresql client lib is <= 8.1
47177 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47178 -a x$support_batch_insert = xyes
47180 echo "WARNING: Your PostgreSQL client library is too old to detect "
47181 echo " if it was compiled with --enable-thread-safety, consider to"
47182 echo " upgrade it in order to avoid problems with Batch insert mode"